/* KaleMap design system.
   Hand written, no build step: one file, one request, no tooling to drift. */

:root {
  color-scheme: light dark;

  --bg: #f6f8f3;
  --bg-alt: #eef2ea;
  --surface: #ffffff;
  --surface-2: #f2f5ef;
  --text: #10201a;
  --muted: #5b6d63;
  --line: #dde5dc;
  --accent: #16794a;
  --accent-soft: #e3f2e8;
  --accent-ink: #0d5233;
  --warm: #b4741a;
  --warm-soft: #fdf1dd;
  --danger: #a52f2f;
  --danger-soft: #fbe9e9;
  /* Text on the accent colour. White on the deep light-mode green is 5.2:1;
     the dark-mode green is bright enough that near-black is the readable one. */
  --on-accent: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 26, .05), 0 8px 24px -12px rgba(16, 32, 26, .18);
  --shadow-lg: 0 2px 4px rgba(16, 32, 26, .06), 0 24px 48px -24px rgba(16, 32, 26, .3);
  --wrap: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b120e;
    --bg-alt: #101a15;
    --surface: #131f19;
    --surface-2: #18261f;
    --text: #e7f0e9;
    --muted: #93a89b;
    --line: #23342b;
    --accent: #4ade80;
    --accent-soft: #16301f;
    --accent-ink: #a7f3c6;
    --warm: #e5b169;
    --warm-soft: #2b2213;
    --danger: #f87171;
    --danger-soft: #2c1717;
    --on-accent: #04170e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .5), 0 24px 48px -24px rgba(0, 0, 0, .9);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.022em; margin: 0 0 .5em; font-weight: 680; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-top: 0; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
img { max-width: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.band { padding-block: clamp(28px, 4vw, 56px); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.narrow { max-width: 660px; }

.sr-only, .skip {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  padding: 10px 16px; background: var(--surface); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); z-index: 2000;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 900;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; text-decoration: none; color: var(--text); letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); }
.brand-name { font-size: 1.08rem; }
.head-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.head-nav a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted);
  font-size: .95rem; font-weight: 550;
}
.head-nav a:hover { color: var(--text); background: var(--surface-2); }
.head-nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }
.head-cta, .head-me {
  background: var(--accent) !important; color: var(--on-accent) !important; font-weight: 640;
}
@media (max-width: 620px) { .head-nav a:not(.head-cta):not(.head-me) { display: none; } }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 12% -10%, var(--accent-soft) 0%, transparent 58%),
    radial-gradient(90% 90% at 92% 0%, var(--warm-soft) 0%, transparent 52%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { padding-block: clamp(40px, 7vw, 88px); max-width: 860px; }
.hero h1 { margin-bottom: .3em; }
.hl { color: var(--accent-ink); }
.lede { font-size: clamp(1.05rem, .98rem + .5vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.hero-alt { margin-top: 14px; }

.search-hero { display: flex; gap: 10px; margin: 26px 0 0; max-width: 620px; }
.search-hero input {
  flex: 1; min-width: 0; padding: 15px 18px; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow);
}
.search-hero input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.search-hero button {
  padding: 15px 26px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 650; font-size: 1rem; font-family: inherit; cursor: pointer; box-shadow: var(--shadow);
}
.search-hero button:hover { filter: brightness(1.06); }

/* ---------- buttons ---------- */
.btn, .btn-ghost, .btn-danger, button {
  font-family: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  border-radius: 999px; padding: 11px 20px; border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.btn { background: var(--accent); color: var(--on-accent); }
.btn:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }

/* ---------- map ---------- */
.map {
  width: 100%; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow);
}
.map-tall { height: min(58vh, 520px); }
.map-short { height: 220px; }
.map-app { height: min(64vh, 620px); }
.map-preview { position: relative; }
.leaflet-container { font: inherit; background: var(--surface-2); }
.leaflet-control-attribution { display: none !important; }
.map-attrib {
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; font-size: .72rem; color: var(--muted);
  box-shadow: var(--shadow); max-width: 78vw;
}
.map-attrib a { color: var(--muted); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-lg); background: var(--surface); color: var(--text); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 12px 14px; font-size: .92rem; line-height: 1.45; }
.leaflet-popup-content h4 { margin: 0 0 4px; font-size: 1rem; }
.leaflet-popup-content a.pop-link { font-weight: 620; }
.pin {
  width: 26px; height: 26px; border-radius: 50% 50% 50% 6px; transform: rotate(45deg);
  border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
  display: grid; place-items: center;
}
.pin span { transform: rotate(-45deg); font-size: 11px; font-weight: 800; color: #04170e; }
.pin-vegan { background: #22c55e; }
.pin-vegetarian { background: #84cc16; }
.pin-options { background: #eab308; }
.pin-unknown { background: #94a3b8; }
.pin-none { background: #cbd5e1; }
.map-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.filter {
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  padding: 8px 16px; font-size: .9rem;
}
.filter.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card-link { display: block; padding: 18px; color: inherit; text-decoration: none; }
.card-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.card-heads h3 { margin: 0 0 2px; }
.card-summary { font-size: .92rem; color: var(--muted); margin: 10px 0 0; }
.addr { margin: 8px 0 0; }
.card-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.ring {
  --pct: 0;
  position: relative; flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--surface-2) 0);
}
.ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; z-index: 1; font-size: .92rem; font-weight: 700; }

.badge {
  display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .78rem; font-weight: 640;
  border: 1px solid transparent;
}
.badge-vegan { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.badge-vegetarian { background: var(--accent-soft); color: var(--accent-ink); }
.badge-options { background: var(--warm-soft); color: var(--warm); }
.badge-unknown { background: var(--surface-2); color: var(--muted); }
.badge-none { background: var(--danger-soft); color: var(--danger); }

.stars { display: inline-flex; align-items: center; gap: 6px; }
.stars-glyph { color: var(--warm); letter-spacing: 1px; }
.stars-num { font-weight: 650; }

/* ---------- layout blocks ---------- */
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3 { color: var(--accent-ink); }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

.city-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 24px; }
.city-chip {
  display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-decoration: none; color: inherit;
}
.city-chip:hover { border-color: var(--accent); }
.city-name { display: block; font-weight: 620; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
  padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: inherit; font-size: .9rem;
}
.chip-link:hover { border-color: var(--accent); }

.stat-row { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 20px 0 0; }
.stat-row li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 18px; min-width: 120px;
}
.stat-row b { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.stat-row span { font-size: .82rem; color: var(--muted); }

.crumbs { padding-top: 18px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { color: var(--muted); }

.empty { text-align: center; padding: 44px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h2 { font-size: 1.2rem; }

/* ---------- place page ---------- */
.place-head { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); padding-top: 24px; }
@media (max-width: 860px) { .place-head { grid-template-columns: 1fr; } }
.place-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.conf { font-size: .84rem; color: var(--muted); }
.ai-summary {
  background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px; font-size: .95rem;
}
.facts { display: grid; gap: 10px; margin: 20px 0; }
.facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: .93rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.place-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.vote-tally { margin-top: 10px; }
.score-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; margin-bottom: 14px; box-shadow: var(--shadow);
}
.score-card .ring { width: 74px; height: 74px; margin: 0 auto 8px; }
.score-card .ring b { font-size: 1.25rem; }

.menu-h { margin-top: 26px; display: flex; align-items: baseline; gap: 8px; }
.menu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.mi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.mi-vegan { border-left: 3px solid var(--accent); }
.mi-veganizable { border-left: 3px solid var(--warm); }
.mi-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mi-name { font-weight: 640; }
.mi-price { margin-left: auto; color: var(--muted); font-size: .9rem; }
.mi-desc { margin: 6px 0 0; font-size: .93rem; color: var(--muted); }
.mi-reason { margin: 6px 0 0; font-style: italic; }
.mi-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.mi-actions { margin-left: auto; display: flex; gap: 6px; }
.btn-vote {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
  padding: 6px 12px; font-size: .82rem;
}
.btn-vote:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-vote[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.chip { padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 640; }
.chip-vegan { background: var(--accent-soft); color: var(--accent-ink); }
.chip-veganizable { background: var(--warm-soft); color: var(--warm); }
.chip-not_vegan { background: var(--danger-soft); color: var(--danger); }
.chip-unknown { background: var(--surface-2); color: var(--muted); }
.ok { color: var(--accent-ink); }
.bad { color: var(--danger); }

.add-dish, .review-form, .auth-form {
  margin-top: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; display: grid; gap: 12px;
}
.add-dish .row, .review-form .row { display: flex; gap: 10px; flex-wrap: wrap; }
.add-dish .row > input { flex: 1 1 200px; }
input, select, textarea {
  font-family: inherit; font-size: .95rem; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--text); width: 100%;
}
textarea { resize: vertical; }
.auth-form label { font-size: .88rem; color: var(--muted); }
.auth-form button, .add-dish button, .review-form button { background: var(--accent); color: var(--on-accent); border: 0; justify-self: start; }

.reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.review-head { margin: 0 0 6px; display: flex; gap: 10px; align-items: center; }

.prose { padding-block: 24px 56px; }
.prose h2 { margin-top: 1.6em; }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 5px; font-size: .88em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: .4em; }

.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 620; }
.faq p { margin: 10px 0 0; color: var(--muted); }

.flash-ok { background: var(--accent-soft); color: var(--accent-ink); padding: 12px 16px; border-radius: var(--radius-sm); }
.flash-error { background: var(--danger-soft); color: var(--danger); padding: 12px 16px; border-radius: var(--radius-sm); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px;
  box-shadow: var(--shadow-lg); z-index: 1500; font-size: .92rem;
}

.city-head { padding-top: 24px; }
.city-head.tight { padding-bottom: 0; }
.error-page { text-align: center; padding-block: 80px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-alt); margin-top: 40px; padding-block: 36px 28px; }
.foot-grid { display: flex; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.foot-brand { font-weight: 700; margin-bottom: 4px; }
.site-foot nav { display: grid; gap: 6px; }
.site-foot nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.site-foot nav a:hover { color: var(--accent-ink); }
.foot-legal { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot-legal p { margin: 0; max-width: 80ch; }

/* OpenStreetMap ships no dark basemap. Inverting and re-rotating the hue of
   the tile pane gives a dark map that matches the rest of the interface,
   without a second tile provider to keep alive. Markers and popups sit in
   other panes and are untouched. */
@media (prefers-color-scheme: dark) {
  .leaflet-tile-pane { filter: invert(1) hue-rotate(185deg) brightness(.92) contrast(.9) saturate(.75); }
}

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

/* ---------- map v2: quiet dots, real pins, clusters, controls ---------- */
.dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.dot-unknown { background: #9aa8a0; }
.dot-none { background: #d6dbd8; }
.dot-cluster {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(154,168,160,.85); color: #fff; font-size: 11px; font-weight: 700;
  border: 2px solid rgba(255,255,255,.9); box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.pin { width: 28px; height: 28px; }
.pin span { font-size: 11.5px; }
.map-legend {
  display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 6px 10px; margin: 0 0 6px 6px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line);
  border-radius: 10px; font-size: .74rem; color: var(--muted); box-shadow: var(--shadow); max-width: 80vw;
}
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.lg-vegan { background: #22c55e; } .lg-vegetarian { background: #84cc16; } .lg-options { background: #eab308; } .lg-unknown { background: #9aa8a0; }
.map-search { margin: 10px 10px 0 0; width: min(320px, 70vw); position: relative; }
.map-search form {
  display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.map-search input { border: 0; background: transparent; padding: 10px 14px; font-size: .92rem; min-width: 0; flex: 1; }
.map-search input:focus { outline: none; }
.map-search button { border: 0; background: var(--accent); color: var(--on-accent); padding: 0 14px; font-size: 1rem; border-radius: 0; }
.map-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; list-style: none; margin: 0; padding: 6px 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 1000;
}
.map-suggest li { padding: 8px 14px; cursor: pointer; font-size: .9rem; }
.map-suggest li:hover { background: var(--surface-2); }
.map-locate-wrap { margin: 10px 0 0 10px; }
.map-locate {
  width: 40px; height: 40px; padding: 0; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 1.15rem; color: var(--accent-ink);
}
.leaflet-top.leaflet-left .leaflet-control-zoom { margin-top: 60px; }
.ring-unknown { background: conic-gradient(var(--line) 100%, var(--line) 0); }
.ring-unknown b { color: var(--muted); font-weight: 600; }
.result-count { margin: 10px 0 0; }

/* ---------- open-now, hours table, share/save, nearby ---------- */
.open-now { font-weight: 640; }
.open-now.ok { color: var(--accent-ink); }
.open-now.closed { color: var(--muted); }
.hours-table { display: grid; gap: 4px; margin: 6px 0 0; font-size: .92rem; }
.hours-table div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.hours-table .today { font-weight: 650; color: var(--accent-ink); }
.hours-note { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.btn-fav[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.nearby { margin-top: 8px; }
.collapsed-more { margin-top: 20px; }
.collapsed-more summary { cursor: pointer; font-weight: 620; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.collapsed-more .cards { margin-top: 14px; }
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 18px; }
.toolbar .filter { text-decoration: none; }
.dish-strip { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.dish-chip { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; text-decoration: none; color: inherit; }
.dish-chip b { display: block; }
.dish-chip span { font-size: .82rem; color: var(--muted); }
.dish-chip:hover { border-color: var(--accent); }
.contrib-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contrib-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .93rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hours-table div, .facts > div { grid-template-columns: 84px 1fr; }
  /* On a phone the menu is the product; the map and facts come after it. */
  .place-head { display: flex; flex-direction: column; }
  .place-head-side { order: 3; }
  .place-menu { order: 2; }
}

/* ---------- add a place ---------- */
.add-place { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 label, .veg-claim label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }
.veg-claim { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 8px; background: var(--surface); }
.veg-claim legend { padding: 0 6px; font-weight: 620; color: var(--text); }
.veg-claim label { grid-template-columns: auto 1fr; align-items: center; color: var(--text); font-size: .95rem; }
.veg-claim input { width: auto; }
.add-place .btn { justify-self: start; border: 0; }
.add-place .btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- install prompt ---------- */
.install-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: var(--radius-sm); font-size: .92rem;
}
.install-actions { display: flex; gap: 8px; }
.install-bar .btn, .install-bar .btn-ghost { padding: 8px 14px; font-size: .88rem; border: 0; }
