/* ─── Guest booking page ──────────────────────────────────────────
   Builds on the shared design tokens/components from styles.css
   (colors, .card, .btn, .input, .field, .status-badge). This file is
   just the guest-page-specific layout: header, step content, package
   picker, and the payment/success screen. */

body.guest-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.guest-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line-soft);
}
.guest-header-logo { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; }
.guest-header-title { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; }
.guest-header-sub { font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.guest-main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.guest-footer {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 12px;
}

.guest-step-title { font-size: 22px; margin: 0 0 6px; }
.guest-step-sub { color: var(--muted); margin: 0 0 20px; font-size: 13px; }

/* ─── Package picker ─────────────────────────────────────────────── */

.package-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.package-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  background: var(--panel);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.package-card:hover { border-color: var(--accent-dim); }
.package-card.selected { border-color: var(--accent); background: var(--panel-2); }

.package-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.package-card-name { font-weight: 700; font-size: 15px; }
.package-card-price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.package-card-meta { color: var(--ink-2); font-size: 12px; margin-top: 6px; line-height: 1.6; }

/* ─── Availability feedback ──────────────────────────────────────── */

.availability-note {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  margin: -6px 0 16px;
}
.availability-note.available { color: var(--success); background: rgba(74, 222, 128, 0.1); }
.availability-note.unavailable { color: var(--danger); background: rgba(248, 113, 113, 0.1); }
.availability-note.quote { color: var(--ink-2); background: var(--panel-2); margin-top: 6px; }
.package-card.unavailable { opacity: 0.55; cursor: not-allowed; }
.package-card.unavailable:hover { border-color: var(--line); }
.availability-note.checking { color: var(--muted); }

/* ─── Agreements ──────────────────────────────────────────────────── */

.agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 12px;
  line-height: 1.5;
}
.agreement-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--trz-gold);
}

/* ─── Success / payment screen ───────────────────────────────────── */

.success-banner {
  text-align: center;
  margin-bottom: 20px;
}
.success-banner .eyebrow { justify-content: center; display: flex; }
.success-code {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin: 4px 0 0;
}

.pending-notice {
  background: rgba(245, 185, 66, 0.1);
  border: 1px solid rgba(245, 185, 66, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink);
  margin: 18px 0;
  line-height: 1.6;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin: 18px 0;
}
.summary-grid .detail-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 3px; }
.summary-grid .detail-value { font-size: 15px; }
.summary-full { grid-column: 1 / -1; }

.deposit-callout {
  text-align: center;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--panel-2);
  border: 1px solid var(--accent-dim);
  margin: 20px 0;
}
.deposit-callout .eyebrow { justify-content: center; display: flex; }
.deposit-amount { font-size: 30px; font-weight: 700; color: var(--accent); margin: 4px 0 0; }

.payment-methods-section h2 { font-size: 17px; margin: 28px 0 4px; }
.payment-methods-section > p { color: var(--muted); font-size: 13px; margin: 0 0 16px; }

.payment-method-card {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.payment-method-qr {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--cream);
  flex-shrink: 0;
}
.payment-method-info { flex: 1; min-width: 180px; }
.payment-method-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.payment-method-account { font-size: 13px; color: var(--ink-2); }
.payment-method-account strong { user-select: all; } /* easy to tap-select and copy on mobile */
.payment-method-instruction { font-size: 12px; color: var(--muted); margin-top: 6px; }

.pay-later-note, .verify-note {
  font-size: 13px;
  color: var(--ink-2);
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 16px;
  line-height: 1.6;
}

@media (min-width: 480px) {
  .package-grid { grid-template-columns: 1fr; }
}

/* ─── Review & Agree + step indicator ────────────────────────────── */

.guest-steps {
  list-style: none; display: flex; gap: 8px; margin: 0 0 20px; padding: 0;
}
.guest-steps li {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); font-weight: 600;
}
.guest-step-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 999px; display: inline-flex;
  align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 12px; font-weight: 700;
}
.guest-steps li.active { color: var(--cream); }
.guest-steps li.active .guest-step-num { background: var(--trz-gold); color: #073f22; border-color: var(--trz-gold); }
.guest-steps li.done .guest-step-num { background: var(--success); border-color: var(--success); color: #062b16; }
.guest-step-label { overflow-wrap: anywhere; line-height: 1.25; }

.policy-card { padding: 16px 18px; margin-bottom: 12px; }
.policy-card-title { font-family: 'Fraunces', serif; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.policy-card p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); line-height: 1.55; }
.policy-card .btn { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.agreement-row { min-height: 44px; align-items: flex-start; }
.agreement-row input[type="checkbox"] { width: 24px; height: 24px; }

@media (max-width: 420px) {
  .guest-steps { gap: 4px; }
  .guest-steps li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ─── Payment cards, QR viewer, deadline notice ──────────────────── */

.deadline-callout {
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
  background: var(--accent-dim); padding: 14px 16px; margin: 0 0 16px;
}
.deadline-callout .eyebrow { margin-bottom: 4px; }
.deadline-callout p { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.deadline-when { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; line-height: 1.25; }
.deadline-urgent { border-left-color: var(--status-pending); background: rgba(245, 185, 66, 0.12); }

.pay-later-note { font-size: 13px; color: var(--ink-2); margin: 0 0 14px; line-height: 1.55; }

.pay-card { padding: 18px; margin-bottom: 16px; text-align: center; }
.pay-name { font-family: 'Fraunces', serif; font-size: 20px; margin: 0 0 4px; }
.pay-holder { font-weight: 600; font-size: 14px; }
.pay-account { font-size: 14px; color: var(--ink-2); letter-spacing: 0.02em; user-select: all; margin-top: 2px; }
.pay-qr-button {
  display: block; width: 100%; max-width: 360px; margin: 14px auto 6px; padding: 8px; border: 0; border-radius: 12px;
  background: #fff; cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.pay-qr-button:focus-visible { outline: 3px solid var(--trz-gold-bright); outline-offset: 2px; }
.pay-qr { display: block; width: 100%; height: auto; border-radius: 6px; }
.pay-qr-hint { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: #3b4b43; }
.pay-instruction { font-size: 13px; color: var(--ink-2); margin: 10px 0 0; line-height: 1.55; }
.pay-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.pay-actions .btn { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.pay-save-hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }

.qr-viewer {
  position: fixed; inset: 0; z-index: 1000; background: rgba(0, 12, 6, 0.96);
  display: flex; flex-direction: column; padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}
.qr-viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--cream); padding: 4px 4px 10px; }
.qr-viewer-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.qr-viewer-body img { max-width: 100%; max-height: 100%; width: auto; height: auto; background: #fff; border-radius: 10px; object-fit: contain; }
.qr-viewer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding-top: 10px; color: var(--muted); font-size: 12px; }
.qr-viewer-foot .btn { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }

/* ─── Contact fields: required marker, note, inline messages ─────── */
.req { color: var(--trz-gold-bright); font-weight: 800; }
.field-note { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
.field-msg { font-size: 13px; color: var(--danger); line-height: 1.45; min-height: 0; }
.field-msg:empty { display: none; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.link-btn {
  display: inline; min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--trz-gold-bright);
  font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer;
}
.pay-holder-label { font-weight: 500; color: var(--ink-2); }

/* Phone comfort: 48px controls, 16px text (no iOS zoom) */
@media (max-width: 600px) { .input, select.input { min-height: 48px; font-size: 16px; } .field-msg { font-size: 14px; } }

/* ─── Package cards (mobile-first, comparison-friendly) ──────────── */
.package-grid { grid-template-columns: 1fr; }
@media (min-width: 900px) { .package-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); } }
.package-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-width: 2px; }
.package-card:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.package-card .pc-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-name { font-weight: 800; font-size: 18px; line-height: 1.2; }
.pc-type { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pc-overnight { color: var(--accent); border: 1px solid var(--accent-dim); }
.pc-dayuse { color: #0b1f16; background: var(--accent); }
.pc-price { font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.pc-time { font-size: 15px; font-weight: 700; }
.pc-time small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.pc-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-2); }
.pc-facts strong { color: var(--ink, inherit); }
.pc-yes { color: var(--success); font-weight: 700; }
.pc-no { color: var(--muted); }
.pc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; }
.pc-chips li { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.pc-more { font-size: 14px; }
.pc-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--accent); }
.pc-sub { margin: 10px 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pc-list { margin: 0; padding-left: 18px; line-height: 1.55; }
.pc-select { margin-top: 6px; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius-sm, 10px); border: 1px solid var(--accent-dim); font-weight: 800; color: var(--accent); }
.package-card.selected .pc-select { background: var(--accent); color: #0b1f16; border-color: var(--accent); }
.pc-empty { color: var(--muted); font-size: 14px; margin: 4px 0; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); }

.guest-step-title:focus, .success-banner:focus { outline: none; }

/* ─── Package-first flow: revealed date fields + stay calculation ─── */
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s ease, opacity .3s ease; }
.reveal.open { grid-template-rows: 1fr; opacity: 1; }
.reveal > .reveal-inner { overflow: hidden; min-height: 0; }
.reveal:not(.open) { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; } }
.stay-times { margin: -4px 0 14px; font-size: 13px; color: var(--muted); }
.stay-calc { display: grid; gap: 2px; margin: 8px 0; padding: 12px 14px; border: 1px solid var(--accent-dim); border-radius: var(--radius-sm, 10px); background: var(--panel-2); }
.stay-calc .calc-line { font-size: 18px; font-weight: 700; }
.stay-calc .calc-line strong { color: var(--accent); }
.stay-calc .calc-sub { font-size: 12px; color: var(--muted); }
.pc-warn { font-size: 13px; color: var(--danger); }
.package-card.date-unavailable { opacity: .7; }
.availability-note small { color: var(--muted); }

/* ─── Real resort photography (Settings → Booking & Email Media) ─────────────────────────────
   Supporting, never dominant: fixed aspect ratios reserve space (no layout shift), object-fit crops
   cleanly at every width, and a missing/removed photo simply collapses. */

.hero-photo, .closing-banner { position: relative; margin: 0 0 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.hero-photo { aspect-ratio: 16 / 10; }
.hero-photo img, .closing-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after, .closing-banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 20, 11, 0.78) 0%, rgba(0, 20, 11, 0.25) 42%, rgba(0, 20, 11, 0) 70%);
}
.hero-photo figcaption, .closing-banner figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 18px; }
.hero-eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.hero-line { display: block; margin-top: 4px; font-family: 'Fraunces', serif; font-size: 19px; line-height: 1.25; color: #fff; }
.closing-banner { aspect-ratio: 5 / 2; margin: 28px 0 0; }
.closing-banner figcaption { font-family: 'Fraunces', serif; font-style: italic; font-size: 18px; color: #fff; text-align: center; }

.explore { margin: 0 0 22px; }
.explore-title { margin: 0 0 10px; font-family: 'Fraunces', serif; font-size: 17px; font-weight: 600; color: var(--accent); }
.explore-main { aspect-ratio: 2 / 1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.explore-main img { display: block; width: 100%; height: 100%; object-fit: cover; }
.explore-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.explore-tiles figure { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius-xs); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.explore-tiles img { display: block; width: 100%; height: 100%; object-fit: cover; }
.explore-tiles figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 8px 5px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: linear-gradient(to top, rgba(0, 20, 11, 0.85), rgba(0, 20, 11, 0)); }

.pc-cover { margin: -16px -16px 12px; aspect-ratio: 2.2 / 1; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--panel-2); }
.pc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 640px) {
  .hero-photo { aspect-ratio: 2 / 1; }
  .hero-line { font-size: 22px; }
}
@media (max-width: 380px) {
  .explore-tiles { gap: 6px; }
  .explore-tiles figcaption { font-size: 9px; padding: 12px 6px 4px; }
}
