/* BookABite — styles
   Palette: harbour teal brand, mustard for actions and power, sea green for free/available.
   Type: Bowlby One (signage headlines) + Figtree (everything else). */

:root {
  --teal: #0E4D64;
  --teal-2: #13667F;
  --teal-deep: #0A3646;
  --teal-tint: #E3EEF2;
  --mustard: #FFC21A;
  --mustard-deep: #E5A800;
  --mustard-tint: #FFF4D1;
  --sea: #1C8558;
  --sea-tint: #E2F3EA;
  --red: #C33B2E;
  --red-tint: #FBE9E6;
  --ink: #12303A;
  --muted: #56707A;
  --line: #D3E0E5;
  --paper: #F3F7F8;
  --white: #FFFFFF;
  --radius-s: 6px;
  --radius: 12px;
  --radius-l: 20px;
  --shadow: 0 1px 2px rgba(10, 54, 70, .08), 0 6px 18px rgba(10, 54, 70, .07);
  --display: 'Bowlby One', 'Arial Black', Impact, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--white); min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--teal-2); text-underline-offset: 2px; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .005em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--mustard-deep); outline-offset: 2px; border-radius: 4px; }

/* ---------- preview banner ---------- */
.preview-bar { background: var(--mustard-tint); color: var(--ink); font-size: .85rem; text-align: center; padding: 6px 12px; border-bottom: 1px solid #F1DE9C; }

/* ---------- header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-family: var(--display); font-size: 1.45rem; letter-spacing: .01em; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: var(--radius-s); }
.nav a:hover { background: var(--paper); color: var(--teal); }
.nav a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -3px 0 var(--mustard); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

.nav-account { display: none; }
@media (max-width: 860px) {
  .nav-account { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); margin: 0; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--mustard); }
  .header-actions .btn-text-hide { display: none; }
}
@media (max-width: 560px) {
  .site-header .wrap { gap: 10px; }
  .brand span { font-size: 1.2rem; }
  .brand svg { width: 30px; height: 30px; }
  .header-actions { gap: 6px; }
  .header-actions .hide-sm { display: none; }
  .header-actions .btn { padding: 8px 12px; font-size: .9rem; }
  .menu-toggle { padding: 7px 9px; }
}

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700;
  border-radius: 10px; padding: 11px 18px; border: 2px solid transparent; cursor: pointer; text-decoration: none;
  line-height: 1.1; white-space: nowrap; transition: background-color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mustard); color: var(--teal-deep); border-color: var(--mustard); }
.btn-primary:hover { background: var(--mustard-deep); border-color: var(--mustard-deep); color: var(--teal-deep); }
.btn-teal { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-teal:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.btn-outline { background: var(--white); color: var(--teal); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal-2); color: var(--teal); }
.btn-ghost { background: transparent; color: var(--teal); border-color: transparent; padding-left: 10px; padding-right: 10px; }
.btn-ghost:hover { background: var(--paper); }
.btn-danger { background: var(--white); color: var(--red); border-color: #EBC4BE; }
.btn-danger:hover { background: var(--red-tint); }
.btn-sm { padding: 7px 12px; font-size: .875rem; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: .82rem; color: var(--muted); font-weight: 400; margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=url], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line);
  border-radius: 8px; padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(19, 102, 127, .18); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--teal); flex: none; margin: 2px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; margin-bottom: 10px; }
.check small { display: block; color: var(--muted); font-weight: 400; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.row-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.form-error { background: var(--red-tint); color: var(--red); border-radius: 8px; padding: 10px 12px; font-weight: 600; margin-bottom: 14px; }
.form-ok { background: var(--sea-tint); color: var(--sea); border-radius: 8px; padding: 10px 12px; font-weight: 600; margin-bottom: 14px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }

.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.choice span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .9rem; background: var(--white); }
.choice input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--mustard-deep); outline-offset: 2px; }

/* ---------- chips & badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.badge svg { width: 14px; height: 14px; }
.badge-verified { background: var(--sea-tint); color: var(--sea); }
.badge-power { background: var(--mustard-tint); color: #7A5600; }
.badge-sample { background: var(--paper); color: var(--muted); border: 1px dashed var(--line); }
.badge-status { background: var(--paper); color: var(--ink); }
.status-pending { background: var(--mustard-tint); color: #7A5600; }
.status-requested { background: var(--teal-tint); color: var(--teal); }
.status-accepted, .status-verified, .status-open { background: var(--sea-tint); color: var(--sea); }
.status-declined, .status-rejected, .status-cancelled { background: var(--red-tint); color: var(--red); }
.status-withdrawn, .status-closed { background: var(--paper); color: var(--muted); }

/* ---------- hero ---------- */
.hero { background: var(--teal); color: var(--white); position: relative; overflow: hidden; }
.hero::after { /* awning stripe along the bottom edge, like a truck's canopy */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 36px, var(--white) 36px 72px);
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 84px; }
.hero h1 { color: var(--white); margin-bottom: 16px; }
.hero .lede { font-size: 1.15rem; color: #CFE3EA; max-width: 34em; margin-bottom: 28px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; } }

.search-bar { background: var(--white); border-radius: var(--radius); padding: 10px; display: grid; grid-template-columns: 1.2fr 1fr 1.1fr auto; gap: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.search-bar label { color: var(--muted); font-size: .75rem; font-weight: 700; margin: 0 0 2px 4px; }
.search-bar .sb-field { display: flex; flex-direction: column; }
.search-bar select, .search-bar input { border: 0; background: var(--paper); min-height: 44px; }
.search-bar .btn { align-self: end; min-height: 48px; }
@media (max-width: 720px) { .search-bar { grid-template-columns: 1fr 1fr; } .search-bar .btn { grid-column: 1 / -1; } }

/* ---------- site plan (signature) ---------- */
.plan-card { background: var(--white); color: var(--ink); border-radius: var(--radius-l); padding: 22px; box-shadow: 0 16px 40px rgba(0, 0, 0, .22); }
.plan-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.plan-card .plan-meta { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.plan-ground { background: var(--paper); border-radius: var(--radius); padding: 14px; border: 2px dashed var(--line); }
.plan-ground .plan-label { font-size: .75rem; color: var(--muted); font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; }
.slots { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); }
.slots.mini { gap: 3px; grid-template-columns: repeat(12, 11px); justify-content: end; }
.slot { aspect-ratio: 1; border-radius: 6px; border: 2px solid var(--teal-2); background: var(--white); display: grid; place-items: center; position: relative; }
.slot svg { width: 60%; height: 60%; color: var(--mustard-deep); }
.slot.taken { background: var(--teal); border-color: var(--teal); }
.slot.taken svg { color: var(--mustard); }
.slots.mini .slot { border-width: 1.5px; border-radius: 3px; }
.slots.mini .slot svg { width: 80%; height: 80%; }
.slot-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); margin-top: 10px; }
.slot-legend span { display: inline-flex; align-items: center; gap: 6px; }
.slot-legend i { width: 14px; height: 14px; border-radius: 3px; border: 2px solid var(--teal-2); display: inline-grid; place-items: center; }
.slot-legend i.taken { background: var(--teal); border-color: var(--teal); }
.slot-legend i svg { width: 10px; height: 10px; color: var(--mustard-deep); }
.plan-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.plan-facts div { background: var(--paper); border-radius: 10px; padding: 8px 10px; }
.plan-facts b { display: block; font-size: 1.1rem; }
.plan-facts small { color: var(--muted); font-size: .78rem; }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-paper { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }

.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }
.path { padding: 34px; }
.path-truck { background: var(--mustard-tint); }
.path-organiser { background: var(--teal-tint); }
.path h2 { font-size: 1.6rem; }
.path ul { padding-left: 1.1em; margin: 0 0 22px; }
.path li { margin-bottom: 6px; }
.path .price-line { font-weight: 700; margin-bottom: 18px; }
@media (max-width: 760px) { .paths { grid-template-columns: 1fr; } .path { padding: 26px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.steps li { list-style: none; position: relative; padding-top: 52px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--mustard); color: var(--teal-deep); font-family: var(--display); display: grid; place-items: center; font-size: 1.1rem; }
.steps { padding: 0; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- truck tiles ---------- */
.truck-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.truck-tile { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); }
.truck-tile:hover { border-color: var(--teal-2); color: var(--ink); }
.truck-tile .art { aspect-ratio: 16 / 10; position: relative; background: var(--teal); }
.truck-tile .art img { width: 100%; height: 100%; object-fit: cover; }
.truck-tile .art .badges { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.truck-tile .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.truck-tile h3 { margin: 0; font-size: 1.1rem; }
.truck-tile .where { font-size: .87rem; color: var(--muted); }
.art-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--display); color: rgba(255, 255, 255, .92); font-size: 2.4rem; letter-spacing: .02em;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 14px, transparent 14px 28px); }

/* ---------- event rows ---------- */
.event-list { display: grid; gap: 12px; }
.event-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.event-row:hover { border-color: var(--teal-2); color: var(--ink); }
.date-block { background: var(--teal); color: var(--white); border-radius: 10px; text-align: center; padding: 8px 4px; line-height: 1.05; }
.date-block b { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 400; }
.date-block small { font-size: .78rem; font-weight: 700; color: #CFE3EA; }
.event-row h3 { margin: 0 0 4px; }
.event-row .facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .87rem; color: var(--muted); }
.event-row .facts strong { color: var(--ink); font-weight: 600; }
.event-row .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.left-count { font-weight: 700; font-size: .9rem; }
.left-count.full { color: var(--red); }
@media (max-width: 640px) {
  .event-row { grid-template-columns: 60px 1fr; }
  .event-row .right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}

/* ---------- list pages with filters ---------- */
.page-head { padding: 34px 0 18px; }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 6px; }
.with-filters { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; padding-bottom: 56px; }
.filters { background: var(--paper); border-radius: var(--radius); padding: 18px; position: sticky; top: 88px; }
.filters h2 { font-family: var(--body); font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.view-toggle { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.view-toggle button { background: var(--white); border: 0; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.view-toggle button[aria-pressed="true"] { background: var(--teal); color: var(--white); }
.map { height: 520px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); z-index: 0; }
.map-sm { height: 300px; }
.map-fallback { display: grid; place-items: center; height: 100%; color: var(--muted); padding: 20px; text-align: center; }
@media (max-width: 900px) { .with-filters { grid-template-columns: 1fr; } .filters { position: static; } }

.empty { text-align: center; padding: 48px 20px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--ink); }

/* ---------- detail pages ---------- */
.detail-head { padding: 30px 0 10px; }
.crumbs { font-size: .87rem; margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; padding-bottom: 56px; }
@media (max-width: 960px) { .detail-grid { grid-template-columns: 1fr; } }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.panel h2 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
.panel-accent { border: 2px solid var(--mustard); background: var(--mustard-tint); }
.sticky-side { position: sticky; top: 88px; }
.facts-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.facts-list dt { color: var(--muted); font-size: .9rem; }
.facts-list dd { margin: 0; font-weight: 600; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 160px; gap: 8px; border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.gallery > * { width: 100%; height: 100%; object-fit: cover; }
.gallery > :first-child { grid-row: span 2; }
.gallery.g1 { grid-template-columns: 1fr; grid-auto-rows: 200px; }
.gallery.g2 { grid-template-columns: 1fr 1fr; grid-auto-rows: 260px; }
.gallery.g2 > :first-child { grid-row: auto; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .gallery > :first-child { grid-column: span 2; }
  .gallery.g1 { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .gallery.g1 > :first-child { grid-column: auto; grid-row: auto; }
}
.menu-section { margin-bottom: 18px; }
.menu-section h3 { font-size: 1rem; border-bottom: 2px solid var(--mustard); padding-bottom: 4px; display: inline-block; }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item .price { font-weight: 700; }
.menu-item .desc { grid-column: 1 / -1; color: var(--muted); font-size: .9rem; }
.truck-title { display: flex; gap: 16px; align-items: center; }
.truck-title .logo { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; border: 1px solid var(--line); flex: none; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 30px 0 56px; align-items: start; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 88px; }
.dash-nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 10px 12px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.dash-nav a:hover { background: var(--paper); }
.dash-nav a[aria-current="page"] { background: var(--teal-tint); color: var(--teal); }
.dash-nav .count { background: var(--mustard); color: var(--teal-deep); border-radius: 999px; font-size: .75rem; padding: 1px 8px; }
.dash h1 { font-size: 1.9rem; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; padding-top: 16px; }
  .dash-nav { position: static; flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
  .dash-nav a { white-space: nowrap; }
}
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--line); }
.tick.done { background: var(--sea); border-color: var(--sea); color: var(--white); }
.tick svg { width: 14px; height: 14px; }
.checklist .grow { flex: 1; }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.list th, table.list td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: .8rem; color: var(--muted); font-weight: 700; }
.app-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; margin-bottom: 12px; background: var(--white); }
.app-card .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--teal); }
.app-card .thumb img, .app-card .thumb .art-placeholder { width: 100%; height: 100%; object-fit: cover; font-size: 1.2rem; }
.app-card .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.app-card blockquote { margin: 8px 0 0; background: var(--paper); padding: 8px 12px; border-radius: 8px; font-size: .92rem; }
@media (max-width: 640px) { .app-card { grid-template-columns: 48px 1fr; } .app-card .thumb { width: 48px; height: 48px; } .app-card .actions { grid-column: 1 / -1; justify-content: flex-start; } }

.menu-editor .menu-row { display: grid; grid-template-columns: 1fr 1.6fr .6fr auto; gap: 8px; margin-bottom: 8px; align-items: start; }
.menu-editor .menu-row textarea { grid-column: 2 / 4; min-height: 44px; }
@media (max-width: 700px) { .menu-editor .menu-row { grid-template-columns: 1fr 1fr; } .menu-editor .menu-row textarea { grid-column: 1 / -1; } }

.uploads { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-thumb { width: 110px; height: 80px; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid var(--line); background: var(--paper); }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-thumb button { position: absolute; top: 4px; right: 4px; background: rgba(255,255,255,.92); border: 0; border-radius: 6px; font-weight: 700; cursor: pointer; padding: 2px 7px; color: var(--red); }
.file-drop { display: flex; align-items: center; justify-content: center; width: 110px; height: 80px; border: 2px dashed var(--line); border-radius: 10px; color: var(--teal); font-weight: 700; cursor: pointer; font-size: .85rem; text-align: center; }
.file-drop:hover { border-color: var(--teal-2); background: var(--paper); }
.file-drop input { display: none; }

.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font-size: .75rem; color: var(--muted); text-align: center; font-weight: 700; }
.cal button { aspect-ratio: 1; border: 1px solid var(--line); background: var(--white); border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.cal button:hover { border-color: var(--teal-2); }
.cal button.off { background: var(--red-tint); border-color: #EBC4BE; color: var(--red); text-decoration: line-through; }
.cal button.booked { background: var(--teal); border-color: var(--teal); color: var(--white); cursor: default; }
.cal button[disabled] { opacity: .35; cursor: default; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

/* ---------- toast & dialog ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 10px; font-weight: 600; z-index: 100; box-shadow: var(--shadow); max-width: calc(100% - 40px); }
.toast.error { background: var(--red); }
dialog { border: 0; border-radius: var(--radius-l); padding: 24px; max-width: 520px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--ink); }
dialog::backdrop { background: rgba(10, 54, 70, .45); }

/* ---------- auth ---------- */
.auth-card { max-width: 460px; margin: 48px auto 64px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 30px; }
.auth-card h1 { font-size: 1.9rem; }
.code-input { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-weight: 700; }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.role-card { position: relative; }
.role-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.role-card span { display: block; border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; height: 100%; }
.role-card b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.role-card input:checked + span { border-color: var(--teal); background: var(--teal-tint); }
.role-card input:focus-visible + span { outline: 3px solid var(--mustard-deep); outline-offset: 2px; }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-deep); color: #BFD6DE; padding: 40px 0 28px; margin-top: auto; font-size: .92rem; }
.site-footer a { color: var(--white); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer .brand { color: var(--white); margin-bottom: 10px; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 16px; font-size: .82rem; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }

.loading { padding: 60px 20px; text-align: center; color: var(--muted); }

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

/* Leaflet popups in our type */
.leaflet-container { font-family: var(--body); }
.leaflet-popup-content a { font-weight: 700; }
