/* ==========================================================================
   premium.css — additive "refined automotive premium" polish layer.
   Loaded LAST in the cascade so it wins by source order at equal specificity.
   Targets existing template class names only; no markup contracts changed.
   Touches cosmetic props only on JS-driven widgets (search dropdowns, owl, etc.).
   ========================================================================== */

/* ---- Display font (self-hosted, subset) --------------------------------- */
@font-face {
    font-family: 'Clash Display';
    src: url('../fonts/ClashDisplay-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Clash Display';
    src: url('../fonts/ClashDisplay-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
    font-style: normal;
}
@font-face {
    font-family: 'Clash Display';
    src: url('../fonts/ClashDisplay-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}

/* ---- Design tokens ------------------------------------------------------- */
:root {
    --display-font: 'Clash Display', 'Outfit', sans-serif;

    --ease-premium: cubic-bezier(.22, .61, .36, 1);
    --ease-out-soft: cubic-bezier(.16, 1, .3, 1);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --border-soft: rgba(17, 17, 17, .08);
    --border-hair: rgba(17, 17, 17, .05);

    --shadow-sm: 0 1px 2px rgba(17, 17, 17, .04), 0 2px 6px -2px rgba(17, 17, 17, .05);
    --shadow-md: 0 6px 16px -6px rgba(17, 17, 17, .12), 0 2px 6px -3px rgba(17, 17, 17, .07);
    --shadow-lg: 0 26px 52px -18px rgba(17, 17, 17, .24), 0 10px 22px -12px rgba(17, 17, 17, .12);
    --shadow-accent: 0 14px 30px -10px rgba(255, 44, 59, .42);

    --theme-soft: rgba(255, 44, 59, .10);
    --theme-softer: rgba(255, 44, 59, .05);
}

/* ---- Global text rendering & page atmosphere ---------------------------- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern", "liga", "calt";
    background-color: #fafafa;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.022'/%3E%3C/svg%3E");
}

::selection {
    background: rgba(255, 44, 59, .18);
    color: var(--primary-color);
}

/* Override Bootstrap's :root smooth scroll, which hijacks fast wheel/trackpad input */
:root {
    scroll-behavior: auto;
}

/* ---- Display typography on large headings -------------------------------- */
h1,
h2,
h3,
.section-title h2.title,
.breadcrumb-section h1,
.banner-content h1 {
    font-family: var(--display-font);
    letter-spacing: -.02em;
}

.slider.style_three .slide-item-content .slider_content h1,
.slider.style_three .slide-item-content .slider_content h1 span {
    font-family: var(--display-font);
    letter-spacing: -.022em;
}

/* Refined eyebrow label above section titles */
.section-title .sub-title {
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 600;
}

/* Emphasised price figure */
.single-featured-car-rent-per-day-2 span,
.bill-history .total-amount span,
.order-information .info-title-box .price {
    font-family: var(--display-font);
    letter-spacing: -.01em;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn-style-one,
.btn-style-two,
.btn-style-three,
.btn-style-four,
.btn-style-five,
.btn-style-six,
.btn-style-seven,
.btn-style-eight {
    transition: color .3s var(--ease-premium),
        background-color .3s var(--ease-premium),
        border-color .3s var(--ease-premium),
        transform .3s var(--ease-premium),
        box-shadow .3s var(--ease-premium);
}

.btn-style-one,
.btn-style-three {
    border-radius: var(--radius-sm);
}

.btn-style-four,
.btn-style-five {
    border-radius: 10px;
}

.btn-style-one:hover,
.btn-style-two:hover,
.btn-style-three:hover,
.btn-style-six:hover,
.btn-style-seven:hover,
.btn-style-eight:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-style-four:hover,
.btn-style-five:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-style-one:active,
.btn-style-two:active,
.btn-style-three:active,
.btn-style-four:active,
.btn-style-five:active,
.btn-style-six:active,
.btn-style-seven:active,
.btn-style-eight:active {
    transform: translateY(0) scale(.99);
}

/* Smoother skew-fill timing on the animated CTAs */
.btn-style-four::after,
.btn-style-five::after {
    transition: transform .55s var(--ease-out-soft);
}

/* ---- Cards: booking results --------------------------------------------- */
.single-featured-car-block {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform .4s var(--ease-out-soft), box-shadow .4s var(--ease-out-soft);
}

.single-featured-car-block:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.single-featured-car-image {
    border-radius: var(--radius-md);
    position: relative;
}

/* Subtle bottom scrim for depth on the car photo */
.single-featured-car-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(17, 17, 17, .14));
    opacity: 0;
    transition: opacity .4s var(--ease-out-soft);
    pointer-events: none;
}

.single-featured-car-block:hover .single-featured-car-image::after {
    opacity: 1;
}

.single-featured-car-block .single-featured-car-image img {
    transition: transform .7s var(--ease-out-soft);
}

.single-featured-car-block:hover .single-featured-car-image img {
    transform: scale(1.06);
}

/* Muted spec icons that warm to the accent on hover */
.booking-car-specs li i,
.single-featured-car-info li i {
    color: #9a9a9a;
    transition: color .3s var(--ease-premium);
}

.single-featured-car-block:hover .booking-car-specs li i,
.single-featured-car-block:hover .single-featured-car-info li i {
    color: var(--theme-color);
}

/* ---- Cards: car-type grid ----------------------------------------------- */
.car-type-item {
    transition: transform .4s var(--ease-out-soft);
}

.car-type-item:hover {
    transform: translateY(-4px);
}

.car-type-item .car-image img {
    transition: transform .6s var(--ease-out-soft);
}

.car-type-item:hover .car-image img {
    transform: scale(1.06);
}

/* ---- Cards: destinations ------------------------------------------------- */
.services-block-one .services-iamge {
    box-shadow: var(--shadow-sm);
    transition: box-shadow .4s var(--ease-out-soft);
}

.services-block-one:hover .services-iamge {
    box-shadow: var(--shadow-lg);
}

.services-block-one .services-iamge img {
    transition: transform .7s var(--ease-out-soft);
}

.services-block-one:hover .services-iamge img {
    transform: scale(1.05);
}

/* ---- Cards: why-choose-us ------------------------------------------------ */
.why-chooseus-block {
    transition: transform .4s var(--ease-out-soft);
}

.why-chooseus-block:hover {
    transform: translateY(-4px);
}

.why-chooseus-icon {
    transition: transform .4s var(--ease-out-soft);
}

.why-chooseus-block:hover .why-chooseus-icon {
    transform: scale(1.08);
}

/* ---- Cards: testimonials ------------------------------------------------- */
.testimonial-block-one {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform .4s var(--ease-out-soft), box-shadow .4s var(--ease-out-soft);
}

.testimonial-block-one:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ---- Header: dark floating pill ----------------------------------------- */
.home-three .main_header_inner {
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 12px 34px -16px rgba(0, 0, 0, .5);
}

/* Glassmorphic sticky header on scroll */
.header.home-three.fixed_header .sticky_header {
    background: rgba(16, 16, 18, .72);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 12px 32px -14px rgba(0, 0, 0, .55);
}

/* Animated nav underline */
.home-three .main-menu .navigation > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: var(--theme-color);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .35s var(--ease-premium);
}

.home-three .main-menu .navigation > li:hover > a::after,
.home-three .main-menu .navigation > li.active > a::after {
    transform: scaleX(1);
}

.home-three .main-menu .navigation > li:hover > a {
    color: var(--theme-color);
}

/* ---- Booking search form (cosmetic only) -------------------------------- */
.booking-section.home-three .filter-wrapper .filter-group {
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-hair);
}

.booking-section.home-three .single-search-box {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    transition: border-color .25s var(--ease-premium), box-shadow .25s var(--ease-premium);
}

.booking-section.home-three .single-search-box:hover,
.booking-section.home-three .single-search-box:focus-within {
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px var(--theme-soft);
}

.booking-section .filter-wrapper .filter-group form button {
    border-radius: 10px;
    transition: transform .3s var(--ease-premium), box-shadow .3s var(--ease-premium), color .3s;
}

.booking-section .filter-wrapper .filter-group form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

/* ---- Forms: checkout / mybooking ---------------------------------------- */
.bill-information .form-group input,
.bill-information .form-group select,
.order-summary #couponForm input,
.checkout-section input[type="text"],
.checkout-section input[type="email"],
.checkout-section input[type="date"] {
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    transition: border-color .2s var(--ease-premium), box-shadow .2s var(--ease-premium);
}

.bill-information .form-group input:focus,
.bill-information .form-group select:focus,
.order-summary #couponForm input:focus,
.checkout-section input[type="text"]:focus,
.checkout-section input[type="email"]:focus,
.checkout-section input[type="date"]:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 4px var(--theme-soft);
}

/* Insurance / extras radio groups -> segmented pills */
.order-information .payment-method label.btn {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    transition: border-color .25s var(--ease-premium), background-color .25s var(--ease-premium), box-shadow .25s var(--ease-premium), transform .25s var(--ease-premium);
}

.order-information .payment-method label.btn:hover {
    border-color: rgba(255, 44, 59, .4);
    transform: translateY(-1px);
}

.order-information .payment-method input:checked + label.btn {
    border-color: var(--theme-color);
    background: var(--theme-soft);
    color: var(--theme-color);
    box-shadow: var(--shadow-sm);
}

/* ---- Footer -------------------------------------------------------------- */
.social-links li a {
    transition: color .35s var(--ease-premium), transform .35s var(--ease-premium);
}

.social-links li a:hover {
    transform: translateY(-3px);
    color: var(--theme-color);
}

.footer_resources_widget ul li a,
.footer_community_widget ul li a,
.footer_contact_widget ul li a {
    transition: color .3s var(--ease-premium), transform .3s var(--ease-premium);
}

.footer_resources_widget ul li a:hover,
.footer_community_widget ul li a:hover,
.footer_contact_widget ul li a:hover {
    transform: translateX(3px);
}

/* ---- Scroll-to-top button ----------------------------------------------- */
.scroll-top {
    transition: background-color .4s var(--ease-premium), color .4s var(--ease-premium), border-color .4s var(--ease-premium), transform .4s var(--ease-premium), box-shadow .4s var(--ease-premium), bottom 1s ease;
}

.scroll-top:hover {
    color: #fff;
    background-color: var(--theme-color);
    border-color: var(--theme-color);
    transform: rotate(270deg) scale(1.07);
    box-shadow: var(--shadow-accent);
}

/* ---- Accessible keyboard focus ------------------------------------------ */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--theme-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---- Desktop scrollbar --------------------------------------------------- */
@media (min-width: 992px) {
    ::-webkit-scrollbar {
        width: 11px;
    }

    ::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    ::-webkit-scrollbar-thumb {
        background: #cfcfcf;
        border-radius: 10px;
        border: 3px solid #f1f1f1;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--theme-color);
    }
}


/* ---- Checkout: car image beside the info list --------------------------- */
.order-information .order-outer-box .product-detail-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.order-outer-box .product-detail-row .product-image {
    flex-shrink: 0;
    width: 240px;
    max-width: 40%;
}

.order-outer-box .product-detail-row .product-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.order-outer-box .product-detail-row .product-info-list {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.product-info-list .info-columns {
    display: flex;
    gap: 24px;
}

.product-info-list .info-col {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-info-list .info-excess {
    margin: 10px 0 0;
    padding: 10px 0 0;
    list-style: none;
    border-top: 1px solid var(--border-hair);
}

@media (max-width: 575px) {
    .order-outer-box .product-detail-row {
        gap: 14px;
    }

    .order-outer-box .product-detail-row .product-image {
        width: 130px;
    }

    .product-info-list .info-columns {
        flex-direction: column;
        gap: 0;
    }
}

/* ---- "Upgrade your reservation" extras ---------------------------------- */
.order-information .extras-heading {
    font-size: 18px;
    line-height: 1.4;
}

.order-information .extras-wrap {
    position: relative;
    padding: 26px 0 6px;
    margin-bottom: 30px;
    border-top: 1px solid rgba(229, 229, 229, 0.89);
    border-bottom: 1px solid rgba(229, 229, 229, 0.89);
}

.extras-toggles {
    display: flex;
    gap: 12px;
    margin: 4px 0 24px;
}

.extra-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 14px 10px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color .25s var(--ease-premium), box-shadow .25s var(--ease-premium), transform .25s var(--ease-premium);
}

.extra-item:hover {
    border-color: rgba(255, 44, 59, .25);
    transform: translateY(-1px);
}

.extra-item__label {
    font-weight: 600;
    color: #111;
    line-height: 1.25;
    font-size: 0.95rem;
}

.extra-item__price {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--theme-color);
    margin-bottom: 2px;
}

/* The switch - the box around the slider */
.switch {
    --a: 0.5s ease-out;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    height: 1.4em;
    border-radius: 2em;
    box-shadow: 0 2px 6px rgba(17, 17, 17, .12);
    aspect-ratio: 212.4992/84.4688;
    background-color: #ff8073;
    transition: background-color var(--a);
}

/* Hide default HTML checkbox */
.extra-toggle__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.switch svg {
    height: 100%;
}

.switch svg path {
    color: #ffffffe6;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 136 224;
    transition: all var(--a),
    0.2s transform;
    transform-origin: center;
}

.extra-toggle__input:checked ~ .switch svg path {
    stroke-dashoffset: 180;
    transform: scaleY(-1);
}

.extra-toggle__input:checked ~ .switch {
    background-color: #55df8b;
}

.extra-toggle__input:focus-visible ~ .switch {
    outline: 2px solid var(--theme-color);
    outline-offset: 3px;
}

/* ---- Babyseats segmented sliding switch --------------------------------- */
.babyseats-block {
    margin: 8px 0 16px;
}

.babyseats-block__title {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

.seat-switch {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    height: 48px;
    border-radius: 999px;
    background: #f1f2f4;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.seat-switch input[type="radio"] {
    display: none;
}

.seat-switch__label {
    position: relative;
    z-index: 2;
    flex: 1;
    height: 48px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #555;
    cursor: pointer;
    user-select: none;
    transition: color .25s var(--ease-premium);
}

.seat-switch__label:hover {
    color: #111;
}

.seat-switch input:checked + .seat-switch__label {
    color: #fff;
}

.seat-switch__indicator {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 12.5%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--theme-color);
    box-shadow: var(--shadow-accent);
    transition: left 500ms cubic-bezier(.02, .94, .09, .97), background 300ms var(--ease-premium);
    transform: translate(-50%, -50%);
}

.seat-switch input#seat-0:checked ~ .seat-switch__indicator { left: 12.5%; }
.seat-switch input#seat-1:checked ~ .seat-switch__indicator { left: 37.5%; }
.seat-switch input#seat-2:checked ~ .seat-switch__indicator { left: 62.5%; }
.seat-switch input#seat-3:checked ~ .seat-switch__indicator { left: 87.5%; }

.babyseat-types {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.babyseat-types .custom-select {
    flex: 1 1 0;
    min-width: 150px;
    width: auto;
}

.babyseat-types .custom-select select {
    margin-bottom: 0;
}

/* ---- Mobile tweaks for the extras block --------------------------------- */
@media (max-width: 575px) {
    .extras-toggles {
        flex-direction: column;
        gap: 10px;
    }

    .extra-item {
        flex: 1 1 auto;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 12px;
        padding: 12px 16px;
    }

    .extra-item__label {
        flex: 1;
    }

    .extra-item__price {
        margin-bottom: 0;
    }

    .babyseat-types .custom-select {
        flex-basis: 100%;
    }
}



