/* Rush Car Rental — unified design system */

/* ── Base ── */
body {
    font-family: var(--font-family);
    font-size: var(--text-base);
    color: var(--rush-dark);
    background-color: var(--rush-surface);
    line-height: 1.6;
}

h1, .h1 { font-size: var(--text-3xl); font-weight: 700; }
h2, .h2 { font-size: var(--text-2xl); font-weight: 600; }
h3, .h3 { font-size: var(--text-xl); font-weight: 600; }
h4, .h4 { font-size: var(--text-lg); font-weight: 600; }
h5, .h5 { font-size: var(--text-base); font-weight: 600; }

.text-rush-dark { color: var(--rush-dark) !important; }
.text-rush-muted { color: var(--rush-dark-secondary) !important; }
.text-rush-gray { color: var(--rush-gray) !important; }

.section-title {
    color: var(--rush-dark);
    font-weight: 700;
    margin-bottom: var(--space-2xl);
}

/* ── Navigation ── */
.main-navbar {
    background-color: var(--rush-yellow);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm) 0;
}

.main-navbar .navbar-brand {
    font-size: var(--text-xl);
    letter-spacing: 0.3px;
    color: var(--rush-dark);
    font-weight: 700;
}

.main-navbar .navbar-brand .brand-text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--rush-dark);
}

.navbar-logo {
    max-height: 72px;
    height: auto;
    width: auto;
    vertical-align: middle;
    margin-right: var(--space-sm);
    transition: transform 0.2s ease;
}

.navbar-logo:hover {
    transform: scale(1.02);
}

.main-navbar .nav-link {
    color: var(--rush-dark) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.main-navbar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.main-navbar .dropdown-menu {
    border: 1px solid var(--rush-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-sm);
    min-width: 220px;
    right: 0;
    left: auto;
}

.main-navbar .dropdown-item {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    transition: background-color 0.15s ease;
}

.main-navbar .dropdown-item:hover {
    background-color: var(--rush-bg);
}

.main-navbar .dropdown-item i {
    color: var(--rush-dark-secondary);
    width: 18px;
}

.main-navbar .dropdown-header {
    font-weight: 600;
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rush-gray);
}

.main-navbar .dropdown-divider {
    margin: var(--space-xs) 0;
}

.main-navbar .container-fluid {
    position: relative;
}

.main-navbar-contact {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--rush-dark);
    line-height: 1.4;
}

.main-navbar .main-navbar-contact a {
    color: var(--rush-dark) !important;
    text-decoration: none;
}

.main-navbar .main-navbar-contact a:hover {
    text-decoration: underline;
}

.navbar-toggler {
    border: 1.5px solid var(--rush-dark);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) 12px;
    background-color: transparent;
    transition: background-color 0.2s ease;
    width: 44px;
    height: 40px;
}

.navbar-toggler:hover {
    background-color: rgba(0, 0, 0, 0.08);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--rush-yellow-subtle);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826, 26, 26, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 22px;
    height: 22px;
}

@media (min-width: 992px) {
    .main-navbar .navbar-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        z-index: 2;
    }
}

@media (max-width: 991.98px) {
    .main-navbar .navbar-center {
        position: static;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center;
        margin-top: var(--space-sm);
    }

    .main-navbar {
        padding: var(--space-sm) 0;
    }

    .navbar-logo {
        max-height: 56px;
    }

    .navbar-toggler {
        margin-left: var(--space-md);
    }
}

@media (max-width: 575.98px) {
    .navbar-logo {
        max-height: 48px;
    }

    .main-navbar-contact {
        font-size: var(--text-xs);
    }
}

/* ── Buttons ── */
.btn-warning,
.book-rush-btn,
.select-car-btn {
    background-color: var(--rush-yellow);
    border-color: var(--rush-yellow);
    color: var(--rush-dark);
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-warning:hover,
.btn-warning:focus,
.book-rush-btn:hover,
.select-car-btn:hover {
    background-color: var(--rush-yellow-hover);
    border-color: var(--rush-yellow-hover);
    color: var(--rush-dark);
    box-shadow: var(--shadow-sm);
}

.btn-outline-warning {
    color: var(--rush-dark);
    border-color: var(--rush-border);
    background-color: transparent;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.btn-outline-warning:hover {
    background-color: var(--rush-yellow-muted);
    border-color: var(--rush-yellow);
    color: var(--rush-dark);
}

.btn-primary {
    background-color: var(--rush-dark);
    border-color: var(--rush-dark);
    border-radius: var(--radius-sm);
}

.btn-primary:hover {
    background-color: #333;
    border-color: #333;
}

.btn-dark {
    background-color: var(--rush-dark);
    border-color: var(--rush-dark);
    border-radius: var(--radius-sm);
}

.btn-dark:hover {
    background-color: #333;
    border-color: #333;
}

.btn-lg {
    padding: 0.625rem 1.5rem;
    font-size: var(--text-base);
}

/* ── Cards ── */
.card {
    border: 1px solid var(--rush-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.city-card .city-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.card-header.bg-dark {
    background-color: var(--rush-dark) !important;
}

/* ── Hero ── */
.hero-section {
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background: url('https://images.unsplash.com/photo-1560009320-c01920eef9f8?q=80&w=2940&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center;
    background-size: cover;
    padding: 0;
    min-height: 560px;
    max-height: 72vh;
    height: 72vh;
    display: flex;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}

.hero-section .slogan-container {
    position: relative;
    z-index: 2;
    padding: 0 var(--space-xl);
}

.hero-section h1.display-4 {
    font-size: var(--text-3xl);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-section .lead {
    font-size: var(--text-lg);
    max-width: 540px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.position-relative {
    position: relative;
}

.search-form-position {
    position: absolute;
    bottom: 130px;
    left: 0;
    right: 0;
    z-index: 10;
    width: 100%;
}

.transparent-card {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--rush-border);
    border-radius: var(--radius-md);
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.slogan-container {
    margin-bottom: var(--space-2xl) !important;
}

.slogan-text {
    font-size: var(--text-xl);
    font-style: italic;
    margin-top: var(--space-sm);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.price-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: var(--rush-yellow);
    color: var(--rush-dark);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.price-tag .price {
    font-size: var(--text-2xl);
    font-weight: 800;
}

/* ── Search form ── */
.booking-search-container { padding: 0; }

.long-search-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.search-segment {
    flex: 1;
    padding: var(--space-lg);
    background-color: var(--rush-surface);
    border-right: 1px solid var(--rush-border);
}

.search-button-segment {
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    background-color: var(--rush-surface);
}

.booking-title {
    font-weight: 700;
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
    color: var(--rush-dark);
}

.booking-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background-color: var(--rush-yellow);
}

.booking-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin: var(--space-md);
    justify-content: center;
}

.highlight-item {
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    color: var(--rush-dark-secondary);
}

.highlight-item i {
    color: var(--rush-success);
    font-size: var(--text-base);
}

.search-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rush-gray);
    margin-bottom: var(--space-xs);
}

.location-select,
.date-time-select,
.age-select {
    position: relative;
    display: flex;
    border: 1px solid var(--rush-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.date-time-select { display: flex; }

.date-select {
    flex: 2;
    position: relative;
    border-right: 1px solid var(--rush-border);
}

.time-select {
    flex: 1;
    position: relative;
}

.location-icon,
.date-icon,
.age-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rush-gray);
    z-index: 1;
}

.dropdown-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--rush-gray);
    pointer-events: none;
}

.location-select .form-select,
.date-select .form-control,
.time-select .form-select,
.age-select .form-control {
    border: none;
    padding-left: 30px;
    background-color: transparent;
    height: 44px;
    font-size: var(--text-sm);
}

.time-select .form-select { padding-left: 10px; }

.location-select .form-select {
    padding-right: 30px;
    appearance: none;
}

.select-car-btn {
    border: none;
    font-size: var(--text-base);
    padding: 0.625rem 1.25rem;
    margin: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* ── Features & how-it-works ── */
.feature-item { font-size: var(--text-sm); }
.car-features { margin-bottom: var(--space-md); }

.feature-icon i {
    color: var(--rush-yellow);
}

.how-it-works-section {
    position: relative;
    background-color: var(--rush-bg);
}

.how-it-works-card {
    position: relative;
    padding-top: var(--space-lg);
}

.how-it-works-card:hover {
    transform: none;
}

.how-it-works-card .card {
    border: 1px solid var(--rush-border);
}

.how-it-works-card .card:hover {
    transform: none;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--rush-yellow);
    color: var(--rush-dark);
    font-weight: 700;
    font-size: var(--text-lg);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--rush-surface);
}

.step-title {
    color: var(--rush-dark);
    font-weight: 600;
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

.step-description {
    color: var(--rush-dark-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.step-action .btn-outline-warning {
    border-width: 1px;
    font-size: var(--text-sm);
}

/* ── Pricing ── */
.price-comparison { font-size: var(--text-sm); }
.competitor-price {
    color: var(--rush-gray);
    text-decoration: line-through;
}

.price-summary,
.booking-details {
    background-color: var(--rush-bg);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
}

/* ── Breadcrumb ── */
.breadcrumb-container {
    background-color: var(--rush-bg);
    border-bottom: 1px solid var(--rush-border);
}

.breadcrumb-custom {
    padding: var(--space-sm) 0;
    margin: 0;
    background-color: transparent;
}

.breadcrumb-custom .breadcrumb-item {
    font-size: var(--text-sm);
    font-weight: 500;
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--rush-dark-secondary);
    text-decoration: none;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: var(--rush-dark);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--rush-gray);
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--rush-gray);
    font-size: var(--text-lg);
    line-height: 1;
    padding: 0 var(--space-sm);
}

.breadcrumb-home {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.breadcrumb-home i {
    margin-right: 5px;
    font-size: var(--text-sm);
    color: var(--rush-yellow);
}

/* ── Footer ── */
.dark-footer {
    background-color: var(--rush-footer-bg);
    color: var(--rush-surface);
    position: relative;
    overflow: hidden;
}

.dark-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--rush-yellow);
}

.dark-footer h5 {
    font-weight: 600;
    font-size: var(--text-base);
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
    color: var(--rush-surface);
}

.dark-footer h5::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--rush-yellow);
}

.footer-links {
    margin-left: 0;
    padding-left: 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    line-height: 2;
    font-size: var(--text-sm);
    display: block;
    position: relative;
    padding-left: 14px;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    color: var(--rush-yellow) !important;
    padding-left: 18px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.15);
    margin: var(--space-xl) 0 var(--space-lg);
}

.dark-footer address {
    line-height: 1.8;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
}

.dark-footer address i {
    color: var(--rush-yellow);
    width: 18px;
    text-align: center;
    margin-right: var(--space-sm);
}

.dark-footer a.text-light:hover {
    color: var(--rush-yellow) !important;
}

.social-icons {
    margin-top: var(--space-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff !important;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--rush-yellow);
    color: var(--rush-dark) !important;
}

.social-icons .social-icon-img {
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}

.social-icons a:hover .social-icon-img {
    filter: none;
}

.text-light {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ── Testimonials ── */
.testimonials-section {
    overflow: hidden;
    position: relative;
    padding-bottom: var(--space-2xl);
}

.testimonialSwiper {
    padding-bottom: var(--space-xl);
    padding-top: var(--space-sm);
}

.testimonial-card {
    transition: box-shadow 0.2s ease;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100%;
    margin: var(--space-md) 5px;
    border: 1px solid var(--rush-border);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
}

.testimonial-image,
.testimonial-placeholder {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.testimonial-placeholder {
    font-size: var(--text-xl);
}

.testimonial-content {
    font-style: italic;
    color: var(--rush-dark-secondary);
    line-height: 1.6;
    font-size: var(--text-sm);
}

.testimonial-rating { font-size: var(--text-sm); }

.swiper-button-next,
.swiper-button-prev {
    color: var(--rush-dark) !important;
    background-color: var(--rush-surface);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--rush-border);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: var(--text-base) !important;
    font-weight: bold;
}

.swiper-pagination-bullet {
    background: var(--rush-yellow) !important;
    opacity: 0.4;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* ── Location ── */
.location-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

/* ── Forms ── */
.form-control:focus,
.form-select:focus {
    border-color: var(--rush-yellow);
    box-shadow: 0 0 0 3px var(--rush-yellow-subtle);
}

/* ── Alerts ── */
.alert-info {
    background-color: var(--rush-bg);
    border-color: var(--rush-border);
    color: var(--rush-dark);
}

/* ── Environment banner ── */
.environment-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px;
    color: white;
    text-align: center;
    font-weight: bold;
    z-index: 1050;
    font-size: var(--text-xs);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .hero-section {
        min-height: 480px;
        height: auto;
        max-height: none;
    }

    .transparent-card {
        width: 100%;
        margin: 0;
    }

    .long-search-container {
        flex-direction: column;
    }

    .search-segment {
        border-right: none;
        border-bottom: 1px solid var(--rush-border);
    }

    .search-button-segment {
        padding: var(--space-lg);
    }

    .slogan-container {
        margin-bottom: var(--space-xl) !important;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 420px;
        height: auto;
    }

    .hero-section h1.display-4 {
        font-size: var(--text-2xl);
    }

    .booking-title {
        font-size: var(--text-xl);
        text-align: center;
    }

    .booking-title:after {
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
    }

    .card-img-top,
    .city-card .city-image {
        height: 160px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }

    .date-time-select {
        flex-direction: column;
    }

    .date-select {
        border-right: none;
        border-bottom: 1px solid var(--rush-border);
    }
}
