/* The hotel's booking page (/booking) and the guest's request page. Uses the
   venue's theme variables from app.css. */
.bk { min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--font); }
.bk.sheet-open { overflow: hidden; }
.bk-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.bk-logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.bk-logo img { border-radius: 12px; }
.bk-logo b { font-family: var(--display); font-weight: var(--display-weight); font-size: 1.25rem; letter-spacing: 0.04em; }
.bk-langs { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: var(--surface-2); }
.bk-langs a { padding: 6px 10px; border-radius: 99px; color: var(--muted); font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.bk-langs a[aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px var(--line-2); }

.bk-hero { position: relative; display: flex; align-items: flex-end; min-height: 300px; margin-top: -62px; padding: 90px 20px 64px;
  background: var(--ink) var(--hero, none) center / cover no-repeat; color: #fff; }
.bk-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 14, 24, 0.15), rgba(10, 14, 24, 0.75)); }
.bk-hero.is-plain { min-height: 220px; background: linear-gradient(135deg, var(--ink), var(--accent)); }
.bk-hero-text { position: relative; width: min(760px, 100%); margin: 0 auto; }
.bk-kicker { margin: 0 0 6px; color: var(--ink-label, var(--copper)); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
.bk-hero h1 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: clamp(2.2rem, 8vw, 3.2rem); line-height: 1.02; }
.bk-hero p:last-child { margin: 10px 0 0; max-width: 40ch; opacity: 0.88; font-size: 0.98rem; }

.bk-main { position: relative; width: min(760px, 100% - 32px); margin: -40px auto 0; padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.bk-search { display: grid; gap: 14px; padding: 18px; border-radius: 24px; background: var(--surface);
  box-shadow: 0 24px 50px -30px var(--shadow), inset 0 0 0 1px var(--line); }
.bk-dates, .bk-guests { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.bk-field > span { color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.bk-field input[type="date"] { width: 100%; min-height: 50px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 14px;
  background: var(--bg); color: var(--text); font: 600 1rem var(--font); -webkit-appearance: none; appearance: none; }
.bk-step { display: inline-flex; align-items: center; justify-content: space-between; min-height: 50px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg); }
.bk-step button { width: 48px; height: 48px; border: 0; background: none; color: var(--text); font: 600 1.4rem/1 var(--font); cursor: pointer; }
.bk-step output { min-width: 24px; text-align: center; font-weight: 800; font-size: 1.1rem; }
.bk-kids-list { display: flex; flex-wrap: wrap; gap: 6px; }
.bk-kids-list:empty { display: none; }
.bk-kid { display: inline-flex; align-items: center; gap: 2px; padding: 4px 4px 4px 10px; border-radius: 12px; background: var(--tint); }
.bk-kid select { border: 0; background: none; color: var(--text); font: 600 0.9rem var(--font); }
.bk-kid-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.2rem; cursor: pointer; }
.bk-add-kid { min-height: 50px; border: 1px dashed var(--line-2); border-radius: 14px; background: none; color: var(--accent); font: 700 0.92rem var(--font); cursor: pointer; }
.bk-add-kid[hidden] { display: none; }
.bk-find { width: 100%; }

.bk-status { display: grid; gap: 4px; margin: 22px 4px 0; text-align: center; color: var(--muted); }
.bk-status[hidden] { display: none; }
.bk-status b { color: var(--text); font-size: 1.05rem; }
.bk-rooms { display: grid; gap: 18px; margin-top: 22px; transition: opacity 0.2s; }
.bk-rooms.is-loading { opacity: 0.45; pointer-events: none; }

.bk-room { overflow: hidden; border-radius: 24px; background: var(--surface); box-shadow: 0 24px 40px -34px var(--shadow), inset 0 0 0 1px var(--line); }
.bk-pics { position: relative; }
.bk-pics-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 10; background: var(--surface-2); }
.bk-pics-strip::-webkit-scrollbar { display: none; }
.bk-pics-strip img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.bk-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.bk-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transition: width 0.2s; }
.bk-dots i.on { width: 18px; border-radius: 3px; background: #fff; }
.bk-room-body { padding: 16px 16px 6px; }
.bk-room h2 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.45rem; line-height: 1.15; }
.bk-facts-line { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 10px; color: var(--muted); font-size: 0.86rem; }
.bk-from { margin-left: auto; color: var(--text); font-weight: 800; }
.bk-desc { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.5; white-space: pre-line; }
.bk-desc.is-short { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bk-more { padding: 4px 0; border: 0; background: none; color: var(--accent); font: 700 0.86rem var(--font); cursor: pointer; }
.bk-amen { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.bk-amen li { padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 0.76rem; }
.bk-rates { margin: 14px -16px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.bk-rate { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bk-rate:last-child { border-bottom: 0; }
.bk-rate-info b { display: block; font-size: 0.98rem; line-height: 1.3; }
.bk-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.bk-tag { padding: 3px 9px; border-radius: 99px; font-size: 0.72rem; font-weight: 700; }
.bk-tag.is-good { background: color-mix(in srgb, var(--ok, #2e7d4f) 13%, transparent); color: var(--ok, #2e7d4f); }
.bk-tag.is-hot { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.bk-terms { margin-top: 8px; font-size: 0.82rem; }
.bk-terms summary { color: var(--accent); font-weight: 700; cursor: pointer; list-style: none; }
.bk-terms summary::-webkit-details-marker { display: none; }
.bk-terms summary::after { content: " ›"; }
.bk-terms[open] summary::after { content: " ‹"; }
.bk-terms p { margin: 6px 0 0; color: var(--muted); line-height: 1.5; white-space: pre-line; }
.bk-buy { display: grid; justify-items: end; gap: 2px; text-align: right; }
.bk-buy b { font-size: 1.15rem; font-weight: 800; white-space: nowrap; }
.bk-buy small { color: var(--muted); font-size: 0.76rem; }
.bk-choose { min-height: 40px; margin-top: 6px; padding: 0 18px; }

.bk-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }

/* the request sheet */
.bk-sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 560px; max-height: 92dvh; margin: 0 auto; padding: 0; border: 0;
  border-radius: 26px 26px 0 0; background: var(--bg); color: var(--text); display: none; flex-direction: column; overflow: hidden;
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.4); }
.bk-sheet[open] { display: flex; animation: bk-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bk-sheet::backdrop { background: rgba(10, 12, 20, 0.5); }
@keyframes bk-up { from { transform: translateY(40px); opacity: 0.4; } }
/* flex 1 1 auto: iPhone Safari collapses a 0-based scroller in a sheet
   that has only a max-height. */
.bk-sheet-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); }
.bk-sheet h2 { margin: 0 40px 12px 0; font-family: var(--display); font-weight: var(--display-weight); font-size: 1.7rem; }
.bk-x { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border: 0;
  border-radius: 50%; background: var(--surface); box-shadow: 0 2px 8px -4px var(--shadow); color: var(--text); cursor: pointer; }
.bk-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.bk-facts { display: grid; gap: 0; margin: 0 0 16px; padding: 4px 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.bk-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bk-facts div:last-child { border-bottom: 0; }
.bk-facts dt { color: var(--muted); font-size: 0.86rem; }
.bk-facts dd { margin: 0; font-weight: 600; text-align: right; font-size: 0.92rem; }
.bk-facts dd small { display: block; color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.bk-facts-total dd { font-size: 1.2rem; font-weight: 800; }
.bk-form .field { margin-bottom: 12px; }
.bk-pay { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px;
  background: var(--tint); color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.bk-pay .ic { flex: none; width: 22px; height: 22px; color: var(--copper); }
.bk-send { width: 100%; justify-content: space-between; padding: 0 22px; }
.bk-send b { font-weight: 800; }

/* the request page */
.bk-receipt { margin-top: 18px; }
.bk-ticket { padding: 26px 18px 18px; border-radius: 26px; background: var(--surface); box-shadow: 0 24px 50px -30px var(--shadow), inset 0 0 0 1px var(--line); text-align: center; }
.bk-ticket h1 { margin: 10px 0 6px; font-family: var(--display); font-weight: var(--display-weight); font-size: 2rem; line-height: 1.1; }
.bk-ticket > p { margin: 0 auto 18px; max-width: 34ch; color: var(--muted); }
.bk-ticket .bk-facts { text-align: left; }
.bk-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; }
.bk-mark svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bk-st-cancelled .bk-mark { background: var(--muted); }
.bk-st-cancelled .bk-mark svg path { d: path("M7 7l10 10M17 7L7 17"); }
.bk-help { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: 0.9rem; }
.bk-help a { font-weight: 700; }

@media (min-width: 640px) {
  .bk-search { grid-template-columns: 1.4fr 1.4fr auto; align-items: end; }
  .bk-guests { grid-template-columns: auto 1fr; }
  .bk-find { min-height: 50px; }
  .bk-sheet { inset: 0; margin: auto; border-radius: 26px; max-height: 88dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-sheet[open] { animation: none; }
}
