/* תעודתא · מערכת עיצוב
   נייר קריר, דיו ירוק-שחור, כחול-ירוק עמוק כצבע ראשי, פליז לחותמות. סטטוסים בצבע משלהם.
   כותרות: Frank Ruhl Libre (סריף עברי, כמו תעודה). ממשק: Heebo. */
:root {
  --paper: #eef0eb;
  --panel: #ffffff;
  --panel-2: #f7f8f5;
  --ink: #14211b;
  --ink-2: #51605a;
  --ink-3: #8a948f;
  --line: #d3d9d3;
  --line-2: #e6eae5;
  --primary: #10394a;
  --primary-ink: #ffffff;
  --primary-soft: #dbe7ec;
  --brass: #9c7a2c;
  --brass-soft: #f4ecd8;
  --active: #1d7f4e;    --active-soft: #dff3e7;
  --unknown: #9a6700;   --unknown-soft: #fff1cc;
  --expired: #6b7280;   --expired-soft: #e8eaee;
  --revoked: #b3261e;   --revoked-soft: #fbe3e1;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 33, 27, .06), 0 8px 24px rgba(20, 33, 27, .08);
  --font-ui: "Heebo", "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
  --font-display: "Frank Ruhl Libre", "David", "Times New Roman", serif;
  --topbar-h: 58px;
}
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); line-height: 1.55; min-height: 100vh; }
a { color: var(--primary); }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 700; line-height: 1.2; margin: 0; text-wrap: balance; }
h1 { font-size: 2rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.15rem; }
p { margin: .5rem 0; }
small { font-size: .85rem; }
.fine { color: var(--ink-2); font-size: .9rem; }
.muted { color: var(--ink-2); }
.eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin: 0 0 .4rem; }
.lede { font-size: 1.1rem; max-width: 60ch; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--topbar-h); display: flex; align-items: center; gap: 1.25rem; padding: 0 1rem; background: var(--primary); color: var(--primary-ink); }
.brand { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; min-width: 0; }
.seal { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.brand-text small { font-size: .72rem; opacity: .8; white-space: nowrap; }
.mainnav { display: flex; gap: .25rem; margin-inline-start: auto; align-items: center; }
.mainnav a { color: inherit; text-decoration: none; padding: .45rem .7rem; border-radius: 6px; opacity: .9; font-weight: 500; }
.mainnav a:hover { background: rgba(255,255,255,.1); opacity: 1; }
.mainnav a[aria-current] { background: rgba(255,255,255,.16); opacity: 1; box-shadow: inset 0 -2px 0 var(--brass); }
.mainnav a.quiet { opacity: .7; font-weight: 400; }
.mainnav a.lang { font-size: .8rem; border: 1px solid rgba(255,255,255,.35); padding: .2rem .5rem; }
.navtoggle { display: none; margin-inline-start: auto; background: none; border: 0; padding: .5rem; cursor: pointer; }
.navtoggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }

/* ---------- page ---------- */
.page { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.page.narrow { max-width: 760px; }
.foot { max-width: 1080px; margin: 0 auto; padding: 1rem 1rem 2rem; color: var(--ink-2); font-size: .85rem; }
.disclaimer { background: var(--panel); border: 1px solid var(--line); border-inline-start: 4px solid var(--brass); padding: .7rem 1rem; color: var(--ink); border-radius: 6px; }
.foot-meta a { color: var(--ink-2); }

/* ---------- buttons, chips, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .55rem 1.2rem; border-radius: 8px; border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { box-shadow: 0 4px 14px rgba(16,57,74,.3); }
.btn.ghost { background: var(--panel); color: var(--primary); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--primary); }
.btn.link { background: none; color: var(--ink-2); min-height: 36px; }
.btn.danger { background: var(--revoked); color: #fff; }
.btn.small { min-height: 34px; padding: .3rem .8rem; font-size: .9rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.actions.column { flex-direction: column; align-items: stretch; max-width: 360px; }

.chip { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .25rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font-size: .9rem; cursor: pointer; white-space: nowrap; text-decoration: none; }
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.chip.profile { border-color: var(--brass); background: var(--brass-soft); font-weight: 600; }
.chip.profile .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.chip.select { appearance: none; padding-inline-end: 1.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2351605a' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left .7rem center; }
[dir=ltr] .chip.select { background-position: right .7rem center; }
.chip.quiet { color: var(--ink-2); }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 4px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.active { color: var(--active); background: var(--active-soft); }
.badge.unknown { color: var(--unknown); background: var(--unknown-soft); }
.badge.expired { color: var(--expired); background: var(--expired-soft); }
.badge.revoked { color: var(--revoked); background: var(--revoked-soft); }
.tag { display: inline-block; padding: 0 .5rem; border: 1px solid var(--line); border-radius: 4px; font-size: .78rem; color: var(--ink-2); background: var(--panel); }
.tag.kitchen-meat { color: #7a2e1c; border-color: #e6c4bb; background: #fbeee9; }
.tag.kitchen-dairy { color: #1f4d7a; border-color: #bfd3e6; background: #eaf2fa; }
.tag.kitchen-parve { color: #3d6b2f; border-color: #c6dcbd; background: #eef6ea; }
.warn { background: var(--revoked-soft); color: var(--revoked); border: 1px solid #f0bcb8; padding: .6rem .9rem; border-radius: 6px; font-weight: 600; }
.note { background: var(--primary-soft); border-inline-start: 4px solid var(--primary); padding: .7rem 1rem; border-radius: 6px; }

/* ---------- onboarding ---------- */
.welcome-body { background: var(--paper); }
.welcome { max-width: 640px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.welcome h1 { font-size: 2.2rem; margin-bottom: .5rem; }
.welcome h1 b { color: var(--primary); }
.welcome h2 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
.choices { display: grid; gap: .6rem; margin-top: 1rem; }
.choice { display: flex; align-items: flex-start; gap: .8rem; padding: .85rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.choice input { margin-top: .3rem; accent-color: var(--primary); width: 18px; height: 18px; }
.choice span { display: flex; flex-direction: column; }
.choice b { font-size: 1.05rem; }
.choice small { color: var(--ink-2); }
.choice.inline { padding: .5rem .8rem; align-items: center; }
.choice.inline span { flex-direction: row; }
.choices.compact .choice { padding: .6rem .8rem; }
.branch { margin-top: .5rem; padding: .9rem 1rem; border-inline-start: 3px solid var(--brass); background: var(--panel-2); border-radius: 0 var(--radius) var(--radius) 0; }
[dir=ltr] .branch { border-radius: var(--radius) 0 0 var(--radius); }
.picker { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chip-check { display: inline-flex; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-block; padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); font-size: .9rem; cursor: pointer; }
.chip-check input:checked + span { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip-check input:focus-visible + span { outline: 3px solid var(--brass); }
.more { margin-top: 1rem; }
.more summary { cursor: pointer; color: var(--ink-2); }

/* ---------- map app ---------- */
.map-body { overflow: hidden; }
.map-body .topbar { position: fixed; width: 100%; }
.app { position: fixed; inset: var(--topbar-h) 0 0 0; display: flex; flex-direction: column; }
.filterbar { background: var(--panel); border-bottom: 1px solid var(--line); padding: .5rem .75rem; display: flex; flex-direction: column; gap: .45rem; z-index: 20; }
.searchrow { display: flex; gap: .5rem; align-items: center; }
.locbox { flex: 1 1 auto; display: flex; align-items: center; gap: .3rem; min-height: 42px; padding: 0 .4rem 0 .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); min-width: 0; }
.locbox .ico { width: 20px; height: 20px; color: var(--ink-3); flex-shrink: 0; }
.locbox input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; padding: .5rem .2rem; }
.locbox input:focus { outline: none; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: none; color: var(--primary); cursor: pointer; }
.iconbtn:hover { background: var(--primary-soft); }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn.small { width: auto; height: 32px; padding: 0 .7rem; font-size: .85rem; border: 1px solid var(--line); background: var(--panel); }
.viewtoggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.viewtoggle button { border: 0; background: var(--panel); padding: .45rem .8rem; cursor: pointer; color: var(--ink-2); }
.viewtoggle button.on { background: var(--primary); color: #fff; }
.chiprow { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chiprow::-webkit-scrollbar { display: none; }

.stage { flex: 1; position: relative; display: flex; min-height: 0; }
.map { flex: 1; background: #dfe6e0; }
.panel { width: 400px; flex-shrink: 0; background: var(--panel); border-inline-start: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.panel-head { display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem; border-bottom: 1px solid var(--line-2); font-size: .9rem; color: var(--ink-2); }
.panel-head .handle { display: none; }
.results { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.result { padding: .8rem .9rem; border-bottom: 1px solid var(--line-2); cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; }
.result:hover, .result.hl { background: var(--panel-2); }
.result.greyed { opacity: .6; }
.result .name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.result .dist { color: var(--ink-2); font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.result .addr { grid-column: 1 / -1; color: var(--ink-2); font-size: .88rem; }
.result .certs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .2rem; }
.result .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .82rem; color: var(--ink-2); }
.result .stars { color: var(--brass); font-weight: 600; }
.result .fraud { grid-column: 1 / -1; color: var(--revoked); font-weight: 600; font-size: .85rem; }
.empty { padding: 1.5rem 1rem; color: var(--ink-2); text-align: center; }
.count { font-variant-numeric: tabular-nums; }

.pin { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin.active { background: var(--active); } .pin.unknown { background: var(--unknown); } .pin.expired { background: var(--expired); } .pin.revoked { background: var(--revoked); }
.pin.approx { opacity: .45; border-style: dashed; }
.pin.me { background: var(--primary); border-radius: 50%; transform: none; width: 16px; height: 16px; box-shadow: 0 0 0 6px rgba(16,57,74,.2); }
.marker-cluster { background: rgba(16,57,74,.25) !important; }
.marker-cluster div { background: var(--primary) !important; color: #fff !important; font-family: var(--font-ui); font-weight: 600; }
.leaflet-popup-content { font-family: var(--font-ui); direction: rtl; margin: .6rem .8rem; }
.leaflet-popup-content .name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.leaflet-container { font-family: var(--font-ui); }

.sheet { position: fixed; inset: 0; z-index: 60; background: rgba(20,33,27,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { background: var(--panel); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; padding: 1.25rem 1.25rem 1.5rem; border-radius: 16px 16px 0 0; box-shadow: var(--shadow); }
@media (min-width: 720px) { .sheet { align-items: center; } .sheet-card { border-radius: var(--radius); } }

/* ---------- business page ---------- */
.biz-head { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1.5rem; align-items: start; margin-bottom: 1rem; }
.biz-head h1 { font-size: 2rem; }
.biz-head .addr { color: var(--ink-2); }
.biz-links { display: flex; flex-wrap: wrap; gap: .5rem; grid-column: 1 / -1; }
.biz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.certs { display: grid; gap: 1rem; }
.cert { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; }
.cert::before { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--line); border-radius: 6px; pointer-events: none; }
.cert.not-accepted { opacity: .7; }
.cert.revoked { border-color: #f0bcb8; }
.cert .body { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.cert .body a { color: inherit; text-decoration: none; }
.cert .stamp { grid-row: 1 / span 3; align-self: start; width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--brass); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .72rem; text-align: center; color: var(--brass); line-height: 1.15; font-weight: 700; transform: rotate(-8deg); }
.cert .stamp.active { border-color: var(--active); color: var(--active); }
.cert .stamp.unknown { border-color: var(--unknown); color: var(--unknown); }
.cert .stamp.expired { border-color: var(--expired); color: var(--expired); }
.cert .stamp.revoked { border-color: var(--revoked); color: var(--revoked); }
.cert .row { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .92rem; color: var(--ink-2); }
.cert .row b { color: var(--ink); font-weight: 600; }
.cert .tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.cert .src { grid-column: 1 / -1; font-size: .85rem; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: .5rem; margin-top: .3rem; display: flex; flex-wrap: wrap; gap: .3rem .9rem; }
.side { display: grid; gap: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.card h3 { margin-bottom: .5rem; }
.rating { font-size: 1.4rem; font-family: var(--font-display); color: var(--brass); }
.declaration { background: var(--brass-soft); border-color: #e2d3ad; }
.declaration p { white-space: pre-wrap; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem .8rem; margin: 0; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; }

/* ---------- bodies ---------- */
.body-groups { display: grid; gap: 1.5rem; }
.body-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.body-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: inherit; }
.body-item:hover { border-color: var(--primary); }
.body-item b { font-family: var(--font-display); font-size: 1.1rem; }
.body-item small { color: var(--ink-2); }
.body-hero { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: start; margin-bottom: 1rem; }
.stats { display: flex; flex-wrap: wrap; gap: .75rem; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .9rem; min-width: 110px; }
.stat b { display: block; font-size: 1.4rem; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.stat span { font-size: .8rem; color: var(--ink-2); }
.stat.active b { color: var(--active); } .stat.unknown b { color: var(--unknown); }

/* ---------- tables ---------- */
.tscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { text-align: right; padding: .5rem .7rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
[dir=ltr] table.data th, [dir=ltr] table.data td { text-align: left; }
table.data th { background: var(--panel-2); font-weight: 600; font-size: .82rem; color: var(--ink-2); position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { font-variant-numeric: tabular-nums; }

/* ---------- guide ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.guide-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: .2rem; }
.guide-card:hover { border-color: var(--brass); }
.guide-card b { font-family: var(--font-display); font-size: 1.1rem; }
.guide-card small { color: var(--ink-2); }
.prose { max-width: 68ch; font-size: 1.05rem; }
.prose h1 { font-size: 2rem; margin-bottom: .5rem; }
.prose p, .prose li { line-height: 1.7; }
.prose ul { padding-inline-start: 1.3rem; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; }
.guide-nav { position: sticky; top: calc(var(--topbar-h) + 1rem); font-size: .9rem; }
.guide-nav a { display: block; padding: .25rem 0; color: var(--ink-2); text-decoration: none; }
.guide-nav a[aria-current] { color: var(--primary); font-weight: 600; }
.guide-nav h4 { margin: .8rem 0 .2rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }

/* ---------- fraud ---------- */
.notice { background: var(--panel); border: 1px solid var(--line); border-inline-start: 4px solid var(--revoked); border-radius: 6px; padding: .8rem 1rem; display: grid; gap: .2rem; }
.notice time { color: var(--ink-2); font-size: .85rem; }
.notice b { font-family: var(--font-display); font-size: 1.1rem; }
.notices { display: grid; gap: .6rem; }

/* ---------- forms ---------- */
.form { display: grid; gap: .8rem; max-width: 640px; }
.form label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; color: var(--ink-2); }
.form label.row { flex-direction: row; align-items: center; gap: .5rem; }
.form input[type=text], .form input[type=email], .form input[type=password], .form input[type=search], .form input[type=number], .form input[type=date], .form input[type=datetime-local], .form input[type=url], .form input[type=tel], .form select, .form textarea {
  font: inherit; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); min-height: 42px; width: 100%;
}
.form textarea { min-height: 110px; font-family: var(--font-ui); }
.form textarea.code { font-family: Consolas, "SF Mono", monospace; direction: ltr; font-size: .85rem; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }
.form .help { font-size: .8rem; color: var(--ink-3); }
.form .error { color: var(--revoked); font-weight: 600; }
.auth-card { max-width: 420px; margin: 2rem auto; }

/* ---------- admin ---------- */
.admin-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; max-width: 1400px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.admin-nav { position: sticky; top: calc(var(--topbar-h) + 1rem); display: flex; flex-direction: column; gap: .1rem; font-size: .92rem; }
.admin-nav a { color: var(--ink-2); text-decoration: none; padding: .35rem .6rem; border-radius: 6px; }
.admin-nav a:hover { background: var(--panel); }
.admin-nav a[aria-current] { background: var(--primary); color: #fff; }
.admin-nav h4 { margin: .8rem .6rem .2rem; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
.admin-main h1 { font-size: 1.6rem; margin-bottom: 1rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.toolbar form { display: flex; gap: .4rem; }
.toolbar input, .toolbar select { font: inherit; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 6px; min-height: 36px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; margin-bottom: 1.5rem; }
.inline-form { display: inline; }
.audit { font-size: .85rem; }
.audit td { padding: .3rem .5rem; }
.chat { max-width: 560px; }
.chat .log { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; min-height: 300px; display: flex; flex-direction: column; gap: .5rem; white-space: pre-wrap; }
.chat .log .me { align-self: flex-start; background: var(--primary-soft); padding: .4rem .7rem; border-radius: 10px; }
.chat .log .bot { align-self: flex-end; background: var(--panel-2); padding: .4rem .7rem; border-radius: 10px; border: 1px solid var(--line); }

/* ---------- print ---------- */
.print-page { max-width: 900px; margin: 0 auto; padding: 1rem; }
@media print { .topbar, .foot, .noprint { display: none !important; } body { background: #fff; } .print-page { padding: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .biz-grid { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; } .guide-nav { position: static; }
  .admin-layout { grid-template-columns: 1fr; } .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .admin-nav h4 { width: 100%; }
}
@media (max-width: 760px) {
  .brand-text small { display: none; }
  .navtoggle { display: block; }
  .mainnav { display: none; position: fixed; top: var(--topbar-h); inset-inline: 0; flex-direction: column; background: var(--primary); padding: .5rem; gap: 0; z-index: 49; box-shadow: var(--shadow); }
  .nav-open .mainnav { display: flex; }
  .mainnav a { padding: .8rem 1rem; }
  .viewtoggle button { padding: .45rem .6rem; font-size: .9rem; }
  .stage { flex-direction: column; }
  .panel { width: 100%; position: absolute; inset-inline: 0; bottom: 0; top: 55%; border-inline-start: 0; border-top: 1px solid var(--line); border-radius: 14px 14px 0 0; box-shadow: 0 -6px 24px rgba(20,33,27,.15); transition: top .25s ease; }
  .panel.collapsed { top: calc(100% - 52px); }
  .panel.full { top: 0; border-radius: 0; }
  .panel-head { cursor: pointer; justify-content: center; position: relative; }
  .panel-head .handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--line); position: absolute; top: 6px; left: 50%; transform: translateX(-50%); }
  .panel-head .count { margin-top: .4rem; }
  .app.list-view .map { display: none; }
  .app.list-view .panel { position: static; top: auto; border-radius: 0; box-shadow: none; flex: 1; }
  .biz-head { grid-template-columns: 1fr; }
  .cert { grid-template-columns: 1fr; }
  .cert .stamp { grid-row: auto; justify-self: end; width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- סרגל כשרויות, פופאפ, אייקוני תצוגה ---------- */
.chiprow.kashrut { align-items: center; }
.chiprow .rowlabel { font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.chiprow .sep { width: 1px; height: 22px; background: var(--line); flex-shrink: 0; margin: 0 .2rem; }
.chip.k.on { background: var(--brass); border-color: var(--brass); color: #fff; }
.chip.k[disabled] { opacity: .45; cursor: not-allowed; background: var(--panel-2); color: var(--ink-3); text-decoration: none; }
.chip.k[disabled] small { font-size: .7rem; }
.chip.k.other { border-style: dashed; }
.viewtoggle button { display: inline-flex; align-items: center; gap: .35rem; }
.viewtoggle svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .viewtoggle .txt { display: none; } .viewtoggle button { padding: .45rem .55rem; } }
.leaflet-popup-content-wrapper { border-radius: 10px; box-shadow: var(--shadow); }
.pp { min-width: 230px; }
.pp-head { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.pp .name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.pp-type { color: var(--ink-2); font-size: .82rem; }
.pp-addr { color: var(--ink-2); font-size: .85rem; margin: .15rem 0 .35rem; }
.pp-kitchens { margin-bottom: .35rem; }
.pp-certs { list-style: none; margin: 0 0 .35rem; padding: 0; display: grid; gap: .25rem; }
.pp-certs li { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .88rem; }
.pp-certs small { color: var(--ink-2); }
.pp-stars { color: var(--brass); font-weight: 600; }
.pp-stars small { color: var(--ink-2); font-weight: 400; }
.pp-note { color: var(--unknown); font-size: .8rem; }
.pp .fraud { color: var(--revoked); font-weight: 600; font-size: .85rem; }
.pp-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.pp-actions .btn.small { min-height: 30px; padding: .2rem .6rem; font-size: .82rem; }
@media (max-width: 760px) {
  .searchrow { flex-wrap: wrap; }
  .locbox { flex-basis: 100%; }
  .searchrow .chip.profile { margin-inline-start: 0; }
  .viewtoggle { margin-inline-start: auto; }
}
