/* Table Bay Venues — clean professional, white with deep blue. Shared by the customer app and the operator console. */
:root {
  --blue: #0B3D91; --blue-dark: #082C6A; --blue-soft: #E8EFFB; --blue-mid: #4B6CB7; --sky: #7FB3FF;
  --ink: #101828; --ink-2: #344054; --muted: #667085; --line: #E4E7EC; --bg: #FFFFFF; --bg-2: #F7F9FC;
  --ok: #067647; --ok-bg: #ECFDF3; --warn: #B54708; --warn-bg: #FFFAEB; --bad: #B42318; --bad-bg: #FEF3F2;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px -12px rgba(11,61,145,.18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2vw + .8rem, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 700; color: var(--blue-mid); margin-bottom: .6rem; }
.price, .money, .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.price { font-weight: 700; color: var(--blue); }
.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* Nav */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand img { height: 36px; width: auto; }
.brand-name { display: none; }
.nav { display: flex; gap: .25rem; align-items: center; }
.nav a, .nav button { text-decoration: none; color: var(--ink-2); font-weight: 600; padding: .6rem .8rem; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; font: inherit; cursor: pointer; }
.nav a:hover, .nav button:hover, .nav a.active { background: var(--blue-soft); color: var(--blue); }
.nav a:focus-visible, .btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; }
  .nav.open { display: flex; }
  .nav a, .nav button { width: 100%; justify-content: flex-start; }
  .menu-btn { display: inline-flex; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.2rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 16px -8px rgba(11,61,145,.6); }
.btn-secondary { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-secondary:hover { background: var(--blue-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-danger { background: #fff; color: var(--bad); border-color: #FDA29B; }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { min-height: 40px; padding: .45rem .9rem; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--blue-dark) url('/assets/hero-generated.webp') center/cover no-repeat; min-height: 560px; display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,44,106,.92) 0%, rgba(11,61,145,.78) 45%, rgba(11,61,145,.35) 100%); }
.hero .wrap { position: relative; padding: 4.5rem 0; }
.hero h1 { color: #fff; font-family: var(--serif); font-size: clamp(2.5rem, 5vw + 1rem, 4.25rem); line-height: 1.05; max-width: 14ch; margin-bottom: 1rem; }
.hero p.lead { font-size: clamp(1.05rem, 1vw + .8rem, 1.3rem); max-width: 52ch; color: rgba(255,255,255,.9); }
.hero .cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero .btn-secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-secondary:hover { background: rgba(255,255,255,.22); }
.hero .btn-primary { background: #fff; color: var(--blue); }
.hero .btn-primary:hover { background: var(--blue-soft); }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-stats div strong { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-stats div span { color: rgba(255,255,255,.8); font-size: .9rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head p { margin: 0; max-width: 60ch; }

/* Cards / grids */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.card:hover { box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 16px 32px -16px rgba(11,61,145,.3); }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.card-head h3 { margin: 0; }
.venue-art { height: 150px; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%); display: grid; place-items: center; color: #fff; position: relative; }
.venue-art.marquee { background: linear-gradient(135deg, #0E7C5B, #2FA878); }
.venue-art.meeting_room { background: linear-gradient(135deg, #1F4FA8, #5C8DE6); }
.venue-art svg { width: 64px; height: 64px; }
.venue-art .chip { position: absolute; left: 1rem; top: 1rem; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--line); }
.price-row .price { font-size: 1.35rem; }
.price-row .per { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.features { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.features li { font-size: .8rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .6rem; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue); white-space: nowrap; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.neutral { background: var(--bg-2); color: var(--ink-2); }
.meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.meta span { white-space: nowrap; }

/* Steps / trust */
.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 1rem; }

/* Forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; padding: .7rem .85rem; border: 1px solid #CBD5E1; border-radius: 10px; min-height: 44px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { color: var(--muted); font-size: .8rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.alert { padding: .85rem 1rem; border-radius: 10px; border: 1px solid; font-size: .95rem; }
.alert.error { background: var(--bad-bg); border-color: #FDA29B; color: var(--bad); }
.alert.ok { background: var(--ok-bg); border-color: #ABEFC6; color: var(--ok); }
.alert.info { background: var(--blue-soft); border-color: #B2CCFF; color: var(--blue-dark); }
.alert ul { margin: .25rem 0 0 1.1rem; padding: 0; }

/* Availability picker */
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; }
.hour { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hour:hover:not([disabled]) { border-color: var(--blue); color: var(--blue); }
.hour.selected { background: var(--blue); color: #fff; border-color: var(--blue); }
.hour.in-range { background: var(--blue-soft); color: var(--blue); border-color: #B2CCFF; }
.hour[disabled] { background: var(--bg-2); color: #B0B7C3; text-decoration: line-through; cursor: not-allowed; }
.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-right: .3rem; border: 1px solid var(--line); }
.summary { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; display: grid; gap: .5rem; position: sticky; top: 84px; }
.summary .line { display: flex; justify-content: space-between; gap: 1rem; }
.summary .total { font-size: 1.5rem; border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .3rem; }
.two-col { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .summary { position: static; } }

/* Lists / tables */
.list { display: grid; gap: 1rem; }
.row-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: #fff; display: grid; gap: .6rem; }
.row-card .top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.row-card .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
td.num, th.num { text-align: right; }
.timeline { border-left: 2px solid var(--line); margin-left: .4rem; padding-left: 1rem; display: grid; gap: .75rem; }
.timeline > div { position: relative; }
.timeline > div::before { content: ""; position: absolute; left: -1.45rem; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-2); }
.skeleton { height: 140px; border-radius: var(--radius); background: linear-gradient(90deg, #F2F4F7, #E4E7EC, #F2F4F7); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }

/* Footer */
.footer { background: var(--ink); color: #CBD5E1; padding: 3.5rem 0 2rem; margin-top: 4rem; }
.footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer h4 { color: #fff; font-size: .95rem; }
.footer a { color: #CBD5E1; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .trust { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.footer .trust span { border: 1px solid #344054; border-radius: 999px; padding: .25rem .7rem; font-size: .78rem; }
.footer .legal { border-top: 1px solid #344054; margin-top: 2rem; padding-top: 1.25rem; font-size: .8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Assistant */
.assistant { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; border-radius: var(--radius); padding: 2rem; display: grid; gap: 1rem; }
.assistant h3 { color: #fff; }
.assistant form { display: flex; gap: .6rem; flex-wrap: wrap; }
.assistant input { flex: 1 1 260px; min-height: 48px; border-radius: 10px; border: 0; padding: .7rem .9rem; font: inherit; }
.assistant .answer { background: rgba(255,255,255,.12); border-radius: 10px; padding: 1rem; }

/* Admin console */
.admin { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--blue-dark); color: #fff; padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar .brand { color: #fff; }
.sidebar .brand img { height: 32px; filter: brightness(0) invert(1); }
.sidebar .brand-name { display: block; font-family: var(--serif); font-size: 1.05rem; }
.sidebar .console-tag { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); font-weight: 700; }
.sidebar nav { display: grid; gap: .25rem; }
.sidebar nav a { color: #D0DCF5; text-decoration: none; padding: .7rem .9rem; border-radius: 10px; font-weight: 600; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar nav a.active { background: #fff; color: var(--blue-dark); }
.sidebar .badge { background: var(--sky); color: var(--blue-dark); border-radius: 999px; font-size: .72rem; padding: .1rem .5rem; font-weight: 800; }
.sidebar nav a.active .badge { background: var(--blue); color: #fff; }
.sidebar .who { margin-top: auto; font-size: .85rem; color: #D0DCF5; display: grid; gap: .5rem; }
.sidebar .who .btn { border-color: rgba(255,255,255,.4); color: #fff; }
.main { padding: 1.5rem clamp(1rem, 3vw, 2.5rem) 3rem; background: var(--bg-2); min-width: 0; }
.main-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.main-head h1 { font-size: clamp(1.5rem, 2vw + .8rem, 2rem); margin: 0; }
.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 1.5rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.stat .label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.stat .value { font-size: 1.8rem; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.week { display: grid; grid-template-columns: repeat(7, minmax(140px, 1fr)); gap: .6rem; overflow-x: auto; padding-bottom: .5rem; }
.day { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: .6rem; min-height: 140px; display: grid; gap: .5rem; align-content: start; }
.day h4 { font-size: .8rem; margin: 0; color: var(--ink-2); }
.day.today h4 { color: var(--blue); }
.slot-card { background: #fff; border-left: 4px solid var(--blue); border-radius: 8px; padding: .5rem .6rem; font-size: .8rem; display: grid; gap: .15rem; cursor: pointer; }
.slot-card.awaiting_approval { border-left-color: #F79009; }
.slot-card.cancelled { border-left-color: #D0D5DD; opacity: .6; text-decoration: line-through; }
.admin-topbar { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: fixed; inset: 0; z-index: 60; overflow-y: auto; }
  .admin-topbar { display: flex; align-items: center; justify-content: space-between; background: var(--blue-dark); color: #fff; padding: .6rem 1rem; position: sticky; top: 0; z-index: 50; }
  .admin-topbar img { height: 30px; filter: brightness(0) invert(1); }
}
.modal-back { position: fixed; inset: 0; background: rgba(16,24,40,.55); display: grid; place-items: center; padding: 1rem; z-index: 100; }
.modal { background: #fff; border-radius: var(--radius); padding: 1.5rem; width: min(560px, 100%); max-height: 90vh; overflow: auto; display: grid; gap: 1rem; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: 10px; z-index: 200; font-size: .92rem; box-shadow: var(--shadow); max-width: calc(100% - 2rem); }
