/* ─────────────────────────────────────────────
 * HogaCloud Hotel Booking — frontend styles.
 *
 * Scoped under .hchb-booking / .hchb-confirmation so the host
 * theme cannot bleed in and we cannot bleed out. Mirrors the
 * admin brand palette: #344583 primary, #f9fafb backgrounds,
 * rounded corners (12px / 8px), Inter family.
 * ───────────────────────────────────────────── */

.hchb-booking {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--hchb-text, #1e293b);
  max-width: 980px;
  margin: 0 auto;
  line-height: 1.5;
}
.hchb-booking *,
.hchb-booking *::before,
.hchb-booking *::after { box-sizing: border-box; }

/* Theme-defense: some themes (Slider Revolution, Avada, builder
 * plugins) sometimes set pointer-events:none on parent containers
 * or wrap content in transformed layers. We explicitly re-enable
 * pointer events on every interactive element inside the form so
 * clicks always reach the button — instead of falling through to
 * the next focusable element (e.g. the date input opening its
 * native picker). */
.hchb-booking button,
.hchb-booking input,
.hchb-booking select,
.hchb-booking textarea,
.hchb-booking label,
.hchb-booking a { pointer-events: auto; position: relative; z-index: 1; }

/* ── Search bar (step 1) ──────────────────────
 * Template uses <section class="hchb-search"> with an inner
 * <div class="hchb-search__grid"> wrapping the fields. The grid
 * rule is the layout-critical one — without it the fields stack
 * vertically and the user effectively sees only the giant date
 * input filling the viewport, which is why a tap anywhere felt
 * like it opened the native date picker.
 * ─────────────────────────────────────────── */
.hchb-search {
  background: var(--hchb-bg, #fff);
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 12px;
  padding: 20px;
}
.hchb-search__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
}
/* Date fields get more room; number selects (adults/children/pets)
   stay compact; the button hugs its content at the end. */
.hchb-search__grid .hchb-field { flex: 1 1 140px; min-width: 110px; }
.hchb-search__grid .hchb-field--compact { flex: 0 1 110px; }
.hchb-search__grid .hchb-field:last-child { flex: 0 0 auto; }
@media (max-width: 720px) {
  .hchb-search__grid { display: grid; grid-template-columns: 1fr 1fr; }
  .hchb-search__grid .hchb-field { min-width: 0; }
  .hchb-search__grid .hchb-field:last-child { grid-column: 1 / -1; }
}
.hchb-field { display: flex; flex-direction: column; gap: 6px; }
.hchb-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hchb-muted, #64748b);
}
.hchb-field input,
.hchb-field select {
  height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--hchb-text, #1e293b);
  width: 100%;
}
.hchb-field input:focus,
.hchb-field select:focus {
  outline: 2px solid var(--hchb-primary, #344583);
  outline-offset: -1px;
  border-color: var(--hchb-primary, #344583);
}

/* ── Buttons ───────────────────────────────── */
.hchb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  height: 42px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--hchb-primary, #344583);
  background: var(--hchb-primary, #344583);
  color: var(--hchb-button-text, #fff);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
  font-family: inherit;
}
.hchb-btn:hover,
.hchb-btn:focus {
  background: var(--hchb-primary-hover, #46589f);
  border-color: var(--hchb-primary-hover, #46589f);
}
.hchb-btn[disabled] { opacity: .6; cursor: not-allowed; }

.hchb-btn-ghost {
  background: #fff;
  color: var(--hchb-text, #1e293b);
  border-color: var(--hchb-border, #e5e7eb);
}
.hchb-btn-ghost:hover { background: var(--hchb-bg-alt, #f9fafb); }

/* ── Step indicator ────────────────────────── */
.hchb-steps {
  display: flex;
  gap: 12px;
  margin: 24px 0 18px;
}
.hchb-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--hchb-bg-alt, #f9fafb);
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--hchb-muted, #64748b);
}
.hchb-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #475569;
  font-weight: 700;
  font-size: 0.78rem;
}
.hchb-step.is-active {
  background: #fff;
  border-color: var(--hchb-primary, #344583);
  color: var(--hchb-text, #1e293b);
}
.hchb-step.is-active .num {
  background: var(--hchb-primary, #344583);
  color: #fff;
}
.hchb-step.is-done .num { background: #166534; color: #fff; }

/* ── Results (step 2) ──────────────────────── */
.hchb-results { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.hchb-room-card {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 12px;
  align-items: center;
}
/* With image: 3-column layout (thumb | body | price). */
.hchb-room-card.has-image {
  grid-template-columns: 200px 1fr 220px;
}
@media (max-width: 720px) {
  .hchb-room-card,
  .hchb-room-card.has-image { grid-template-columns: 1fr; }
}
.hchb-room-card .hchb-room-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: #f1f5f9;
}
.hchb-room-card .hchb-room-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hchb-room-card .name { font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.hchb-room-card .desc { color: var(--hchb-muted, #64748b); font-size: 0.9rem; margin: 0 0 10px; }
.hchb-room-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--hchb-muted, #64748b);
}
.hchb-room-card .meta span {
  /* High-specificity rule so themes that set generic <span> colors
   * (a common pattern in Astra/OceanWP/etc. for breadcrumb-like
   * meta lists) can't bleed their blue into our muted meta line.
   * The icons are inline SVG with hard-coded fill, so they're
   * immune regardless. */
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--hchb-muted, #64748b);
}
.hchb-room-card .meta span svg { flex: 0 0 auto; }
.hchb-room-card .price {
  text-align: right;
}
.hchb-room-card .price .total {
  font-size: 1.4rem; font-weight: 700; color: var(--hchb-primary, #344583);
}
.hchb-room-card .price .per-night { font-size: 0.8rem; color: var(--hchb-muted, #64748b); }
.hchb-room-card .price .btn-wrap { margin-top: 10px; }

/* ── Guest form (step 3) ───────────────────── */
/* ── Guest details (step 3) ──────────────────
 * Template uses <section class="hchb-guest"> with an inner
 * <div class="hchb-guest__grid"> wrapping the inputs. Mirroring
 * the search-section structure for consistency.
 * ─────────────────────────────────────────── */
.hchb-guest {
  background: #fff;
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}
.hchb-guest h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--hchb-text, #1e293b);
}
.hchb-guest__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
@media (max-width: 720px) {
  .hchb-guest__grid { grid-template-columns: 1fr; }
}
.hchb-guest__grid .full { grid-column: 1 / -1; }
.hchb-guest input,
.hchb-guest select,
.hchb-guest textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--hchb-text, #1e293b);
}
.hchb-guest textarea { min-height: 90px; resize: vertical; }
.hchb-guest label { font-size: 0.85rem; font-weight: 600; color: var(--hchb-muted, #64748b); display: block; margin-bottom: 4px; }
.hchb-guest label.req::after { content: " *"; color: #b91c1c; }

/* ── Legal consent (DSGVO + AGB checkboxes) ── */
.hchb-legal {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hchb-consent,
.hchb-legal label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--hchb-bg-alt, #f9fafb);
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--hchb-text, #1e293b);
  font-weight: 400;
}
.hchb-consent input[type="checkbox"],
.hchb-legal input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.hchb-consent a,
.hchb-legal a { color: var(--hchb-primary, #344583); }

/* ── Step 4: Payment ─────────────────────────
 * Mirrors the visual language of the guest-details card so the
 * transition between steps feels continuous. Stripe Elements
 * provides its own inline styling for the card-input row.
 * ─────────────────────────────────────────── */
.hchb-payment {
  background: #fff;
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}
.hchb-payment h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 16px;
}
.hchb-payment-summary {
  background: var(--hchb-bg-alt, #f9fafb);
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.hchb-payment-amount strong { font-size: 1.5rem; color: var(--hchb-primary, #344583); }
.hchb-payment-mode-label {
  display: inline-block;
  padding: 2px 10px;
  background: var(--hchb-primary, #344583);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 6px;
}
.hchb-payment-total-line { color: var(--hchb-muted, #64748b); font-size: 0.88rem; margin-top: 4px; }
.hchb-payment-countdown {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #ca8a04;
  font-weight: 600;
}
#hchb-stripe-payment-element {
  background: #fff;
  padding: 14px;
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 8px;
  min-height: 56px;
}

/* ── Summary card ──────────────────────────── */
.hchb-summary {
  background: var(--hchb-bg-alt, #f9fafb);
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 20px;
}
.hchb-summary .row {
  display: flex; justify-content: space-between;
  padding: 5px 0;
  font-size: 0.92rem;
  color: var(--hchb-text, #1e293b);
}
.hchb-summary .row.muted { color: var(--hchb-muted, #64748b); }
.hchb-summary .row.total {
  border-top: 1px solid var(--hchb-border, #e5e7eb);
  margin-top: 8px;
  padding-top: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--hchb-primary, #344583);
}

/* ── Messages ──────────────────────────────── */
.hchb-message {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin: 12px 0;
}
.hchb-message.info  { background:#eff6ff; color:#1e3a8a; border:1px solid #bfdbfe; }
.hchb-message.error { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; }
.hchb-message.success { background:#f0fdf4; color:#166534; border:1px solid #bbf7d0; }

/* ── Loading ───────────────────────────────── */
.hchb-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 30px;
  color: var(--hchb-muted, #64748b);
  font-size: 0.95rem;
}
.hchb-loading::before {
  content: "";
  width: 18px; height: 18px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--hchb-primary, #344583);
  border-radius: 50%;
  animation: hchb-spin 0.8s linear infinite;
}
@keyframes hchb-spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────
 * Confirmation page
 * ───────────────────────────────────────────── */
.hchb-confirmation {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  max-width: 600px;
  margin: 40px auto;
  color: var(--hchb-text, #1e293b);
}
.hchb-confirmation-card {
  background: #fff;
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
}
.hchb-confirmation-icon {
  color: var(--hchb-success, #166534);
  margin: 0 auto 14px;
  display: flex;
  justify-content: center;
}
.hchb-confirmation-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--hchb-text, #1e293b);
}
.hchb-confirmation-subtitle {
  color: var(--hchb-muted, #64748b);
  margin: 0 0 22px;
  font-size: 0.95rem;
}
.hchb-confirmation-code {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 22px;
  background: var(--hchb-bg-alt, #f9fafb);
  border: 1px solid var(--hchb-border, #e5e7eb);
  border-radius: 10px;
  margin-bottom: 24px;
}
.hchb-confirmation-code .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hchb-muted, #64748b);
}
.hchb-confirmation-code .code {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hchb-primary, #344583);
  letter-spacing: 0.03em;
}
.hchb-confirmation-details {
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px 16px;
  margin: 0 0 18px;
  font-size: 0.93rem;
}
.hchb-confirmation-details dt { color: var(--hchb-muted, #64748b); font-weight: 500; margin: 0; }
.hchb-confirmation-details dd { margin: 0; font-weight: 600; }
.hchb-confirmation-totals {
  text-align: left;
  border-top: 1px solid var(--hchb-border, #e5e7eb);
  padding-top: 14px;
  margin-top: 6px;
}
.hchb-confirmation-nights {
  text-align: left;
  border-top: 1px solid var(--hchb-border, #e5e7eb);
  padding-top: 14px;
  margin-top: 6px;
}
.hchb-confirmation-nights__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hchb-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.hchb-confirmation-nights .row {
  display: flex; justify-content: space-between;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--hchb-muted, #64748b);
}
.hchb-confirmation-totals .row {
  display: flex; justify-content: space-between;
  padding: 5px 0;
  font-size: 0.92rem;
  color: var(--hchb-text, #1e293b);
}
.hchb-confirmation-totals .row-total {
  border-top: 1px solid var(--hchb-border, #e5e7eb);
  margin-top: 8px; padding-top: 10px;
  font-weight: 700; font-size: 1.05rem;
  color: var(--hchb-primary, #344583);
}
/* v1.8.0 — gross subtotal + contained-VAT rows */
.hchb-confirmation-totals .row-subtotal {
  border-top: 1px solid var(--hchb-border, #e5e7eb);
  margin-top: 6px; padding-top: 8px;
  font-weight: 600;
}
.hchb-confirmation-totals .hchb-row-vat {
  font-size: 0.82rem;
  color: var(--hchb-muted, #64748b);
  padding: 2px 0 2px 14px;
}
.hchb-confirmation-note {
  font-size: 0.85rem;
  color: var(--hchb-warn, #92400e);
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 20px;
}

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

/* ── Room details link inside card ─────────── */
.hchb-room-details-link-wrap {
  margin-top: 10px;
}
.hchb-room-details-link {
  font-size: 0.85rem;
  color: var(--hchb-primary, #344583);
  text-decoration: none;
  font-weight: 500;
}
.hchb-room-details-link:hover { text-decoration: underline; }

/* ── Lightbox modal ───────────────────────────
 * Fixed-position overlay with backdrop. We avoid native <dialog>
 * because Safari < 15 still has gaps with it, and the styling
 * effort to harmonise both paths isn't worth it for a viewer.
 * Pointer-events:auto inside .hchb-modal-* defends against themes
 * that disable pointer events on body during transitions.
 * ────────────────────────────────────────── */
.hchb-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
  animation: hchb-modal-fade 180ms ease;
  pointer-events: auto;
}
.hchb-modal-backdrop.is-closing { animation: hchb-modal-fade-out 180ms ease; opacity: 0; }
@keyframes hchb-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hchb-modal-fade-out { from { opacity: 1; } to { opacity: 0; } }

.hchb-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 920px;
  width: 100%;
  max-height: 92vh;
  /* Desktop: give the dialog a generous height so text-heavy rooms
     (long descriptions + many amenities) aren't cramped. The body
     column scrolls on its own if it still overflows. */
  height: 88vh;
  min-height: 560px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  pointer-events: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-gap: 0;
}
.hchb-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.hchb-modal-close:hover { background: #fff; }

.hchb-modal-gallery {
  background: #0f172a;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.hchb-modal-stage {
  position: relative;
  /* Fill the available column height instead of forcing a 4/3 box,
     which would overflow the now fixed-height modal. */
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
}
.hchb-modal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 220ms ease;
}
.hchb-modal-slide.is-active { opacity: 1; }
.hchb-modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hchb-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #0f172a;
}
.hchb-modal-nav.prev { left: 10px; }
.hchb-modal-nav.next { right: 10px; }
.hchb-modal-nav:hover { background: #fff; }

.hchb-modal-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: #1e293b;
  overflow-x: auto;
}
.hchb-modal-thumb {
  width: 64px;
  height: 48px;
  flex: 0 0 auto;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  background: #000;
  overflow: hidden;
}
.hchb-modal-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hchb-modal-thumb.is-active { border-color: var(--hchb-primary, #344583); }

.hchb-modal-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  /* Scroll the text column independently so long content never pushes
     the dialog past the viewport. */
  overflow-y: auto;
  min-height: 0;
}
.hchb-modal-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}
.hchb-modal-capacity {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hchb-modal-capacity svg { flex: 0 0 auto; margin: 0; }
.hchb-modal-desc {
  color: #1e293b;
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 18px;
}
.hchb-modal-desc p { margin: 0 0 10px; }
.hchb-modal-desc img { max-width: 100%; height: auto; border-radius: 8px; }

.hchb-modal-cta {
  border-top: 1px solid #e5e7eb;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.hchb-modal-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--hchb-primary, #344583);
  line-height: 1.15;
}
.hchb-modal-price-note {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #64748b;
}

/* Stack vertically on small screens — gallery on top, body below. */
@media (max-width: 720px) {
  .hchb-modal {
    grid-template-columns: 1fr;
    /* On mobile the columns stack; revert to natural height + outer
       scroll (the desktop fixed-height model doesn't apply here). */
    height: auto;
    min-height: 0;
    max-height: 92vh;
    overflow-y: auto;
  }
  .hchb-modal-stage { flex: none; aspect-ratio: 16/10; }
  .hchb-modal-body { padding: 20px; overflow-y: visible; }
}

/* ── v1.4.11 — child age fields + pets ───────────────────── */
.hchb-child-ages {
  margin: 14px 0 4px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.hchb-child-ages__intro {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #475569;
}
.hchb-child-ages__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hchb-child-age {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}
.hchb-child-age label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
}
.hchb-child-age input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  box-sizing: border-box;
}
.hchb-pets-field select {
  min-width: 90px;
}

/* ── v1.5.0 — room amenities in detail modal ─────────────── */
.hchb-modal-amenities {
  margin: 18px 0 4px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.hchb-modal-amenities-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}
.hchb-amenity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.hchb-amenity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #334155;
}
.hchb-amenity svg { flex: 0 0 auto; }
@media (max-width: 720px) {
  .hchb-amenity-list { grid-template-columns: 1fr; }
}

/* ── v1.6.0 — frontend price calendar ────────────────────── */
.hchb-pcal {
  max-width: 980px;
  margin: 0 auto;
  font-family: inherit;
}
.hchb-pcal__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hchb-pcal__room { display: flex; flex-direction: column; gap: 4px; }
.hchb-pcal__room label { font-size: 0.85rem; font-weight: 600; color: #475569; }
.hchb-pcal__room select {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  min-width: 200px;
}
.hchb-pcal__nav { display: flex; align-items: center; gap: 12px; }
.hchb-pcal__nav strong { min-width: 150px; text-align: center; font-size: 1.05rem; color: #1e293b; }
.hchb-pcal__navbtn {
  width: 38px; height: 38px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 8px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: #1e293b;
}
.hchb-pcal__navbtn:hover { background: #f1f5f9; }
.hchb-pcal__monthlabel { display: none; } /* title shown in nav bar */
.hchb-pcal__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 5px;
  table-layout: fixed;
}
.hchb-pcal__table th {
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
  padding: 4px;
}
.hchb-pcal__table td {
  height: 72px;
  vertical-align: top;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 7px;
}
.hchb-pcal__table td.empty { background: transparent; border: none; }
.hchb-pcal__table td.has-season { background: #eef2ff; border-color: #c7d2fe; }
.hchb-pcal__table td.is-today { box-shadow: 0 0 0 2px var(--hchb-primary, #344583); }
.hchb-pcal__table td.is-past { opacity: 0.5; }
.hchb-pcal__day { font-size: 0.72rem; color: #94a3b8; font-weight: 600; }
.hchb-pcal__price { display: block; font-size: 0.9rem; font-weight: 700; color: #1e293b; margin-top: 3px; }
.hchb-pcal__season {
  display: block; font-size: 0.6rem; color: #6366f1; margin-top: 2px;
  line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 600px) {
  .hchb-pcal__table td { height: 58px; padding: 4px; }
  .hchb-pcal__price { font-size: 0.78rem; }
  .hchb-pcal__season { display: none; }
}

/* ── v1.6.0 — calendar link + modal ──────────────────────── */
.hchb-cal-link-wrap {
  text-align: center;
  margin: 18px auto 0;
  max-width: 980px;
}
.hchb-cal-link {
  background: none;
  border: none;
  color: var(--hchb-primary, #344583);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}
.hchb-cal-link:hover { opacity: 0.8; }
.hchb-cal-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hchb-cal-modal[hidden] { display: none; }
.hchb-cal-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.hchb-cal-modal__box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  max-width: 1040px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.hchb-cal-modal__close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}
.hchb-cal-modal__close:hover { color: #1e293b; }
.hchb-cal-modal__title {
  margin: 0 0 18px;
  font-size: 1.25rem;
  color: var(--hchb-text, #1e293b);
}
.hchb-cal-modal .hchb-pcal { max-width: 100%; }
@media (max-width: 600px) {
  .hchb-cal-modal__box { padding: 20px 14px; }
}

/* ── v1.7.0 — board / meal plan selection ────────────────── */
.hchb-board {
  margin: 18px 0 6px;
}
.hchb-board__legend {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hchb-text, #1e293b);
  margin-bottom: 8px;
}
.hchb-board__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hchb-board__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--hchb-border, #e2e8f0);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.hchb-board__opt:hover { border-color: var(--hchb-primary, #344583); }
.hchb-board__opt input { margin: 0; flex-shrink: 0; }
.hchb-board__name { font-weight: 600; color: var(--hchb-text, #1e293b); }
.hchb-board__price {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--hchb-muted, #64748b);
  text-align: right;
}
@media (max-width: 600px) {
  .hchb-board__opt { flex-wrap: wrap; }
  .hchb-board__price { margin-left: 28px; width: 100%; text-align: left; }
}

/* ── v1.9.0 — Meldeschein / registration block ──────────── */
.hchb-registration {
  margin: 24px 0 12px;
  padding: 18px;
  border: 1px solid var(--hchb-border, #e2e8f0);
  border-radius: 10px;
  background: var(--hchb-surface, #f8fafc);
}
.hchb-registration__title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hchb-text, #1e293b);
}
.hchb-registration__intro {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--hchb-muted, #64748b);
  line-height: 1.5;
}
.hchb-registration__intro em {
  font-style: italic;
  color: var(--hchb-text, #1e293b);
}
.hchb-registration__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hchb-registration__list.is-deferred {
  opacity: 0.45;
  pointer-events: none;
}
.hchb-registration__defer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

.hchb-reg-person {
  border: 1px solid var(--hchb-border, #e2e8f0);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.hchb-reg-person__head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--hchb-text, #1e293b);
}
.hchb-reg-person__role {
  font-weight: 600;
}
.hchb-reg-person__chevron {
  font-size: 0.85rem;
  color: var(--hchb-muted, #64748b);
  transition: transform 0.15s;
}
.hchb-reg-person.is-open .hchb-reg-person__chevron {
  transform: rotate(180deg);
}
.hchb-reg-person__body {
  display: none;
  padding: 4px 14px 14px;
  border-top: 1px solid var(--hchb-border, #e2e8f0);
}
.hchb-reg-person.is-open .hchb-reg-person__body {
  display: block;
}
.hchb-reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-top: 10px;
}
.hchb-reg-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--hchb-text, #1e293b);
}
.hchb-reg-field > span {
  font-weight: 500;
  color: var(--hchb-muted, #64748b);
}
.hchb-reg-field input,
.hchb-reg-field select {
  padding: 6px 8px;
  border: 1px solid var(--hchb-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
}
/* v1.9.2 — hybrid birth-date input: text + calendar picker. The native
   date input is hidden but kept in the DOM so showPicker() can open it
   from the calendar button. */
.hchb-bdate {
  position: relative;
  display: flex;
  align-items: stretch;
}
.hchb-bdate input[data-hchb-bdate-text] {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.hchb-bdate input[data-hchb-bdate-text].is-invalid {
  border-color: #ef4444;
}
.hchb-bdate__picker {
  border: 1px solid var(--hchb-border, #e2e8f0);
  border-left: none;
  background: #f8fafc;
  padding: 0 10px;
  cursor: pointer;
  border-radius: 0 6px 6px 0;
  font-size: 1rem;
  line-height: 1;
}
.hchb-bdate__picker:hover { background: #f1f5f9; }
.hchb-bdate input[data-hchb-bdate-native] {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 1px;
  padding: 0; border: 0;
  opacity: 0;
  pointer-events: none;
}
.hchb-reg-copy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--hchb-muted, #64748b);
  cursor: pointer;
}
/* v1.9.0 — copy-address shortcut at the top of a companion block */
.hchb-reg-copy--top {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1e3a8a;
  font-weight: 500;
}
@media (max-width: 560px) {
  .hchb-reg-grid { grid-template-columns: 1fr; }
}
