/* Customer-facing pages: menu, reservation, booking lookup */

.ic { display: inline-flex; width: 22px; height: 22px; flex: none; }
.ic svg { width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(env(safe-area-inset-top, 0px) + 28px); }
.hero-inner { display: grid; gap: 18px; padding-bottom: 8px; }
.hero .lockup .name { font-size: clamp(2.2rem, 9vw, 3.1rem); }
.hero .tagline { color: var(--mist); font-size: var(--fs-lg); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.table-chip {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  border: 1px dashed rgba(217,174,98,.55); border-radius: 999px; padding: 6px 14px;
  color: var(--brass-hi); font-size: var(--fs-sm);
}
.table-chip b { font-family: var(--font-board); font-size: 1.2rem; font-weight: 500; direction: ltr; }

/* ---------- Section nav ---------- */
.secnav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(10,19,36,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); }
.secnav-scroll { display: flex; gap: 8px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.secnav-scroll::-webkit-scrollbar { display: none; }
.secnav .chip { text-decoration: none; }
.secnav .chip.is-active { background: var(--brass); color: var(--night); border-color: var(--brass); }

.searchbar { position: relative; margin-block: 16px 4px; }
.searchbar .ic { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--mist); width: 20px; height: 20px; }
.searchbar .input { padding-right: 40px; border-radius: 999px; background: var(--night-2); }

/* ---------- Menu sections ---------- */
.menu { padding-bottom: 40px; }
.msec { padding-top: 28px; scroll-margin-top: 70px; }
.msec-head { display: flex; align-items: flex-end; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.msec-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(217,174,98,.5); color: var(--brass); flex: none; }
.msec-icon .ic { width: 24px; height: 24px; }
.msec-title { flex: 1; min-width: 0; }
.msec-title h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xl); line-height: 1.2; color: var(--ink); }
.msec-title p { color: var(--mist); font-size: var(--fs-sm); }
.msec-count { color: var(--mist); font-size: var(--fs-sm); white-space: nowrap; }

.items { list-style: none; margin: 0; padding: 0; }
.item {
  --photo: 116px;
  display: grid; grid-template-columns: var(--photo) minmax(0, 1fr); align-items: start; gap: 16px;
  padding-block: 16px; border-bottom: 1px dashed var(--rule);
}
@media (min-width: 560px) { .item { --photo: 140px; } }
.item:last-child { border-bottom: 0; }

/* Photo: square, framed like a window of the tower; tap to open full screen */
.item-photo {
  position: relative; display: block; width: var(--photo); aspect-ratio: 1; max-width: 100%;
  padding: 0; border: 1px solid rgba(217,174,98,.35); border-radius: 14px; overflow: hidden;
  background: var(--night-3); cursor: zoom-in;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}
.item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.item-photo:hover img { transform: scale(1.04); }
.item-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.item-photo.ph { display: grid; place-items: center; cursor: default; color: rgba(217,174,98,.55); box-shadow: none; border-style: dashed;
  background: repeating-linear-gradient(135deg, var(--night-3) 0 10px, var(--night-2) 10px 20px); }
.item-photo.ph .ic { width: 38px; height: 38px; }
.item-main { min-width: 0; display: grid; gap: 5px; align-content: start; padding-top: 2px; }
.item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.item-top h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.4; }
.item-desc { color: var(--mist); font-size: var(--fs-sm); line-height: 1.55; }
.item-price { margin-top: 6px; }
.item.out .item-photo img { filter: grayscale(1); }
@media (prefers-reduced-motion: reduce) { .item-photo img { transition: none; } }

/* Full-screen photo */
.lb-open, .lb-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 56px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(5,10,20,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lb-fig { margin: 0; width: min(560px, 100%); display: grid; gap: 14px; }
.lb-fig img { width: 100%; max-height: 66vh; object-fit: contain; border-radius: 16px; background: var(--night-2); border: 1px solid rgba(217,174,98,.35); }
.lb-fig figcaption { display: grid; gap: 6px; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lb-top strong { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; }
.lb-fig p { color: var(--mist); }
.lb-close {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); left: max(12px, env(safe-area-inset-left, 0px));
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--rule); background: var(--night-2); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
}

/* Price "flap": one cell of a departure board */
.flap {
  display: inline-flex; align-items: baseline; gap: 5px;
  background: var(--night-3);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 4px 9px 3px;
  position: relative;
  white-space: nowrap;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(10,19,36,.75); }
.flap .num { font-family: var(--font-board); font-size: 1.45rem; line-height: 1; color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.flap .cur { font-size: .7rem; color: var(--mist); }
.item.out { opacity: .5; }
.flap .out { font-size: .85rem; font-weight: 600; color: var(--mist); }

.empty-search { text-align: center; color: var(--mist); padding: 40px 0; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--rule); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); background: #081022; }
.foot-grid { display: grid; gap: 16px; }
.foot-row { display: flex; gap: 12px; align-items: flex-start; }
.foot-row .ic { color: var(--brass); margin-top: 2px; }
.foot-row .k { color: var(--mist); font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; }
.foot-row .v { font-weight: 500; }
.foot-row .v.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.foot-note { color: var(--mist); font-size: var(--fs-sm); padding-top: 8px; }
.foot-sign { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; margin-top: 8px; border-top: 1px dashed var(--rule); color: var(--mist); font-size: var(--fs-xs); }

/* Floating reserve button */
.fab {
  position: fixed; z-index: 25;
  left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: center; pointer-events: none;
  transform: translateY(calc(100% + 40px)); transition: transform .25s ease;
}
.fab.show { transform: none; }
.fab .btn { pointer-events: auto; box-shadow: 0 10px 30px rgba(0,0,0,.45); min-width: 220px; }
@media (prefers-reduced-motion: reduce) { .fab { transition: none; } }

/* Loading */
.load-rows { display: grid; gap: 12px; padding-top: 24px; }
.load-rows .skeleton { height: 54px; }

/* ---------- Sub-page header ---------- */
.subhead { padding-top: calc(env(safe-area-inset-top, 0px) + 16px); padding-bottom: 6px; }
.subhead-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.subhead .lockup .name { font-size: 1.35rem; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--mist); text-decoration: none; font-size: var(--fs-sm); }
.back-link:hover { color: var(--brass-hi); }
.page-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-2xl); line-height: 1.2; margin-top: 22px; }
.page-lead { color: var(--mist); margin-top: 6px; }

/* ---------- Reservation form ---------- */
.steps { display: grid; gap: 26px; padding-block: 24px 48px; }
.step { display: grid; gap: 12px; }
.step-h { display: flex; align-items: baseline; gap: 10px; }
.step-h .n { font-family: var(--font-board); color: var(--brass); font-size: 1.3rem; line-height: 1; }
.step-h h2 { font-size: 1.1rem; font-weight: 600; }
.step-h .hint { color: var(--mist); font-size: var(--fs-sm); margin-inline-start: auto; }

.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.day {
  flex: none; display: grid; justify-items: center; gap: 2px;
  width: 78px; padding: 10px 6px; border-radius: var(--radius);
  border: 1px solid var(--rule); background: var(--night-2); cursor: pointer;
}
.day .w { font-size: .78rem; color: var(--mist); white-space: nowrap; }
.day .d { font-family: var(--font-board); font-size: 1.9rem; line-height: 1; color: var(--ink); }
.day .m { font-size: .72rem; color: var(--mist); white-space: nowrap; }
.day[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); }
.day[aria-pressed="true"] .w, .day[aria-pressed="true"] .d, .day[aria-pressed="true"] .m { color: var(--night); }

.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--rule); border-radius: 999px; padding: 4px; background: var(--night-2); width: fit-content; }
.stepper button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--night-3); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 92px; text-align: center; font-family: var(--font-board); font-size: 1.6rem; line-height: 1; }
.stepper output small { font-family: var(--font-body); font-size: .8rem; color: var(--mist); margin-inline-start: 4px; }

.areas { display: flex; flex-wrap: wrap; gap: 8px; }
.areas .chip small { opacity: .75; font-weight: 400; }

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot {
  display: grid; justify-items: center; gap: 1px; padding: 8px 4px;
  border-radius: var(--radius-sm); border: 1px solid var(--rule); background: var(--night-2); cursor: pointer;
}
.slot .c { font-family: var(--font-board); font-size: 1.45rem; line-height: 1; }
.slot .p { font-size: .7rem; color: var(--mist); }
.slot[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--night); }
.slot[aria-pressed="true"] .p { color: var(--night); }
.slot:disabled { cursor: not-allowed; opacity: .38; }
.slot:disabled .c { text-decoration: line-through; text-decoration-thickness: 1px; }
.slots-empty { color: var(--mist); font-size: var(--fs-sm); }
.slots .skeleton { height: 54px; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }
.ltr-input { direction: ltr; text-align: right; }

.summary {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center;
  font-size: var(--fs-sm); font-weight: 500; color: var(--brass-hi);
  border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--night-2);
}
.summary .muted { color: var(--mist); }

.result { display: grid; gap: 16px; padding-block: 24px 56px; }
.result .actions { display: flex; flex-wrap: wrap; gap: 10px; }

.lookup { display: grid; gap: 14px; padding-block: 24px; }
.confirm-box { display: grid; gap: 10px; border: 1px solid rgba(229,84,75,.5); border-radius: var(--radius); padding: 14px; background: rgba(229,84,75,.06); }
.confirm-box .row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-danger { background: var(--beacon); color: #fff; }
.foot-sign .latin { font-family: var(--font-board); letter-spacing: .2em; direction: ltr; }
