
/* =========================================================
   01 Variables & Bootstrap Theme
   ========================================================= */

:root, [data-bs-theme=light] {
    --werent-muted: #6b7280;
    --werent-border: #e5e7eb;
    --werent-bg: #e6f9fb;
    --theme-default: #0db3c8;
    --clr-black: #414042;
    --clr-blue: #0db3c8;
    --clr-blue-dark: #1594a6;
    --bs-primary-bg-subtle: #e4f7f9;
    --bs-primary-border-subtle: #b7eaef;
    --bs-primary-text-emphasis: #0f6e7c;
    --bs-link-color: #0db3c8;
    --bs-link-hover-color: #1594a6;
    --bs-link-color-rgb: 13, 179, 200;
}

[data-bs-theme=dark] {
    --bs-primary: #1cb3c8;
    --bs-primary-rgb: 28, 179, 200;
    --bs-primary-bg-subtle: #09373e;
    --bs-primary-border-subtle: #125c67;
    --bs-primary-text-emphasis: #4cd1e2;
    --bs-link-color: #4cd1e2;
    --bs-link-hover-color: #70dbe9;
}

.text-bg-primary {
    background-color: #1cb3c8 !important;
    color: #fff !important;
}

.bg-primary {
    background-color: #1cb3c8 !important;
}

.text-primary {
    color: #1cb3c8 !important;
}

.border-primary {
    border-color: #1cb3c8 !important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #0db3c8;
    --bs-btn-border-color: #0db3c8;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1594a6;
    --bs-btn-hover-border-color: #128292;
    --bs-btn-focus-shadow-rgb: 13, 179, 200;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #128292;
    --bs-btn-active-border-color: #0f6e7c;
}

.btn-outline-primary {
    --bs-btn-color: #1cb3c8;
    --bs-btn-border-color: #1cb3c8;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1cb3c8;
    --bs-btn-hover-border-color: #1cb3c8;
    --bs-btn-focus-shadow-rgb: 28, 179, 200;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1cb3c8;
    --bs-btn-active-border-color: #1cb3c8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #1cb3c8;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #1cb3c8;
    --bs-gradient: none;
}

.nav-pills {
    --bs-nav-pills-border-radius: var(--bs-border-radius);
    --bs-nav-pills-link-active-color: #fff;
    --bs-nav-pills-link-active-bg: #1cb3c8;
}

.werent-navbar .btn-primary, .btn-primary {
    background: var(--clr-blue);
    border-color: var(--clr-blue);
}

    .werent-navbar .btn-primary:hover, .btn-primary:hover {
        background: var(--clr-blue-dark);
        border-color: var(--clr-blue-dark);
    }

.werent-navbar .btn-outline-primary, .btn-outline-primary {
    color: var(--clr-blue-dark);
    border-color: var(--clr-blue);
}

    .werent-navbar .btn-outline-primary:hover, .btn-outline-primary:hover {
        background: var(--clr-blue);
        border-color: var(--clr-blue);
        color: #fff;
    }


/* =========================================================
   02 Base & Forms
   ========================================================= */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
    border-color: var(--clr-blue);
    box-shadow: 0 0 0 0.2rem rgba(13, 179, 200, .25);
}

body {
    background: var(--werent-bg);
    color: var(--clr-black);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.validation-summary-errors {
    width: 100%;
    margin-top: 5px;
}

    .validation-summary-errors ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .validation-summary-errors[role="alert"] {
        background-color: #ffe0db;
        border-color: #ffc5bb;
        color: #ff3e1d;
        position: relative;
        padding: 0.9375rem 0.9375rem;
        margin-bottom: 1rem;
        border: 0 solid transparent;
        border-radius: 0.375rem;
    }

span.alert.alert-danger.d-block.field-validation-valid {
    display: none !important;
}

.select2.select2-container.select2-container--bootstrap-5 {
    width: 100% !important;
}

body:has(.home-page) .werent-page {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
}

.newsletter-form .form-control {
    height: 48px;
}

.contact-info-card, .contact-form-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 12px 30px rgba(15,23,42,.05);
}

    .contact-form-card .form-control {
        border-radius: 12px;
        min-height: 50px;
    }

    .contact-form-card textarea.form-control {
        min-height: 180px;
    }

.owner-listings-card .card-body {
    padding: 22px;
}

.owner-listings-table tbody td {
    vertical-align: middle;
    padding: 14px 10px;
}

.availability-card .card-body {
    padding: 22px;
}

.car-card-body {
    padding: 16px;
}

.modal-gallery-body {
    position: relative;
    padding: 0 76px;
}

.review-form-box {
    background: #f8fafc;
    border: 1px solid #e8edf2;
    border-radius: 14px;
    padding: 18px;
}

.company-sort-form .form-select {
    width: 100%;
}


/* =========================================================
   03 Header & Navigation
   ========================================================= */

.navbar-logo {
    height: 44px;
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #495057;
    margin: 0 .35rem;
    transition: .2s;
}

    .navbar-nav .nav-link:hover {
        color: var(--clr-blue-dark);
    }

.navbar-profile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--clr-black);
    padding: 6px 10px;
    border-radius: 14px;
    transition: .2s;
}

    .navbar-profile-link:hover {
        background: var(--bs-primary-bg-subtle);
        color: var(--clr-black);
    }

.navbar-profile-img, .navbar-profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
}

.navbar-profile-img {
    object-fit: cover;
}

.navbar-profile-avatar {
    background: var(--clr-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.navbar-profile-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

    .navbar-profile-text strong {
        font-size: .9rem;
    }

    .navbar-profile-text small {
        color: var(--werent-muted);
        font-size: .78rem;
    }

.werent-mega-parent {
    position: relative;
}

.werent-mega-menu {
    width: 880px;
    left: 0 !important;
    right: auto !important;
    top: 100%;
    border: 1px solid var(--werent-border);
    border-radius: 0 0 18px 18px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}

.brand-dropdown-menu {
    width: 960px;
    padding: 24px;
}

.rent-mega-menu {
    width: 620px;
}

.mega-column {
    padding: 28px;
    min-height: 340px;
}

.mega-column-muted {
    background: #f7f7f8;
}

.mega-section-title {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.mega-link {
    display: block;
    padding: 8px 0;
    color: var(--clr-black);
    text-decoration: none;
    font-weight: 500;
}

    .mega-link:hover {
        color: var(--clr-blue);
    }

.brand-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 22px;
}

.brand-search-box {
    width: 300px;
}

.brand-list-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 34px;
    overflow-y: auto;
    padding-right: 12px;
}

.brand-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--clr-black);
    text-decoration: none;
    padding: 7px 8px;
    border-radius: 10px;
    font-weight: 500;
}

    .brand-list-item:hover {
        background: var(--bs-primary-bg-subtle);
        color: var(--bs-primary-text-emphasis);
    }

.werent-navbar .nav-link {
    color: #374151;
    font-weight: 600;
    padding: .5rem .75rem;
    border-radius: 999px;
}

    .werent-navbar .nav-link:hover {
        color: var(--clr-blue-dark);
        background: rgba(34, 174, 188, .08);
    }

.navbar-user {
    color: var(--werent-muted);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
}

.nav-brand-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--clr-black);
    transition: .2s;
}

    .nav-brand-item:hover {
        background: #f8fbfc;
        color: var(--clr-blue);
    }

.nav-brand-logo-wrapper {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
}

.nav-brand-logo {
    max-width: 42px;
    max-height: 42px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.nav-brand-name {
    font-weight: 600;
    font-size: 15px;
}


/* =========================================================
   04 Footer
   ========================================================= */

.werent-footer .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.werent-footer a {
    color: var(--clr-blue-dark);
    text-decoration: none;
    font-weight: 600;
}

.werent-footer {
    margin-top: 70px;
    padding: 58px 0 0px;
    background: var(--clr-black);
    color: #fff;
}

.werent-footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 42px 46px;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 54px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-logo {
    width: 190px;
    margin-bottom: 24px;
}

.footer-brand-col p {
    max-width: 300px;
    color: #fff;
    line-height: 1.6;
    font-weight: 500;
}

.footer-owner-card {
    margin-top: 28px;
    max-width: 360px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    color: #111;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

    .footer-owner-card strong {
        display: block;
        font-size: 14px;
    }

    .footer-owner-card span {
        display: block;
        color: #64748b;
        font-size: 12px;
    }

    .footer-owner-card a {
        border: 1px solid var(--clr-blue);
        color: var(--clr-blue);
        border-radius: 8px;
        padding: 7px 11px;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
    }

.footer-col h6 {
    color: #9ca3af;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 22px;
}

.footer-col a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 19px;
    transition: .2s;
}

    .footer-col a:hover {
        color: var(--clr-blue);
        transform: translateX(3px);
    }

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

    .footer-socials a {
        width: 34px;
        height: 34px;
        margin: 0;
        border-radius: 50%;
        background: #fff;
        color: #111;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .footer-socials a:hover {
            background: var(--clr-blue);
            color: #fff;
            transform: translateY(-2px);
        }

.werent-footer-bottom {
    padding: 18px 42px 0;
    display: flex;
    justify-content: center;
}

a.softdesign-link {
    text-decoration: none;
    color: inherit;
    transition: all ease-in-out .3s;
}

    a.softdesign-link:hover {
        background-color: #020578;
        padding: 10px;
        color: #fcfe4b;
    }


/* =========================================================
   05 Shared Components
   ========================================================= */

.dashboard-logo {
    max-width: 175px;
    height: auto;
}

.select2-results__option {
    font-size: 15px;
    padding: 13px 18px !important;
    font-weight: 500;
}

.review-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 16px;
}

    .review-stars i {
        color: #f5b301;
    }

.home-search-wrapper .werent-search {
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

.werent-toast {
    position: fixed;
    top: 105px;
    right: 28px;
    z-index: 99999;
    min-width: 320px;
    max-width: 420px;
    padding: 16px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
    animation: toastSlideIn .25s ease;
}

    .werent-toast i {
        font-size: 22px;
    }

    .werent-toast.success {
        background: #ecfdf3;
        color: #166534;
        border: 1px solid #bbf7d0;
    }

    .werent-toast.error {
        background: #fef2f2;
        color: #991b1b;
        border: 1px solid #fecaca;
    }

    .werent-toast.hide {
        animation: toastSlideOut .25s ease forwards;
    }

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 80px;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: var(--clr-blue);
    color: white;
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all .25s ease;
    z-index: 9999;
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .back-to-top:hover {
        background: var(--clr-blue-dark);
        transform: translateY(-3px);
    }

    .back-to-top:active {
        transform: scale(.95);
    }

.car-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

    .car-card-rating i {
        color: #f59e0b;
        font-size: 13px;
    }

.rating-value {
    color: #111827;
    font-weight: 700;
}

.rating-count {
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
}

.rating-empty {
    color: #94a3b8;
    font-weight: 500;
}

.werent-search {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #e7ebf0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    overflow: visible;
    width: 100%;
    margin: 0 auto;
}

.werent-search-field {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
}

.werent-search-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--werent-bg);
    color: var(--clr-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.werent-search-input {
    flex: 1;
    min-width: 0;
}

    .werent-search-input label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #64748b;
        margin-bottom: 4px;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .werent-search-input input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        font-size: 16px;
        font-weight: 600;
        color: #0f172a;
    }

.werent-search-divider {
    width: 1px;
    height: 64px;
    background: #edf2f7;
}

.werent-search-btn {
    margin: 10px;
    padding: 0 30px;
    height: 58px;
    border: 0;
    border-radius: 16px;
    background: var(--clr-blue);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    gap: 10px;
    align-items: center;
    transition: .25s;
}

    .werent-search-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(37, 99, 235, .30);
    }

.werent-search .select2-container {
    width: 100% !important;
}

    .werent-search .select2-container .selection {
        width: 100% !important;
    }

    .werent-search .select2-container .select2-selection {
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        outline: 0 !important;
    }

    .werent-search .select2-container .select2-selection__rendered {
        padding: 0 28px 0 0 !important;
        margin: 0 !important;
        line-height: 30px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #0f172a !important;
    }

    .werent-search .select2-container .select2-selection__placeholder {
        color: #64748b !important;
        font-weight: 600 !important;
    }

    .werent-search .select2-container .select2-selection__arrow {
        height: 30px !important;
        right: 0 !important;
        top: 0 !important;
    }

    .werent-search .select2-container .select2-selection__clear {
        display: none !important;
    }

.select2-dropdown {
    border: none !important;
    border-radius: 18px !important;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(15,23,42,.18);
}

.select2-search {
    padding: 14px;
}

.select2-search__field {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
}

.select2-results__option--selected {
    background: #e8fbff !important;
    color: var(--clr-blue) !important;
}

.flatpickr-calendar {
    width: 860px !important;
    padding: 28px 36px 34px !important;
    border: 0 !important;
    border-radius: 32px !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .18) !important;
    font-family: inherit !important;
    transform: translateX(-50%) !important;
}

    .flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after {
        display: none !important;
    }

.flatpickr-months {
    margin-bottom: 22px;
}

.flatpickr-current-month {
    font-size: 18px !important;
    font-weight: 700 !important;
}

.flatpickr-monthDropdown-months, .numInputWrapper input {
    font-weight: 700 !important;
}

.flatpickr-weekdays {
    margin-bottom: 10px;
}

span.flatpickr-weekday {
    color: #717171 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.flatpickr-days {
    width: 100% !important;
}

.dayContainer {
    width: 380px !important;
    min-width: 380px !important;
    max-width: 380px !important;
    box-sizing: unset !important;
    justify-content: center !important;
}

.rangeMode .flatpickr-day {
    margin-top: 3px !important;
}

.flatpickr-day {
    width: 52px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 52px !important;
    height: 52px !important;
    line-height: 52px !important;
    border: 0 !important;
    color: #222 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

    .flatpickr-day:hover {
        background: #f7f7f7 !important;
    }

    .flatpickr-day.today {
        border: 1px solid #222 !important;
    }

    .flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
        background: var(--clr-blue) !important;
        box-shadow: none !important;
        color: #fff !important;
    }

    .flatpickr-day.inRange {
        background: var(--werent-bg) !important;
        border-color: var(--werent-bg) !important;
        color: #222 !important;
        box-shadow: none !important;
    }

    .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay {
        color: #d5d5d5 !important;
    }

.flatpickr-prev-month, .flatpickr-next-month {
    top: 28px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
}

    .flatpickr-prev-month:hover, .flatpickr-next-month:hover {
        background: #f7f7f7 !important;
    }

.favorite-card-btn.is-favourite {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
}

    .favorite-card-btn.is-favourite i {
        color: #e11d48;
    }

.favorite-form {
    margin-left: auto;
    display: flex;
    align-items: flex-start;
}

    .favorite-form form {
        margin: 0;
    }

.favorite-card-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #e8edf2;
    border-radius: 50%;
    background: #fff;
    color: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    cursor: pointer;
}
.cars-pagination {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    margin: 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid white;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.range-filter {
    padding: 14px 2px 8px;
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.range-slider {
    position: relative;
    height: 28px;
}

    .range-slider input[type="range"] {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 28px;
        margin: 0;
        padding: 0;
        background: transparent;
        pointer-events: none;
        -webkit-appearance: none;
        appearance: none;
        inset: 0;
        z-index: 3;
    }

        .range-slider input[type="range"]::-webkit-slider-runnable-track {
            height: 4px;
            background: transparent;
            border-radius: 999px;
        }

        .range-slider input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            pointer-events: auto;
            width: 18px;
            height: 18px;
            margin-top: -7px;
            border-radius: 50%;
            background: #06b6d4;
            border: 3px solid #fff;
            box-shadow: 0 2px 8px rgba(15, 23, 42, .25);
            cursor: pointer;
        }

        .range-slider input[type="range"]::-moz-range-track {
            height: 4px;
            background: #d1d5db;
            border-radius: 999px;
        }

        .range-slider input[type="range"]::-moz-range-thumb {
            pointer-events: auto;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--clr-blue);
            border: 3px solid #fff;
            box-shadow: 0 2px 8px rgba(15, 23, 42, .25);
            cursor: pointer;
        }

        .range-slider input[type="range"]:first-child {
            z-index: 3;
        }

        .range-slider input[type="range"]:last-child {
            z-index: 2;
        }

    .range-slider::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 12px;
        height: 4px;
        background: #d1d5db;
        border-radius: 999px;
        z-index: 1;
    }

.range-selected {
    position: absolute;
    top: 12px;
    height: 4px;
    background: #06b6d4;
    border-radius: 999px;
    z-index: 2;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #0f172a;
    border: 1px solid #bdeaf2;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
}

    .filter-chip button {
        border: 0;
        background: transparent;
        color: #64748b;
        padding: 0;
        line-height: 1;
        font-size: 16px;
        cursor: pointer;
    }

        .filter-chip button:hover {
            color: #ef4444;
        }

.cars-pagination-wrapper {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-filled {
    color: #f59e0b;
}

.star-empty {
    color: #d1d5db;
}

.star-rating {
    position: relative;
    display: inline-block;
    font-size: 22px;
    line-height: 1;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

    .rating-stars i {
        color: #fbbf24;
        font-size: 17px;
    }

.rating-score {
    font-weight: 700;
    font-size: 17px;
    color: #0f172a;
}


/* =========================================================
   06 Home Page
   ========================================================= */

.home-page {
    padding-bottom: 70px;
}

.home-hero {
    min-height: calc(100dvh - 70px);
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 70px max(74px, calc((100vw - 1600px) / 2));
    background: linear-gradient( 90deg, rgba(7, 31, 48, .88) 0%, rgba(7, 31, 48, .72) 28%, rgba(7, 31, 48, .35) 55%, rgba(7, 31, 48, .10) 100% ), linear-gradient( 180deg, rgba(15, 23, 42, .05) 0%, rgba(15, 23, 42, .25) 68%, rgba(15, 23, 42, .75) 100% ), url('/images/car-hero.png') center right / cover no-repeat;
    margin-bottom: 40px;
}

.home-hero-content {
    width: 100%;
    margin-top: -20px;
}

.home-hero .hero-eyebrow {
    color: #fff;
    position: relative;
    padding-left: 82px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .18em;
}

    .home-hero .hero-eyebrow::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        width: 58px;
        height: 2px;
        background: var(--clr-blue);
        transform: translateY(-50%);
    }

.home-hero h1 {
    font-size: clamp(48px, 5.7vw, 86px);
    font-weight: 900;
    line-height: .98;
    margin: 20px 0 24px;
    max-width: 720px;
}

    .home-hero h1 .accent, .home-hero h1 strong {
        color: var(--clr-blue);
    }

.home-hero p {
    max-width: 560px;
    font-size: 20px;
    line-height: 1.45;
    color: rgba(255,255,255,.92);
    margin-bottom: 34px;
}

.home-search-wrapper {
    max-width: 860px;
}

.home-search-card {
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    gap: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

.home-search-field label {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.home-search-btn {
    min-width: 150px;
    align-self: end;
    height: 48px;
    font-weight: 800;
}

.home-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 64px;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--clr-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

    .section-eyebrow::before {
        content: "";
        width: 48px;
        height: 2px;
        background: var(--clr-blue);
        border-radius: 999px;
    }

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

    .home-section-header h2, .newsletter-section h2 {
        font-size: 32px;
        font-weight: 900;
        margin: 0;
    }

.section-link {
    color: #13b8cf;
    font-weight: 800;
    text-decoration: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 34px;
    margin-top: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    padding: 18px;
    transition: .25s;
}

    .category-card img {
        width: 170px;
        height: 95px;
        object-fit: contain;
        margin-bottom: 18px;
        transition: .25s;
    }

    .category-card h5 {
        font-size: 22px;
        font-weight: 700;
        color: #1f2937;
        margin-bottom: 4px;
    }

    .category-card span {
        color: #6b7280;
        font-size: 18px;
        font-weight: 800;
    }

    .category-card:hover img {
        transform: translateY(-6px) scale(1.05);
    }

    .category-card:hover h5 {
        color: var(--clr-blue);
    }

    .category-card i {
        font-size: 28px;
    }

.category-hidden {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    overflow: hidden;
    pointer-events: none;
    transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}

    .category-hidden.is-visible {
        max-height: 260px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.company-mini-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #0f172a;
    text-decoration: none;
    transition: .2s ease;
}

    .company-mini-card:hover {
        transform: translateY(-3px);
        border-color: #13b8cf;
    }

.company-mini-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #13b8cf, #0f172a);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22px;
    flex-shrink: 0;
}

.company-mini-card strong {
    display: block;
    font-weight: 800;
}

.company-mini-card span {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.category-show-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.category-show-more-btn {
    width: min(420px, 100%);
    height: 44px;
    border: 1px solid #d7dde5;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: .2s ease;
}

    .category-show-more-btn:hover {
        border-color: var(--clr-blue);
        color: var(--clr-blue);
        background: #f0fdff;
    }

.newsletter-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    background: linear-gradient(135deg, #ecfeff, #fff);
    border: 1px solid #cffafe;
    border-radius: 28px;
    padding: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

    .newsletter-section p {
        color: #64748b;
        margin: 8px 0 0;
    }

.newsletter-form {
    display: flex;
    gap: 12px;
    min-width: 420px;
}


/* =========================================================
   07 About Page
   ========================================================= */

.about-page {
    padding: 40px 0 70px;
}

.about-hero {
    background: linear-gradient(135deg, rgba(8,145,178,.86), rgba(15,23,42,.88)), url('/images/car-hero.png') center right / cover no-repeat;
    color: #fff;
    border-radius: 30px;
    padding: 90px 56px;
    margin-bottom: 42px;
}

    .about-hero h1 {
        font-size: clamp(42px, 6vw, 72px);
        font-weight: 900;
        line-height: 1;
        margin: 18px 0;
    }

    .about-hero p {
        max-width: 680px;
        font-size: 19px;
        line-height: 1.6;
        color: rgba(255,255,255,.9);
        margin: 0;
    }

.about-section {
    margin-bottom: 34px;
}

.about-card {
    background: #fff;
    border: 1px solid #dff3f6;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 12px 34px rgba(15,23,42,.06);
}

    .about-card h2 {
        font-size: 32px;
        font-weight: 900;
        margin-bottom: 16px;
    }

    .about-card p {
        max-width: 850px;
        color: #64748b;
        font-size: 17px;
        line-height: 1.7;
    }

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 34px;
}

.about-feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 30px;
    box-shadow: 0 10px 28px rgba(15,23,42,.05);
}

    .about-feature-card i {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        background: #e8fbff;
        color: var(--clr-blue);
        display: grid;
        place-items: center;
        font-size: 26px;
        margin-bottom: 20px;
    }

    .about-feature-card h3 {
        font-size: 20px;
        font-weight: 800;
    }

    .about-feature-card p {
        color: #64748b;
        margin: 0;
    }


/* =========================================================
   08 Contact Page
   ========================================================= */

.contact-page {
    padding: 40px 0 80px;
}

.contact-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

    .contact-hero h1 {
        font-size: clamp(42px,6vw,64px);
        font-weight: 900;
        margin: 18px 0;
    }

    .contact-hero p {
        color: #64748b;
        font-size: 18px;
        line-height: 1.7;
    }

.contact-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 32px;
    align-items: start;
}

.contact-info-card h2 {
    margin: 10px 0 16px;
    font-size: 30px;
    font-weight: 800;
}

.contact-info-card > p {
    color: #64748b;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

    .contact-item i {
        width: 50px;
        height: 50px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        background: #e8fbff;
        color: var(--clr-blue);
        font-size: 22px;
        flex-shrink: 0;
    }

    .contact-item strong {
        display: block;
        margin-bottom: 4px;
    }

    .contact-item a {
        color: #475569;
        text-decoration: none;
    }

        .contact-item a:hover {
            color: var(--clr-blue);
        }


/* =========================================================
   09 Legal Pages
   ========================================================= */

.legal-page {
    padding: 36px 0 80px;
}

.legal-hero {
    background: linear-gradient(135deg, #ffffff, var(--clr-blue));
    border: 1px solid var(--werent-bg);
    border-radius: 28px;
    padding: 48px;
    margin-bottom: 34px;
    text-align: center;
}

    .legal-hero h1 {
        font-size: clamp(38px, 5vw, 58px);
        font-weight: 900;
        margin: 14px 0;
    }

    .legal-hero p {
        max-width: 720px;
        margin: 0 auto;
        color: var(--clr-black);
        font-size: 17px;
        line-height: 1.7;
    }

.legal-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 110px;
    background: #fff;
    border: 1px solid var(--werent-bg);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(15,23,42,.05);
}

    .legal-sidebar h6 {
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
        color: var(--clr-black);
        letter-spacing: .12em;
        margin-bottom: 14px;
    }

    .legal-sidebar a {
        display: block;
        padding: 10px 0;
        color: var(--clr-black);
        text-decoration: none;
        font-weight: 700;
        border-bottom: 1px solid #f1f5f9;
    }

        .legal-sidebar a:hover {
            color: var(--clr-blue);
        }

.legal-content {
    background: #fff;
    border: 1px solid var(--werent-bg);
    border-radius: 24px;
    padding: 42px;
    box-shadow: 0 12px 34px rgba(15,23,42,.06);
}

    .legal-content h2 {
        font-size: 24px;
        font-weight: 900;
        margin: 34px 0 12px;
    }

        .legal-content h2:first-child {
            margin-top: 0;
        }

    .legal-content p, .legal-content li {
        color: var(--clr-black);
        font-size: 16px;
        line-height: 1.8;
    }


/* =========================================================
   10 Error Pages
   ========================================================= */

.werent-error {
    min-height: calc(100dvh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
}

.werent-error-card {
    max-width: 760px;
    width: 100%;
    text-align: center;
}

.glitch-effect {
    position: relative;
    display: inline-block;
    font-size: clamp(90px, 14vw, 170px);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--clr-blue), #13b8cf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glitch 1s linear infinite;
    margin-bottom: 12px;
}

    .glitch-effect:before, .glitch-effect:after {
        content: attr(title);
        position: absolute;
        left: 0;
        top: 0;
    }

    .glitch-effect:before {
        animation: glitchTop 1s linear infinite;
        clip-path: polygon(0 0,100% 0,100% 35%,0 35%);
    }

    .glitch-effect:after {
        animation: glitchBottom 1.5s linear infinite;
        clip-path: polygon(0 65%,100% 65%,100% 100%,0 100%);
    }

.werent-error-card h2 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    color: var(--clr-black);
    margin-bottom: 18px;
}

.werent-error-card p {
    max-width: 560px;
    margin: 0 auto 40px;
    color: #64748b;
    font-size: 18px;
    line-height: 1.8;
}

.werent-error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

    .werent-error-actions .btn {
        min-width: 190px;
    }


/* =========================================================
   11 Brands Page
   ========================================================= */

.brands-page {
    padding: 28px 0 60px;
}

.brands-hero {
    background: linear-gradient(135deg, #ffffff, #e8fbff);
    border: 1px solid #dff3f6;
    border-radius: 24px;
    padding: 34px;
    margin-bottom: 28px;
    text-align: center;
}

    .brands-hero h1 {
        font-size: 38px;
        font-weight: 800;
        margin: 8px 0;
    }

    .brands-hero p {
        color: #64748b;
        margin: 0;
    }

.brands-search-wrap {
    max-width: 520px;
    margin: 0 auto 28px;
}

.brands-search {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    border: 1px solid #dbe4ec;
    padding: 0 18px;
    outline: none;
    font-weight: 600;
}

    .brands-search:focus {
        border-color: var(--clr-blue);
        box-shadow: 0 0 0 4px rgba(13, 179, 200, .15);
    }

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.brand-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 18px;
    min-height: 145px;
    padding: 22px 16px;
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    transition: .22s ease;
}

    .brand-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
        border-color: var(--clr-blue);
        color: #0f172a;
    }

    .brand-card .brand-logo-placeholder {
        width: 58px;
        height: 58px;
        margin: 0 auto 14px;
        border-radius: 50%;
        background: #f8fafc;
        border: 1px solid #e8edf2;
        color: var(--clr-blue);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        font-weight: 800;
    }

    .brand-card h3 {
        font-size: 15px;
        font-weight: 800;
        margin: 0 0 4px;
    }

    .brand-card span {
        color: #64748b;
        font-size: 13px;
        font-weight: 600;
    }

.brand-logo-img {
    width: 86px;
    height: 86px;
    object-fit: contain;
    margin-bottom: 18px;
}


/* =========================================================
   12 Cars Index & Filters
   ========================================================= */

.car-card-title h3 {
    margin-bottom: 4px;
}

.cars-index-page {
    padding: 28px 0 48px;
}

.cars-hero {
    background: linear-gradient(135deg, #ffffff, #e8fbff);
    border: 1px solid #dff3f6;
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 26px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    box-shadow: 0 12px 36px rgba(15,23,42,.06);
}

.cars-hero-eyebrow {
    color: var(--clr-blue);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
}

.cars-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 6px 0;
}

.cars-hero p {
    color: #64748b;
    margin: 0;
}

.cars-quick-search {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

    .cars-quick-search label, .filter-group label {
        font-size: 12px;
        font-weight: 800;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-bottom: 6px;
    }

.cars-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

    .cars-toolbar h2 {
        font-size: 22px;
        font-weight: 800;
        margin: 0;
    }

.cars-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cars-marketplace-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.cars-filter-panel {
    position: sticky;
    top: 90px;
}

.filter-box {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 18px;
    padding: 0;
    box-shadow: 0 8px 24px rgba(15,23,42,.05);
    position: sticky;
    top: 95px;
    max-height: calc(100vh - 115px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding: 10px 10px 0;
}

    .filter-header h3 {
        font-size: 22px;
        font-weight: 700;
        margin: 0;
    }

    .filter-header a {
        font-size: 14px;
        font-weight: 700;
        color: #13b8cf;
        text-decoration: none;
    }

.filter-group {
    margin-bottom: 14px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.car-market-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15,23,42,.05);
    transition: .22s ease;
}

    .car-market-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 16px 36px rgba(15,23,42,.12);
    }

.car-card-image-link {
    display: block;
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #f1f5f9;
}

.car-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .25s ease;
}

.car-market-card:hover .car-card-image {
    transform: scale(1.05);
}

.car-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 42px;
}

.car-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.car-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

    .car-card-top h3 {
        font-size: 18px;
        font-weight: 800;
        margin: 0 0 4px;
    }

    .car-card-top p {
        color: #64748b;
        margin: 0;
        font-size: 14px;
    }

.car-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0;
    color: #64748b;
    font-size: 13px;
}

    .car-card-meta i {
        color: var(--clr-blue);
    }

.car-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

    .car-card-specs span {
        background: #f8fafc;
        border: 1px solid #e8edf2;
        border-radius: 999px;
        padding: 6px 9px;
        font-size: 12px;
        font-weight: 700;
        color: #334155;
    }

.car-card-footer {
    border-top: 1px solid #eef2f6;
    padding-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.car-card-price strong {
    font-size: 22px;
    color: #ff7a1a;
}

.car-card-price span {
    color: #64748b;
    font-size: 13px;
}

.empty-results-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 18px;
    padding: 48px 24px;
    text-align: center;
}

    .empty-results-card i {
        font-size: 42px;
        color: var(--clr-blue);
        margin-bottom: 14px;
    }

    .empty-results-card h3 {
        font-weight: 800;
    }

.filter-scroll {
    padding: 0 22px;
    overflow-y: auto;
    flex: 1;
}

.filter-section {
    border-bottom: 1px solid #eef2f6;
    padding: 10px 0;
}

.filter-actions {
    padding: 16px 22px 22px;
    border-top: 1px solid #eef2f6;
    background: #fff;
    flex-shrink: 0;
}

    .filter-actions .btn {
        border-radius: 12px;
        height: 48px;
        font-weight: 700;
    }

.filter-section-title {
    width: 100%;
    border: none;
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
}

    .filter-section-title .bi {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        background: #f1f5f9;
        color: #64748b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        transition: .25s ease;
    }

    .filter-section-title:not(.collapsed) .bi {
        transform: rotate(180deg);
        background: #e8fbff;
        color: #13b8cf;
    }

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 2px;
    font-size: 14px;
}

    .filter-checkbox:hover {
        color: #13b8cf;
    }

    .filter-checkbox input {
        accent-color: #13b8cf;
        width: 17px;
        height: 17px;
    }

.filter-options {
    max-height: 220px;
    overflow: auto;
    padding-right: 4px;
}

.filter-placeholder {
    color: #94a3b8;
    font-size: 13px;
    margin: 10px 0;
}

.filter-empty {
    color: #94a3b8;
    font-size: 13px;
    padding: 10px 0;
}

.filter-box .btn {
    border-radius: 12px;
    height: 48px;
    font-weight: 600;
}

.cars-page-link {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--clr-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
}

    .cars-page-link:hover {
        background: #eff6ff;
        color: var(--clr-blue);
        transform: translateY(-1px);
    }

.cars-page-item.active .cars-page-link {
    background: var(--clr-blue);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .32);
}

.cars-page-item.disabled .cars-page-link {
    color: #cbd5e1;
    pointer-events: none;
    background: transparent;
    box-shadow: none;
}


/* =========================================================
   13 Car Details Page
   ========================================================= */

.listing-preview-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px 20px;
    color: #664d03;
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-left: 5px solid #ffc107;
    border-radius: 12px;
}

.listing-preview-banner-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    font-size: 18px;
    color: #664d03;
    background: rgba(255, 193, 7, 0.2);
    border-radius: 50%;
}

.listing-preview-banner strong {
    font-weight: 700;
}

.listing-preview-banner-text {
    margin-top: 2px;
    font-size: 14px;
}

@@media (max-width: 575.98px) {
    .listing-preview-banner {
        align-items: flex-start;
        padding: 14px;
    }
}

.gallery-wrapper.gallery-wrapper-car-listing .carousel-item img {
    max-height: 500px;
    object-fit: contain;
    object-position: center;
}

.gallery-wrapper.gallery-wrapper-car-listing .carousel-control-next, .gallery-wrapper.gallery-wrapper-car-listing .carousel-control-prev {
    background-color: #00000094;
    height: max-content;
    width: max-content;
    top: 50%;
    transform: translateY(-50%);
}

.review-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.review-image-item {
    width: 92px;
}

.owner-listing-title {
    font-weight: 700;
    color: var(--clr-black);
}

.car-details-page {
    padding: 28px 0 48px;
}

.details-shell {
    max-width: 1480px;
    margin: 0 auto;
}

.details-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .05);
}

.gallery-wrapper {
    margin-bottom: 25px;
}

.main-image-container {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #f3f5f8;
    border: 1px solid #e9edf2;
    position: relative;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: opacity .22s ease, transform .22s ease;
}

    .main-image.is-changing {
        opacity: 0;
        transform: scale(.985);
    }

    .main-image:hover {
        transform: scale(1.01);
    }

.thumbnail-strip {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.gallery-thumb {
    width: 110px;
    height: 75px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: .2s;
}

    .gallery-thumb:hover {
        transform: translateY(-2px);
    }

    .gallery-thumb.active {
        border-color: #12b9d2;
    }

.gallery-nav, .modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .62);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    display: flex;
    justify-content: center;
    cursor: pointer;
    transition: .2s;
}

    .gallery-nav:hover, .modal-gallery-nav:hover {
        background: rgba(15, 23, 42, .85);
    }

.gallery-nav-prev {
    left: 16px;
}

.gallery-nav-next {
    right: 16px;
}

.modal-gallery-dialog {
    max-width: 1100px;
}

.modal-image-frame {
    background: #111827;
    border-radius: 16px;
    overflow: hidden;
}

.modal-gallery-image {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    transition: opacity .22s ease, transform .22s ease;
}

.main-image, .modal-gallery-image {
    transition: transform .25s ease, opacity .25s ease;
}

    .main-image.slide-out-left, .modal-gallery-image.slide-out-left {
        transform: translateX(-24px);
        opacity: 0;
    }

    .main-image.slide-out-right, .modal-gallery-image.slide-out-right {
        transform: translateX(24px);
        opacity: 0;
    }

    .main-image.slide-in-left, .modal-gallery-image.slide-in-left {
        transform: translateX(24px);
        opacity: 0;
    }

    .main-image.slide-in-right, .modal-gallery-image.slide-in-right {
        transform: translateX(-24px);
        opacity: 0;
    }

.modal-close-btn {
    position: absolute;
    top: -42px;
    right: 76px;
    z-index: 20;
}

.modal-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: rgba(15, 23, 42, .82);
    color: #fff;
    font-size: 42px;
    line-height: 1;
    display: flex;
    justify-content: center;
}

.modal-gallery-prev {
    left: 0;
}

.modal-gallery-next {
    right: 0;
}

.modal-backdrop.show {
    opacity: .92;
    background: #000;
}

.listing-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 6px;
}

.muted-line {
    color: #6b7280;
    font-size: 14px;
}

.price-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #e8edf2;
    border-radius: 16px;
    overflow: hidden;
}

    .price-box > div {
        padding: 18px;
        text-align: center;
        background: #fff;
        border-right: 1px solid #e8edf2;
    }

        .price-box > div:last-child {
            border-right: 0;
        }

.price-value {
    color: #ff7a1a;
    font-size: 20px;
    font-weight: 700;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #eef2f6;
}

.spec-label {
    color: #6b7280;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-pill {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #9ca3af;
    font-size: 14px;
}

    .feature-pill.active {
        background: #e8fbff;
        border-color: #13b8cf;
        color: #0f172a;
        font-weight: 600;
    }

.spec-link {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    transition: .2s;
}

    .spec-link:hover {
        color: var(--clr-blue);
        text-decoration: underline;
    }

.contact-card {
    position: sticky;
    top: 90px;
    overflow: hidden;
}

.owner-gradient {
    background: linear-gradient(135deg, var(--clr-blue), var(--clr-black));
    height: 76px;
}

.company-logo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: white;
    color: white;
    display: grid;
    place-items: center;
    font-weight: 700;
    margin: -70px auto 12px;
    border: 4px solid #fff;
    object-fit: contain;
}

.btn-werent {
    background: #13b8cf;
    border-color: #13b8cf;
    color: #fff;
}

    .btn-werent:hover {
        background: #0da7bd;
        border-color: #0da7bd;
        color: #fff;
    }

.details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-areas: "gallery contact"
        "title contact"
        "details contact";
    gap: 24px;
    align-items: start;
}

.gallery-column {
    grid-area: gallery;
    min-width: 0;
}

.details-column {
    grid-area: details;
    min-width: 0;
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
}

.contact-btn {
    min-height: 48px;
    border-radius: 14px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
    transition: .2s ease;
}

    .contact-btn:hover {
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
    }

    .contact-btn i {
        font-size: 18px;
    }

.contact-whatsapp {
    background: linear-gradient(135deg, #25D366, #16a34a);
}

.contact-viber {
    background: linear-gradient(135deg, #7360F2, #5b4bd6);
}

.contact-email {
    background: linear-gradient(135deg, #0db3c8, #1594a6);
}

.mobile-contact-bar {
    display: none;
}

.company-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

    .company-card-link:hover h5 {
        color: #13b8cf;
    }

.calendar-card {
    overflow: hidden;
}

#availabilityCalendar {
    --fc-border-color: #eef2f6;
    --fc-today-bg-color: #e8fbff;
    --fc-page-bg-color: transparent;
    --fc-neutral-bg-color: #f8fafc;
    font-family: inherit;
}

    #availabilityCalendar .fc-toolbar-title {
        font-size: 22px;
        font-weight: 700;
        color: #0f172a;
    }

    #availabilityCalendar .fc-toolbar.fc-header-toolbar {
        margin-bottom: 18px;
    }

    #availabilityCalendar .fc-button {
        background: #fff;
        border: 1px solid #dbe4ec;
        color: #0f172a;
        border-radius: 10px;
        padding: 8px 12px;
        box-shadow: none;
        text-transform: capitalize;
    }

        #availabilityCalendar .fc-button:hover, #availabilityCalendar .fc-button:focus {
            background: #13b8cf;
            border-color: #13b8cf;
            color: #fff;
            box-shadow: none;
        }

    #availabilityCalendar .fc-button-primary:not(:disabled).fc-button-active, #availabilityCalendar .fc-button-primary:not(:disabled):active {
        background: #13b8cf;
        border-color: #13b8cf;
        color: #fff;
    }

    #availabilityCalendar .fc-col-header-cell {
        background: #f8fafc;
        padding: 10px 0;
    }

    #availabilityCalendar .fc-col-header-cell-cushion {
        color: #13b8cf;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
        text-transform: uppercase;
    }

    #availabilityCalendar .fc-daygrid-day {
        background: #fff;
        transition: .15s ease;
    }

        #availabilityCalendar .fc-daygrid-day:hover {
            background: #f8fdff;
        }

    #availabilityCalendar .fc-daygrid-day-number {
        color: #334155;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
        padding: 10px;
    }

    #availabilityCalendar .fc-day-other .fc-daygrid-day-number {
        color: #cbd5e1;
    }

    #availabilityCalendar .fc-day-today {
        background: #e8fbff !important;
    }

        #availabilityCalendar .fc-day-today .fc-daygrid-day-number {
            color: #0891b2;
        }

    #availabilityCalendar .fc-event {
        border: 0;
        border-radius: 999px;
        padding: 3px 8px;
        font-size: 12px;
        font-weight: 700;
    }

    #availabilityCalendar .fc-daygrid-event {
        margin: 2px 8px;
    }

    #availabilityCalendar .fc-event-title {
        color: #fff;
    }

    #availabilityCalendar .fc-scrollgrid {
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid #e8edf2;
    }

    #availabilityCalendar .fc-theme-standard td, #availabilityCalendar .fc-theme-standard th {
        border-color: #eef2f6;
    }

.calendar-legend {
    display: flex;
    gap: 12px;
    align-items: center;
}

.legend-item {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

    .legend-dot.unavailable {
        background: #ef4444;
    }

.review-image {
    width: 110px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e8edf2;
}

.mobile-accordion-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--clr-black);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: none;
    outline: none;
}

    .mobile-accordion-toggle:focus, .mobile-accordion-toggle:active {
        outline: none;
        box-shadow: none;
    }

    .mobile-accordion-toggle i {
        color: #64748b;
        font-size: 13px;
        transition: transform .2s ease;
    }

.mobile-accordion-content {
    display: none;
    margin-top: 1rem;
}

.mobile-accordion-card.is-open .mobile-accordion-content {
    display: block;
}

.mobile-accordion-card.is-open .mobile-accordion-toggle i {
    transform: rotate(180deg);
}


/* =========================================================
   14 Company Page
   ========================================================= */

.company-page {
    padding: 32px 0 60px;
}

.company-hero-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, .08);
    margin-bottom: 36px;
}

.company-cover {
    height: 150px;
    background: linear-gradient(135deg, #13b8cf, #334155);
}

.company-info {
    text-align: center;
    padding: 0 28px 32px;
    margin-top: -58px;
}

.company-page-logo, .company-page-avatar {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .18);
    margin: 0 auto 16px;
}

.company-page-logo {
    object-fit: contain;
    background: #fff;
}

.company-page-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #13b8cf;
    color: #fff;
    font-size: 38px;
    font-weight: 800;
}

.company-info h1 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
}

.company-description {
    max-width: 760px;
    margin: 0 auto 22px;
    color: #64748b;
}

.company-contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.company-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 10px 16px;
    color: #334155;
    text-decoration: none;
    transition: .2s;
}

    .company-contact-pill:hover {
        color: var(--clr-blue);
        border-color: var(--clr-blue);
        background: #f0fdff;
    }

    .company-contact-pill i {
        color: var(--clr-blue);
    }

.company-contact-grid i {
    color: #13b8cf;
    margin-right: 6px;
}

.company-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 22px;
}

.company-listings-toolbar {
    display: flex;
    justify-content: right;
}

.company-sort-form {
    width: 260px;
    margin-bottom: 10px;
}

.company-section-header h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 4px;
}

.company-section-header p {
    color: #64748b;
    margin: 0;
}

.company-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 14px 0 24px;
}


/* =========================================================
   15 Admin / Dashboard Pages
   ========================================================= */

.review-tabs {
    display: flex;
    gap: 10px;
}

.review-tab {
    padding: 10px 18px;
    border: 1px solid var(--werent-border);
    border-radius: 999px;
    background: #fff;
    color: var(--clr-black);
    text-decoration: none;
    font-weight: 700;
}

    .review-tab:hover {
        background: var(--bs-primary-bg-subtle);
        color: var(--bs-primary-text-emphasis);
    }

    .review-tab.active {
        background: var(--clr-blue);
        border-color: var(--clr-blue);
        color: #fff;
    }

.review-filter-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.filter-pill {
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 600;
}

.review-card, .favourite-card {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: all .2s ease;
}

    .review-card:hover, .favourite-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
    }

    .review-card h5 a, .favourite-card h5 a {
        color: inherit;
        font-weight: 600;
    }

        .review-card h5 a:hover, .favourite-card h5 a:hover {
            color: var(--clr-blue);
        }

.review-comment {
    color: #374151;
    margin: 14px 0;
    min-height: 48px;
}

.review-img {
    width: 92px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: .2s;
}

    .review-img:hover {
        transform: scale(1.05);
        opacity: .9;
    }

.owner-listings-card {
    border: 1px solid var(--werent-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.owner-listings-table thead th {
    background: var(--clr-black);
    color: #fff;
    border-bottom: none;
    font-weight: 700;
    white-space: nowrap;
}

.owner-listing-car {
    color: var(--werent-muted);
    font-size: .9rem;
}

.owner-listing-price {
    font-weight: 700;
    color: var(--clr-blue-dark);
}

.owner-listings-table .td-actions {
    min-width: 280px;
}

.dataTables_filter input, .dataTables_length select {
    border-radius: 10px !important;
    border: 1px solid var(--werent-border) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--clr-black);
    color: #fff !important;
    border: none !important;
}

.availability-card {
    border: 1px solid var(--werent-border);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

    .availability-card thead th {
        background: var(--clr-black);
        color: #fff;
        border-bottom: none;
    }

.lead-user-photo {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
}

.lead-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--clr-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.review-card {
    padding: 16px;
}


/* =========================================================
   99 Miscellaneous
   ========================================================= */

.carousel-caption.carousel-buttons-captions {
    background-color: white;
    display: flex;
    gap: 10px;
    position: absolute;
    top: 0;
    left: unset;
    right: 0;
    width: max-content;
    height: max-content;
    padding: 10px;
    border: 0;
    border-bottom-left-radius: 7px;
    z-index: 2;
}

.brand-logo-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f3f5;
    color: var(--clr-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.werent-page {
    padding-top: 28px;
    min-height: calc(100vh - 160px);
    max-width: 1480px;
}

.dashboard-brand {
    text-align: center;
    margin-bottom: 28px;
}

.sort-form {
    min-width: 210px;
}

.car-badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

    .car-badge.certified {
        background: rgba(22, 163, 74, .92);
        color: #fff;
    }

    .car-badge.featured {
        background: rgba(245, 158, 11, .94);
        color: #111827;
    }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
}

    .back-link:hover {
        color: var(--clr-blue);
        transform: translateX(-4px);
    }

.title-column {
    grid-area: title;
    min-width: 0;
}

.contact-column {
    grid-area: contact;
    min-width: 0;
    align-self: stretch;
}

.stars-background {
    color: #d6d6d6;
}

.stars-foreground {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #f7b500;
}


/* =========================================================
   Keyframes
   ========================================================= */

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(24px);
    }
}

@keyframes glitch {
    2%,64% {
        transform: translate(2px,0) skew(0deg);
    }

    4%,60% {
        transform: translate(-2px,0) skew(0deg);
    }

    62% {
        transform: translate(0,0) skew(5deg);
    }
}

@keyframes glitchTop {
    2%,64% {
        transform: translate(2px,-2px);
    }

    4%,60% {
        transform: translate(-2px,2px);
    }

    62% {
        transform: translate(13px,-1px) skew(-13deg);
    }
}

@keyframes glitchBottom {
    2%,64% {
        transform: translate(-2px,0);
    }

    4%,60% {
        transform: translate(-2px,0);
    }

    62% {
        transform: translate(-22px,5px) skew(21deg);
    }
}


/* =========================================================
   Responsive Overrides
   ========================================================= */


@media (min-width: 768px) {


    /* 02 Base & Forms */

    html {
        font-size: 16px;
    }
}


@media (min-width: 992px) {


    /* 03 Header & Navigation */

    .werent-navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .werent-navbar .dropdown:hover > .nav-link {
        color: var(--clr-blue);
    }
}


@media (max-width: 991px) {


    /* 03 Header & Navigation */

    .werent-mega-menu {
        width: 100%;
        left: 0 !important;
        right: 0 !important;
        top: auto;
        border-radius: 12px;
    }

    .brand-dropdown-header {
        flex-direction: column;
        align-items: stretch;
    }

    .brand-search-box {
        width: 100%;
    }

    .brand-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .werent-header {
        background: #fff;
        padding: 14px 18px;
        border-bottom: 1px solid #eef2f4;
    }

        .werent-header .navbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .werent-header .navbar-brand {
            display: flex;
            align-items: center;
            margin: 0;
        }

        .werent-header .navbar-toggler {
            height: 44px;
            border-radius: 12px;
            border: 1px solid #d8dee3;
            box-shadow: none;
            margin-left: auto;
            align-self: center;
            transform: translateY(0);
        }

        .werent-header .dropdown-toggle::after {
            display: none;
        }

        .werent-header .navbar-brand img, .werent-header .logo img {
            max-width: 170px;
            height: auto;
        }

        .werent-header .navbar-collapse {
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid #eef2f4;
        }

        .werent-header .navbar-nav {
            gap: 4px;
        }

        .werent-header .nav-link {
            padding: 12px 4px;
            font-size: 15px;
            font-weight: 600;
            color: #263238;
        }

        .werent-header .dropdown-menu {
            border: 0;
            box-shadow: none;
            padding: 0 0 0 12px;
            margin: 0;
            background: transparent;
        }

        .werent-header .dropdown-item {
            padding: 10px 4px;
            font-size: 14px;
        }

        .werent-header .user-menu, .werent-header .navbar-user {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #eef2f4;
        }


    /* 04 Footer */

    .werent-footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }


    /* 05 Shared Components */

    .flatpickr-calendar {
        width: calc(100vw - 24px) !important;
        padding: 24px !important;
        border-radius: 24px !important;
    }

    .dayContainer {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }


    /* 06 Home Page */

    .home-search-card {
        grid-template-columns: 1fr;
    }

    .category-grid, .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form {
        min-width: 0;
    }


    /* 07 About Page */

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        padding: 58px 28px;
    }


    /* 09 Legal Pages */

    .legal-shell {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
    }

    .legal-hero, .legal-content {
        padding: 28px;
    }


    /* 11 Brands Page */

    .brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }


    /* 12 Cars Index & Filters */

    .cars-marketplace-layout {
        grid-template-columns: 1fr;
    }

    .cars-quick-search {
        grid-template-columns: 1fr;
    }

    .cars-toolbar {
        align-items: flex-start;
    }


    /* 13 Car Details Page */

    .details-layout {
        grid-template-columns: 1fr;
        grid-template-areas: "gallery"
            "title"
            "contact"
            "details";
        gap: 16px;
    }

    .contact-column .contact-card {
        position: static;
        top: auto;
    }
}


@media (max-width: 575px) {


    /* 04 Footer */

    .werent-footer {
        padding-top: 42px;
    }

    .werent-footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 24px 34px;
    }

    .werent-footer-bottom {
        flex-direction: column;
        padding: 24px 24px 0;
    }


    /* 05 Shared Components */

    .werent-toast {
        left: 16px;
        right: 16px;
        top: 90px;
        min-width: 0;
        max-width: none;
    }


    /* 06 Home Page */

    .home-hero {
        padding: 48px 18px;
        height: calc(100dvh - 76px);
        overflow: hidden;
    }

    .category-grid, .companies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-card {
        min-width: 0;
        width: 100%;
        padding: 16px 8px;
    }

        .category-card img {
            max-width: 100%;
            width: 120px;
            height: 80px;
            object-fit: contain;
        }

        .category-card h5 {
            font-size: 1rem;
            word-break: break-word;
        }

    .newsletter-form {
        flex-direction: column;
    }


    /* 11 Brands Page */

    .brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brands-hero h1 {
        font-size: 28px;
    }


    /* 12 Cars Index & Filters */

    .cars-hero {
        padding: 20px;
        border-radius: 18px;
    }

        .cars-hero h1 {
            font-size: 28px;
        }

    .cars-toolbar {
        flex-direction: column;
    }

    .cars-toolbar-actions, .sort-form {
        width: 100%;
    }

    .cars-grid {
        grid-template-columns: 1fr !important;
    }
}


@media(max-width:991px) {


    /* 02 Base & Forms */

    .offcanvas-body {
        display: flex;
        flex-direction: column;
        padding: 0;
        overflow: hidden;
    }

    #mobileFilters .offcanvas-body {
        padding: 0;
        display: flex;
        flex-direction: column;
    }


    /* 08 Contact Page */

    .contact-content {
        grid-template-columns: 1fr;
    }


    /* 12 Cars Index & Filters */

    .offcanvas.offcanvas-start {
        width: 100%;
    }

    .offcanvas {
        --bs-offcanvas-padding-y: 50px;
    }

    .mobile-filters-form {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

        .mobile-filters-form .filter-box {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .mobile-filters-form .filter-scroll {
            flex: 1;
            overflow-y: auto;
            min-height: 0;
        }

        .mobile-filters-form .filters-footer {
            flex-shrink: 0;
            background: #fff;
            padding: 16px;
            border-top: 1px solid #e9ecef;
            margin: 0;
        }

    .filter-box {
        position: static;
    }
}


@media (max-width: 768px) {


    /* 05 Shared Components */

    .flatpickr-calendar {
        width: calc(100vw - 24px) !important;
        padding: 22px !important;
        border-radius: 24px !important;
    }

    .dayContainer {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }


    /* 10 Error Pages */

    .werent-error {
        padding: 50px 20px;
    }

    .werent-error-card p {
        font-size: 16px;
    }

    .werent-error-actions {
        flex-direction: column;
        align-items: center;
    }

        .werent-error-actions .btn {
            width: 100%;
            max-width: 320px;
        }
}


@media (max-width: 1199px) {


    /* 11 Brands Page */

    .brands-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    /* 12 Cars Index & Filters */

    .cars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 992px) {


    /* 05 Shared Components */

    .werent-search {
        flex-direction: column;
        border-radius: 22px;
    }

    .werent-search-field {
        width: 100%;
    }

    .werent-search-divider {
        width: calc(100% - 40px);
        height: 1px;
    }

    .werent-search-btn {
        width: calc(100% - 20px);
        justify-content: center;
    }
}


@media (max-width: 576px) {


    /* 05 Shared Components */

    .cars-pagination {
        gap: 5px;
    }


    /* 12 Cars Index & Filters */

    .cars-page-link span {
        display: none;
    }

    .cars-page-link {
        min-width: 38px;
        height: 38px;
        padding: 0 11px;
    }
}


@media (max-width: 767px) {


    /* 02 Base & Forms */

    .modal-gallery-body {
        padding: 0;
        height: 100vh;
        display: flex;
        align-items: center;
    }


    /* 05 Shared Components */

    .flatpickr-calendar.open {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        max-width: calc(100vw - 24px);
    }

    .flatpickr-calendar {
        width: 100%;
        max-width: 320px;
    }


    /* 13 Car Details Page */

    .mobile-contact-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
        gap: 10px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .66);
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -10px 30px rgba(15, 23, 42, .12);
        backdrop-filter: blur(10px);
    }

    .mobile-contact-btn {
        height: 48px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 800;
        text-decoration: none;
        border: 1px solid transparent;
    }

        .mobile-contact-btn.whatsapp {
            color: #128c3f;
            background: #ecfdf3;
            border-color: #b7f0c7;
        }

        .mobile-contact-btn.viber {
            color: #6d28d9;
            background: #f4efff;
            border-color: #d9c8ff;
        }

        .mobile-contact-btn.email {
            color: #0f6e7c;
            background: #e8fbff;
            border-color: #b7eaef;
        }

    .mobile-accordion-card {
        padding: 18px !important;
    }

    .mobile-accordion-content {
        display: grid;
        grid-template-rows: 0fr;
        margin-top: 0;
        overflow: hidden;
        transition: grid-template-rows .28s ease, margin-top .28s ease;
    }

        .mobile-accordion-content > * {
            min-height: 0;
            overflow: hidden;
        }

    .mobile-accordion-card:not(.is-open) .mobile-accordion-content {
        grid-template-rows: 0fr;
        margin-top: 0;
        max-height: 0;
    }

    .mobile-accordion-card.is-open .mobile-accordion-content {
        grid-template-rows: 1fr;
        margin-top: 18px;
        max-height: 2000px;
    }

    .mobile-accordion-card.is-open .mobile-accordion-toggle i {
        transform: rotate(180deg);
    }

    .car-details-page {
        padding: 12px 0 32px;
    }

    .details-shell {
        max-width: 100%;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .gallery-wrapper {
        margin-left: -8px;
        margin-right: -8px;
    }

    .main-image-container {
        border-left: 0;
        border-right: 0;
    }

    .thumbnail-strip {
        padding-left: 8px;
        padding-right: 8px;
    }

    .gallery-thumb {
        width: 86px;
        height: 60px;
    }

    .details-card {
        border-radius: 14px;
    }

        .details-card.p-4 {
            padding: 18px !important;
        }

    .listing-title {
        font-size: 24px;
    }

    .contact-card {
        margin-bottom: 24px;
    }

    .contact-actions {
        grid-template-columns: 1fr 1fr;
    }

    .price-box {
        grid-template-columns: 1fr;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .modal-gallery-dialog {
        max-width: 100%;
        margin: 0;
    }

    .modal-image-frame {
        width: 100%;
        border-radius: 0;
        background: transparent;
    }

    .modal-gallery-image {
        width: 100%;
        max-height: 92vh;
        object-fit: contain;
    }

    .modal-gallery-nav {
        width: 44px;
        height: 44px;
        font-size: 36px;
        background: rgba(15, 23, 42, .65);
    }

    .modal-gallery-prev {
        left: 10px;
    }

    .modal-gallery-next {
        right: 10px;
    }

    .modal-close-btn {
        top: 16px;
        right: 16px;
    }

    .calendar-card .fc-header-toolbar {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        align-items: center;
    }

    .calendar-card .fc-toolbar-title {
        font-size: 1.25rem;
        line-height: 1.15;
        max-width: 140px;
    }

    .calendar-card .fc-toolbar-chunk:nth-child(1) {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .calendar-card .fc-toolbar-chunk:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .calendar-card .fc-toolbar-chunk:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
    }

    .calendar-card .fc-button {
        padding: 8px 12px;
        font-size: .85rem;
    }
}
