@font-face { font-family: 'Rubik'; font-weight: 400; font-display: swap; src: url(fonts/rubik/rubik-hebrew-400-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-weight: 500; font-display: swap; src: url(fonts/rubik/rubik-hebrew-500-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-weight: 600; font-display: swap; src: url(fonts/rubik/rubik-hebrew-600-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-weight: 700; font-display: swap; src: url(fonts/rubik/rubik-hebrew-700-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-weight: 800; font-display: swap; src: url(fonts/rubik/rubik-hebrew-800-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; font-weight: 400; font-display: swap; src: url(fonts/rubik/rubik-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-weight: 500; font-display: swap; src: url(fonts/rubik/rubik-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-weight: 600; font-display: swap; src: url(fonts/rubik/rubik-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rubik'; font-weight: 700; font-display: swap; src: url(fonts/rubik/rubik-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Secular One'; font-weight: 400; font-display: swap; src: url(fonts/secular-one/secular-one-hebrew-400-normal.woff2) format('woff2'); unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Secular One'; font-weight: 400; font-display: swap; src: url(fonts/secular-one/secular-one-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =========================================================
   Shawarmap brand system
   charcoal (grill) · amba yellow (signature) · ember (action) · tahini cream (surfaces)
   ========================================================= */
:root {
  color-scheme: light;
  --char: #1C1410; --char-2: #3A2C23;
  --flame: linear-gradient(135deg, #FFC62B 0%, #FF8A1F 48%, #E2401F 100%);
  --open: #1F9D55; --open-soft: #DDF5E6; --closed: #B5321C;
  --map-bg: #CFE2E6; --scrim: rgba(28,20,16,.55);
  --off-bg: #F4EFE8; --off-ink: #9C8E83; --missing: #857466; --placeholder: #8C7A6C;
  --info-bg: var(--slate-soft); --info-ink: #2F3A48; --info-strong: #1E2834;
  --ok-bg: #E3F1E8; --ok-ink: #1F5C39; --ok-line: #CFE5D7; --deal-bg: #FFF4D1; --kosher-bg: #EEF4FF;
  --ease-out: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --amba: #FFC62B; --amba-soft: #FFF1C7; --amba-deep: #8A5A00;
  --ember: #D23C22; --ember-dark: #B5321C; --ember-soft: #FDE6DF;
  --cream: #FFF8EE; --pita: #F6EBDA; --card: #FFFFFF;
  --line: #EFE2CF; --line-2: #E3D2BA;
  --ink: #1C1410; --ink-2: #4A3B30; --muted: #6A5849;
  --slate: #56657A; --slate-soft: #E9EDF2;
  --parsley: #2E7D4F; --on-ember: #fff; --fire: #E8650F;
  --display: 'Secular One', 'Rubik', system-ui, sans-serif;
  --shadow-1: 0 1px 2px rgba(28,20,16,.08), 0 2px 10px rgba(28,20,16,.06);
  --shadow-2: 0 14px 44px rgba(28,20,16,.22), 0 2px 8px rgba(28,20,16,.08);
  --r-xl: 28px; --r-lg: 22px; --r-md: 16px;
  --sheet-w: 420px; --top-h: 136px; --peek: 190px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; color: var(--ink); background: var(--map-bg); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--ember-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.mark { stroke-linecap: round; }
:focus-visible { outline: 3px solid var(--amba); outline-offset: 2px; }
.map { position: fixed; inset: 0; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; z-index: 6; top: 16px; inset-inline-start: 16px; width: var(--sheet-w); height: var(--top-h);
  padding: 18px 18px 0; border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: radial-gradient(130% 120% at 0% 0%, #3B2A20 0%, var(--char) 60%); color: #fff;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; min-height: 44px; }
.logo .mark { width: 36px; height: 36px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.wordmark { font-family: var(--display); font-size: 1.75rem; line-height: 1; letter-spacing: -.01em; }
.wordmark::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amba); margin-inline-start: 3px; vertical-align: baseline; }
.search {
  display: flex; align-items: center; gap: 10px; height: 52px; margin-top: 12px; padding: 0 8px 0 0; padding-inline: 16px 6px;
  background: var(--card); color: var(--ink); border-radius: 16px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.search > svg { color: var(--muted); }
.search input { flex: 1; min-width: 0; align-self: stretch; border: 0; outline: 0; background: none; font-size: 1.02rem; }
.search input::placeholder { color: var(--placeholder); }
.search input::-webkit-search-cancel-button { display: none; }
.clear { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-2); border-radius: 12px; cursor: pointer; }
.clear svg { width: 18px; height: 18px; }
.clear:hover { background: var(--pita); }

/* ---------- sheet / panel ---------- */
.sheet {
  position: fixed; z-index: 5; top: calc(16px + var(--top-h)); bottom: 16px; inset-inline-start: 16px; width: var(--sheet-w);
  background: var(--cream); border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; overflow: hidden;
}
.grab { display: none; }
.sheet-head { flex: none; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 16px 0; padding: 4px; background: var(--pita); border-radius: 16px; }
.seg button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: 12px; background: none;
  font-weight: 600; font-size: .95rem; color: var(--ink-2); cursor: pointer; transition: background .15s, box-shadow .15s, color .15s; }
.seg button b { font-weight: 700; font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: rgba(28,20,16,.08); color: var(--ink-2); }
.seg button.on { background: var(--char); color: #fff; box-shadow: 0 4px 12px rgba(28,20,16,.25); }
.seg #modeSure.on b { background: var(--amba); color: var(--char); }
.seg #modeCand.on { background: var(--slate); }
.seg #modeCand.on b { background: #fff; color: var(--slate); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.sure { background: var(--ember); box-shadow: 0 0 0 2px var(--amba); }
.dot.maybe { background: #fff; box-shadow: inset 0 0 0 2.5px var(--slate); }
.seg button.on .dot.maybe { box-shadow: inset 0 0 0 2.5px #fff; background: transparent; }

.chips { display: flex; gap: 8px; padding: 12px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; font-weight: 500; color: var(--ink);
}
.chip svg { width: 18px; height: 18px; }
.chip:hover { border-color: var(--char); }
.chip.on { background: var(--amba); border-color: var(--amba); color: var(--char); font-weight: 600; }
.chip.busy { opacity: .6; pointer-events: none; }
.chip.select { padding-inline-end: 10px; position: relative; }
.chip select { border: 0; background: none; outline: 0; cursor: pointer; font-weight: inherit; color: inherit; max-width: 140px; height: 44px; margin-block: -1.5px; appearance: none; -webkit-appearance: none; padding-inline-end: 2px; }
.chip .caret { width: 16px; height: 16px; opacity: .7; }

.stats { display: flex; align-items: baseline; gap: 10px; padding: 10px 20px 10px; font-size: .86rem; color: var(--muted); }
.stats .count { margin-inline-end: auto; }
.stats b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; color: var(--ink); letter-spacing: -.01em; }
.banner { display: flex; gap: 10px; align-items: flex-start; margin: 0 16px 10px; padding: 12px 14px; border-radius: 14px; background: var(--info-bg); color: var(--info-ink); font-size: .82rem; line-height: 1.45; }
.banner svg { color: var(--slate); margin-top: 1px; }
.banner b { display: block; font-weight: 700; color: var(--info-strong); }
.banner.in { margin: 12px 0 0; }

.scroller { flex: 1; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.list { list-style: none; margin: 0; padding: 6px 10px 10px; }

/* ---------- list items ---------- */
.item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 10px; border-radius: var(--r-md); cursor: pointer; transition: background .12s;
}
.item + .item { box-shadow: 0 -1px 0 var(--line); }
.item:hover, .item:focus-visible { background: var(--card); box-shadow: var(--shadow-1); outline: 0; }
.item:hover + .item, .item:focus-visible + .item { box-shadow: none; }
.item > div { min-width: 0; }
.avatar {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; position: relative;
  font-family: var(--display); font-size: 1.45rem; line-height: 1; padding-top: 2px;
}
.avatar.c0 { background: var(--char); color: var(--amba); }
.avatar.c1 { background: var(--amba); color: var(--char); }
.avatar.c2 { background: var(--ember); color: var(--on-ember); }
.avatar.c3 { background: var(--parsley); color: #fff; }
.avatar.c4 { background: #7A4A2B; color: #FFE9C2; }
.avatar.cand { background: var(--slate-soft); color: var(--slate); box-shadow: inset 0 0 0 2px #C5CEDA; }
.avatar .badge { position: absolute; inset-block-end: -4px; inset-inline-start: -4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.avatar .badge svg { width: 18px; height: 18px; }
.item h3 { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item .sub { margin-top: 3px; font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .side { display: grid; justify-items: end; gap: 6px; }
.dist { font-size: .82rem; font-weight: 600; color: var(--ink); white-space: nowrap; background: var(--pita); padding: 3px 8px; border-radius: 999px; }
.tag { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.sure { background: var(--amba); color: var(--char); }
.tag.maybe { background: var(--info-bg); color: var(--info-ink); }
.more, .empty { text-align: center; color: var(--muted); padding: 22px 16px; font-size: .92rem; line-height: 1.6; }
.empty .art { display: block; margin: 0 auto 10px; width: 64px; height: 64px; opacity: .9; }
.more button, .link { border: 1.5px solid var(--line-2); background: var(--card); border-radius: 999px; padding: 8px 20px; cursor: pointer; font-weight: 600; min-height: 44px; color: var(--ink); }
.link { margin-top: 10px; }
.more button:hover, .link:hover { border-color: var(--char); }

.skel { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 12px 10px; }
.skel i, .skel b, .skel s { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--pita) 0%, var(--card) 50%, var(--pita) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel i { width: 52px; height: 52px; border-radius: 16px; }
.skel b { height: 14px; width: 62%; } .skel s { height: 11px; width: 40%; margin-top: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- detail ---------- */
.detail { padding: 10px 14px 8px; animation: rise .22s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--ink-2); cursor: pointer; padding: 6px 4px; min-height: 44px; font-weight: 600; }
.back svg { width: 18px; height: 18px; }
.hero { position: relative; margin-top: 4px; padding: 20px 18px 18px; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--shadow-1); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px; background: repeating-linear-gradient(90deg, var(--amba) 0 18px, var(--ember) 18px 26px); }
.hero.cand::before { background: repeating-linear-gradient(90deg, #C5CEDA 0 18px, var(--slate) 18px 26px); }
.hero-top { display: flex; gap: 14px; align-items: center; }
.hero .avatar { width: 64px; height: 64px; border-radius: 20px; font-size: 1.8rem; flex: none; }
.hero h2 { margin: 6px 0 2px; font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.hero .alt { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.hero .where { margin-top: 12px; color: var(--ink-2); font-size: .96rem; }
.why { display: block; margin-top: 8px; font-size: .82rem; color: var(--muted); }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 68px; padding: 10px 4px; border-radius: 16px;
  background: var(--pita); color: var(--ink); font-size: .82rem; font-weight: 600; border: 0; cursor: pointer; text-decoration: none !important;
  transition: transform .15s var(--spring), background .15s;
}
.act svg { width: 22px; height: 22px; }
.act.primary { background: var(--ember); color: var(--on-ember); box-shadow: 0 6px 16px rgba(210,60,34,.35); }
.act.off { background: var(--off-bg); color: var(--off-ink); box-shadow: none; pointer-events: none; }
.rows { margin: 12px 0 0; padding: 4px 18px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row > svg { color: var(--ember); margin-top: 2px; }
.row .k { font-size: .76rem; color: var(--muted); }
.row .v { font-size: .96rem; overflow-wrap: anywhere; }
.missing { color: var(--missing); font-style: italic; }
.note { margin: 14px 4px 0; font-size: .8rem; color: var(--muted); line-height: 1.55; }
.note b { color: var(--ink-2); font-weight: 600; }

.foot { padding: 18px 20px 28px; font-size: .78rem; color: var(--muted); line-height: 1.55; border-top: 1px solid var(--line); margin-top: 8px; }
.foot p { margin: 6px 0; }
.foot b { color: var(--ink-2); font-weight: 600; }
.foot-brand { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; }
.foot-brand .mark { width: 24px; height: 24px; }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: var(--scrim); backdrop-filter: blur(3px); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.intro-card { width: min(420px, 100%); background: var(--cream); border-radius: var(--r-xl); padding: 28px 24px 22px; text-align: center; box-shadow: var(--shadow-2); position: relative; overflow: hidden; }
.intro-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 8px; background: repeating-linear-gradient(90deg, var(--amba) 0 22px, var(--ember) 22px 32px); }
.intro-card .mark { width: 72px; height: 72px; filter: drop-shadow(0 6px 10px rgba(28,20,16,.25)); }
.intro-card h2 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; margin: 10px 0 4px; }
.intro-card .lead { margin: 0 0 16px; color: var(--ink-2); }
.intro-card ul { list-style: none; margin: 0; padding: 0; text-align: start; display: grid; gap: 10px; }
.intro-card li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); padding: 12px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.45; }
.intro-card li .dot { margin-top: 5px; }
.intro-card .fine { font-size: .78rem; color: var(--muted); margin: 14px 0 16px; }
.cta { width: 100%; min-height: 52px; border: 0; border-radius: 16px; background: var(--char); color: #fff; font-family: var(--display); font-size: 1.2rem; cursor: pointer; box-shadow: 0 8px 20px rgba(28,20,16,.3); }
.cta:hover { background: var(--char-2); }

/* ---------- floating actions ---------- */
.fab-group { position: fixed; z-index: 4; top: 16px; inset-inline-end: 16px; display: flex; gap: 8px; }
.fab {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; box-shadow: var(--shadow-2);
}
.fab:hover { background: var(--pita); }
.fab.round { width: 46px; padding: 0; justify-content: center; }
.fab#export { background: var(--char); color: #fff; }
.fab#export svg { color: var(--amba); }
.toast {
  position: fixed; z-index: 30; bottom: 24px; inset-inline-end: 24px; background: var(--char); color: #fff; padding: 12px 18px; border-radius: 14px;
  font-size: .92rem; box-shadow: var(--shadow-2); max-width: min(92vw, 420px); border-inline-start: 4px solid var(--amba);
}
.maplibregl-ctrl-group { border-radius: 14px !important; box-shadow: var(--shadow-2) !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 44px !important; height: 44px !important; }
.maplibregl-ctrl-bottom-left .maplibregl-ctrl-attrib, .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib { font-size: 10.5px; border-radius: 10px; margin: 0 8px 8px; }
.maplibregl-ctrl-top-left, .maplibregl-ctrl-bottom-left { left: 0; }
.desktop .maplibregl-ctrl-bottom-right { right: calc(var(--sheet-w) + 24px); }
.desktop .maplibregl-ctrl-top-left { top: 72px; left: 6px; }
.sheet.detail-mode .sheet-head { display: none; }
.user-dot { width: 18px; height: 18px; border-radius: 50%; background: #2B7BF0; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(43,123,240,.2), 0 2px 6px rgba(0,0,0,.3); }


/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .topbar {
    top: calc(10px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); inset-inline: 10px; width: auto; height: auto; padding: 0; border-radius: 0; background: none;
    display: flex; gap: 8px; align-items: center;
  }
  .logo { flex: none; width: 52px; height: 52px; justify-content: center; border-radius: 16px; background: var(--char); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
  .logo .mark { width: 32px; height: 32px; }
  .wordmark { display: none; }
  .search { flex: 1; margin: 0; }
  .fab-group { top: calc(72px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))); inset-inline-end: 10px; flex-direction: column; }
  .fab span { display: none; }
  .fab { width: 46px; padding: 0; justify-content: center; }
  .maplibregl-ctrl-top-right, .maplibregl-ctrl-top-left { display: none; }
  .sheet {
    top: auto; bottom: 0; inset-inline: 0; width: auto; height: 90dvh; border-radius: 26px 26px 0 0;
    transform: translateY(calc(90dvh - var(--peek))); transition: transform .32s cubic-bezier(.2,.8,.2,1);
    padding-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 30px rgba(28,20,16,.18);
  }
  .sheet[data-state="half"] { transform: translateY(calc(90dvh - 56dvh)); }
  .sheet[data-state="full"] { transform: translateY(0); }
  .sheet.dragging { transition: none; }
  .grab { display: block; height: 22px; cursor: grab; touch-action: none; flex: none; }
  .grab span { display: block; width: 44px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 9px auto 0; }
  .sheet-head { touch-action: pan-x; }
  .seg { margin: 2px 12px 0; }
  .chips { padding: 10px 12px 2px; }
  .stats { padding: 8px 16px 8px; }
  .banner { margin: 0 12px 8px; }
  .maplibregl-ctrl-bottom-left, .maplibregl-ctrl-bottom-right { bottom: calc(var(--peek) - 6px); }
  .toast { bottom: calc(var(--peek) + 16px); inset-inline: 16px; }
  .sheet.detail-mode .sheet-head { display: none; }
  .sheet.detail-mode .detail { padding-top: 0; }
}

/* ---------- business owners (verified badge, owner box, sponsored) ---------- */
.vbadge { display: inline-flex; vertical-align: -3px; color: var(--parsley); }
.vbadge svg, .tag.owner svg, .owner-box h3 svg { width: 16px; height: 16px; }
.tag.owner { display: inline-flex; align-items: center; gap: 4px; background: var(--ok-bg); color: var(--ok-ink); }
.tag.owner svg { color: var(--parsley); }
.tag.ad { background: var(--char); color: var(--amba); }
.owner-box { margin: 12px 4px 0; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ok-line); }
.owner-box h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .95rem; color: var(--ok-ink); }
.owner-box h3 svg { color: var(--parsley); }
.owner-box p { margin: 6px 0; line-height: 1.5; }
.owner-box .owner-says { font-weight: 600; color: var(--ok-ink); }
.owner-box .photos { display: flex; gap: 8px; overflow-x: auto; margin: 10px -4px; padding: 0 4px 4px; scroll-snap-type: x mandatory; }
.owner-box .photos img { flex: 0 0 auto; width: 148px; height: 112px; object-fit: cover; border-radius: 12px; scroll-snap-align: start; background: var(--pita); }
.owner-box .deals { margin: 8px 0; padding: 0; list-style: none; }
.owner-box .deals li { padding: 8px 12px; margin: 6px 0; border-radius: 12px; background: var(--deal-bg); }
.owner-box .muted { color: var(--muted); }
.owner-box .small { font-size: .78rem; }
.note .claim { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: #B5321C; }
.owner-box .kosher { padding: 8px 12px; border-radius: 12px; background: var(--kosher-bg); }
.owner-box table.hours { border-collapse: collapse; margin: 8px 0; font-size: .9rem; }
.owner-box table.hours th { text-align: start; padding: 2px 0; padding-inline-end: 14px; font-weight: 600; color: var(--muted); }
.owner-box table.hours tr.today th, .owner-box table.hours tr.today td { color: var(--ink); font-weight: 700; }
.owner-box .menu h4 { margin: 12px 0 4px; font-size: .95rem; }
.owner-box .menu .msec { margin-top: 8px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.owner-box .menu ul { list-style: none; margin: 0; padding: 0; }
.owner-box .menu li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line-2); }

/* =========================================================
   Round 7: dark mode, discovery, community, motion
   ========================================================= */
/* ---------- dark theme: follows the system unless the visitor picks one ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --cream: #14100D; --pita: #3A2D24; --card: #2A201A; --line: #3A2E25; --line-2: #4E3E32;
  --ink: #FBF3E9; --ink-2: #E2D2C0; --muted: #B9A592; --placeholder: #9C8877;
  --slate-soft: #232B36; --map-bg: #101A1E; --scrim: rgba(0,0,0,.66);
  --off-bg: #2A201A; --off-ink: #7E6D60; --missing: #A99581;
  --info-bg: #212833; --info-ink: #C9D3E0; --info-strong: #E9EEF5;
  --ok-bg: #16301F; --ok-ink: #8FD5A8; --ok-line: #24492F; --deal-bg: #3D2A12; --kosher-bg: #18243A;
  --open: #3CCB7F; --open-soft: #143222; --closed: #FF9580; --amba-soft: #3D2E12; --amba-deep: #FFC870; --ember-soft: #43231A;
  --ember: #FF7A1A; --ember-dark: #FF9A4A; --on-ember: #1A120D; --fire: #FF8A1F;
  --shadow-1: 0 1px 2px rgba(0,0,0,.45), 0 4px 14px rgba(0,0,0,.3);
  --shadow-2: 0 18px 48px rgba(0,0,0,.6), 0 2px 8px rgba(0,0,0,.4);
}
.dark .seg button.on { background: var(--amba); color: var(--char); }
.dark .seg #modeSure.on b { background: var(--char); color: var(--amba); }
.dark .seg #modeCand.on { background: #3B4A5E; color: #fff; }
.dark .cta, .dark .fab#export, .dark .toast { background: #000; }
.dark .logo { box-shadow: 0 6px 20px rgba(0,0,0,.5), inset 0 0 0 1px #3A2C23; }
.dark .avatar.c0 { box-shadow: inset 0 0 0 1.5px #3A2C23; }
.dark .act.primary { box-shadow: 0 6px 16px rgba(210,60,34,.25); }
.dark .maplibregl-ctrl-group { background: var(--card) !important; }
.dark .maplibregl-ctrl-group button + button { border-top-color: var(--line) !important; }
.dark .maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(1) hue-rotate(180deg); }
.dark .maplibregl-ctrl-attrib { background: rgba(21,16,12,.8) !important; color: var(--muted); }
.dark .maplibregl-ctrl-attrib a { color: var(--ink-2); }
.dark .user-dot { border-color: #15100C; }

/* ---------- icon button (theme) ---------- */
.iconbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; flex: none; transition: transform .2s var(--spring), background .15s; }
.iconbtn:hover { background: rgba(255,255,255,.18); }
.iconbtn:active { transform: scale(.92); }
.topbar .iconbtn { position: absolute; top: 18px; inset-inline-end: 18px; }
.modal .iconbtn { background: var(--pita); color: var(--ink); }

/* ---------- quick chips additions ---------- */
.chip b { font-weight: 700; font-size: .75rem; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--ember); color: var(--on-ember); text-align: center; }
.chip[aria-pressed="true"], .chip.on { background: var(--amba); border-color: var(--amba); color: var(--char); font-weight: 600; }
.chip .live { width: 10px; height: 10px; border-radius: 50%; background: var(--open); box-shadow: 0 0 0 3px var(--open-soft); position: relative; }
.chip .live::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--open); opacity: 0; animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.2); opacity: 0; } }
.chip#favs svg { color: var(--ember); }
.chip#favs[aria-pressed="true"] svg { fill: var(--ember); }
.chip:active { transform: scale(.96); }
.chip { transition: transform .15s var(--spring), background .15s, border-color .15s; }

/* ---------- list item extras ---------- */
.item { animation: itemIn .32s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes itemIn { from { opacity: 0; transform: translateY(10px); } }
.item .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; align-items: center; }
.oh { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.oh::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.oh.open { color: var(--open); background: var(--open-soft); }
.oh.soon { color: var(--amba-deep); background: var(--amba-soft); }
.oh.closed { color: var(--closed); background: var(--ember-soft); }
.stars { display: inline-flex; align-items: center; gap: 3px; font-size: .76rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.stars svg { width: 14px; height: 14px; fill: var(--amba); stroke: #C68A00; stroke-width: 1.2; }
.stars .n { color: var(--muted); font-weight: 500; }
.fav-mini { color: var(--ember); display: inline-flex; }
.fav-mini svg { width: 16px; height: 16px; fill: var(--ember); }

/* ---------- detail upgrades ---------- */
.hero { animation: heroIn .38s var(--ease-out) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.hero::before { height: 7px; background: var(--flame); }
.hero .topline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hero .favbtn { position: absolute; top: 16px; inset-inline-end: 14px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--pita); color: var(--ember); display: grid; place-items: center; cursor: pointer; transition: transform .25s var(--spring); }
.hero .favbtn svg { width: 22px; height: 22px; }
.hero .favbtn[aria-pressed="true"] svg { fill: var(--ember); }
.hero .favbtn.pop { animation: pop .45s var(--spring); }
@keyframes pop { 30% { transform: scale(1.3); } }
.hero h2 { padding-inline-end: 44px; }
.hero .status-line { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.meats { display: flex; flex-wrap: wrap; gap: 6px; }
.meat { font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--pita); color: var(--ink-2); }
.act:active { transform: scale(.94); }
.section { margin: 12px 0 0; padding: 16px 18px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.section h3 { margin: 0 0 10px; font-size: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.score { display: flex; align-items: center; gap: 14px; }
.score .big { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.score .row-stars svg { width: 18px; height: 18px; fill: var(--amba); stroke: #C68A00; stroke-width: 1.2; }
.score .row-stars svg.off { fill: var(--line-2); stroke: var(--line-2); }
.reviews { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.review { padding: 12px 14px; border-radius: 14px; background: var(--pita); }
.review header { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; }
.review header b { font-weight: 700; }
.review p { margin: 6px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
.review .reply { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--card); font-size: .88rem; border-inline-start: 3px solid var(--parsley); }
.review .rmeta { display: flex; gap: 10px; margin-top: 6px; font-size: .76rem; color: var(--muted); }
.review .rmeta button { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; min-height: 32px; font-size: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0; cursor: pointer; font-weight: 700; font-size: .98rem; transition: transform .15s var(--spring), filter .15s; }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--ember); color: var(--on-ember); box-shadow: 0 6px 16px rgba(210,60,34,.3); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--pita); color: var(--ink); }
.btn.flame { background: var(--flame); color: var(--char); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.empty-note { color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 4px 0 0; }

/* ---------- modal bottom sheets ---------- */
.modal { position: fixed; inset: 0; z-index: 25; display: flex; align-items: flex-end; justify-content: center; background: var(--scrim); animation: fade .2s ease; }
.modal-card { width: min(560px, 100%); max-height: 88dvh; overflow-y: auto; background: var(--cream); border-radius: 28px 28px 0 0; padding: 8px 20px calc(20px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); box-shadow: var(--shadow-2); animation: sheetUp .38s var(--ease-out); }
.modal-card.tall { min-height: 60dvh; }
@keyframes sheetUp { from { transform: translateY(40%); opacity: .4; } }
@media (min-width: 761px) { .modal { align-items: center; } .modal-card { border-radius: 28px; } }
.modal-head { position: sticky; top: -8px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0 10px; background: var(--cream); }
.modal-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.fgroup { padding: 12px 0; border-top: 1px solid var(--line); }
.fgroup h3 { margin: 0 0 10px; font-size: .95rem; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; font-weight: 500; transition: transform .15s var(--spring), background .15s; }
.pill[aria-pressed="true"], .pill[aria-checked="true"] { background: var(--char); border-color: var(--char); color: #fff; }
.dark .pill[aria-pressed="true"], .dark .pill[aria-checked="true"] { background: var(--amba); border-color: var(--amba); color: var(--char); }
.pill:active { transform: scale(.95); }
.pill[disabled] { opacity: .45; cursor: not-allowed; }
.pill small { color: inherit; opacity: .7; margin-inline-start: 4px; }
.hint { margin: 8px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.modal-foot { position: sticky; bottom: -20px; display: flex; gap: 10px; padding: 14px 0 4px; background: var(--cream); }
.modal-foot .btn.primary { flex: 1; }
.seg.small { margin: 0 0 8px; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
.seg.small button { min-height: 40px; }
.ranks { list-style: none; margin: 6px 0 0; padding: 0; counter-reset: r; }
.ranks li { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 12px; animation: itemIn .3s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 25ms); }
.ranks li:hover { background: var(--card); }
.ranks .rk { font-family: var(--display); font-size: 1.3rem; text-align: center; color: var(--muted); }
.ranks li:nth-child(1) .rk { color: #C68A00; } .ranks li:nth-child(2) .rk { color: #8D9AA8; } .ranks li:nth-child(3) .rk { color: #B4703A; }
.ranks .nm { font-weight: 700; }
.ranks .bar { height: 6px; border-radius: 9px; background: var(--flame); margin-top: 6px; transform-origin: right; animation: grow .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 25ms + 120ms); }
@keyframes grow { from { transform: scaleX(0); } }
.ranks .sub2 { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.ranks .num { font-family: var(--display); font-size: 1.2rem; }

/* ---------- reviews form ---------- */
.starpick { display: flex; gap: 6px; direction: ltr; justify-content: flex-end; }
.starpick button { width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 4px; transition: transform .2s var(--spring); }
.starpick button svg { width: 38px; height: 38px; fill: var(--line-2); stroke: none; }
.starpick button.on svg { fill: var(--amba); }
.starpick button:active { transform: scale(.85); }
.field { display: grid; gap: 6px; margin: 14px 0 0; font-weight: 600; font-size: .9rem; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-weight: 400; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(255,198,43,.5); border-color: var(--amba); }
.form-actions { display: flex; gap: 10px; margin-top: 16px; }
.form-actions .btn.primary { flex: 1; }
.code-input { letter-spacing: .4em; text-align: center; font-size: 1.3rem !important; direction: ltr; }

/* ---------- surprise me ---------- */
.surprise-fab {
  position: fixed; z-index: 4; inset-inline-end: 16px; bottom: 28px; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 22px 0 18px;
  border: 0; border-radius: 999px; background: var(--flame); color: var(--char); font-family: var(--display); font-size: 1.15rem; cursor: pointer;
  box-shadow: 0 10px 28px rgba(226,64,31,.45), inset 0 -3px 0 rgba(0,0,0,.12); transition: transform .2s var(--spring);
}
.surprise-fab:hover { transform: translateY(-2px); }
.surprise-fab:active { transform: scale(.94); }
.surprise-fab .dice { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(28,20,16,.92); color: var(--amba); }
.surprise-fab .dice svg { width: 22px; height: 22px; stroke-width: 1.8; }
.surprise-fab.roll .dice { animation: roll .7s var(--spring); }
@keyframes roll { 50% { transform: rotate(200deg) scale(1.15); } 100% { transform: rotate(360deg); } }
.surprise { position: fixed; inset: 0; z-index: 26; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 45%, rgba(122,52,14,.95), rgba(20,13,9,.96) 62%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .2s ease; }
.slot { width: min(420px, 100%); text-align: center; color: #fff; }
.slot-label { font-size: .95rem; letter-spacing: .02em; opacity: .85; }
.slot-name { margin: 14px 0 6px; min-height: 2.4em; display: grid; place-items: center; font-family: var(--display); font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.15; color: var(--amba); text-shadow: 0 4px 24px rgba(255,138,31,.6); }
.slot-name.spin { animation: flick .09s steps(1) infinite; }
@keyframes flick { 50% { opacity: .55; transform: translateY(-3px); } }
.slot-name.landed { animation: land .6s var(--spring); }
@keyframes land { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.slot-sub { min-height: 1.4em; opacity: .9; }
.slot-actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; }
.slot-actions .btn.ghost { background: rgba(255,255,255,.16); color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
/* surprise me: where from */
.slot-pick { width: min(440px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 22px 18px 18px; border-radius: var(--r-xl); background: var(--cream); color: var(--ink); box-shadow: var(--shadow-2); text-align: start; }
.slot-pick h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.s-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-scope .pill { min-height: 48px; font-weight: 600; }
.s-opts { margin-top: 14px; }
.s-opts:empty { display: none; }
.s-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.s-city { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.s-city select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 600; }
.s-loc { display: grid; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.s-info { display: grid; gap: 6px; justify-items: start; margin-top: 14px; font-size: .95rem; font-weight: 600; }
.s-info:empty { display: none; }
.s-info .link { margin-top: 0; }
.s-none { color: var(--closed); }
.s-note { font-weight: 400; color: var(--muted); font-size: .82rem; }
.slot-pick .slot-actions { justify-content: stretch; margin-top: 18px; }
.slot-pick .slot-actions .btn.primary { flex: 1; }
.slot-pick .slot-actions .btn.ghost { background: var(--pita); color: var(--ink); border: 0; }
.slot-scope { margin-top: 14px; min-height: 44px; padding: 0 14px; border: 0; background: none; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .9; }
/* the list follows the map: "show all" when part of the results is off the visible map */
.view-all { align-self: center; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font-size: .82rem; font-weight: 600; cursor: pointer; }
.view-all b { font-family: inherit; font-size: inherit; font-weight: 700; }

/* ---------- intro additions ---------- */
.intro-card .mark.big { width: 84px; height: 84px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.intro-card .dice-dot { font-size: 1rem; line-height: 1; margin-top: 2px; }
.intro-card { animation: sheetUp .45s var(--ease-out); }

/* ---------- desktop placement ---------- */
.desktop .surprise-fab { bottom: 32px; inset-inline-end: 28px; }

/* ---------- mobile placement ---------- */
@media (max-width: 760px) {
  .topbar .iconbtn { position: static; width: 52px; height: 52px; border-radius: 16px; background: var(--char); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
  .surprise-fab { bottom: calc(var(--peek) + 14px); inset-inline-end: 12px; height: 50px; font-size: 1.05rem; padding: 0 18px 0 14px; }
  body.sheet-up .surprise-fab { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; }
  .surprise-fab { transition: transform .25s var(--spring), opacity .2s; }
}


/* ---------- round 7: tags, services, passport, compare ---------- */
.item .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.tag.fresh { background: var(--ember-soft); color: var(--ember-dark); }
.tag.deal { display: inline-flex; align-items: center; gap: 4px; background: var(--deal-bg); color: var(--amba-deep); }
.tag.deal svg { width: 13px; height: 13px; }
.tag.kosher-tag { background: var(--kosher-bg); color: var(--info-ink); }
.svcs { display: flex; flex-wrap: wrap; gap: 6px; }
.svc { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--pita); }
.svc svg { width: 16px; height: 16px; }
.actions.two { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.act.soft { flex-direction: row; min-height: 48px; font-size: .88rem; background: transparent; border: 1.5px dashed var(--line-2); }
.act.soft[aria-pressed="true"] { border-style: solid; border-color: var(--amba); background: var(--amba-soft); }
.act.soft svg { width: 20px; height: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ranks-empty { display: grid !important; grid-template-columns: 1fr !important; gap: 6px; padding: 22px 6px !important; cursor: default !important; text-align: center; }
.ranks-empty span { color: var(--muted); line-height: 1.5; }

.pp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 6px; }
.pp-stats div { display: grid; justify-items: center; padding: 12px 4px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-1); }
.pp-stats b { font-family: var(--display); font-size: 1.7rem; font-weight: 400; line-height: 1.1; }
.pp-stats span { font-size: .74rem; color: var(--muted); text-align: center; }
.pp-h { margin: 18px 0 8px; font-size: 1rem; display: flex; gap: 8px; align-items: baseline; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.badge { position: relative; display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: var(--card); border: 1.5px dashed var(--line-2); opacity: .6; animation: itemIn .3s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 30ms); }
.badge.on { opacity: 1; border: 0; background: linear-gradient(160deg, var(--amba-soft), var(--card)); box-shadow: var(--shadow-1); }
.badge .medal { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--line-2); color: var(--muted); margin-bottom: 4px; }
.badge.on .medal { background: var(--flame); color: var(--char); }
.badge .medal svg { width: 20px; height: 20px; }
.badge b { font-size: .9rem; }
.badge small { font-size: .74rem; color: var(--muted); }
.pp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pp-list button { width: 100%; display: flex; gap: 12px; align-items: center; min-height: 56px; padding: 6px 8px; border: 0; border-radius: 14px; background: var(--card); color: var(--ink); cursor: pointer; text-align: start; font: inherit; }
.pp-list button > span { display: grid; }
.pp-list small { color: var(--muted); font-size: .78rem; }

.modal-card.wide { width: min(760px, 100%); }
.cmp-wrap { overflow-x: auto; margin: 0 -4px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.cmp th, .cmp td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.cmp thead th { position: sticky; top: 0; background: var(--cream); font-size: .95rem; min-width: 96px; vertical-align: bottom; }
.cmp td { min-width: 96px; overflow-wrap: anywhere; }
.cmp thead th:first-child { min-width: 76px; width: 76px; }
.cmp thead .link { font-size: .88rem; line-height: 1.25; padding: 6px 10px; min-height: 44px; }
.cmp tbody th { color: var(--muted); font-weight: 600; width: 76px; min-width: 76px; font-size: .8rem; line-height: 1.3; }
.cmp .link { font-weight: 700; color: var(--ink); text-align: start; }
.cmp-x { margin-inline-start: 6px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pita); color: var(--ink); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.cmp-tray { position: fixed; z-index: 6; left: 50%; transform: translateX(-50%); bottom: 96px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; padding-inline-start: 18px; border-radius: 999px; background: var(--char); color: #fff; box-shadow: var(--shadow-2); animation: sheetUp .3s var(--ease-out); }
.cmp-tray .btn { min-height: 44px; border-radius: 999px; padding: 0 16px; }
.cmp-tray .btn.ghost { background: rgba(255,255,255,.12); color: #fff; }
.desktop .cmp-tray { bottom: 32px; }
@media (max-width: 760px) { body.sheet-up .cmp-tray { bottom: 16px; } }


/* ---------- Spit DNA ---------- */
.spit-grid { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.spit-cone { width: 96px; height: 128px; color: var(--ink); filter: drop-shadow(0 6px 12px rgba(120,50,20,.25)); }
.spit-legend { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.spit-legend li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.spit-legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.spit-legend b { margin-inline-start: auto; font-family: var(--display); font-weight: 400; font-size: 1.05rem; }
.spit .spice { margin: 8px 0 0; font-size: .88rem; color: var(--ink-2); }
.cul-row { margin-top: 10px; font-size: .9rem; line-height: 1.5; }
.section h3 .why { margin: 0; font-weight: 500; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; margin-top: 10px; font-size: .9rem; }
.check input { width: 22px; height: 22px; accent-color: var(--ember); }


/* ---------- home: "where are we eating today?" ---------- */
.home { padding: 6px 12px 4px; animation: heroIn .4s var(--ease-out) both; }
.home h2 { margin: 4px 4px 12px; font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 7vw, 2.1rem); line-height: 1.1; color: var(--ink); }
.home h2 em { font-style: normal; color: var(--fire); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 104px; padding: 14px 8px; border: 0; border-radius: 22px; background: var(--card); color: var(--ink);
  font-size: 1.02rem; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-1); transition: transform .18s var(--spring), background .15s; animation: itemIn .35s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
.tile svg { width: 32px; height: 32px; color: var(--fire); stroke-width: 1.8; }
.tile small { font-size: .74rem; font-weight: 500; color: var(--muted); }
.tile:hover { background: var(--pita); }
.tile:active { transform: scale(.95); }
.tile[aria-pressed="true"] { background: var(--fire); color: var(--on-ember); }
.tile[aria-pressed="true"] svg, .tile[aria-pressed="true"] small { color: var(--on-ember); }
.home-sub { margin: 18px 4px 6px; font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; color: var(--ink-2); }

/* ---------- design direction: charcoal, smoked brown, fire orange ---------- */
.dark body, body.dark { background: var(--cream); }
.dark .sheet { background: var(--cream); }
.dark .item { background: var(--card); border-color: transparent; }
.dark .item h3 { color: var(--ink); }
.dark .chip { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.dark .chip.on, .dark .chip[aria-pressed="true"] { background: var(--fire); border-color: var(--fire); color: var(--on-ember); }
.dark .chip svg { color: var(--fire); }
.dark .chip.on svg, .dark .chip[aria-pressed="true"] svg { color: var(--on-ember); }
.dark .search { background: var(--card); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--line-2); }
.dark .search input { color: var(--ink); }
.dark .search svg { color: var(--fire); }
.dark .seg { background: var(--card); }
.dark .seg button.on { background: var(--fire); color: var(--on-ember); }
.dark .seg #modeSure.on b { background: var(--on-ember); color: var(--fire); }
.dark .hero::before { background: linear-gradient(90deg, #FFC62B, #FF8A1F 55%, #E2401F); }
.dark .row > svg { color: var(--fire); }
.dark .act { background: var(--pita); }
.dark .act.primary { background: var(--fire); color: var(--on-ember); box-shadow: 0 8px 22px rgba(255,122,26,.3); }
.dark .btn.primary { background: var(--fire); color: var(--on-ember); box-shadow: 0 8px 22px rgba(255,122,26,.3); }
.dark a { color: var(--ember-dark); }
.dark .modal-card, .dark .modal-head, .dark .modal-foot { background: var(--cream); }
.dark .pill { background: var(--card); }
.dark .pill[aria-pressed="true"], .dark .pill[aria-checked="true"] { background: var(--fire); border-color: var(--fire); color: var(--on-ember); }
.dark .surprise-fab { box-shadow: 0 10px 30px rgba(255,122,26,.4), inset 0 -3px 0 rgba(0,0,0,.15); }
.dark .ranks .bar { background: linear-gradient(90deg, #FFC62B, #FF8A1F); }
.dark .ranks li:hover { background: var(--card); }
.dark .badge.on { background: linear-gradient(160deg, #4A2E14, var(--card)); }


/* ---------- language ---------- */
.langpick { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 500; font-size: .85rem; }
.langpick svg { width: 18px; height: 18px; color: var(--fire); }
.langpick select { border: 0; background: transparent; color: inherit; font: inherit; min-height: 44px; cursor: pointer; }
.langpick select option { background: var(--card); color: var(--ink); }
.home-sub { align-items: center; }
.tile.feat { grid-column: 1 / -1; grid-template-columns: auto 1fr; justify-items: start; text-align: start; gap: 14px; min-height: 92px; padding: 16px 18px;
  background: radial-gradient(120% 140% at 100% 0%, #FFB347 0%, var(--fire) 45%, #E2560F 100%); color: #1A120D; box-shadow: 0 10px 28px -12px rgba(255, 122, 26, .65); }
.tile.feat svg { width: 40px; height: 40px; color: #1A120D; }
.tile.feat .ft { display: grid; gap: 4px; }
.tile.feat b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.15; }
.tile.feat small { color: #2A1A10; font-size: .8rem; line-height: 1.35; }
.tile.feat:hover { background: radial-gradient(120% 140% at 100% 0%, #FFC266 0%, var(--fire-2, #FF962E) 45%, #E2560F 100%); }
.tiles > .tile:last-child:nth-child(even) { grid-column: 1 / -1; min-height: 72px; grid-auto-flow: column; gap: 10px; }
.lang-ltr .hero .favbtn { inset-inline-end: 14px; }


/* ---------- split ratings and live spit ---------- */
.parts { margin-top: 14px; display: grid; gap: 8px; }
.parts-h { font-weight: 600; font-size: .9rem; }
.part { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.part > span { font-size: .9rem; color: var(--ink-2); }
.minipick { display: flex; gap: 4px; direction: ltr; }
.minipick button { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font-weight: 700; cursor: pointer; }
.minipick button.on { background: var(--fire); border-color: var(--fire); color: var(--on-ember); }
.part-scores { display: grid; gap: 6px; margin-top: 12px; }
.part-scores div { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: .86rem; }
.part-scores i { height: 8px; border-radius: 9px; background: linear-gradient(90deg, #FFC62B, #FF8A1F) 0 0 / calc(var(--v) * 100%) 100% no-repeat, var(--pita); }
.part-scores b { text-align: end; }
.rparts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: .76rem; color: var(--muted); }
.rparts span { padding: 2px 8px; border-radius: 999px; background: var(--card); }
.tag.spit-fresh { background: var(--fire); color: var(--on-ember); }
.tag.spit-out { background: var(--off-bg); color: var(--muted); }


/* ---------- shawarma on the way ---------- */
.select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font: inherit; font-weight: 500; }
.route-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.route-list li { animation: itemIn .3s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 25ms); }
.route-list button { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; min-height: 60px; padding: 8px 12px; border: 0; border-radius: 16px; background: var(--card); color: var(--ink); text-align: start; font: inherit; cursor: pointer; }
.route-list .km { font-family: var(--display); font-size: 1.05rem; color: var(--fire); text-align: center; }
.route-list .rt { display: grid; } .route-list small { color: var(--muted); font-size: .78rem; }
#routeModal .fgroup { margin-top: 14px; }

/* ---------- Israeli Shawarma Index and place prices ---------- */
.prices h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prices h3 .btn { min-height: 44px; padding: 0 14px; font-size: .86rem; }
.pblock { margin-top: 10px; padding: 10px 12px; border-radius: 16px; background: var(--card); }
.ph { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.ph svg { width: 16px; height: 16px; stroke: var(--open); }
.prow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); }
.prow:first-of-type { border-top: 0; }
.prow b { font-family: var(--display); font-size: 1.15rem; color: var(--fire); }
.prow small { grid-column: 1 / -1; color: var(--muted); font-size: .74rem; }
#priceIndex .seg { margin-bottom: 14px; }
.ihero { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ihero > div { padding: 14px; border-radius: 20px; background: linear-gradient(160deg, var(--pita), var(--card)); border: 1px solid var(--line); }
.ih { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.ih svg { width: 16px; height: 16px; stroke: var(--open); }
.istat { display: grid; gap: 4px; margin-top: 6px; }
.iv { font-family: var(--display); font-size: 2.2rem; line-height: 1.05; color: var(--fire); }
.istat.thin .iv { color: var(--muted); }
.istat small { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.itable { display: grid; gap: 8px; }
.irow { display: grid; grid-template-columns: minmax(80px, 1fr) 1fr 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 16px; background: var(--card); }
.irow > b { align-self: center; }
.irow .iv { font-size: 1.25rem; }
.itrend { width: 100%; height: 110px; margin-top: 16px; border-radius: 16px; background: var(--card); }
.itrend-l { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; color: var(--muted); margin-top: 4px; }
.itrend-l i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline: 6px 4px; vertical-align: middle; }
.imethod { margin-top: 20px; padding: 14px; border-radius: 16px; border: 1px dashed var(--line-2); font-size: .86rem; line-height: 1.55; color: var(--ink-2); }
.imethod p { margin: 6px 0 0; }
.ifaq details { border-radius: 14px; background: var(--card); margin-top: 8px; }
.ifaq summary { min-height: 48px; display: flex; align-items: center; padding: 0 14px; font-weight: 600; cursor: pointer; list-style: none; }
.ifaq summary::after { content: '+'; margin-inline-start: auto; color: var(--fire); font-size: 1.3rem; }
.ifaq details[open] summary::after { content: '–'; }
.ifaq p { margin: 0; padding: 0 14px 14px; color: var(--ink-2); font-size: .88rem; line-height: 1.55; }
@media (max-width: 420px) {
  .irow { grid-template-columns: 1fr 1fr; }
  .irow > b { grid-column: 1 / -1; }
  .iv { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* dark theme: export button matches the other map controls (smoky card, fire icon) */
:root[data-theme="dark"] .fab#export { background: var(--card); color: var(--ink); border-color: var(--line-2); }
:root[data-theme="dark"] .fab#export svg { color: var(--fire); }

/* signed-in account bar under the review and price forms: sign out, delete account (in-app deletion) */
.acct { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.acct > span { flex: 1 1 100%; }
.linkbtn { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--ink-2); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.linkbtn.danger { color: var(--closed); }
.linkbtn:disabled { opacity: .6; }

/* community photos (approved before shown) */
.community h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.community h3 .btn { min-height: 44px; padding: 0 14px; font-size: .86rem; }
.cphotos { display: flex; gap: 10px; overflow-x: auto; margin: 10px -4px 0; padding: 0 4px 6px; scroll-snap-type: x mandatory; }
.cphotos figure { flex: 0 0 auto; margin: 0; width: 180px; scroll-snap-align: start; }
.cphotos img { width: 180px; height: 135px; object-fit: cover; border-radius: 14px; background: var(--pita); display: block; }
.cphotos figcaption { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .74rem; color: var(--muted); }
.cphotos .linkbtn { font-size: .74rem; font-weight: 500; }

/* ---------- decorative stock photos (img/stock/CREDITS.md) ----------
   Generic mood images only. Never attached to a business; always carry the "תמונת אווירה" label. */
.stock-photo { position: relative; margin: 0; overflow: hidden; background: var(--pita); }
.stock-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stock-label { position: absolute; inset-block-end: 8px; inset-inline-start: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(28,20,16,.72); color: #FFF8EE; font-size: .68rem; font-weight: 600; line-height: 1.5; pointer-events: none; }
.home-hero { aspect-ratio: 16 / 7; border-radius: var(--r-lg); margin: 0 0 12px; box-shadow: var(--shadow-1); }
.home-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(28,20,16,.35)); pointer-events: none; }
.home-hero .stock-label { z-index: 1; }
.empty-art { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 12px; box-shadow: var(--shadow-1); }
.empty-art .stock-label { inset-block-end: 14px; inset-inline-start: auto; left: 50%; transform: translateX(-50%); font-size: .6rem; padding: 1px 6px; white-space: nowrap; }

/* honeypot field of the report form: off-screen, never focused (people never fill it; simple bots do) */
.hp { position: absolute !important; inset-inline-start: 0; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.evsrc { font-size: .82rem; color: var(--muted); padding: 10px 4px; }
