/* =========================================================
   Booking flow — book.php, booking.php
   ========================================================= */

.booking-section { background: var(--paper); }
.booking-section--status { padding-top: calc(var(--header-h) + 2.5rem); }

/* Status page has no dark hero, so the header needs its own background. */
.site-header--solid { background: rgba(12, 12, 15, 0.97); }
.site-header--solid::before { opacity: 0; }

.container--narrow {
  width: min(940px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* ---------- Steps ---------- */
.b-step {
  margin: 0 0 1.5rem;
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  border: 1px solid var(--line);
  background: var(--paper);
}
.b-step legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem;
  margin-left: -0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  font-weight: 500;
  color: var(--ink);
}
.b-step-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--accent);
}
.b-step .form-grid { margin-top: 1rem; }

.field-hint {
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.5;
}
.field-hint a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.field-label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.b-nights {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
  background: rgba(14, 14, 17, 0.03);
}
.b-breakfast-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- Room picker ---------- */
.room-picker {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}
.room-option {
  position: relative;
  display: block;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.room-option:hover { border-color: rgba(14, 14, 17, 0.32); }
.room-option:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.room-option.is-selected {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.room-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.room-option.is-soldout {
  opacity: 0.55;
  cursor: not-allowed;
}
.room-option-body { display: block; }
.room-option-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.room-option-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.15;
}
.room-option-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  white-space: nowrap;
}
.room-option-price small {
  font-family: var(--font-body);
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-left: 0.3rem;
}
.room-option-meta {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  color: var(--muted);
}
.room-option-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Payment options ---------- */
.pay-options {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}
.pay-option {
  position: relative;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
}
.pay-option:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-option input {
  margin-top: 0.3rem;
  accent-color: var(--accent);
  flex: none;
}
.pay-option strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.pay-option small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}
.pay-option.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pay-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.b-policy {
  margin: 1.1rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}
.b-policy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Summary ---------- */
.booking-summary { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.summary-card {
  padding: clamp(1.4rem, 2.4vw, 1.8rem);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--ink);
}
.summary-card .eyebrow { color: #e9b3bd; }
.summary-title {
  margin: 0.2rem 0 1.2rem;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2rem);
}
.summary-list { margin: 0; padding: 0; }
.summary-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
}
.summary-list > div:last-child { border-bottom: 0; }
.summary-list dt { color: rgba(255, 255, 255, 0.55); margin: 0; }
.summary-list dd { margin: 0; text-align: right; color: #fff; }
.summary-list small { color: rgba(255, 255, 255, 0.55); font-size: 0.72rem; }
.summary-list-strong dd { font-family: var(--font-display); font-size: 1.15rem; }
.summary-list .is-hidden { display: none; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.summary-total span {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.summary-total strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.2rem);
  font-weight: 500;
  color: #fff;
  line-height: 1;
}
.summary-avail {
  margin: 1rem 0 0;
  padding: 0.7rem 0.8rem;
  font-size: 0.75rem;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}
.summary-avail.is-ok { background: rgba(76, 175, 125, 0.14); color: #bfe6cf; }
.summary-avail.is-bad { background: rgba(226, 120, 120, 0.14); color: #f2c4c4; }
.summary-submit { margin-top: 1.2rem; }
.summary-submit[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.summary-note {
  margin: 0.7rem 0 0;
  font-size: 0.7rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}
.summary-help {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
}
.summary-help a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Notices ---------- */
.notice {
  margin: 0 0 1.4rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: #fbeeee;
  font-size: 0.86rem;
  line-height: 1.6;
}
.notice ul { margin: 0.5rem 0 0; padding-left: 1.1rem; list-style: disc; }
.notice--warn { border-color: #b07a12; background: #fdf6e7; }
.notice--ok { border-color: #2f7d57; background: #eef7f1; }
.notice--bad { border-color: var(--accent); background: #fbeeee; }

/* ---------- Status page ---------- */
.status-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: var(--white);
}
.status-pill {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.7rem;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.status-pill--ok { color: #2f7d57; }
.status-pill--warn { color: #9a6a0b; }
.status-pill--bad { color: var(--accent); }
.status-pill--muted { color: var(--muted); }
.status-card h1 { margin: 0 0 0.6rem; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.status-card p { color: var(--muted); font-size: 0.94rem; max-width: 62ch; }
.status-hold { color: var(--ink) !important; font-size: 0.85rem !important; }
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.2rem;
}
.panel {
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  border: 1px solid var(--line);
  background: var(--paper);
}
.panel-title {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
}
.panel .summary-list > div { border-color: var(--line); }
.panel .summary-list dt { color: var(--muted); }
.panel .summary-list dd { color: var(--text); }
.panel .summary-list small { color: var(--muted); }
.panel .summary-list-strong dd { font-size: 1.1rem; }
.panel-note {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted);
}
.panel-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.stack-form { margin-top: 1rem; }
.stack-form--compact { margin-top: 0.6rem; }
.stack-form .btn--ghost { border-color: rgba(255, 255, 255, 0.3); color: var(--ink); }
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-button:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-summary { position: static; }
  .status-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .b-step { padding: 1.1rem 1rem; }
  .b-step .form-grid { grid-template-columns: 1fr; }
  .room-option-top { flex-direction: column; gap: 0.15rem; }
  .room-option-price { font-size: 1.1rem; }
  .summary-card { padding: 1.3rem 1.15rem; }
}

@media print {
  .site-header, .site-footer, .wa-float, .status-actions, .stack-form, .skip-link { display: none !important; }
  body { background: #fff; }
  .status-card, .panel { border-color: #999; }
}
