/* Layout: one turf, one long page — hero, booking board, info, footer. Floodlit-night palette, single dark theme. */
:root {
  --night: #07110c;
  --pitch: #0c1a13;
  --pitch-2: #12241a;
  --line: #24392c;
  --chalk: #f2f6f1;
  --muted: #9fb2a5;
  --lime: #b4f24a;
  --lime-ink: #0b1606;
  --booked: #ff7a80;
  --pending: #ffc04d;
  --blocked: #7d8b83;
  --ok: #5fe08d;
  --font-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius: 14px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--chalk); font-family: var(--font-body); font-size: 15px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--night); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.section { padding-block: 64px; }
.section-head { display: grid; gap: 8px; margin-bottom: 28px; max-width: 640px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(32px, 5vw, 44px); font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: 1; }
.section-head p { margin: 0; color: var(--muted); }
.todo { color: var(--pending); font-size: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: 14px; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--chalk); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-full { width: 100%; }

/* Header */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--night) 92%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: .02em; color: var(--chalk); text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; }
.brand b { color: var(--lime-ink); background: var(--lime); border-radius: 6px; padding: 0 6px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--lime); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; font-size: 20px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(100deg, var(--night) 0%, color-mix(in srgb, var(--night) 88%, transparent) 45%, color-mix(in srgb, var(--night) 35%, transparent)), url('https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=2000&q=80') center/cover, var(--pitch); }
.hero .wrap { padding-block: 72px 56px; display: grid; gap: 22px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 13vw, 140px); line-height: .85; text-transform: uppercase; letter-spacing: -.01em; }
.hero h1 span { color: var(--lime); }
.hero-sub { font-size: 18px; max-width: 520px; color: #d6e1d9; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--pitch) 85%, transparent); }
.facts div { padding: 14px 18px; display: grid; gap: 2px; min-width: 0; }
.facts div + div { border-left: 1px solid var(--line); }
.facts b { font-family: var(--font-display); font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts span { font-size: 12px; color: var(--muted); }

/* Booking board */
.book { background: var(--pitch); border-block: 1px solid var(--line); }
.book-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.board { background: var(--night); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.board h3, .checkout h3 { font-size: 16px; margin-bottom: 12px; }
.date-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(72px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.date-card { border: 1px solid var(--line); background: var(--pitch); border-radius: 12px; padding: 10px 6px; display: grid; gap: 2px; text-align: center; }
.date-card small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.date-card b { font-family: var(--font-display); font-size: 24px; line-height: 1; }
.date-card.selected { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.date-card.selected small { color: var(--lime-ink); }
.slot-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.slot-head h3 { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.dot-available { background: var(--ok); } .dot-booked { background: var(--booked); } .dot-selected { background: var(--lime); } .dot-closed { background: var(--blocked); }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, var(--night)); border-radius: 11px; padding: 11px 12px; text-align: left; display: grid; gap: 2px; min-height: 62px; }
.slot b { font-size: 14px; font-variant-numeric: tabular-nums; }
.slot small { font-size: 11px; color: var(--ok); font-weight: 700; }
.slot.booked { border-color: color-mix(in srgb, var(--booked) 40%, var(--line)); background: color-mix(in srgb, var(--booked) 8%, var(--night)); cursor: not-allowed; }
.slot.booked small { color: var(--booked); }
.slot.closed { border-color: var(--line); background: var(--pitch); color: var(--blocked); cursor: not-allowed; }
.slot.closed small { color: var(--blocked); }
.slot.selected { border-color: var(--lime); background: var(--lime); color: var(--lime-ink); }
.slot.selected small { color: var(--lime-ink); }
.wa-note { margin-top: 18px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--pitch); font-size: 13px; color: var(--muted); }
.wa-note b { color: var(--chalk); display: block; }

.checkout { background: var(--night); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.row span { color: var(--muted); }
.row b { text-align: right; font-variant-numeric: tabular-nums; }
.divider { border-top: 1px solid var(--line); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--pitch-2); font-size: 18px; line-height: 1; }
.total b { font-family: var(--font-display); font-size: 30px; color: var(--lime); }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.field input, .field select { width: 100%; min-width: 0; background: var(--pitch); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--chalk); font-size: 15px; }
.field input:focus { border-color: var(--lime); outline: none; }
.field-error { color: var(--booked); font-size: 12px; min-height: 0; }
.pay-options { display: grid; gap: 8px; }
.pay-option { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.pay-option input { accent-color: var(--lime); }
.pay-option span { display: grid; gap: 2px; }
.pay-option small { font-size: 12px; color: var(--muted); }
.fine { font-size: 12px; color: var(--muted); text-align: center; margin: 0; }

/* Info sections */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.steps li::before { content: "Step " counter(step); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.steps b { font-size: 16px; }
.steps span { color: var(--muted); font-size: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--pitch); min-width: 0; }
.panel h3 { font-family: var(--font-display); font-size: 26px; text-transform: uppercase; margin-bottom: 14px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--lime); font-weight: 800; }
.location { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.location address { font-style: normal; font-size: 18px; line-height: 1.5; }
.contact-line { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; margin-top: 10px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-item { padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--pitch); aspect-ratio: 4 / 3; max-width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox { flex-direction: column; }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; max-width: min(1000px, 100%); }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 12px; }
.lightbox figcaption { color: var(--muted); font-size: 14px; }
.lightbox-close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--pitch); font-size: 24px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--night); }
.footer .wrap { padding-block: 40px 28px; display: grid; gap: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.footer p, .footer address { margin: 0; font-style: normal; font-size: 14px; color: #c9d5cc; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.footer ul a { color: #c9d5cc; text-decoration: none; }
.footer ul a:hover { color: var(--lime); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; color: var(--muted); }
.credit a { color: var(--lime); font-weight: 700; text-decoration: none; }

/* Toast + modal */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 150%); opacity: 0; transition: .3s; background: var(--chalk); color: var(--lime-ink); padding: 12px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; z-index: 90; max-width: min(420px, calc(100vw - 32px)); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); }
.modal { width: min(440px, 100%); background: var(--pitch); border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: grid; gap: 12px; }
.modal h2 { font-family: var(--font-display); font-size: 32px; text-transform: uppercase; }
.modal p { margin: 0; color: var(--muted); font-size: 14px; }
.ticket { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 6px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 900px) {
  .book-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout { position: static; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 4px; background: var(--night); border-bottom: 1px solid var(--line); padding: 10px var(--gutter-r) 16px var(--gutter-l); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 16px; }
  .menu-btn { display: block; }
  .topbar .btn { display: none; }
  .hero .wrap { padding-block: 48px 40px; }
  .hero-sub { font-size: 16px; }
  .facts div { padding: 12px; }
  .facts b { font-size: 21px; }
  .section { padding-block: 48px; }
  .board, .checkout, .panel { padding: 16px; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid, .steps, .location, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* ---------- Owner dashboard ---------- */
.owner-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
.dash { padding-block: 24px 56px; display: grid; gap: 18px; }
.dash-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; }
.dash-top h1 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 40px); text-transform: uppercase; line-height: 1; }
.dash-top p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.day-picker { display: flex; align-items: center; gap: 8px; }
.day-picker button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--pitch); }
.day-picker input { background: var(--pitch); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--chalk); min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); background: var(--pitch); border-radius: var(--radius); padding: 16px; display: grid; gap: 2px; min-width: 0; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { font-family: var(--font-display); font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12px; color: var(--muted); }
.kpi.warn b { color: var(--pending); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; min-width: 0; }
/* Desktop: every slot of the day in one grid, like the booking page. Phones get tabs + swipe below. */
.period-tabs { display: none; }
.sched-hint-mobile { display: none; }
.card { border: 1px solid var(--line); background: var(--pitch); border-radius: var(--radius); padding: 18px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2 { font-size: 16px; }
.card-head small { color: var(--muted); font-size: 12px; }
.period-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.period-tab { border: 1px solid var(--line); background: var(--night); border-radius: 12px; padding: 10px 4px; display: grid; gap: 2px; justify-items: center; text-align: center; min-width: 0; }
.period-tab b { font-size: 13px; line-height: 1.2; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.period-tab small { font-size: 11px; line-height: 1.2; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.period-tab.active { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.period-tab.active small { color: var(--lime-ink); }
.sched { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .sched { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sched-row { --edge: var(--line); scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; min-height: 150px; padding: 14px 14px 12px; border-radius: 12px; background: var(--night); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--edge); min-width: 0; }
.sched-row.booked { --edge: var(--ok); }
.sched-row.pending { --edge: var(--pending); }
.sched-row.blocked { --edge: var(--blocked); }
.sched-row.past { opacity: .55; }
.sched-time { display: grid; gap: 4px; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched-time small { font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--muted); }
.sched-who { min-width: 0; display: grid; gap: 4px; align-content: start; }
.sched-who b { font-size: 15px; overflow-wrap: anywhere; }
.sched-who > span { display: flex; flex-wrap: wrap; gap: 4px; }
.sched-who small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.sched-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.sched-empty { color: var(--muted); font-size: 14px; padding: 20px 0; }
.chip { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.chip.paid { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.chip.pending { background: color-mix(in srgb, var(--pending) 18%, transparent); color: var(--pending); }
.chip.cancelled { background: color-mix(in srgb, var(--booked) 18%, transparent); color: var(--booked); }
.chip.sample { background: var(--pitch-2); color: var(--muted); }
.mini { border: 1px solid var(--line); background: var(--pitch-2); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.mini:hover { border-color: var(--lime); color: var(--lime); }
.mini.lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.mini.danger { border-color: var(--booked); color: var(--booked); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-grid .span { grid-column: 1 / -1; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.toggle-row:last-of-type { border-bottom: 0; }
.toggle-row small { display: block; color: var(--muted); font-size: 12px; }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--chalk); transition: left .2s; }
.switch:checked { background: var(--lime); }
.switch:checked::after { left: 21px; background: var(--lime-ink); }
.bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 160px; padding-top: 18px; border-bottom: 1px solid var(--line); }
.bar { position: relative; background: linear-gradient(to top, color-mix(in srgb, var(--lime) 45%, var(--pitch)), var(--lime)); border-radius: 6px 6px 0 0; min-height: 3px; }
.bar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--chalk); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-labels { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 6px; font-size: 11px; color: var(--muted); text-align: center; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
th { text-align: left; color: var(--muted); font-weight: 500; padding: 8px; border-bottom: 1px solid var(--line); }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

@media (max-width: 900px) {
  .stack { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .owner-tag { display: none; }
  .period-tabs { display: grid; }
  .sched-row { min-height: 168px; padding: 16px 14px 14px; }
  .sched-hint-mobile { display: inline; }
  .sched-hint-desktop { display: none; }
  .sched { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 8px; scrollbar-width: thin; }
  .period-tabs { gap: 5px; }
  .period-tab { padding: 9px 2px; }
  .period-tab b { font-size: 12px; }
  .period-tab .word { display: none; }
  .kpi b { font-size: 28px; }
}
