/* =========================================
   BOOKING WIDGET CSS
   Airbnb-style premium search bar
   La Palme d'Azur — 2026
   ========================================= */

/* =========================================
   ROOT — Wrapper & Theme Variables
   ========================================= */

/* Variables sur :root — nécessaire pour les éléments hors .bw-root
   (voyage panel, overlay) appendés directement à document.body */
:root {
  --bw-cta: #E8623D;
  --bw-gold: #C6A769;
  --bw-sea: #2F5D73;
  --bw-sea-lt: #4A90B8;
  --bw-ink: #1B263B;
  --bw-bg: #F8F5F0;
  --bw-muted: #7A7268;
  --bw-border: #DDD8CF;
  --bw-white: #FFFFFF;
  --bw-hover: #F2EDE6;
  --bw-sel: #2F5D73;
  --bw-range: rgba(232, 98, 61, 0.13);
  --bw-shadow: 0 8px 24px rgba(27, 38, 59, 0.16);
  --bw-radius: 60px;
  --bw-card-r: 16px;
  --bw-ft: 'Cormorant Garamond', Georgia, serif;
  --bw-fb: 'Plus Jakarta Sans', system-ui, sans-serif;
  --bw-transition-fast: 0.2s ease;
  --bw-transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bw-root {
  font-family: var(--bw-fb);
  color: var(--bw-ink);
  position: relative;
}

/* =========================================
   PILL SEARCH BAR
   ========================================= */

.bw-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 6px 6px;
  border-radius: var(--bw-radius);
  background: var(--bw-white);
  border: 1px solid var(--bw-border);
  box-shadow: var(--bw-shadow, 0 8px 24px rgba(27, 38, 59, 0.16));
  max-width: 780px;
  margin: 0 auto;
  transition: box-shadow var(--bw-transition-fast);
}

.bw-bar:hover {
  box-shadow: 0 12px 32px rgba(27, 38, 59, 0.18);
}

/* =========================================
   SEARCH BAR GROUPS (Location, Dates, Guests)
   ========================================= */

.bw-bar__group {
  flex: 1;
  padding: 10px 18px;
  cursor: pointer;
  border-right: 1px solid var(--bw-border);
  transition: background-color var(--bw-transition-fast);
  user-select: none;
  position: relative;
}

.bw-bar__group:last-child {
  border-right: none;
}

.bw-bar__group:not(.bw-bar__btn):hover {
  background-color: var(--bw-bg);
  border-radius: var(--bw-radius, 60px);
}

.bw-bar__group.active {
  border: 2px solid var(--bw-cta);
  padding: 9px 17px;
  border-radius: var(--bw-radius, 60px);
  background-color: var(--bw-range);
  /* z-index retiré — créait un stacking context qui cachait le dropdown derrière l'overlay */
}

/* Dates field unifié */
.bw-bar__group--dates { flex: 1.6; }

.bw-bar__dates-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.bw-dates__from,
.bw-dates__to {
  font-size: 14px;
  font-weight: 500;
  color: var(--bw-muted);
  white-space: nowrap;
  transition: color var(--bw-transition-fast);
}

.bw-dates__from.filled,
.bw-dates__to.filled {
  color: var(--bw-ink);
}

.bw-dates__sep {
  font-size: 13px;
  color: var(--bw-muted);
  opacity: 0.6;
  flex-shrink: 0;
}

.bw-bar__group.active .bw-dates__from.filled,
.bw-bar__group.active .bw-dates__to.filled {
  color: var(--bw-ink);
}

.bw-bar__group.active .bw-dates__sep {
  color: var(--bw-cta);
  opacity: 1;
}

/* =========================================
   LABEL & VALUE
   ========================================= */

.bw-bar__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: var(--bw-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 3px;
  transition: color var(--bw-transition-fast);
}

.bw-bar__label svg {
  flex-shrink: 0;
  opacity: 0.75;
}

/* Indicateur champ actif — label orange quand le champ est ouvert */
.bw-bar__group.active .bw-bar__label {
  color: var(--bw-cta);
}

.bw-bar__value {
  font-size: 14px;
  font-weight: 500;
  color: var(--bw-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  transition: color var(--bw-transition-fast);
}

.bw-bar__value.filled {
  color: var(--bw-ink);
}


/* Bouton ✕ effacer date */
.bw-bar__clear {
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.07);
  border: none;
  cursor: pointer;
  color: var(--bw-muted);
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
  padding: 0;
  line-height: 1;
}

.bw-bar__clear:hover {
  background-color: rgba(0, 0, 0, 0.14);
  color: var(--bw-ink);
}

/* =========================================
   CTA BUTTON
   ========================================= */

.bw-bar__btn {
  flex-shrink: 0;
  background-color: var(--bw-cta);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--bw-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
  margin: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--bw-fb);
}

.bw-bar__btn:hover {
  background-color: #D24D28;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 98, 61, 0.3);
}

.bw-bar__btn:active {
  transform: translateY(0);
}

/* =========================================
   DROPDOWN BASE STYLES
   ========================================= */

.bw-dropdown {
  /* position: fixed sur desktop — positionné via JS avec getBoundingClientRect()
     Hors de tout stacking context, garantit l'affichage au-dessus du hero */
  position: fixed;
  top: 0;
  left: 0;
  border-radius: var(--bw-card-r);
  background: #ffffff;
  box-shadow: var(--bw-shadow, 0 8px 24px rgba(27, 38, 59, 0.16));
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity var(--bw-transition-fast), transform var(--bw-transition-fast);
  z-index: 400;
}

.bw-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* =========================================
   CALENDAR — DOUBLE MONTH VIEW
   ========================================= */

.bw-cal {
  width: 660px;
  padding: 24px;
  display: flex;
  gap: 32px;
}

.bw-cal__month {
  flex: 1;
}

.bw-cal__month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.bw-cal__month-title {
  font-family: var(--bw-ft);
  font-size: 18px;
  font-weight: 600;
  color: var(--bw-ink);
  text-transform: capitalize;
}

.bw-cal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--bw-border);
  border-radius: 50%;
  background: var(--bw-white);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  font-size: 16px;
  color: var(--bw-ink);
}

.bw-cal__nav:hover {
  border-color: var(--bw-cta);
  background-color: var(--bw-bg);
}

/* Navigation calendrier — mois gauche = prev · mois droit = next */
.bw-cal__month:first-child .bw-cal__nav--next { display: none; }
.bw-cal__month:last-child  .bw-cal__nav--prev { display: none; }

/* =========================================
   WEEKDAYS & DAYS GRID
   ========================================= */

.bw-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}

.bw-cal__weekday {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--bw-muted);
  font-weight: 600;
  text-align: center;
  padding: 8px 0;
  letter-spacing: 0.05em;
}

.bw-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

/* =========================================
   DAY CELLS
   ========================================= */

.bw-cal__day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.12s ease;
  color: var(--bw-ink);
  font-weight: 500;
  position: relative;
}

/* ── Aujourd'hui : gras + point corail sous la date ── */
.bw-cal__day.today:not(.selected):not(.disabled) {
  font-weight: 700;
  color: var(--bw-cta);
}
.bw-cal__day.today:not(.selected)::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--bw-cta);
}

/* ── Hover : fond corail très léger (style Airbnb/Expedia — pas de border) ── */
.bw-cal__day:hover:not(.disabled):not(.in-range):not(.hover-range):not(.hover-end):not(.selected) {
  background-color: rgba(232, 98, 61, 0.10);
}

.bw-cal__day.disabled {
  color: #C8C4BE;
  cursor: default;
  opacity: 0.4;
}

/* ── In-range : track corail pur — fond seul, zero border ── */
.bw-cal__day.in-range {
  background-color: rgba(232, 98, 61, 0.12);
  border-radius: 0;
  color: var(--bw-ink);
}

/* ── Row-edge pill — arrondi gauche (lundi) / droit (dimanche) — sans border ── */
.bw-cal__day.in-range.row-start:not(.range-start):not(.range-end) {
  border-radius: 50% 0 0 50%;
}

.bw-cal__day.in-range.row-end:not(.range-start):not(.range-end) {
  border-radius: 0 50% 50% 0;
}

/* Hover-range : mêmes arrondis de rangée */
.bw-cal__day.hover-range.row-start:not(.selected) {
  border-radius: 50% 0 0 50%;
}
.bw-cal__day.hover-range.row-end:not(.selected) {
  border-radius: 0 50% 50% 0;
}

/* ════════════════════════════════════════════════════════
   CERCLES D'ARRIVÉE ET DE DÉPART — Pattern OTA premium
   Principe : ::before crée la demi-bande derrière le cercle
   pour connecter seamlessly au strip in-range
   ════════════════════════════════════════════════════════ */

/* Cercle plein corail — base commune arrivée + départ, zero border visible */
.bw-cal__day.range-start,
.bw-cal__day.range-end {
  border-radius: 50%;
  background-color: var(--bw-cta);
  color: white;
  font-weight: 700;
  z-index: 1;
}

/* Override in-range sur les endpoints : garde le cercle pur, zero border */
.bw-cal__day.range-start.in-range,
.bw-cal__day.range-end.in-range {
  border-radius: 50%;
  background-color: var(--bw-cta);
}

/* Demi-bande à DROITE de l'arrivée → se connecte au track */
.bw-cal__day.range-start.in-range::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 48%; right: 0;
  background: rgba(232, 98, 61, 0.12);
  z-index: -1;
}

/* Demi-bande à GAUCHE du départ ← se connecte au track */
.bw-cal__day.range-end.in-range::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 48%;
  background: rgba(232, 98, 61, 0.12);
  z-index: -1;
}

/* ── Selected seul (arrivée sans départ encore) — zero border ── */
.bw-cal__day.selected {
  background-color: var(--bw-cta);
  color: white;
  border-radius: 50%;
  font-weight: 700;
  z-index: 1;
}

/* ── Hover range preview (avant pose départ) — fond seul, zero border ── */
.bw-cal__day.hover-range {
  background-color: rgba(232, 98, 61, 0.09);
  border-radius: 0;
}

/* Arrivée sélectionnée pendant le hover → garde le cercle pur, zero border */
.bw-cal__day.selected.hover-range {
  background-color: var(--bw-cta);
  color: white;
  border-radius: 50%;
  z-index: 1;
}

/* Demi-bande à droite de l'arrivée pendant le hover preview */
.bw-cal__day.selected.hover-range::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 48%; right: 0;
  background: rgba(232, 98, 61, 0.09);
  z-index: -1;
}

/* ── Départ potentiel survolé : cercle solide corail (style OTA — pas de ghost) ── */
.bw-cal__day.hover-end {
  background-color: var(--bw-cta);
  border-radius: 50%;
  color: white;
  font-weight: 700;
  z-index: 1;
}

/* Demi-bande à gauche du départ fantôme ← se connecte au hover-range */
.bw-cal__day.hover-end::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0; right: 48%;
  background: rgba(232, 98, 61, 0.09);
  z-index: -1;
}

.bw-cal__day.hover-range.range-start {
  border-radius: 50%;
}

.bw-cal__day.hover-range.range-end {
  border-radius: 50%;
}

/* =========================================
   GUEST PICKER
   ========================================= */

.bw-guests {
  padding: 24px;
  width: 320px;
}

.bw-guests__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--bw-border);
}

.bw-guests__row:last-child,
.bw-guests__row:last-of-type {
  border-bottom: none;
}

.bw-guests__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--bw-ink);
}

.bw-guests__sublabel {
  font-size: 12px;
  color: var(--bw-muted);
  margin-top: 2px;
}

.bw-guests__counter {
  display: flex;
  gap: 14px;
  align-items: center;
}

.bw-guests__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--bw-border);
  background: var(--bw-white);
  color: var(--bw-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
  flex-shrink: 0;
}

.bw-guests__btn:hover:not(:disabled) {
  border-color: var(--bw-ink);
  color: var(--bw-ink);
}

.bw-guests__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bw-guests__count {
  font-size: 16px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
  color: var(--bw-ink);
}

.bw-guests__group-hint {
  font-size: 11.5px;
  color: var(--bw-muted, #8a8279);
  text-align: center;
  padding: 5px 12px 8px;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 2px;
}
.bw-guests__group-hint--on {
  color: #27a96a;
  font-weight: 600;
}

/* =========================================
   HÉBERGEMENT TYPE SELECTOR
   ========================================= */

.bw-logement {
  padding: 8px 4px;
  min-width: 200px;
}

.bw-logement__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.12s ease;
}

.bw-logement__option:hover {
  background-color: var(--bw-bg);
}

.bw-logement__option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--bw-cta);
  border-radius: 4px;
}

.bw-logement__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.bw-logement__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--bw-ink);
}

.bw-logement__sub {
  font-size: 11px;
  color: var(--bw-muted);
}

/* =========================================
   OVERLAY
   ========================================= */

.bw-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(27, 38, 59, 0.55);
  z-index: 200;
  display: none;
  pointer-events: none; /* clics passent à travers — fermeture gérée par document listener */
}

.bw-overlay.active {
  display: block;
}

/* =========================================
   COMPACT VARIANT
   ========================================= */

.bw-bar--compact {
  max-width: 680px;
  box-shadow: 0 4px 12px rgba(27, 38, 59, 0.12);
  padding: 4px 4px;
}

.bw-bar--compact .bw-bar__group {
  padding: 8px 14px;
}

.bw-bar--compact .bw-bar__label {
  font-size: 8px;
}

.bw-bar--compact .bw-bar__value {
  font-size: 13px;
}

/* =========================================
   MOBILE SUMMARY BAR
   ========================================= */

.bw-mobile-summary {
  display: none;           /* hidden on desktop */
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bw-white);
  border: 1px solid var(--bw-border);
  border-radius: var(--bw-radius);
  box-shadow: var(--bw-shadow);
  max-width: 780px;
  margin: 0 auto;
}

.bw-mobile-chips {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow: hidden;
  flex-wrap: nowrap;
}

.bw-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--bw-ink);
  background: var(--bw-bg);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.bw-chip svg { opacity: 0.7; }

.bw-mobile-edit {
  flex-shrink: 0;
  padding: 8px 16px;
  background-color: var(--bw-cta);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--bw-fb);
}

/* =========================================
   MON VOYAGE PANEL (MOBILE FULLSCREEN)
   ========================================= */

.bw-voyage-panel {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--bw-white);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.bw-voyage-panel.open {
  transform: translateY(0);
}

.bw-voyage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--bw-border);
}

.bw-voyage-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--bw-ink);
}

.bw-voyage-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bw-bg);
  color: var(--bw-ink);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.bw-voyage-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 16px;
}

.bw-voyage-section {
  border-bottom: 1px solid var(--bw-border);
  padding: 16px 20px;
}

.bw-voyage-section__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bw-muted);
  margin-bottom: 10px;
}

/* Dates section — cliquable, style card */
.bw-voyage-section--dates {
  cursor: pointer;
  background-color: var(--bw-white);
  transition: background-color 0.12s ease;
}
.bw-voyage-section--dates:hover { background-color: var(--bw-bg); }

.bw-voyage-section__dates-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bw-bg);
  border: 1.5px solid var(--bw-border);
  border-radius: 10px;
}

.bw-voyage-dates-text {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--bw-ink);
}

.bw-voyage-dates-clear {
  background: rgba(0,0,0,0.08);
  border: none;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: 11px;
  cursor: pointer;
  color: var(--bw-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.bw-voyage-guests { display: flex; flex-direction: column; }

.bw-voyage-footer {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  border-top: 1px solid var(--bw-border);
  background: var(--bw-white);
}

.bw-voyage-clear {
  flex: 1;
  padding: 12px;
  background: none;
  border: 1.5px solid var(--bw-border);
  border-radius: var(--bw-card-r);
  font-size: 14px;
  font-weight: 600;
  color: var(--bw-ink);
  cursor: pointer;
  font-family: var(--bw-fb);
}

.bw-voyage-search {
  flex: 2;
  padding: 12px;
  background: var(--bw-cta);
  color: white;
  border: none;
  border-radius: var(--bw-card-r);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--bw-fb);
}

.bw-voyage-search:hover { background: #d4522f; }

/* =========================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ========================================= */

@media (max-width: 768px) {
  /* ── Barre directe sur mobile : champs en ligne + bouton dessous ── */
  .bw-bar {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 4px 4px 2px;
  }
  .bw-mobile-summary { display: none; }

  /* Champs compacts sur mobile */
  .bw-bar__group {
    padding: 9px 10px;
  }
  .bw-bar__group--dates {
    flex: 1.4;
  }
  /* Supprimer le séparateur après le dernier champ */
  .bw-bar__group[data-drop="logement"] {
    border-right: none;
  }
  .bw-bar__label {
    font-size: 9px;
    margin-bottom: 2px;
  }
  .bw-bar__value,
  .bw-dates__from,
  .bw-dates__to {
    font-size: 12px;
  }
  .bw-dates__sep {
    font-size: 11px;
  }

  /* Bouton Rechercher — 2ème ligne, pleine largeur */
  .bw-bar__btn {
    flex: 0 0 calc(100% - 8px);
    margin: 4px;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 14px;
  }

  /* ── Modal plein écran — animation slide-up (app native) ── */
  .bw-dropdown {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    opacity: 1;
    transform: translateY(100%);
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1100; /* au-dessus du header (900) et du menu mobile (1000) */
    background: var(--bw-white);
  }

  .bw-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    animation: none;
  }

  /* ── Modal Header ── */
  .bw-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--bw-border);
    background: var(--bw-white);
  }

  /* Suppression du handle — pas de bottom sheet, modal plein écran */
  .bw-sheet-handle {
    display: none;
  }

  .bw-sheet-title {
    font-family: var(--bw-fb);
    font-size: 16px;
    font-weight: 600;
    color: var(--bw-ink);
    flex: 1;
    text-align: left;
  }

  .bw-sheet-close {
    background: none;
    border: 1px solid var(--bw-border);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--bw-ink);
    padding: 6px 10px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
  }
  .bw-sheet-close:hover { background-color: var(--bw-bg); }

  /* ── Calendrier — 12 mois scrollables, défilement natif sans boutons nav ── */
  .bw-cal {
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
  }

  .bw-cal__month {
    margin-bottom: 28px;
  }

  /* Boutons prev/next cachés sur mobile — scroll natif à la place */
  .bw-cal .bw-cal__nav {
    display: none;
  }

  /* ── Modal Footer (calendrier) ── */
  .bw-sheet-footer {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--bw-border);
    background: var(--bw-white);
    flex-shrink: 0;
  }

  .bw-sheet-clear {
    flex: 1;
    padding: 13px;
    background: none;
    border: 1.5px solid var(--bw-border);
    border-radius: 10px;
    font-family: var(--bw-fb);
    font-size: 14px;
    font-weight: 500;
    color: var(--bw-ink);
    cursor: pointer;
    transition: border-color 0.15s ease;
  }
  .bw-sheet-clear:hover { border-color: var(--bw-ink); }

  .bw-sheet-apply {
    flex: 2;
    padding: 13px;
    background: var(--bw-cta);
    border: none;
    border-radius: 10px;
    font-family: var(--bw-fb);
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  .bw-sheet-apply:hover { background: #d9522e; }

  .bw-guests {
    width: 100%;
    padding: 20px 16px;
  }

  /* L'overlay n'est pas visible derrière le modal plein écran — on le désactive sur mobile */
  .bw-overlay {
    display: none !important;
  }

  /* ── Footer Voyageurs / Hébergement ── */
  .bw-guests-footer {
    padding: 14px 20px;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--bw-border);
    background: var(--bw-white);
    flex-shrink: 0;
  }

  .bw-guests-apply {
    width: 100%;
    padding: 13px;
    background: var(--bw-cta);
    border: none;
    border-radius: 10px;
    font-family: var(--bw-fb);
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  .bw-guests-apply:hover { background: #d9522e; }
}

/* =========================================
   ANIMATION & TRANSITIONS
   ========================================= */

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bw-dropdown.open {
  animation: slideIn var(--bw-transition-fast) ease;
}

/* =========================================
   ACCESSIBILITY & PRINT
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .bw-overlay,
  .bw-dropdown {
    display: none !important;
  }
}

/* =========================================
   UTILITY CLASSES
   ========================================= */

.bw-hidden {
  display: none !important;
}

.bw-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* =========================================
   RESTRICTION UI — booking-restrictions.js
   ========================================= */

/* Restricted day (wrong weekday in season) — greyed but clickable (Airbnb style) */
.bw-cal__day.restricted {
  color: var(--bw-muted) !important;
  opacity: 0.55;
  cursor: pointer;
}

/* Departure too close to arrival (< minNights) */
.bw-cal__day.closed-dep {
  color: var(--bw-muted) !important;
  opacity: 0.30;
  cursor: not-allowed;
}

/* Exact minimum valid departure date — teal ring */
.bw-cal__day.min-dep {
  box-shadow: inset 0 0 0 2px var(--bw-sea);
  border-radius: 50%;
}

/* Season banner: amber strip above calendar */
.bw-cal-extras {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px 4px;
}

.bw-season-banner {
  background: #FFF8E7;
  border: 1px solid #F0C44A;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #6B4D00;
  line-height: 1.4;
}

/* Min-stay bar: teal left-border after arrival selected */
.bw-min-stay {
  background: rgba(47, 93, 115, 0.08);
  border-left: 3px solid var(--bw-sea);
  border-radius: 0 6px 6px 0;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--bw-sea);
  font-weight: 500;
}

/* Quick-pick suggestion chips */
.bw-cal-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
}

.bw-cal-chips__label {
  font-size: 12px;
  color: var(--bw-muted);
  white-space: nowrap;
}

.bw-cal-chip {
  background: none;
  border: 1px solid var(--bw-cta);
  border-radius: 20px;
  color: var(--bw-cta);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.bw-cal-chip:hover {
  background: var(--bw-cta);
  color: #fff;
}

/* Restriction hint box: coral, slides in */
.bw-cal-hint-msg {
  display: none;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(232, 98, 61, 0.08);
  border: 1px solid rgba(232, 98, 61, 0.30);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #8B2E0F;
  animation: bw-hint-in 0.18s ease;
}
.bw-cal-hint-msg.visible {
  display: flex;
}

@keyframes bw-hint-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bw-hint-apply {
  background: var(--bw-cta);
  border: none;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.bw-hint-apply:hover {
  opacity: 0.88;
}

/* ── Date Summary Bar (Booking.com style) ── */
.bw-cal-date-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px 14px;
  font-size: 13px;
  min-height: 36px;
  border-top: 1px solid var(--bw-border);
  margin-top: 4px;
  gap: 1px;
  flex-wrap: wrap;
}

.bw-dbar__arrive {
  font-weight: 700;
  color: var(--bw-ink);
}

.bw-dbar__sep {
  color: var(--bw-muted);
}

.bw-dbar__depart {
  font-weight: 700;
  color: var(--bw-ink);
}

.bw-dbar__depart--empty {
  font-weight: 400;
  color: var(--bw-muted);
  font-style: italic;
}

.bw-dbar__depart--hover {
  font-weight: 600;
  color: var(--bw-muted);
}

.bw-dbar__nights {
  font-weight: 400;
  color: var(--bw-muted);
  margin-left: 2px;
}

.bw-dbar__nights--hover {
  opacity: 0.7;
}

/* Hidden on mobile — sheet footer handles it */
@media (max-width: 767px) {
  .bw-cal-date-bar { display: none; }
}

/* ── Promo Code Toggle ── */
.bw-promo {
  margin-top: 10px;
  text-align: center;
}
.bw-promo__toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px;
  transition: color 0.2s;
}
.bw-promo__toggle:hover { color: #fff; }
.bw-promo__field { margin-top: 8px; }
.bw-promo__input {
  width: min(220px, 80%);
  padding: 9px 14px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 13px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  outline: none;
}
.bw-promo__input::placeholder { color: rgba(255,255,255,0.5); }
.bw-promo__input:focus { border-color: rgba(255,255,255,0.9); }

/* Restricted arrival selected — amber warning state */
.bw-cal__day.restricted-selected {
  background-color: #F59E0B !important;
  color: #fff !important;
}
.bw-cal__day.restricted-selected.hover-range::before {
  background: rgba(245, 158, 11, 0.15) !important;
}

/* Warning variant — premium 2-line card for restricted arrival */
.bw-cal-hint-msg--warning {
  background: linear-gradient(to right, rgba(245,158,11,0.07), rgba(30,41,59,0.03));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 3px solid #F59E0B;
  border-radius: 10px;
  padding: 11px 14px;
  align-items: stretch;
  gap: 0;
}
.bw-cal-hint-msg--warning .bw-hint-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.bw-cal-hint-msg--warning .bw-hint-icon {
  flex-shrink: 0;
  color: #D97706;
  margin-top: 1px;
}
.bw-cal-hint-msg--warning .bw-hint-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1B263B;
  line-height: 1.4;
}
.bw-cal-hint-msg--warning .bw-hint-sub {
  display: block;
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.5;
  margin-top: 3px;
}
