/**
 * Booking Engine — Styles front-end
 * Fidèle aux designs : booking-preview/form-full-body.html + form-full-top-sticky.html
 *
 * Palette :
 *   #1a1f3c  — bleu foncé (tabs actives, dates sélectionnées, icônes départ)
 *   #3ab54a  — vert accent (radio, icônes retour/pax, bouton, range-end, today)
 *   #e6f4e9  — vert clair (in-range)
 *   #e8e8e8  — gris bordure
 *   #999     — gris label
 *
 * Variables thème héritées :
 *   --header-height           (custom.js du thème enfant)
 *   --booking-engine-sticky-top (calculé par booking-engine.js)
 */

/* ============================================================
   1. RESET & WRAPPER
   ============================================================ */

.booking-engine-wrapper *,
.booking-engine-wrapper *::before,
.booking-engine-wrapper *::after {
    box-sizing: border-box;
}

.booking-engine-wrapper {
    font-family: 'Nunito', sans-serif;
    /*width: 100%;*/
    max-width: var(--global-content-width, var(--wp--style--global--wide-size));
    position: relative;
    margin: auto;
    padding: 0 10px;
}

/* ============================================================
   2. IFRAME
   ============================================================ */

.be-iframe-wrapper { width: 100%; overflow: hidden; }
.be-iframe { display: block; width: 100%; height: 260px; border: none; }
.be-notice { padding: 16px; color: #555; font-style: italic; text-align: center; }

/* ============================================================
   3. ÉLÉMENTS COMMUNS (tabs, radio, champs, sélects, bouton)
   ============================================================ */

/* Tabs */
.be-tabs {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.be-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    background: rgb(245, 245, 245);
    color: #000;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    border-radius: 10px 10px 0 0;
}

.be-tab--active,
.be-tab--dark { background: var(--fluo-green); color: #fff; font-weight: 700;}
.be-tab--light { background: #fff; color: #333; }
.be-tab svg { flex-shrink: 0; }
button.be-tab:focus{ background-color: none; }

.be-tab.higthligth{
    /*padding: 23px 18px 23px;
    background: rgba(243, 240, 59, 0.6);*/
}

/* Trip options */
.be-trip-options {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    padding-bottom: 6px;
}

.be-trip-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    user-select: none;
}

.be-trip-label input[type="radio"] { display: none; }

.be-radio-dot {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid #fff;
    flex-shrink: 0;
    transition: all 0.2s;
}

.be-trip-label input:checked ~ .be-radio-dot {
    border-color: #3ab54a;
    background: #3ab54a;
    box-shadow: inset 0 0 0 3px #fff;
}

/* Champ générique */
.be-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 20px 12px;
    border-right: 1px solid #e8e8e8;
    min-width: 0;
    position: relative;
}

.be-field:last-of-type { border-right: none; }

.be-field-label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.be-field-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Select */
.be-select {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--hard-green);
    background: transparent;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.be-select option { font-weight: 400; }

/* Input readonly (pax) */
.be-input-readonly {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    color: #1a1f3c;
    background: transparent;
    flex: 1;
    min-width: 0;
    cursor: default;
}

/* Chevron */
.be-chevron { flex-shrink: 0; color: #bbb; }

/* Icône calendrier */
.be-cal-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--fluo-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s;
}
#be-icon-retour{background-color: var(--fluo-green);}
.be-cal-icon--green { background: #3ab54a; }
.be-cal-icon:hover { opacity: 0.85; }

/* Icône avion dans sticky */
.be-field-icon { flex-shrink: 0; color: #3ab54a; display: flex; align-items: center; }
.be-field-icon--green { color: #3ab54a; }

/* Icône passagers */
.be-pax-icon { color: #3ab54a; flex-shrink: 0; }

/* --- Wrapper Custom Corsair Style --- */
.be-field--date-range {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 !important; /* Reset generic padding */
    position: relative;
}

.be-date-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 14px 20px 12px;
}

.be-date-separator {
    width: 1px;
    height: 60%;
    background-color: #e8e8e8;
    margin: 0;
}

/* Texte date */
.be-date-txt {
    font-size: 15px;
    font-weight: 700;
    color: #1a1f3c;
    flex: 1;
    cursor: pointer;
}
.be-date-txt--ph { /*color: #bbb; font-weight: 400;*/ }
.be-date-txt--dark { color: #222; }

/* Bouton rechercher */
.be-search-btn {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 0 36px;
    min-width: 170px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    border-radius: 0 12px 0 0;
}
.be-search-btn:hover { background: #2fa040; }
.be-search-btn:active { transform: scale(0.98); }
.be-search-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.be-search-btn--sticky { border-radius: 0 0 0 0; }

/* Erreurs inline */
.be-field-error {
    display: block;
    font-size: 11px;
    color: #c0392b;
    margin-top: 4px;
    min-height: 14px;
}

/* Erreur globale formulaire */
.be-form-error {
    padding: 10px 20px;
    background: #fdecea;
    border-left: 4px solid #e74c3c;
    color: #c0392b;
    font-size: 0.875rem;
}

/* ============================================================
   4. VUE CORPS DE PAGE (.be-body-form)
   ============================================================ */

.be-body-form { width: 100%; padding: 0 10px; }

/* Form card */
.be-form-card {
    background: #fff;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.2);
}

/* Form row */
.be-form-row {
    display: flex;
    align-items: stretch;
    border-radius: 0 12px 0 0;
    overflow: visible; /* IMPORTANT : permet au popup calendrier de sortir */
}

/* Barre inférieure */
.be-form-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding: 10px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
    min-height: 50px;
}

.be-currency-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
}

.be-currency-sel {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #444;
    background: transparent;
    cursor: pointer;
}

.be-promo-input {
    border: 1.5px solid #ddd;
    border-radius: 7px;
    padding: 7px 16px;
    width: 160px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.2s;
}
.be-promo-input:focus { border-color: #3ab54a; color: #333; }

/* ============================================================
   5. VUE STICKY (.be-sticky-bar)
   Cachée par défaut, affichée par JS via .be--sticky-active
   ============================================================ */

.be-sticky-bar {
    display: none; /* Caché par défaut */
    position: fixed;
    top: var(--booking-engine-sticky-top, var(--header-height, 80px));
    left: 0;
    right: 0;
    width: 100%;
    z-index: 200; /* En dessous du nav mobile (1000) */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
    animation: be-slide-in 0.2s ease;
    background-color: #fff;
    font-family: 'Nunito', sans-serif;
}

/* Activé par JS quand le sentinel sort du viewport */
.be--sticky-active .be-sticky-bar,
.be-sticky-bar.be-sticky-bar--active {
    display: block;
}

@keyframes be-slide-in {
    from { transform: translateY(-6px); opacity: 0.88; }
    to   { transform: translateY(0);    opacity: 1; }
}

.be-sticky-inner {
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Tabs sticky */
.be-tabs--sticky {
    align-items: center;
    gap: 0;
}

.be-tabs--sticky .be-tab {
    border-radius: 0;
    padding: 14px 18px;
    font-size: 15px;
}

.be-tabs--sticky .be-tab--dark { border-radius: 0x 0 0 0; }

.be-tabs--sticky .be-tab:not(:first-child) {
    border-left: 1px solid #e0e0e0;
}

.be-tabs.be-tabs--sticky{
    border-right: 1px solid #e0e0e0;
}

.be-sticky-panel{
    border-top: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
}

/* Trip options sticky */
.be-trip-options--sticky {
    background: #fff;
    padding: 14px 20px;
    border-radius: 0 10px 0 0;
    border-left: 1px solid #e0e0e0;
    gap: 6px;
    padding-bottom: 14px;
}

.be-trip-label--dark {
    color: #333;
    text-shadow: none;
}

.be-radio-dot--dark {
    border-color: #ccc;
}

.be-trip-label--dark input:checked ~ .be-radio-dot--dark {
    border-color: #3ab54a;
    background: #3ab54a;
    box-shadow: inset 0 0 0 3px #fff;
}

/* Form row sticky */
.be-form-row--sticky {
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: none;
    overflow: visible;
}

.be-field--sticky {
    padding: 12px 18px;
    flex: 0.8;
}

.be-field--sticky .be-field-label {
    font-size: 12px;
    color: #555;
    letter-spacing: 0.02em;
}

.be-field--sticky .be-select,
.be-field--sticky .be-input-readonly,
.be-field--sticky .be-date-txt {
    font-size: 15px;
    color: #222;
    font-weight: 600;
}

/* Sentinelle invisible (maintient l'espace dans le flux quand sticky est actif) */
.be-sentinel {
    display: block;
    visibility: hidden;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

/* ============================================================
   6. FLATPICKR OVRERRIDES (STYLE CORSAIR / CAMAIR-CO)
   ============================================================ */

.flatpickr-calendar {
    font-family: inherit;
    border: none !important;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.18) !important;
    border-radius: 16px !important;
    padding: 10px;
    margin-top: 10px;
}

.flatpickr-day {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #333 !important;
    border-radius: 8px !important;
    transition: background 0.1s, color 0.1s !important;
}

.flatpickr-day:hover:not(.flatpickr-disabled) {
    background: #e8f5e9 !important;
    color: #1a1f3c !important;
    border-color: #e8f5e9 !important;
}

.flatpickr-day.today {
    border-color: #3ab54a !important;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus {
    border-color: #3ab54a !important;
    background: #3ab54a !important;
    color: #fff !important;
}

/* Selection Extremities (Start/End Dots) */
.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.selected.prevMonthDay, 
.flatpickr-day.startRange.prevMonthDay, 
.flatpickr-day.endRange.prevMonthDay, 
.flatpickr-day.selected.nextMonthDay, 
.flatpickr-day.startRange.nextMonthDay, 
.flatpickr-day.endRange.nextMonthDay {
    background: #1a1f3c !important;
    border-color: #1a1f3c !important;
    color: #fff !important;
    border-radius: 50% !important;
    position: relative;
    z-index: 2;
}

/* In Range Continuous Bar */
.flatpickr-day.inRange, 
.flatpickr-day.prevMonthDay.inRange, 
.flatpickr-day.nextMonthDay.inRange, 
.flatpickr-day.today.inRange, 
.flatpickr-day.prevMonthDay.today.inRange, 
.flatpickr-day.nextMonthDay.today.inRange, 
.flatpickr-day:hover, 
.flatpickr-day.prevMonthDay:hover, 
.flatpickr-day.nextMonthDay:hover, 
.flatpickr-day:focus, 
.flatpickr-day.prevMonthDay:focus, 
.flatpickr-day.nextMonthDay:focus {
    background: #e6f4e9 !important;
    border-color: #e6f4e9 !important;
    color: #1a1f3c !important;
    border-radius: 0 !important;
    box-shadow: -5px 0 0 #e6f4e9, 5px 0 0 #e6f4e9 !important;
    z-index: 1;
}

.flatpickr-day.startRange {
    box-shadow: 10px 0 0 #e6f4e9 !important;
}
.flatpickr-day.endRange {
    box-shadow: -10px 0 0 #e6f4e9 !important;
}
.flatpickr-day.startRange.endRange {
    box-shadow: none !important;
}

/* Navigation */
.flatpickr-months .flatpickr-month {
    font-size: 15px;
    font-weight: 800;
    color: #1a1f3c;
    fill: #1a1f3c;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #1a1f3c !important;
}
.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: #3ab54a !important;
}
.flatpickr-weekday {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #ccc !important;
    text-transform: uppercase !important;
}

/* ============================================================
   7. RESPONSIVE
   ============================================================ */

/* Large (≥ 1600px) */
@media (min-width: 1600px) {
    .be-body-form { padding: 0 60px; }
    .be-tab { padding: 14px 34px; font-size: 15px; }
    .be-field { padding: 16px 24px 14px; }
    .be-search-btn { font-size: 17px; min-width: 200px; }
}

/* Tablette (768–1024px) */
@media (max-width: 1024px) and (min-width: 768px) {
    .be-body-form { padding: 0 20px; }
    .be-tab { padding: 11px 16px; font-size: 12px; }
    .be-field { padding: 12px 14px 10px; }
    .be-select, .be-date-txt, .be-input-readonly { font-size: 13px; }
    .be-search-btn { font-size: 13px; min-width: 130px; padding: 0 18px; }
    .be-sticky-inner { padding: 0 12px; }
    .be-tabs--sticky .be-tab { padding: 12px 16px; font-size: 13px; }
    .be-field--sticky { padding: 10px 12px; }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .be-body-form { padding: 0 10px; }

    .be-tabs { flex-wrap: wrap; }
    .be-tab { flex: 1 1 auto; padding: 10px 8px; font-size: 11px; justify-content: center; }
    .be-tab--active { /*flex: 1 1 100%;*/ font-size: 14px; padding: 13px; }

    .be-tab span{
        display: none;
    }
    .be-tab.be-tab--active span{
        display: block;
    }
    .be-trip-options { width: 100%; justify-content: start; padding: 8px 20px; background-color: #fff; color: #000;}
    .be-trip-label { color: #000; text-shadow: none;}
    .be-radio-dot { border-color: #444;}
    .be-form-card { border-radius: 0 0 12px 12px; }
    .be-form-row { flex-direction: column; overflow: visible; }
    .be-field { border-right: none; border-bottom: 1px solid #eee; }
    .be-field:last-of-type { border-bottom: none; }

    .be-search-btn {
        width: 100%;
        border-radius: 0 0 12px 12px;
        padding: 16px;
        min-width: unset;
    }

    .be-form-bottom { justify-content: space-between; }

    /* Sticky simplifié mobile */
    .be-sticky-inner { padding: 0; }
    .be-tabs--sticky { flex-wrap: wrap; }
    .be-tabs--sticky .be-tab { flex: 1 1 auto; padding: 10px 8px; font-size: 11px; justify-content: center; }
    .be-tabs--sticky .be-tab--dark { flex: 1 1 100%; font-size: 13px; }
    .be-trip-options--sticky { width: 100%; border-left: none; border-top: 1px solid #e0e0e0; border-radius: 0; justify-content: center; gap: 24px; }
    .be-form-row--sticky { flex-direction: column; border-radius: 0 0 10px 10px; }
    .be-field--sticky { border-right: none; border-bottom: 1px solid #e8e8e8; }
    .be-search-btn--sticky { width: 100%; border-radius: 0 0 10px 10px; padding: 16px; min-width: unset; }

    /* Calendrier pleine largeur */
    .be-cal-popup {
        flex-direction: column;
        gap: 16px;
        max-width: 100vw;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        border-radius: 0 0 16px 16px;
    }
    .be-cal-month { min-width: unset; }
}

/* ============================================================
   8. CUSTOM AIRPORT SELECT (.be-cs)
   Overlay visuel sur les <select> natifs masqués via JS.
   Les règles .be-select existantes ne sont PAS modifiées.
   ============================================================ */

/* Masque la <select> native (classe ajoutée par JS) */
.be-select--hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* Masque le chevron adjacent une fois le custom UI actif */
.be-chevron--hidden {
    display: none !important;
}

/* Conteneur principal — occupe la place du <select> */
.be-cs {
    flex: 1;
    min-width: 0;
    position: relative;
}

.be-cs button:focus{
    background-color: transparent !important;
}

/* ---- Bouton déclencheur ---- */
.be-cs-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    min-width: 0;
}

button.be-cs-trigger:hover{
    background-color: transparent;
    box-shadow: none;
}

.be-cs-trigger:focus-visible {
    outline: 2px solid var(--hard-green);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Icône pin localisation */
.be-cs-icon {
    flex-shrink: 0;
    color: var(--hard-green);
    display: flex;
    align-items: center;
}

/* Texte de la valeur sélectionnée — reprend le style visuel du .be-select */
.be-cs-value {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--hard-green);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* État placeholder */
.be-cs-value--ph {
    /*color: #bbb;
    font-weight: 400;*/
}

/* Badge IATA sur le trigger */
.be-cs-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: var(--hard-green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Chevron rotatif */
.be-cs-arrow {
    flex-shrink: 0;
    color: #bbb;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
}

.be-cs-trigger[aria-expanded="true"] .be-cs-arrow {
    transform: rotate(180deg);
}

/* ---- Panneau dropdown ---- */
.be-cs-panel {
    position: absolute;
    min-width: 280px;
    max-width: 340px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    z-index: 500;
    overflow: hidden;
    animation: be-cs-appear 0.15s ease;
}

/* Contexte sticky bar */
.be-cs-panel--sticky {
    min-width: 260px;
}

@keyframes be-cs-appear {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Champ de recherche ---- */
.be-cs-search-wrap {
    padding: 12px 14px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.be-cs-search {
    width: 100%;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fafafa;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.be-cs-search:focus {
    border-color: var(--hard-green);
    background: #fff;
}

.be-cs-search::placeholder {
    color: #bbb;
    font-weight: 400;
}

/* ---- Liste des options ---- */
.be-cs-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    max-height: 240px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.be-cs-list::-webkit-scrollbar { width: 4px; }
.be-cs-list::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 4px; }

/* ---- Option individuelle ---- */
.be-cs-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.1s;
    gap: 12px;
}

.be-cs-option:hover,
.be-cs-option--focused {
    background: #f0faf1;
}

.be-cs-option[aria-selected="true"] {
    background: #e6f4e9;
}

.be-cs-option--hidden {
    display: none;
}

.be-cs-opt-city {
    font-size: 14px;
    font-weight: 700;
    color: #1a1f3c;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.be-cs-option[aria-selected="true"] .be-cs-opt-city {
    color: var(--hard-green);
}

/* Badge IATA sur chaque option */
.be-cs-opt-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: #f0f0f0;
    color: #555;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 2px 6px;
    border-radius: 4px;
}

.be-cs-option[aria-selected="true"] .be-cs-opt-badge {
    background: var(--hard-green);
    color: #fff;
}

/* Message aucun résultat */
.be-cs-no-results {
    padding: 14px 16px;
    font-size: 13px;
    color: #aaa;
    text-align: center;
    font-style: italic;
    list-style: none;
}

/* ============================================================
   8b. RESPONSIVE — .be-cs sur mobile
   ============================================================ */

@media (max-width: 767px) {
    .be-cs-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0 !important;
        right: 0;
        max-width: 100vw;
        min-width: unset;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
        animation: be-cs-appear-up 0.2s ease;
        max-height: 70vh;
        overflow-y: auto;
        z-index: 600;
    }

    @keyframes be-cs-appear-up {
        from { opacity: 0; transform: translateY(20px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .be-cs-list { max-height: calc(70vh - 110px); }

    #be-sticky-bar, .be--sticky-active .be-sticky-bar, .be-sticky-bar.be-sticky-bar--active{
        display: none !important;
    }
}

/* ============================================================
   9. DROPDOWN PASSAGERS (.be-pax-popup)
   ============================================================ */
.be-pax-popup {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    min-width: 300px;
    overflow: hidden;
    animation: be-cs-appear 0.15s ease;
}

.be-pax-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px 10px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
    font-size: 14px;
    color: #222;
}

.be-pax-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #aaa;
    padding: 2px 6px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.be-pax-close:hover { color: #333; background: #f5f5f5; }

.be-pax-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 18px;
    border-bottom: 1px solid #f6f6f6;
}

.be-pax-info { display: flex; flex-direction: column; gap: 2px; }
.be-pax-cat  { font-size: 14px; font-weight: 600; color: #222; line-height: 1; }
.be-pax-age  { font-size: 11px; color: #aaa; }

.be-pax-counter {
    display: flex;
    align-items: center;
    gap: 14px;
}

.be-pax-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #3ab54a;
    background: #fff;
    color: #3ab54a;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.be-pax-btn:hover:not(:disabled) { background: #3ab54a; color: #fff; }
.be-pax-btn:disabled { border-color: #e0e0e0; color: #ccc; cursor: not-allowed; }

.be-pax-val {
    min-width: 28px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.be-pax-footer {
    padding: 10px 18px 6px;
    border-top: 1px solid #f0f0f0;
}

.be-pax-link {
    font-size: 13px;
    color: #3ab54a;
    text-decoration: none;
}
.be-pax-link:hover { text-decoration: underline; }

.be-pax-actions {
    padding: 12px 18px 14px;
    display: flex;
    justify-content: flex-end;
}

.be-pax-confirm {
    background: #3ab54a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 26px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}
.be-pax-confirm:hover { background: #2e9b3e; }

@media (max-width: 767px) {
    .be-pax-popup {
        position: fixed;
        bottom: 0;
        left: 0 !important;
        right: 0;
        top: auto !important;
        border-radius: 16px 16px 0 0;
        min-width: unset;
        width: 100%;
    }
}

.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover {
    background-color: #efefef;
    color: rgba(120, 120, 120, 0.3) !important;
    border-radius: 50% !important;
}
