/* Holeedays PMS & Channel manager — formulaire de recherche.
 * Toutes les règles sont préfixées .hbw pour ne pas interférer avec le thème.
 * Les couleurs arrivent en variables CSS posées inline par le rendu PHP. */

.hbw {
  --hbw-primary: #2563eb;
  --hbw-primary-dark: #2055ca;
  --hbw-primary-light: #4a7ded;
  --hbw-primary-rgb: 37, 99, 235;
  --hbw-primary-contrast: #ffffff;
  --hbw-surface: #ffffff;
  --hbw-text: #1f2937;
  --hbw-heading: #111827;
  --hbw-muted: rgba(55, 65, 81, 0.8);
  --hbw-field-bg: #ffffff;
  --hbw-field-border: rgba(148, 163, 184, 0.7);
  --hbw-field-text: #111827;
  --hbw-radius: 16px;
  --hbw-field-radius: 10px;

  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.5em;
  padding: 24px;
  color: var(--hbw-text);
  background: var(--hbw-surface);
  border-radius: var(--hbw-radius);
  font-size: 16px;
  line-height: 1.4;
  color-scheme: var(--hbw-scheme, light);
  container: hbw / inline-size;
}

.hbw *,
.hbw *::before,
.hbw *::after {
  box-sizing: border-box;
}

.hbw__form {
  margin: 0;
}

.hbw__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hbw__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.hbw__field label {
  margin: 0;
  color: var(--hbw-muted);
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hbw .hbw__field input,
.hbw .hbw__field select {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  color: var(--hbw-field-text);
  background: var(--hbw-field-bg);
  border: 1px solid var(--hbw-field-border);
  border-radius: var(--hbw-field-radius);
  box-shadow: none;
  font: inherit;
  font-size: 16px; /* évite le zoom automatique iOS */
  line-height: 1.2;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hbw .hbw__field input[type="date"] {
  cursor: pointer;
}

.hbw .hbw__field input:focus,
.hbw .hbw__field select:focus {
  outline: none;
  border-color: var(--hbw-primary);
  box-shadow: 0 0 0 3px rgba(var(--hbw-primary-rgb), 0.25);
}

.hbw .hbw__field input[aria-invalid="true"] {
  border-color: #dc2626;
}

.hbw__error {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--hbw-field-radius);
  font-size: 0.9em;
}

.hbw__error[hidden] {
  display: none;
}

.hbw__actions {
  margin-top: 18px;
}

.hbw .hbw__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 22px;
  color: var(--hbw-primary-contrast);
  background: var(--hbw-primary);
  border: 0;
  border-radius: var(--hbw-field-radius);
  box-shadow: none;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.hbw .hbw__submit:hover {
  color: var(--hbw-primary-contrast);
  background: var(--hbw-primary-dark);
}

.hbw .hbw__submit:focus-visible {
  outline: 3px solid rgba(var(--hbw-primary-rgb), 0.45);
  outline-offset: 2px;
}

/* ---------- Disposition horizontale (bandeau) ---------- */

.hbw--horizontal .hbw__form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
}

.hbw--horizontal .hbw__fields {
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  gap: 14px;
}

.hbw--horizontal .hbw__field {
  flex: 1 1 150px;
}

.hbw--horizontal .hbw__field--guests {
  flex: 0 1 140px;
}

.hbw--horizontal .hbw__actions {
  flex: 0 0 auto;
  margin-top: 0;
}

.hbw--horizontal .hbw__error {
  order: 3;
  flex-basis: 100%;
  margin-top: 0;
}

@media (max-width: 640px) {
  .hbw {
    padding: 18px;
  }
}

/* Repli selon la largeur réelle du formulaire (colonne étroite, mobile). */
@container hbw (max-width: 640px) {
  .hbw--horizontal .hbw__fields,
  .hbw--horizontal .hbw__actions {
    flex-basis: 100%;
  }

  /* En étroit, le bandeau reprend la grille 2 colonnes de la version verticale. */
  .hbw--horizontal .hbw__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container hbw (max-width: 300px) {
  .hbw__fields,
  .hbw--horizontal .hbw__fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Design : moderne ---------- */

.hbw--modern {
  border: 1px solid rgba(var(--hbw-primary-rgb), 0.14);
  box-shadow: 0 18px 40px -24px rgba(var(--hbw-primary-rgb), 0.55), 0 2px 6px rgba(15, 23, 42, 0.06);
}

.hbw--modern .hbw__submit {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hbw-primary-light), var(--hbw-primary));
  box-shadow: 0 10px 22px -12px rgba(var(--hbw-primary-rgb), 0.9);
}

.hbw--modern .hbw__submit:hover {
  background: linear-gradient(135deg, var(--hbw-primary), var(--hbw-primary-dark));
  transform: translateY(-1px);
}

/* ---------- Design : classique ---------- */

.hbw--classic {
  --hbw-radius: 4px;
  --hbw-field-radius: 2px;
  border: 1px solid var(--hbw-field-border);
  outline: 1px solid var(--hbw-field-border);
  outline-offset: -7px;
  padding: 28px;
}

.hbw--classic .hbw__field label {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92em;
}

.hbw--classic .hbw__submit {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85em;
}

/* ---------- Design : minimal ---------- */

.hbw--minimal {
  --hbw-radius: 0;
  --hbw-field-radius: 0;
  padding: 8px 0;
  background: transparent;
}

.hbw--minimal .hbw__field input,
.hbw--minimal .hbw__field select {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  border-width: 0 0 1px;
}

.hbw--minimal .hbw__field input:focus,
.hbw--minimal .hbw__field select:focus {
  box-shadow: 0 1px 0 0 var(--hbw-primary);
}

.hbw--minimal .hbw__submit {
  width: auto;
}

.hbw--minimal.hbw--vertical .hbw__submit {
  width: 100%;
}

/* ---------- Designs en bandeau (barre, pilule) : base commune ---------- */

.hbw--inline {
  padding: 0;
}

.hbw--inline .hbw__form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.hbw--inline .hbw__fields {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  gap: 0;
}

.hbw--inline .hbw__field {
  flex: 1 1 0;
  justify-content: center;
  gap: 4px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.hbw--inline .hbw__field:focus-within {
  background: rgba(var(--hbw-primary-rgb), 0.06);
}

.hbw--inline .hbw__field label {
  font-size: 0.66em;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.hbw--inline .hbw__field input,
.hbw--inline .hbw__field select {
  min-height: 28px;
  padding: 0;
  color: var(--hbw-field-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  font-size: 17px;
}

.hbw--inline .hbw__field input:focus,
.hbw--inline .hbw__field select:focus {
  box-shadow: none;
}

.hbw--inline .hbw__actions {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
}

.hbw--inline .hbw__submit {
  width: auto;
  height: 100%;
  padding: 0 44px;
  font-size: 0.78em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hbw--inline .hbw__error {
  order: 3;
  flex-basis: 100%;
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
}

@container hbw (max-width: 760px) {
  .hbw--inline .hbw__fields {
    display: grid;
    flex-basis: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hbw--inline .hbw__actions {
    flex-basis: 100%;
  }

  .hbw--inline .hbw__submit {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
  }
}

@container hbw (max-width: 300px) {
  .hbw--inline .hbw__fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Design : barre ---------- */

.hbw--bar {
  --hbw-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 18px 44px -20px rgba(15, 23, 42, 0.35);
}

.hbw--bar .hbw__field + .hbw__field {
  border-left: 1px solid var(--hbw-field-border);
  border-left-color: rgba(148, 163, 184, 0.35);
}

.hbw--bar .hbw__submit {
  border-radius: 0;
}

@container hbw (max-width: 760px) {
  .hbw--bar .hbw__field {
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  }

  .hbw--bar .hbw__field:nth-child(odd) {
    border-left: 0;
  }
}

/* ---------- Design : pilule ---------- */

/* L'habillage est porté par le formulaire et non par .hbw : une requête de
   conteneur ne peut pas styler le conteneur lui-même, l'arrondi mobile
   ne s'appliquerait jamais. */
.hbw.hbw--pill {
  background: transparent;
}

.hbw--pill .hbw__form {
  padding: 6px;
  background: var(--hbw-surface);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 32px -16px rgba(15, 23, 42, 0.35);
}

.hbw--pill .hbw__field {
  position: relative;
  padding: 10px 26px;
  border-radius: 999px;
}

.hbw--pill .hbw__field + .hbw__field::before {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 0;
  width: 1px;
  background: rgba(148, 163, 184, 0.45);
}

.hbw--pill .hbw__field:hover {
  background: rgba(15, 23, 42, 0.04);
}

.hbw--pill .hbw__submit {
  border-radius: 999px;
  padding: 0 32px;
}

.hbw--pill .hbw__error {
  margin-top: 6px;
  border-radius: 999px;
  border-width: 1px;
}

@container hbw (max-width: 760px) {
  .hbw--pill .hbw__form {
    padding: 8px;
    border-radius: 24px;
  }

  .hbw--pill .hbw__field {
    border-radius: 16px;
    padding: 10px 16px;
  }

  .hbw--pill .hbw__error {
    border-radius: 12px;
  }

  .hbw--pill .hbw__field + .hbw__field::before {
    display: none;
  }

  /* Même retrait autour du bouton sur les côtés et en bas. */
  .hbw--pill .hbw__actions {
    padding: 6px 8px 8px;
  }

  .hbw--pill .hbw__submit {
    padding: 0 16px;
  }
}

/* ---------- Design : verre (sur photo) ---------- */

/* Les variables de couleur sont posées en ligne : on fixe ici les propriétés directement. */
.hbw.hbw--glass {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.55);
  color-scheme: light;
}

.hbw--glass .hbw__field label {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hbw--glass .hbw__field input,
.hbw--glass .hbw__field select {
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(255, 255, 255, 0.6);
}

.hbw--glass .hbw__submit {
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .hbw * {
    transition: none !important;
  }
  .hbw .hbw__submit:hover {
    transform: none;
  }
}

/* ---------- Champs enrichis (dates, voyageurs) ---------- */

.hbw .hbw__field input.hbw__picker-display {
  padding-right: 40px;
  cursor: pointer;
  caret-color: transparent;
  text-overflow: ellipsis;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

.hbw .hbw__field input.hbw__date-display {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2.5'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E");
}

.hbw .hbw__field input.hbw__guests-display {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.6-3.6 3.2-5.5 6.5-5.5s5.9 1.9 6.5 5.5'/%3E%3Cpath d='M16 4.8a3.3 3.3 0 0 1 0 6.4M18.5 14.8c1.7.8 2.7 2.5 3 5.2'/%3E%3C/svg%3E");
}

.hbw .hbw__field input.hbw__picker-display::placeholder {
  color: var(--hbw-muted);
  opacity: 0.85;
}

.hbw--inline .hbw__field input.hbw__picker-display,
.hbw--minimal .hbw__field input.hbw__picker-display {
  padding-right: 26px;
  background-position: right 0 center;
}

/* Formulaire étroit (barre latérale, colonne) : l'icône laisse plus de place au texte. */
@container hbw (max-width: 400px) {
  .hbw .hbw__field input.hbw__picker-display {
    padding-right: 30px;
    padding-left: 10px;
    background-position: right 9px center;
    background-size: 16px 16px;
  }

  .hbw--inline .hbw__field input.hbw__picker-display,
  .hbw--minimal .hbw__field input.hbw__picker-display {
    padding-left: 0;
    padding-right: 22px;
    background-position: right 0 center;
  }
}

/* Champ dont le panneau est ouvert */
.hbw .hbw__field.is-active input.hbw__picker-display {
  border-color: var(--hbw-primary);
  box-shadow: 0 0 0 3px rgba(var(--hbw-primary-rgb), 0.25);
}

.hbw--inline .hbw__field.is-active {
  background: rgba(var(--hbw-primary-rgb), 0.08);
}

.hbw--inline .hbw__field.is-active input.hbw__picker-display {
  box-shadow: none;
}

.hbw--minimal .hbw__field.is-active input.hbw__picker-display {
  box-shadow: 0 1px 0 0 var(--hbw-primary);
}

/* ---------- Panneau flottant partagé (ajouté dans <body>) ---------- */

.hbw-pop {
  --hbw-primary: #2563eb;
  --hbw-primary-dark: #2055ca;
  --hbw-primary-rgb: 37, 99, 235;
  --hbw-primary-contrast: #ffffff;
  --hbw-pop-ink: #0f172a;
  --hbw-pop-muted: #64748b;
  --hbw-pop-line: #e2e8f0;
  --hbw-pop-band: rgba(var(--hbw-primary-rgb), 0.12);

  position: fixed;
  z-index: 100000;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100vw - 16px);
  padding: 20px 22px 16px;
  color: var(--hbw-pop-ink);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow: 0 28px 64px -24px rgba(15, 23, 42, 0.4), 0 4px 14px rgba(15, 23, 42, 0.06);
  font-size: 15px;
  line-height: 1.2;
  text-align: left;
  opacity: 0;
  transform: translateY(6px) scale(0.985);
  transform-origin: top left;
  transition: opacity 0.16s ease, transform 0.16s ease;
  color-scheme: light;
}

.hbw-pop[hidden],
.hbw-pop-backdrop[hidden] {
  display: none;
}

.hbw-pop.is-open {
  opacity: 1;
  transform: none;
}

.hbw-pop *,
.hbw-pop *::before,
.hbw-pop *::after {
  box-sizing: border-box;
}

/* Remise à zéro : les thèmes WordPress stylent lourdement les <button>. */
.hbw-pop button,
.hbw-pop button:hover,
.hbw-pop button:focus,
.hbw-pop button:active {
  -webkit-appearance: none;
  appearance: none;
  width: auto;
  height: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: inherit;
  letter-spacing: normal;
  line-height: inherit;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  cursor: pointer;
}

.hbw-pop button:focus {
  outline: none;
}

/* Appuis rapides : pas de zoom au double tap (iOS), pas de sélection de texte au double clic. */
.hbw-pop button,
.hbw-guests__stepper,
.hbw-cal__days {
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hbw-pop__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hbw-pop-line);
}

.hbw-pop__summary {
  color: var(--hbw-pop-muted);
  font-size: 0.9em;
}

.hbw-pop__summary strong {
  margin-right: 8px;
  color: var(--hbw-pop-ink);
  font-weight: 700;
}

.hbw-pop__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.hbw-pop button.hbw-pop__btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9em;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.hbw-pop button.hbw-pop__btn--ghost {
  padding-left: 12px;
  padding-right: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hbw-pop button.hbw-pop__btn--ghost:hover {
  background: #f1f5f9;
  text-decoration: underline;
}

.hbw-pop button.hbw-pop__btn--primary {
  color: var(--hbw-primary-contrast);
  background: var(--hbw-primary);
}

.hbw-pop button.hbw-pop__btn--primary:hover {
  color: var(--hbw-primary-contrast);
  background: var(--hbw-primary-dark);
}

.hbw-pop button.hbw-pop__btn:focus-visible {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--hbw-primary);
}

/* ---------- Calendrier de séjour ---------- */

.hbw-cal__head {
  position: relative;
  margin-bottom: 6px;
}

.hbw-cal__titles {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 36px;
}

.hbw-cal__title {
  padding: 8px 40px;
  font-size: 1em;
  font-weight: 650;
  text-align: center;
  text-transform: capitalize;
}

.hbw-pop button.hbw-cal__nav {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--hbw-pop-ink);
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background-color 0.15s ease;
}

.hbw-pop button.hbw-cal__nav--prev { left: -6px; }
.hbw-pop button.hbw-cal__nav--next { right: -6px; }

.hbw-pop button.hbw-cal__nav:hover {
  background: #f1f5f9;
}

.hbw-pop button.hbw-cal__nav:focus-visible {
  box-shadow: 0 0 0 2px var(--hbw-primary);
}

.hbw-pop button.hbw-cal__nav:disabled {
  opacity: 0.28;
  cursor: default;
  background: none;
}

.hbw-cal__months {
  display: grid;
  grid-auto-columns: 280px;
  grid-auto-flow: column;
  gap: 36px;
}

.hbw-cal__weekdays,
.hbw-cal__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.hbw-cal__weekday {
  padding: 8px 0 6px;
  color: var(--hbw-pop-muted);
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.hbw-cal__days {
  row-gap: 2px;
}

.hbw-pop button.hbw-cal__day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
}

.hbw-cal__num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid transparent;
  border-radius: 50%;
  font-size: 0.93em;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.hbw-pop button.hbw-cal__day:hover .hbw-cal__num {
  border-color: var(--hbw-pop-ink);
}

.hbw-pop button.hbw-cal__day:focus-visible .hbw-cal__num {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--hbw-primary);
}

.hbw-pop button.hbw-cal__day.is-today .hbw-cal__num {
  font-weight: 700;
}

.hbw-pop button.hbw-cal__day.is-today .hbw-cal__num::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: var(--hbw-primary);
  border-radius: 50%;
}

.hbw-pop button.hbw-cal__day[aria-disabled="true"] {
  cursor: default;
}

.hbw-pop button.hbw-cal__day[aria-disabled="true"] .hbw-cal__num {
  color: #cbd5e1;
  border-color: transparent;
  text-decoration: line-through;
}

/* Bande de la période (continue d'une case à l'autre) */
.hbw-pop button.hbw-cal__day.is-in-range,
.hbw-cal.is-previewing .hbw-cal__day.is-preview {
  background: var(--hbw-pop-band);
}

.hbw-pop button.hbw-cal__day.is-start.has-range,
.hbw-cal.is-previewing .hbw-cal__day.is-start {
  background: linear-gradient(90deg, transparent 50%, var(--hbw-pop-band) 50%);
}

.hbw-pop button.hbw-cal__day.is-end,
.hbw-cal.is-previewing .hbw-cal__day.is-preview-end {
  background: linear-gradient(90deg, var(--hbw-pop-band) 50%, transparent 50%);
}

.hbw-pop button.hbw-cal__day.is-start .hbw-cal__num,
.hbw-pop button.hbw-cal__day.is-end .hbw-cal__num {
  color: var(--hbw-primary-contrast);
  background: var(--hbw-primary);
  border-color: var(--hbw-primary);
  font-weight: 650;
}

.hbw-cal.is-previewing .hbw-cal__day.is-preview-end .hbw-cal__num {
  border-color: var(--hbw-primary);
  font-weight: 650;
}

/* Pendant l'aperçu, l'ancienne période s'efface */
.hbw-cal.is-previewing .hbw-cal__day.is-in-range:not(.is-preview),
.hbw-cal.is-previewing .hbw-cal__day.is-end:not(.is-preview-end) {
  background: none;
}

.hbw-cal.is-previewing .hbw-cal__day.is-end:not(.is-preview-end) .hbw-cal__num {
  color: inherit;
  background: none;
  border-color: transparent;
  font-weight: inherit;
}

/* ---------- Voyageurs ---------- */

.hbw-guests {
  width: 340px;
  padding-top: 8px;
}

.hbw-guests__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.hbw-guests__row + .hbw-guests__row {
  border-top: 1px solid var(--hbw-pop-line);
}

.hbw-guests__name {
  font-size: 1em;
  font-weight: 600;
}

.hbw-guests__stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hbw-pop button.hbw-guests__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--hbw-pop-ink);
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.hbw-pop button.hbw-guests__step:hover {
  color: var(--hbw-primary);
  background: rgba(var(--hbw-primary-rgb), 0.06);
  border: 1.5px solid var(--hbw-primary);
}

.hbw-pop button.hbw-guests__step:focus-visible {
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--hbw-primary);
}

.hbw-pop button.hbw-guests__step:disabled {
  color: #cbd5e1;
  background: none;
  border: 1.5px solid #e2e8f0;
  cursor: not-allowed;
}

.hbw-guests__value {
  min-width: 34px;
  font-size: 1.05em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.hbw-guests .hbw-pop__foot {
  margin-top: 4px;
}

/* ---------- Designs : on reprend le caractère de chaque formulaire ---------- */

.hbw-pop--classic { border-radius: 4px; }
.hbw-pop--classic .hbw-cal__title,
.hbw-pop--classic .hbw-guests__name { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.12em; }
.hbw-pop--classic button.hbw-pop__btn { border-radius: 2px; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78em; }
.hbw-pop--minimal { border-radius: 6px; }
.hbw-pop--minimal button.hbw-pop__btn { border-radius: 0; }
.hbw-pop--bar { border-radius: 16px; }
.hbw-pop--bar button.hbw-pop__btn--primary { border-radius: 8px; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.76em; }

/* ---------- Mobile : panneau en bas de l'écran ---------- */

.hbw-pop.is-sheet {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  max-width: none;
  max-height: 88vh;
  padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-width: 0;
  border-radius: 22px 22px 0 0;
  transform: translateY(32px);
  transform-origin: bottom center;
}

.hbw-pop.is-sheet.is-open {
  transform: none;
}

.hbw-pop.is-sheet::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 10px;
  background: #cbd5e1;
  border-radius: 999px;
}

.hbw-pop.is-sheet .hbw-cal__months {
  grid-auto-columns: minmax(0, 1fr);
}

.hbw-pop.is-sheet .hbw-cal__day {
  height: 46px;
}

.hbw-pop.is-sheet .hbw-cal__num {
  width: 42px;
  height: 42px;
  font-size: 1em;
}

.hbw-pop.is-sheet .hbw-guests__step {
  width: 42px;
  height: 42px;
}

.hbw-pop.is-sheet .hbw-pop__foot {
  position: sticky;
  bottom: calc(-14px - env(safe-area-inset-bottom, 0px));
  margin: 12px -16px 0;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #ffffff;
}

.hbw-pop.is-sheet .hbw-pop__actions {
  flex: 1 1 100%;
}

.hbw-pop.is-sheet .hbw-pop__btn--primary {
  flex: 1 1 auto;
  padding-top: 14px;
  padding-bottom: 14px;
  text-align: center;
}

.hbw-pop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hbw-pop-backdrop.is-open {
  opacity: 1;
}

html.hbw-pop-lock,
html.hbw-pop-lock body {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .hbw-pop,
  .hbw-pop-backdrop,
  .hbw-cal__num,
  .hbw-guests__step {
    transition: none;
  }
}

/* ---------- Message réservé aux administrateurs ---------- */

.hbw-admin-notice {
  margin: 0 0 12px;
  padding: 10px 14px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px dashed #fb923c;
  border-radius: 8px;
  font-size: 14px;
}
