/* ============================================================
   CarZoon Browse Cars Page — v3
   ============================================================ */


:root {
    --motors-accent-color: #0f2744;
    --mvl-primary-color: skyblue;
}


*, *::before, *::after { box-sizing: border-box; }

.czb-wrap {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    align-items: start;
}

.stm-featured-top-cars-title {
     margin-bottom: 25px; 
     position: relative; 
     padding-right: 120px; 
     border-bottom: 3px solid #0f2744; 
}
.stm-featured-top-cars-title .heading-font {
    position: relative;
    display: inline-block;
    padding: 3px 16px;
    color: #fff;
    background-color: #0f2744;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.stm-featured-top-cars-title .heading-font:after {
    position: absolute;
    content: "";
    display: block;
    top: 0;
    right: -14px;
    height: 100%;
    width: 32px;
    background-color: #0f2744;
    transform: skew(45deg, 0deg);
    z-index: -1;
}

.stm-template-listing_three_elementor #wrapper .stm-badge-directory, .stm-template-listing_three_elementor #wrapper .stm-badge-directory.heading-font {
    position: absolute;
    left: -65px;
    padding: 0 55px;
    top: 20px;
    width: 200px;
    height: 33px;
    line-height: 33px;
    transform: rotate(-45deg) translate3d(0, 0, 0);
    background-color: #0f2744;
    color: #fff !important;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.czb-main   { order: 1; }
.czb-sidebar { order: 2; position: sticky; top: 80px; }

/* ── TOP BAR ── */
.czb-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.czb-browse-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    font-style: italic;
}
.czb-topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.czb-sort-form    { display: flex; align-items: center; gap: 10px; }
.czb-sort-label   { font-size: 12px; font-weight: 700; color: #64748b; letter-spacing: 0.5px; white-space: nowrap; }
.czb-sort-select {
    border: 1.5px solid #d1d9e8; border-radius: 10px; padding: 8px 32px 8px 12px;
    font-size: 13px; font-weight: 600; color: #0f172a; background: #fff;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
}
.czb-view-toggle { display: flex; border: 1.5px solid #d1d9e8; border-radius: 10px; min-width: 75px;
    overflow: hidden; }
.czb-view-btn {
    background: transparent; border: none; padding: 8px 12px;
    font-size: 16px; cursor: pointer; color: #94a3b8 !important; transition: 0.15s;
}
.czb-view-btn:hover, .czb-view-active { background: #0f2744; color: #fff; }

/* ── RESULTS BAR ── */
.czb-results-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 2px solid #e8edf8;
}
.czb-results-count { font-size: 14px; color: #64748b; font-weight: 600; }
.czb-clear-filters { font-size: 13px; color: #2f68ff; text-decoration: none; font-weight: 600; }
.czb-clear-filters:hover { text-decoration: underline; }

/* ── GRID ── */
.czb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* List view */
.czb-grid.czb-list-view {
    grid-template-columns: 1fr;
}
.czb-list-view .czb-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-radius: 16px;
}
.czb-list-view .czb-card-img-wrap {
    aspect-ratio: auto;
    min-height: 140px;
    border-radius: 16px 0 0 16px;
}
.czb-list-view .czb-card-body { padding: 18px 20px; }

/* ── CAR CARD ── */
.czb-card {
    background: #fff;
    border: 1.5px solid #e8edf8;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: block;
}
.czb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(15,39,68,0.12);
    border-color: #2f68ff;
}

.czb-card-img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    background: #f0f4f8;
    overflow: hidden;
}
.czb-card-img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform 0.3s;
}
.czb-card:hover .czb-card-img { transform: scale(1.04); }
.czb-card-img-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: #c4d0e3;
}
.czb-card-price {
    position: absolute; bottom: 12px; right: 12px;
    background: #2f68ff; color: #fff;
    font-size: 16px; font-weight: 800;
    padding: 6px 14px; border-radius: 10px;
    box-shadow: 0 4px 12px rgba(47,104,255,0.3);
}
.czb-card-reg {
    position: absolute; top: 10px; left: 10px;
    background: #ffd84c; border: 2px solid #f0b800;
    border-radius: 8px; padding: 3px 10px;
    font-size: 11px; font-weight: 800;
    color: #111; letter-spacing: 1.5px; text-transform: uppercase;
}
.czb-card-condition {
    position: absolute; top: 10px; right: 10px;
    background: #0f2744; color: #fff;
    border-radius: 7px; padding: 3px 10px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
}

.czb-card-body { padding: 16px; }
.czb-card-title {
    font-size: 14px; font-weight: 800; color: #0f172a;
    margin: 0 0 10px; line-height: 1.3;
    text-transform: uppercase;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.czb-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.czb-tag {
    font-size: 11px; font-weight: 600;
    padding: 3px 8px; border-radius: 6px;
    background: #f1f5f9; color: #475569;
}
.czb-tag-make { background: #eff6ff; color: #2f68ff; }
.czb-tag-year { background: #f0fdf4; color: #059669; }
.czb-card-mileage, .czb-card-location {
    font-size: 12px; color: #7b91b0;
    margin-top: 5px;
}

/* ── NO RESULTS ── */
.czb-no-results { grid-column: 1 / -1; text-align: center; padding: 60px 20px; }
.czb-no-results-icon { font-size: 56px; opacity: 0.2; margin-bottom: 16px; }
.czb-no-results h3 { color: #334155; margin-bottom: 8px; }
.czb-no-results p  { color: #94a3b8; }
.czb-no-results a  { color: #2f68ff; font-weight: 600; }

/* ── PAGINATION ── */
.czb-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.czb-page-btn {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1.5px solid #e2e8f0;
    font-size: 14px; font-weight: 700; color: #0f2744;
    text-decoration: none; transition: 0.15s;
}
.czb-page-btn:hover { border-color: #2f68ff; color: #2f68ff; }
.czb-page-active { background: #2f68ff !important; color: #fff !important; border-color: #2f68ff !important; }

/* ── SIDEBAR ── */
.czb-sidebar-card {
    background: #0f2744;
    overflow: hidden;
}
.czb-sidebar-head {
    padding: 26px 22px 10px;
    display: flex; align-items: center; gap: 14px;
}
.czb-sidebar-icon  { font-size: 30px; }
.czb-sidebar-title { font-size: 21px; font-weight: 900; color: #fff; margin: 0; line-height: 1.2; }
.czb-filter-form   { padding: 8px 18px 22px; }

.czb-filter-field { margin-bottom: 10px; position: relative; }

.czb-filter-select, .czb-filter-text {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    font-size: 13px;
    color: #fff;
    opacity: 1;
    visibility: visible;
    background: rgba(255,255,255,0.08);
    outline: none;
    transition: border-color 0.18s;
    font-family: inherit;
}
.czb-filter-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23fff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-color: rgba(255,255,255,0.08);
    cursor: pointer;
    padding-right: 36px;
}
.czb-filter-select option { background: #1e3a5f; color: #fff; }
.czb-filter-text::placeholder { color: rgba(255,255,255,0.45); }
.czb-filter-select:focus, .czb-filter-text:focus { border-color: rgba(255,255,255,0.45); }

.czb-filter-location { display: flex; align-items: center; }
.czb-loc-icon { position: absolute; left: 12px; font-size: 15px; pointer-events: none; }
/*.czb-filter-location .czb-filter-text { padding-left: 32px; }*/


/* ── RANGE SLIDER ── */
.czb-filter-range-wrap {
    margin-bottom: 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 14px 12px;
}

/* Header row: label left, bubbles right */
.czb-range-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
}


/* Bubble row: "£4,500 – £22,000" */

.czb-range-input.czb-range-low  { z-index: 3; }
.czb-range-input.czb-range-high { z-index: 4; }

/* Min/max endpoint labels */
.czb-range-endpoints {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}
.czb-range-endpoint {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    font-weight: 600;
}

/* ── DIVIDER / KEYWORD ── */
.czb-filter-divider {
    font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.5px; text-transform: uppercase;
    margin: 14px 0 10px;
}

/* ── ACTIONS ── */
.czb-filter-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.czb-filter-btn-search {
    width: 100%; padding: 13px; background: #fff; color: #0f2744 !important;
    border: none; border-radius: 4px; font-size: 14px; font-weight: 500;
    cursor: pointer; letter-spacing: 0.5px; transition: 0.18s; font-family: inherit;
}
.czb-filter-btn-search:hover { background: #f0f5ff; }
.czb-filter-btn-reset {
    display: block; text-align: center; width: 100%; padding: 11px;
    background: transparent; border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 4px; font-size: 13px; font-weight: 700;
    color: rgba(255,255,255,0.8); text-decoration: none; transition: 0.18s;
}
.czb-filter-btn-reset:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .czb-wrap { grid-template-columns: 1fr; }
    .czb-sidebar { order: -1; position: static; }
}
@media (max-width: 900px) {
    .czb-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .czb-grid { grid-template-columns: 1fr; }
    .czb-wrap { padding: 16px 12px; }
    .czb-list-view .czb-card { grid-template-columns: 1fr; }
    .czb-list-view .czb-card-img-wrap { border-radius: 16px 16px 0 0; aspect-ratio: 16/9; }
}


/* ============================
   MOBILE SIDEBAR DRAWER
   ============================ */

@media (max-width: 1024px) {

    .czb-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        z-index: 9999;
        background: #0f2744;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 20px;
    }

    .czb-sidebar.active {
        left: 0;
    }

    /* overlay */
    .czb-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .czb-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* button style */
    .czb-filter-toggle-btn {
        display: inline-block;
        background: #0f2744;
        color: #fff;
        border: none;
        padding: 10px 14px;
        border-radius: 10px;
        font-weight: 700;
        cursor: pointer;
    }
}

/* Hide button on desktop */
@media (min-width: 1025px) {
    .czb-filter-toggle-btn {
        display: none;
    }
}
/* ── SELLER TYPE TABS (Browse page) ── */
.czb-seller-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    flex-wrap: nowrap;
}
.czb-seller-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    text-decoration: none !important;
    border: 1.5px solid transparent;
    transition: all 0.18s;
    flex-wrap: wrap;
    justify-content: center;
}
.czb-seller-tab:hover { background: #e2e8f4; color: #0f2744; }
.czb-seller-tab.is-active {
    background: #0f2744;
    color: #fff;
    border-color: #0f2744;
}

/* ── FEATURED LISTING BADGES (Browse page) ── */
.czf-browse-featured-badge {
    position: absolute;
    bottom : 8px;
    right: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(245,158,11,.4);
    z-index: 2;
    letter-spacing: 0.3px;
}

/* ── FEATURED SECTION (standalone shortcode) ── */
.czf-featured-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}
.czf-featured-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.czf-star { font-size: 24px; }
.czf-featured-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f2744;
    margin: 0;
}
.czf-featured-item {
    position: relative;
}
.czf-featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(245,158,11,.4);
    z-index: 2;
}




























/* =========================================================
   CAR BROWSE SIDEBAR — WHITE UI REDESIGN
   Keep HTML same
   ========================================================= */

/* desktop sticky wrapper */
.czb-sidebar {
    order: 2;
    position: sticky;
    top: 80px;
}

/* main card */
.czb-sidebar-card {
    background: #ffffff;
    border: 1px solid #e7ebf3;
    
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

/* top header */
.czb-sidebar-head {
    padding: 22px 22px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(180deg, #23437a 0%, #1e3967 100%);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.czb-sidebar-icon {
    font-size: 30px;
}

.czb-sidebar-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* form area */
.czb-filter-form {
    /*padding: 18px;*/
    background: #ffffff;
}

/* field wrapper */
.czb-filter-field {
    margin-bottom: 14px;
    position: relative;
}

/* select + input */
.czb-filter-select,
.czb-filter-text {
    width: 100%;
    min-height: 38px;
    padding: 0 18px;
    border: 1.5px solid #dfe5ef;
    /*border-radius: 16px;*/
    font-size: 14px;
    font-weight: 400;
    color: #1f2a44;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02) inset;
}

.czb-filter-select:hover,
.czb-filter-text:hover {
    border-color: #cbd5e1;
}

.czb-filter-select:focus,
.czb-filter-text:focus {
    border-color: #2f68ff;
    box-shadow: 0 0 0 4px rgba(47, 104, 255, 0.10);
}

/* dropdown arrow */
.czb-filter-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5L7 7l5.5-5.5' stroke='%2364748b' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
}

.czb-filter-select option {
    background: #ffffff;
    color: #1f2a44;
}

.czb-filter-text::placeholder {
    color: #7c8799;
    opacity: 1;
}

/* location input */
.czb-filter-location {
    display: flex;
    align-items: center;
}

.czb-loc-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.czb-loc-icon img,
.czb-range-label-title img {
    width: 16px;
    height: 16px;
}

.czb-filter-location .czb-filter-text {
    padding-left: 44px;
    height: 40px;
}

/* range boxes */
.czb-filter-range-wrap {
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #dfe5ef;
    border-radius: 4px;
    padding: 10px 10px 10px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02) inset;
}

/* top line inside range */
.czb-range-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 10px;
    flex-wrap: wrap;
}

.czb-range-label-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2a44;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* selected values pills */
.czb-range-bubble-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.czb-range-bubble {
    background: linear-gradient(180deg, #3f7cff 0%, #2f68ff 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 400;
    padding: 2px 12px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0;
    box-shadow: 0 8px 18px rgba(47, 104, 255, 0.22);
}

.czb-range-sep {
    color: #64748b;
    font-size: 15px;
    font-weight: 700;
}

/* slider track */
.czb-range-slider {
    position: relative;
    height: 6px;
    background: #d7deea;
    border-radius: 999px;
    margin: 14px 10px 8px;
}

.czb-range-fill {
    position: absolute;
    height: 100%;
    background: #2f68ff;
    border-radius: 999px;
    pointer-events: none;
}

/* slider handles */
.czb-range-thumb {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: 2px solid #2f68ff;
    border-radius: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(47, 104, 255, 0.20);
}

.czb-range-slider:hover .czb-range-thumb {
    box-shadow: 0 6px 16px rgba(47, 104, 255, 0.28);
}

.czb-range-input {
    position: absolute;
    width: calc(100% + 20px);
    height: 30px;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    opacity: 0;
    cursor: pointer;
    margin: 0;
    pointer-events: all;
    -webkit-appearance: none;
}

.czb-range-input.czb-range-low {
    z-index: 3;
}
.czb-range-input.czb-range-high {
    z-index: 4;
}

/* min/max labels */
.czb-range-endpoints {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
}

.czb-range-endpoint {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* divider */
.czb-filter-divider {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 18px 0 10px;
    padding-left: 4px;
}

/* buttons */
.czb-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.czb-filter-btn-search {
    width: 100%;
    min-height: 44px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #3f7cff 0%, #2f68ff 100%);
    color: #ffffff !important;
    border: none;
    /*border-radius: 999px;*/
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0;
    transition: all 0.2s ease;
    font-family: inherit;
    box-shadow: 0 2px 12px rgba(47, 104, 255, 0.25);
}

.czb-filter-btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(47, 104, 255, 0.30);
    color: #3f7cff !important;
}

.czb-filter-btn-reset {
    display: block;
    text-align: center;
    width: 100%;
    padding: 8px 14px;
    background: #ffffff;
    border: 1.5px solid #dfe5ef;
    /*border-radius: 16px;*/
    font-size: 15px;
    font-weight: 600;
    color: #2f68ff !important;
    text-decoration: none;
    transition: all 0.18s ease;
}

.czb-filter-btn-reset:hover {
    background: #f8fbff;
    border-color: #c9d8ff;
    color: #2357e6;
}

/* mobile drawer */
@media (max-width: 1024px) {
    .czb-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 88%;
        max-width: 390px;
        height: 100%;
        z-index: 9999;
        background: #ffffff;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 0;
        box-shadow: 20px 0 40px rgba(15,23,42,0.18);
    }

    .czb-sidebar.active {
        left: 0;
    }

    .czb-sidebar-card {
        min-height: 100%;
        border-radius: 0;
        border: 0;
        box-shadow: none;
    }

    .czb-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.45);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        backdrop-filter: blur(2px);
    }

    .czb-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    
}

@media (max-width: 600px) {
    .czb-filter-form {
        padding: 16px;
    }

    .czb-sidebar-head {
        padding: 20px 18px 16px;
    }

    .czb-sidebar-title {
        font-size: 22px;
    }

    .czb-filter-select,
    .czb-filter-text {
        min-height: 48px;
        font-size: 15px;
    }

    .czb-range-bubble {
        font-size: 12px;
        padding: 2px 12px;
    }

    .czb-filter-btn-search {
        font-size: 18px;
        min-height: 54px;
    }
}
/*new css */







/* ============================================================
   CarZoon — Updated Card Design (Grid + List)
   Append this block to carzoon-browse.css
   (or replace the existing /* ── CAR CARD ── */ section)
   ============================================================ */

/* ── GRID wrapper ─────────────────────────────────────────── */
.czb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── CARD BASE ────────────────────────────────────────────── */
.czc-card {
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.czc-card:hover {
    box-shadow: 0 8px 28px rgba(15, 39, 68, 0.13);
    transform: translateY(-3px);
}
.czc-card__inner {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit;
    /*height: 100%;*/
}

/* ── IMAGE AREA ───────────────────────────────────────────── */
.czc-card__img-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #f0f3f8;
    overflow: hidden;
    flex-shrink: 0;
}

/* slider container fills the wrap */
.czc-card__img-slider,
.czc-card__img-slider .hoverable-wrap,
.czc-card__img-slider .hoverable-unit {
    width: 100%;
    height: 100%;
}
.czc-card__img-slider .hoverable-unit {
    position: absolute !important;
    inset: 0;
    opacity: 0;
    transition: opacity 0.25s;
}
.czc-card__img-slider .hoverable-unit.active { opacity: 1; }

.czc-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.czc-card:hover .czc-card__img { transform: scale(1.04); }

.czc-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    color: #c5cfe3;
}

/* dot indicators */
.czc-card__dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 3;
}
.czc-card__dots .indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}
.czc-card__dots .indicator.active { background: #fff; }

/* photo count pill */
.czc-card__photo-count {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px 3px 7px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

/* share + wishlist action group — top-right of image */
.czc-card__img-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 4;
}

.czc-card__action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: color 0.15s, transform 0.15s, background 0.15s;
    padding: 0;
    flex-shrink: 0;
}
.czc-card__action-btn:hover {
    background: #fff;
    transform: scale(1.12);
}
.czc-card__action-btn:hover svg { stroke: #0f2744; }

/* heart active state (set by wishlist script) */
.czc-card__wishlist.czwl-active svg,
.czc-card__wishlist.czwl-active:hover svg {
    stroke: #e53e3e;
    fill: #e53e3e;
}

/* share "link copied" toast */
.czc-share-toast {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(15,39,68,0.92);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    z-index: 10;
}
.czc-share-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ad / featured badge */
.czc-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 3;
    letter-spacing: 0.2px;
}
.czc-badge--featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(245,158,11,.35);
}
.czc-badge--new {
    background: #16a34a;
    color: #fff;
}
.czc-badge--dealer {
    background: #2563eb;
    color: #fff;
}

/* ── CARD BODY ────────────────────────────────────────────── */
.czc-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* title + price row */
.czc-card__title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.czc-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
    flex: 1;
    /* clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.czc-card__price {
    font-size: 17px;
    font-weight: 800;
    color: #0f2744;
    white-space: nowrap;
    flex-shrink: 0;
}

/* specs row */
.czc-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f3f8;
}
.czc-spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #475569;
    font-weight: 500;
}
.czc-spec svg { color: #94a3b8; flex-shrink: 0; }

/* meta row: location + seller */
.czc-card__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
}
.czc-card__location,
.czc-card__seller {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #64748b;
}
.czc-card__location svg,
.czc-card__seller svg { flex-shrink: 0; }

/* ── LIST VIEW ────────────────────────────────────────────── */
.czb-grid.czb-list-view {
    grid-template-columns: 1fr;
    gap: 14px;
}

.czb-list-view .czc-card__inner {
    flex-direction: row;
    align-items: stretch;
}

.czb-list-view .czc-card__img-wrap {
    width: 240px;
    aspect-ratio: unset;
    min-height: 160px;
    flex-shrink: 0;
    border-radius: 0;
}

.czb-list-view .czc-card__body {
    padding: 14px 18px;
    justify-content: center;
}

.czb-list-view .czc-card__title {
    font-size: 16px;
    -webkit-line-clamp: 1;
}

.czb-list-view .czc-card__price {
    font-size: 20px;
}

.czb-list-view .czc-card__specs {
    gap: 6px 18px;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
    .czb-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .czb-grid { grid-template-columns: 1fr; }
    .czb-browse-title {display: none}
    /* list view on mobile becomes vertical */
    .czb-list-view .czc-card__inner { flex-direction: row; }
    .czb-list-view .czc-card__img-wrap {
        width: 35%;
        min-height: unset;
        aspect-ratio: 16/10;
    }
    .czb-sort-form {
        flex-direction: row-reverse;
        width: 100%;
        justify-content: space-between;
    }
    .czb-topbar-right {
        width: 100%;
    }
    .czb-seller-tab { 
        flex: 1;
        padding: 8px 8px;
        flex-direction: column;
    }
    
    .czb-filter-toggle-btn {
        display: inline-flex;
        background: transparent;
        color: #0f2744;
        justify-content: center;
        gap: 10px;
        border: none;
        border: 1.5px solid #d1d9e8;
        width: 100%;
        padding: 10px 14px;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(47, 104, 255, 0.20);
    }
    
     .czb-filter-toggle-btn:focus {
         background: var(--motors-accent-color);
         color: white;
     }
}

/* ============================================================
   QUICK FILTER BAR  (Location · Make · Price · Fuel Type)
   ============================================================ */
.czb-qf-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    align-items: center;
}

/* each dropdown wrapper */
.czb-qf-field {
    position: relative;
    flex: 1;
    min-width: 130px;
}

/* trigger button */
.czb-qf-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    background: #fff;
    border: 1.5px solid #dce3ef;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    font-family: inherit;
    text-align: left;
}
.czb-qf-btn svg:first-child { color: #64748b; flex-shrink: 0; }
.czb-qf-label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.czb-qf-arrow { color: #94a3b8; flex-shrink: 0; transition: transform 0.2s; }

.czb-qf-btn:hover {
    border-color: #0f2744;
    box-shadow: 0 2px 8px rgba(15,39,68,0.08);
}
.czb-qf-btn--active {
    border-color: #0f2744;
    background: #0f2744;
    color: #fff;
}
.czb-qf-btn--active svg { color: #fff !important; }
.czb-qf-btn--open .czb-qf-arrow { transform: rotate(180deg); }
.czb-qf-btn--open {
    border-color: #2f68ff;
    box-shadow: 0 0 0 3px rgba(47,104,255,0.12);
}

/* dropdown panel */
.czb-qf-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    max-width: 280px;
    background: #fff;
    border: 1.5px solid #dce3ef;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15,39,68,0.14);
    z-index: 9990;
    overflow: hidden;
}
.czb-qf-dropdown--open { display: block; }

/* search box inside dropdown */
.czb-qf-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #f1f5f9;
}
.czb-qf-search-wrap svg { color: #94a3b8; flex-shrink: 0; }
.czb-qf-search {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    color: #1e293b;
    background: transparent;
    font-family: inherit;
}
.czb-qf-search::placeholder { color: #94a3b8; }

/* scrollable option list */
.czb-qf-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}
.czb-qf-list::-webkit-scrollbar { width: 4px; }
.czb-qf-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

.czb-qf-option {
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: background 0.12s;
}
.czb-qf-option:hover { background: #f1f5f9; }
.czb-qf-option--active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}
.czb-qf-option--active::after {
    content: ' ✓';
    font-size: 12px;
}

/* mobile: stack on small screens */
@media (max-width: 720px) {
    .czb-qf-form { gap: 8px; }
    .czb-qf-field { min-width: calc(50% - 4px); flex: none; width: calc(50% - 4px); }
    .czb-qf-btn { padding: 8px 11px; font-size: 12px; }
    .czb-qf-dropdown { min-width: 190px; }
}
@media (max-width: 400px) {
    .czb-qf-field { width: 100%; min-width: 100%; }
}

/* ============================================================
   ACTIVE FILTER CHIPS
   ============================================================ */
.czb-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    align-items: center;
}

.czb-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #1d4ed8;
    text-decoration: none !important;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.czb-chip:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}
.czb-chip__x {
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
    opacity: 0.6;
}
.czb-chip--clear {
    background: #fff0f0;
    border-color: #fecaca;
    color: #dc2626;
}
.czb-chip--clear:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* ============================================================
   BRAND LOGO STRIP
   ============================================================ */
.czb-brand-strip-wrap {
    position: relative;
    margin-bottom: 18px;
    overflow: hidden;
}

.czb-brand-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 8px;
    scrollbar-width: none;
}
.czb-brand-strip::-webkit-scrollbar { display: none; }

.czb-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    text-decoration: none !important;
    padding: 8px 14px;
    border: 1.5px solid #e4e8f0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.18s ease;
    min-width: 72px;
}
.czb-brand-item:hover {
    border-color: #0f2744;
    box-shadow: 0 4px 14px rgba(15,39,68,0.10);
    transform: translateY(-2px);
}
.czb-brand-item--active {
    border-color: #0f2744;
    background: #0f2744;
}
.czb-brand-item--active .czb-brand-name { color: #fff; }

.czb-brand-logo-wrap {
    width: 42px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.czb-brand-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.czb-brand-item--active .czb-brand-logo-wrap img {
    filter: brightness(0) invert(1);
}

.czb-brand-name {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

/* ============================================================
   UPDATED GRID CARD — extra elements
   ============================================================ */

/* price block: price + monthly stacked */
.czc-card__price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 2px;
}
.czc-card__monthly {
    font-size: 11px;
    font-weight: 500;
    color: #2f68ff;
    white-space: nowrap;
}

/* feature tags */
.czc-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: -2px;
}
.czc-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
}
.czc-tag--ulez {
    background: #dcfce7;
    color: #15803d;
}
.czc-tag--info {
    background: #eff6ff;
    color: #1d4ed8;
}
.czc-tag--plain {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

/* CTA buttons row */
.czc-card__cta {
    display: flex;
    flex-direction: row;
    border-top: 1px solid #f0f3f8;
}
.czc-card__cta-view,
.czc-card__cta-contact {
    display: block;
    flex: 1;
    text-align: center;
    padding: 11px 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s ease;
    line-height: 1.3;
}
.czc-card__cta-view {
    background: #0f2744;
    color: #fff !important;
    border-bottom-left-radius: 11px;
}
.czc-card__cta-view:hover { background: #1a3d66; color: #fff !important; }
.czc-card__cta-contact {
    background: #fff;
    color: #0f2744 !important;
    border-left: 1px solid #f0f3f8;
    border-bottom-right-radius: 11px;
}
.czc-card__cta-contact:hover { background: #f8faff; color: #0f2744 !important; }

/* ── LIST VIEW: hide CTA buttons ─────────────────────────── */
.czb-list-view .czc-card__cta { display: none; }
.czb-list-view .czc-card__tags { display: none; }
.czb-list-view .czc-card__monthly { display: none; }

/* ── GRID: price block layout fix ────────────────────────── */
.czb-list-view .czc-card__price-block { flex-direction: row; align-items: baseline; gap: 6px; }

/* ── RESPONSIVE brand strip ──────────────────────────────── */
@media (max-width: 720px) {
    .czb-brand-item { min-width: 64px; padding: 6px 10px; }
    .czb-brand-logo-wrap { width: 36px; height: 26px; }
    .czb-brand-name { font-size: 10px; }
}