.filter-sidebar__panel {
    background-color: #eef0ef;
}
 [data-submit-form="#cars-filter-form"]{
    display: none;
}

.listing-sidebar-right .listing-sidebar-right__filter {
    scrollbar-color: #636363 #ffffff;
}

.city-filter-wrapper {
    scrollbar-color: #636363 #e7e7e7;
}

.filter-features.scroll-custom {
    max-height: 480px;
    padding: 16px;
    margin-right: 0;
}

.filter-checkbox span {
    all: unset;
}

.filter-checkbox span:before {
    all: unset;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.form-row .label-text {
    font-weight: 600;
    color: #1e293b;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 20px;
}

.form-row .input-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* ---- 3. Cacher les checkbox et radio par défaut ---- */
.form-row input[type="checkbox"],
.form-row input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    appearance: none;
}

/* ---- 4. CHECKBOX PERSONNALISÉE (TRÈS GRANDE) ---- */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    color: #1e293b;
    padding: 4px 0;
}


/* La case à cocher (TRÈS GRANDE) */
.custom-checkbox .box {
    width: 18px;
    height: 18px;
    min-width: 16px;
    min-height: 16px;
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

/* La coche (cachée par défaut) */
.custom-checkbox .box::after {
    content: "✓";
    font-size: 16px;
    font-weight: bold;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

/* Checkbox cochée */
.custom-checkbox input:checked+.box {
    background: #1e293b;
    border-color: #1e293b;
    /* box-shadow: 0 0 0 6px rgba(30, 41, 59, 0.25); */
}

.custom-checkbox input:checked+.box::after {
    opacity: 1;
    transform: scale(1);
}

/* Au survol */
.custom-checkbox:hover .box {
    border-color: #1e293b;
}

.core-collapse__icon {
    height: 20px;
    width: 20px;
}

/* ------------------------------------ */

/* Filtre par ville */
.city-filter-wrapper {
    background-color: white;
    padding: 0px 16px 10px;
    border-radius: 0.625rem;
}

.city-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    z-index: 5;
}

.city-search-icon svg {
    width: 18px;
    height: 18px;
    stroke: #999;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.city-filter-wrapper h3 {
    color: #625a5a;
    font-size: 1.17em;
    padding: 1rem 0;
    margin: 0;
}

.city-search-container {
    position: relative;
    margin-bottom: 7px;
}

.city-search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid #e7e7e7;
    border-radius: 4px !important;
    font-size: 14px;
    color: #333;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #e7e7e7 !important;
}

.city-search-input:focus {
    border-color: #50611d;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.city-search-input::placeholder {
    color: #a0a0a0;
}

.city-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

.city-clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    display: none;
    transition: color 0.2s;
}

.city-clear-btn:hover {
    color: #dc3545;
}

.city-clear-btn.visible {
    display: block;
}

.city-list-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
    background: #e7e7e7;
    padding: 5px;
    display: none;
}

.city-list-container.active {
    display: block;
}

.city-list-container::-webkit-scrollbar {
    width: 6px;
}

.city-list-container::-webkit-scrollbar-track {
    background: #e7e7e7;
    border-radius: 5px;
}

.city-list-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.city-list-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.city-item {
    display: none;
    align-items: center;
    padding: 10px 5px;
    margin: 2px 0;
    cursor: pointer;
    background: #e7e7e7;
    position: relative;
}

.city-item.visible {
    display: flex !important;
}


.city-item .city-name {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.city-item .city-count {
    font-size: 12px;
    color: #50611d;
    background: #dbeafe;
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 10px;
    white-space: nowrap;
}

.city-item .city-checkbox {
    /* margin-right: 12px; */
    width: 18px;
    height: 18px;
    accent-color: #50611d;
    cursor: pointer;
    flex-shrink: 0;
}

.city-start-typing {
    text-align: center;
    padding: 30px 15px;
    display: block;
}

.city-start-typing.hidden {
    display: none !important;
}

.city-start-typing .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.city-start-typing h4 {
    font-size: 16px;
    color: #555;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.city-start-typing p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.city-no-result {
    text-align: center;
    padding: 30px 15px;
    display: none;
}

.city-no-result.visible {
    display: block;
}

.city-no-result .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.city-no-result h4 {
    font-size: 16px;
    color: #555;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.city-no-result p {
    font-size: 13px;
    color: #999;
    margin: 0;
}

.city-start-typing .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.city-search-input::placeholder {
    padding-left: 25px
}

@media (max-width: 768px) {
    .city-search-input {
        font-size: 13px;
        padding: 10px 14px 10px 40px;
    }

    .city-item {
        padding: 8px 12px;
    }

    .city-item .city-name {
        font-size: 13px;
    }

    .city-item .city-count {
        font-size: 11px;
        padding: 1px 10px;
    }

    .city-list-container {
        max-height: 250px;
    }

    .city-search-icon svg {
        width: 15px;
        height: 15px;
    }
}


.city-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    appearance: none;
}

.custom-radio .box {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    background: white;
    border: 2px solid #cbd5e1;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.custom-radio .box::after {
    content: "✓";
    font-size: 16px;
    font-weight: bold;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.custom-radio input:checked+.box {
    background: #1e293b;
    border-color: #1e293b;
}

.custom-radio input:checked+.box::after {
    opacity: 1;
    transform: scale(1);
}

.custom-radio:hover .box {
    border-color: #1e293b;
}

/* ---- Motricité : nombre d'annonces à côté du libellé ---- */
.filter-drive-type .filter-count {
    color: #8a8f8d;
    font-size: 14px;
    font-style: normal;
    margin-left: 4px;
}

/* ---- Couleur extérieure : grille de pastilles ---- */
.filter-features.filter-colors {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 6px;
    max-height: none;
    padding: 4px 12px 18px;
}

.filter-colors__option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    position: relative;
    text-align: center;
}

.filter-colors__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-colors__swatch {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--swatch, #ccc);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
    outline: 2px solid transparent;
    outline-offset: 3px;
    transition: outline-color 0.2s ease, transform 0.2s ease;
}

/* Reflet des teintes métallisées */
.filter-colors__swatch.is-metallic {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.18) 100%), var(--swatch, #ccc);
}

.filter-colors__swatch.is-unknown {
    background: conic-gradient(#d32f2f, #ffd600, #2e7d32, #1e4fd8, #800080, #d32f2f);
}

.filter-colors__option:hover .filter-colors__swatch {
    transform: scale(1.08);
}

.filter-colors__input:focus-visible + .filter-colors__swatch {
    outline-color: #1c1c1c;
}

.filter-colors__input:checked + .filter-colors__swatch {
    outline-color: #98bc2a;
}

/* Coche blanche, ou noire sur les couleurs claires */
.filter-colors__input:checked + .filter-colors__swatch::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 7px;
    height: 13px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.filter-colors__input:checked + .filter-colors__swatch.is-light::after {
    border-color: #1c1c1c;
}

.filter-colors__name {
    font-size: 12px;
    line-height: 1.3;
    color: #4b4b4b;
    word-break: break-word;
}

.filter-colors__input:checked ~ .filter-colors__name {
    color: #1c1c1c;
    font-weight: 600;
}
