/* =========================================
   CHILL RIDES - VEHICLES PAGE
========================================= */


/* =========================================
   1. VEHICLES HERO
========================================= */

.vehicles-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:linear-gradient(90deg,
            rgba(28, 38, 20, 0.88) 0%,
            rgba(35, 46, 25, 0.62) 48%,
            rgba(35, 46, 25, 0.22) 60%),
        
        url("../assets/images/vehicles/vehicles-hero.jfif") center 55% / cover no-repeat;
}

.vehicles-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg,
            rgba(69, 82, 48, 0.2),
            transparent 65%);
}

.vehicles-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 75px;
    padding-bottom: 75px;
    color: var(--cream);
}

.vehicles-hero .section-tag {
    color: var(--light-sage);
}

.vehicles-hero h1 {
    max-width: 750px;
    margin: 20px 0;
    font-family: var(--font-heading);
    color: white;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    line-height: 1.12;
    font-weight: 700;
}

.vehicles-hero h1 span {
    display: block;
    color: #e5be63;
    font-style: italic;
}

.vehicles-hero-content>p {
    max-width: 590px;
    color: rgba(235, 235, 216, 0.85);
    font-size: 1.05rem;
    line-height: 1.8;
}

.vehicles-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 32px;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--cream);
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-stat i {
    color: var(--light-sage);
    font-size: 1.15rem;
}


/* =========================================
   2. FILTER SECTION
========================================= */

.vehicle-filter-section {
    padding: 75px 0 45px;
    background: var(--cream);
}

.vehicle-filter-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 25px;
    margin-bottom: 30px;
}

.vehicle-filter-heading h2,
.vehicle-listing-top h2,
.pricing-info-heading h2 {
    margin-top: 12px;
    color: var(--forest);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
}

.vehicle-filter-heading h2 span,
.vehicle-listing-top h2 span,
.pricing-info-heading h2 span {
    color: var(--olive);
    font-style: italic;
}

.vehicle-filter-heading>p {
    max-width: 390px;
    color: var(--forest);
    line-height: 1.7;
}


/* Filter Panel */

.vehicle-filter-panel {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    align-items: end;
    gap: 16px;
    padding: 25px;
    background: var(--light-sage);
    border: 1px solid rgba(69, 82, 48, 0.15);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.filter-field label {
    color: var(--forest);
    font-size: 0.82rem;
    font-weight: 700;
}

.filter-field input,
.filter-field select {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 13px;
    color: var(--forest);
    background: var(--cream);
    border: 1px solid rgba(69, 82, 48, 0.25);
    border-radius: 8px;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.84rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(69, 82, 48, 0.12);
}

.filter-input-wrapper {
    position: relative;
}

.filter-input-wrapper i {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--olive);
    transform: translateY(-50%);
}

.filter-input-wrapper input {
    padding-left: 40px;
}

.filter-reset-btn {
    height: 48px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--cream);
    background: var(--forest);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.filter-reset-btn:hover {
    background: var(--olive);
    transform: translateY(-2px);
}


/* Category Tabs */

.vehicle-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    color: var(--forest);
    background: var(--light-sage);
    border: 1px solid transparent;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.category-tab:hover,
.category-tab.active {
    color: var(--cream);
    background: var(--forest);
    border-color: var(--forest);
}

.category-tab i {
    font-size: 0.9rem;
}


/* =========================================
   3. VEHICLE LISTING SECTION
========================================= */

.vehicle-listing-section {
    padding: 65px 0 90px;
    background: var(--forest);
}

.vehicle-listing-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 35px;
}

.vehicle-listing-top .section-tag {
    color: var(--light-sage);
}

.vehicle-listing-top h2 {
    color: var(--cream);
}

.vehicle-listing-top h2 span {
    color: var(--light-sage);
}

.vehicle-result-count {
    color: var(--cream);
}

#vehicle-result-count {
    padding: 10px 16px;
    color: var(--forest);
    background: var(--light-sage);
    border-radius: 30px;
    font-size: 0.84rem;
    font-weight: 700;
}


/* Vehicle Grid */

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}


/* Vehicle Card */

.vehicle-card {
    min-width: 0;
    overflow: hidden;
    background: var(--cream);
    border: 1px solid rgba(235, 235, 216, 0.3);
    border-radius: var(--radius-lg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.vehicle-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.22);
}

.vehicle-card[hidden] {
    display: none;
}


/* Vehicle Image */

.vehicle-card-image {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: var(--sage);
}

.vehicle-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.vehicle-card:hover .vehicle-card-image img {
    transform: scale(1.07);
}

.vehicle-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 12px;
    color: var(--cream);
    background: var(--forest);
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.vehicle-favourite {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    color: var(--forest);
    background: var(--cream);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
}

.vehicle-favourite:hover,
.vehicle-favourite.selected {
    color: var(--cream);
    background: var(--olive);
}


/* Vehicle Card Content */

.vehicle-card-content {
    padding: 22px;
}

.vehicle-card-title {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.vehicle-category-label {
    color: var(--olive);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.vehicle-card-title h3 {
    margin-top: 5px;
    color: var(--forest);
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.vehicle-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--forest);
    font-size: 0.83rem;
    font-weight: 700;
    white-space: nowrap;
}

.vehicle-rating i {
    color: #B58A27;
}


/* Vehicle Specifications */

.vehicle-specifications {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 0;
    margin-top: 15px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.vehicle-specifications span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--forest);
    font-size: 0.75rem;
}

.vehicle-specifications i {
    color: var(--olive);
}


/* Rental Options */

.vehicle-rental-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.rental-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    color: var(--forest);
    background: var(--light-sage);
    border-radius: 5px;
    font-size: 0.74rem;
    font-weight: 700;
}

.rental-option i {
    color: var(--olive);
}


/* Pricing */

.vehicle-pricing {
    padding: 18px 0;
    margin-top: 15px;
    border-top: 1px solid var(--border-light);
}

.vehicle-price-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vehicle-price-main>span {
    color: var(--olive);
    font-size: 0.75rem;
    font-weight: 700;
}

.vehicle-price-main strong {
    color: var(--forest);
    font-size: 1.55rem;
    font-weight: 800;
}

.vehicle-price-main small {
    font-size: 0.8rem;
    font-weight: 600;
}

.vehicle-price-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.vehicle-price-details span {
    padding: 7px 9px;
    color: var(--forest);
    background: rgba(155, 166, 133, 0.22);
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 600;
}


/* Booking Button */

.vehicle-book-btn {
    min-height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    color: var(--cream);
    background: var(--forest);
    border-radius: 7px;
    font-size: 0.86rem;
    font-weight: 700;
    transition: background var(--transition), padding var(--transition);
}

.vehicle-book-btn:hover {
    padding-right: 12px;
    background: var(--olive);
}

.vehicle-book-btn i {
    transition: transform var(--transition);
}

.vehicle-book-btn:hover i {
    transform: translateX(4px);
}


/* No Results */

.vehicle-no-results {
    padding: 55px 20px;
    text-align: center;
    color: var(--forest);
    background: var(--cream);
    border-radius: var(--radius-lg);
}

.vehicle-no-results[hidden] {
    display: none;
}

.vehicle-no-results>i {
    color: var(--olive);
    font-size: 3rem;
}

.vehicle-no-results h3 {
    margin: 15px 0 8px;
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.vehicle-no-results p {
    line-height: 1.7;
}

.vehicle-no-results button {
    margin-top: 20px;
    padding: 12px 22px;
    color: var(--cream);
    background: var(--forest);
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
}

.vehicle-no-results button:hover {
    background: var(--olive);
}


/* =========================================
   4. DRIVER PROMOTION
========================================= */

.vehicle-driver-promo {
    padding: 85px 0;
    background: var(--sage);
}

.driver-promo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 65px;
}

.driver-promo-image {
    position: relative;
    height: 440px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--forest);
}

.driver-promo-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.driver-image-label {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    color: var(--cream);
    background: var(--forest);
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 700;
}

.driver-image-label i {
    color: var(--light-sage);
}

.driver-promo-content h2 {
    margin: 15px 0;
    color: var(--forest);
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    line-height: 1.15;
}

.driver-promo-content h2 span {
    display: block;
    color: var(--cream);
    font-style: italic;
}

.driver-promo-content>p {
    color: var(--forest);
    line-height: 1.8;
}

.driver-benefits {
    display: grid;
    gap: 13px;
    margin-top: 25px;
}

.driver-benefits div {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--forest);
    font-size: 0.9rem;
    font-weight: 600;
}

.driver-benefits i {
    color: var(--cream);
    font-size: 1.1rem;
}

.driver-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 18px 0;
    margin-top: 15px;
}

.driver-price span {
    color: var(--forest);
    font-size: 0.82rem;
    font-weight: 600;
}

.driver-price strong {
    color: var(--forest);
    font-size: 1.9rem;
}

.driver-price small {
    font-size: 0.9rem;
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 22px;
    color: var(--cream);
    background: var(--forest);
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 700;
    transition: background var(--transition), transform var(--transition);
}

.btn-dark:hover {
    background: var(--olive);
    transform: translateY(-3px);
}


/* =========================================
   5. RENTAL DURATION
========================================= */

.vehicle-pricing-info {
    padding: 85px 0;
    background: var(--cream);
}

.pricing-info-heading {
    max-width: 650px;
    margin: 0 auto 42px;
    text-align: center;
}

.pricing-info-heading>p {
    margin-top: 12px;
    color: var(--forest);
    line-height: 1.8;
}

.duration-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.duration-card {
    padding: 30px 22px;
    text-align: center;
    background: var(--light-sage);
    border: 1px solid rgba(69, 82, 48, 0.12);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), background var(--transition);
}

.duration-card:hover {
    transform: translateY(-6px);
    background: var(--sage);
}

.duration-card>i {
    color: var(--forest);
    font-size: 2rem;
}

.duration-card h3 {
    margin: 17px 0 9px;
    color: var(--forest);
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.duration-card p {
    color: var(--forest);
    font-size: 0.84rem;
    line-height: 1.7;
}


/* =========================================
   6. PRICING NOTE
========================================= */

.vehicle-pricing-note {
    padding: 30px 0;
    background: var(--olive);
}

.vehicle-pricing-note .container {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.vehicle-pricing-note>.container>i {
    margin-top: 4px;
    color: var(--cream);
    font-size: 1.6rem;
}

.vehicle-pricing-note h3 {
    margin-bottom: 7px;
    color: var(--cream);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.vehicle-pricing-note p {
    max-width: 1000px;
    color: rgba(235, 235, 216, 0.9);
    font-size: 0.85rem;
    line-height: 1.8;
}


/* =========================================
   7. RESPONSIVE DESIGN
========================================= */

@media (max-width: 1100px) {

    .vehicle-filter-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-reset-btn {
        width: 100%;
    }

    .vehicle-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .driver-promo-wrapper {
        gap: 35px;
    }

    .duration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 768px) {

    .vehicles-hero {
        min-height: 430px;
    }

    .vehicles-hero-content {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .vehicle-filter-section,
    .vehicle-pricing-info {
        padding: 60px 0;
    }

    .vehicle-filter-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .vehicle-listing-section {
        padding: 60px 0;
    }

    .vehicle-listing-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .driver-promo-wrapper {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .driver-promo-image {
        height: 350px;
    }

    .vehicle-driver-promo {
        padding: 65px 0;
    }

}


@media (max-width: 560px) {

    .vehicles-hero {
        min-height: 400px;
    }

    .vehicles-hero h1 {
        font-size: 2.65rem;
    }

    .vehicles-hero-content>p {
        font-size: 0.92rem;
    }

    .vehicles-hero-stats {
        gap: 15px;
    }

    .hero-stat {
        font-size: 0.78rem;
    }

    .vehicle-filter-panel {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .vehicle-category-tabs {
        gap: 8px;
    }

    .category-tab {
        padding: 10px 13px;
        font-size: 0.78rem;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-card-image {
        height: 235px;
    }

    .vehicle-card-content {
        padding: 19px;
    }

    .duration-grid {
        grid-template-columns: 1fr;
    }

    .duration-card {
        padding: 25px 20px;
    }

    .driver-promo-image {
        height: 280px;
    }

    .driver-promo-content h2 {
        font-size: 2.5rem;
    }

    .vehicle-pricing-note .container {
        gap: 12px;
    }

}


/* =========================================
   8. REDUCED MOTION ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion: reduce) {

    .vehicle-card,
    .vehicle-card-image img,
    .vehicle-book-btn,
    .vehicle-favourite,
    .category-tab,
    .duration-card,
    .filter-reset-btn {
        transition: none;
    }

}