@media (max-width: 991px) {

   
    #sidebar-mobile .modal-body {
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 78vh;
        width: 100%;
        
    }
    aside.sidebar-white {
        padding-top: 0px;
    }
    aside.sidebar-white .btn-info {
        width: 100%;
    }
   
   
  

    .btn-info>span {
        color: #ffffff;
    }
}

/* ==========================================================================
   SIDEBAR FILTRES - DESIGN ÉPURÉ & PROFESSIONNEL
   ========================================================================== */

#sidebar.sidebar-white {
    background-color: #ffffff;
  
    border-radius: var(--border-radius, 4px);

    font-family: var(--font, 'Poppins', sans-serif);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* --- 1. EN-TÊTE DU FILTRE --- */
#sidebar #availibility_voyage {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#sidebar #availibility_voyage svg {
    flex-shrink: 0;
}

/* Nettoyage des balises HR natives */
#sidebar hr {
    border: 0;
    border-top: 1px solid var(--color-border, #C7DBEB);
    margin: 20px 0;
    opacity: 0.6;
}

/* --- 2. TITRES DES BLOCS DE FILTRES --- */
#sidebar .widget-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px !important;
    margin-top: 20px;
}

/* On supprime la marge haute du premier titre après l'en-tête */
#sidebar #filtre_destination .widget-title {
    margin-top: 0;
}

/* --- 3. STYLISATION DES CASES À COCHER (CHECKBOXES) --- */
#sidebar .checkbox {
    margin-top: 8px;
    margin-bottom: 8px;
    padding-left: 0; /* Annule le comportement BS3 */
}

#sidebar .checkbox label {
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 13.5px;
    color: #4a4a4a;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    user-select: none;
    padding-left: 28px; /* Espace pour notre propre case */
}

/* Dissimulation de l'input natif moche */
#sidebar .checkbox label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Création du carré de remplacement */
#sidebar .checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 1px solid var(--color-border, #C7DBEB);
    border-radius: 3px;
    transition: all 0.2s ease;
}

/* Effet Hover sur la case */
#sidebar .checkbox label:hover::before {
    border-color: var(--color-site-2, #287dfa);
    background-color: #f8fafd;
}

/* État coché : Changement de fond */
#sidebar .checkbox input[type="checkbox"]:checked + label::before,
#sidebar .checkbox label:has(input[type="checkbox"]:checked)::before {
    background-color: var(--color-site-2, #287dfa);
    border-color: var(--color-site-2, #287dfa);
}

/* Ajout de la coche blanche (Checkmark) interne via le pseudo-élément after */
#sidebar .checkbox label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.1s ease;
}

#sidebar .checkbox input[type="checkbox"]:checked + label::after,
#sidebar .checkbox label:has(input[type="checkbox"]:checked)::after {
    opacity: 1;
}

/* Ajustement du compteur à droite (ex: (4)) */
#sidebar .float-right {
    margin-left: auto;
    color: #a0aec0;
    font-size: 12px;
    font-weight: 600;
}

/* --- 4. CONFIGURATION VERSION MOBILE (BOUTON ET MODALE) --- */

/* Le bouton déclencheur sur Mobile */
#sidebar .btn-info.navbar-btn {
    background-color: #ffffff !important;
    border: 1px solid var(--color-site-2, #287dfa) !important;
    color: var(--color-site-2, #287dfa) !important;
    font-family: var(--font, 'Poppins', sans-serif);
    font-weight: 600;
    font-size: 14px;
    width: 100%;
    height: 44px;
    border-radius: var(--border-radius, 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(40, 125, 250, 0.1);
    transition: all 0.3s ease;
}

#sidebar .btn-info.navbar-btn:hover,
#sidebar .btn-info.navbar-btn:focus {
    background-color: var(--color-site-2, #287dfa) !important;
    color: #ffffff !important;
}

#sidebar .btn-info.navbar-btn img {
    width: 16px;
    height: 16px;
}

#sidebar .btn-info.navbar-btn:hover img {
    filter: brightness(0) invert(1); /* Devient blanc au survol */
}

/* La fenêtre modale Mobile */
#sidebar-mobile .modal-content {
    border-radius: var(--border-radius, 8px);
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    font-family: var(--font, 'Poppins', sans-serif);
}

#sidebar-mobile .modal-header {
    background-color: #f8fafd;
    border-bottom: 1px solid var(--color-border, #C7DBEB);
    padding: 15px 20px;
    border-top-left-radius: var(--border-radius, 8px);
    border-top-right-radius: var(--border-radius, 8px);
    display: flex;
    align-items: center;
    justify-content: start;
}

#sidebar-mobile .modal-title {
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
}

#sidebar-mobile .modal-body {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto; /* Permet le défilement si la liste est longue */
}

/* Bouton de validation final dans la modale */
#sidebar-mobile .modal-footer {
    border-top: 1px solid var(--color-border, #C7DBEB);
    padding: 15px 20px;
}

#sidebar-mobile .btn-secondary {
    background-color: var(--color-site-1, #ff6e00) !important;
    color: #ffffff !important;
    border: none !important;
    width: 100%;
    height: 44px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: var(--border-radius, 4px);
    transition: background-color 0.2s ease;
}

#sidebar-mobile .btn-secondary:hover {
    background-color: #e56200 !important;
}