:root {
  --ink: #1f2430; --ink2: #545b69; --muted: #7b8291;
  --paper: #fbf8f2; --glass: rgba(251, 248, 242, .94); --line: rgba(31, 36, 48, .12);
  --brand: #2f7d4f; --brand-ink: #1f5c39; --accent: #ff5a1f; --warn-bg: #fff3d6; --warn: #8a5a00;
  --radius: 16px; --shadow: 0 10px 40px rgba(20, 30, 45, .18), 0 2px 6px rgba(20, 30, 45, .08);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --panel-w: 400px; --gutter: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #dfe7ee; color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.map { position: fixed; inset: 0; touch-action: none; }
.map canvas.gl { display: block; width: 100%; height: 100%; cursor: grab; }
.map canvas.gl:active { cursor: grabbing; }
.map2d { width: 100%; height: 100%; display: block; background: #efe6d5; cursor: grab; touch-action: none; }
.map2d .codes text { fill: #2b2620; opacity: 0; transition: opacity .2s; font-family: system-ui, sans-serif; }
.map2d.near .codes text { opacity: 1; }
.map2d .zt { font-family: var(--font); font-weight: 700; fill: #1f2430; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: .35; pointer-events: none; }
.map2d [data-id] { cursor: pointer; }

/* labels over the 3D map */
.label-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transition: opacity .18s; will-change: transform; }
.lbl.on { opacity: 1; }
.lbl.code { font: 600 11px/1 system-ui, sans-serif; color: #2b2620; background: rgba(255,255,255,.82); padding: 2px 4px; border-radius: 4px; direction: ltr; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px 4px 10px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink); font-size: 12.5px; font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.16); border-inline-start: 4px solid var(--c); }
.chip .ic { width: 15px; height: 15px; color: var(--c); }

/* panel */
.panel { position: fixed; top: var(--gutter); bottom: var(--gutter); inset-inline-start: var(--gutter); width: var(--panel-w); display: flex; flex-direction: column; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 10; overflow: hidden; }
.sheet-handle { display: none; }
.brand { display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px; }
.mark svg { width: 44px; height: 44px; display: block; }
.titles { flex: 1; min-width: 0; }
.titles h1 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 700; }
.titles p { margin: 2px 0 0; color: var(--ink2); font-size: 13px; }
.dev { color: var(--accent); font-weight: 600; }
.banner { display: flex; gap: 8px; align-items: flex-start; margin: 0 16px 10px; padding: 9px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.banner .ic { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.search { position: relative; margin: 0 16px; display: flex; align-items: center; }
.search > .ic { position: absolute; inset-inline-start: 13px; width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 48px; padding: 0 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47,125,79,.15); }
.search input::-webkit-search-cancel-button { display: none; }
.search .icon { position: absolute; inset-inline-end: 6px; }
.tabs { display: flex; gap: 6px; padding: 10px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab .n { opacity: .7; margin-inline-start: 4px; font-variant-numeric: tabular-nums; }
.hint { margin: 6px 16px; font-size: 12.5px; color: var(--muted); min-height: 1em; }
.results { flex: 1; overflow-y: auto; padding: 4px 12px 12px; overscroll-behavior: contain; }
.group-h { font-size: 12px; font-weight: 700; color: var(--muted); margin: 14px 6px 6px; letter-spacing: .02em; }
.card { display: block; width: 100%; text-align: start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; margin: 0 0 8px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card:hover { border-color: rgba(47,125,79,.45); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.card.active { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,31,.18); }
.card h3 { margin: 0 0 3px; font-size: 15px; line-height: 1.4; font-weight: 700; }
.card .sub { color: var(--ink2); font-size: 13px; line-height: 1.55; }
.card .meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 12.5px; margin-top: 6px; color: var(--ink2); }
.card .meta dt { color: var(--muted); }
.card .meta dd { margin: 0; }
.kind { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.kind .ic { width: 14px; height: 14px; }
.booths { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.bchip { border: 1.5px solid var(--c, var(--line)); background: #fff; border-radius: 8px; padding: 4px 9px; font: 700 12.5px/1.2 system-ui, sans-serif; direction: ltr; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.bchip::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.bchip:hover, .bchip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.bchip.on::before { background: #fff; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #eef1f5; color: var(--ink2); margin-inline-end: 4px; }
.tag.demo { background: var(--warn-bg); color: var(--warn); }
.tag.unc { background: #f1f1f1; color: #6b6b6b; }
.tag.ok { background: #e3f3e8; color: var(--brand-ink); }
.empty { padding: 18px 10px; color: var(--ink2); font-size: 14px; line-height: 1.7; }
.pfoot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.pfoot .btn { flex: 1; }

.btn { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer; font-size: 13.5px; font-weight: 600; }
.btn:hover { background: #f6f3ec; }
.btn.ghost { background: transparent; }
.btn.icon { width: 36px; height: 36px; padding: 0; border: 0; background: transparent; font-size: 16px; color: var(--muted); border-radius: 8px; }
.btn.lang { font-size: 13px; padding: 6px 10px; }

.controls { position: fixed; inset-inline-end: var(--gutter); bottom: calc(var(--gutter) + 56px); display: flex; flex-direction: column; gap: 6px; z-index: 9; }
.ctl { width: 44px; height: 44px; padding: 0; font-size: 20px; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.14); background: rgba(255,255,255,.96); display: grid; place-items: center; }
.ctl.txt { font-size: 13px; font-weight: 700; }
.ctl[aria-pressed="true"] { background: var(--ink); color: #fff; }
.compass { position: fixed; inset-inline-end: var(--gutter); bottom: var(--gutter); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.96); box-shadow: 0 4px 14px rgba(0,0,0,.14); z-index: 9; cursor: pointer; display: grid; place-items: center; }
.compass span { display: block; font: 700 13px system-ui; color: #c0392b; transition: transform .1s linear; }
.compass span::before { content: ""; display: block; width: 0; height: 0; margin: 0 auto 1px; border: 5px solid transparent; border-bottom: 9px solid #c0392b; border-top: 0; }

.legend { position: fixed; top: var(--gutter); inset-inline-end: var(--gutter); width: 250px; background: var(--glass); backdrop-filter: blur(12px); border-radius: 14px; box-shadow: var(--shadow); z-index: 9; max-height: calc(100vh - 240px); display: flex; flex-direction: column; }
.legend-head { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 11px 14px; background: none; border: 0; font-weight: 700; font-size: 14px; cursor: pointer; }
.legend[data-collapsed] .legend-body { display: none; }
.legend[data-collapsed] .chev { transform: rotate(-90deg); }
.legend-body { padding: 0 12px 12px; overflow-y: auto; }
.legend h4 { margin: 10px 2px 6px; font-size: 11.5px; color: var(--muted); }
.lg-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 6px; border: 0; background: none; border-radius: 8px; font-size: 13px; cursor: pointer; text-align: start; }
.lg-row:hover { background: rgba(0,0,0,.05); }
.sw { width: 22px; height: 22px; border-radius: 6px; background: var(--c); display: grid; place-items: center; color: #fff; flex: none; }
.sw .ic { width: 14px; height: 14px; }
.secs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.secs button { aspect-ratio: 1; border: 0; border-radius: 8px; background: var(--c); color: #fff; font: 700 13px system-ui; cursor: pointer; }
.lg-note { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin: 10px 2px 0; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; z-index: 20; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.dlg { border: 0; border-radius: 18px; padding: 22px 22px 18px; width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: var(--shadow); color: var(--ink); background: var(--paper); }
.dlg::backdrop { background: rgba(15, 20, 30, .45); }
.dlg .close { position: absolute; top: 10px; inset-inline-end: 10px; }
.dlg h2 { margin: 0 0 10px; font-size: 19px; }
.dlg h3 { margin: 16px 0 6px; font-size: 15px; }
.dlg p, .dlg li { font-size: 14px; line-height: 1.75; color: var(--ink2); }
.dlg ul { padding-inline-start: 20px; margin: 4px 0; }
.svc-list { list-style: none; padding: 0 !important; }
.svc-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.svc-list button { margin-inline-start: auto; }
.ic { width: 18px; height: 18px; }
.noscript { position: fixed; inset: 40% 0 auto; text-align: center; }

/* tablet */
@media (max-width: 1024px) { :root { --panel-w: 360px; } .legend { width: 220px; } }
/* phone: bottom sheet */
@media (max-width: 760px) {
  :root { --gutter: 10px; }
  .panel { top: auto; bottom: 0; inset-inline: 0; width: auto; border-radius: 18px 18px 0 0; max-height: 72vh; height: auto; padding-bottom: env(safe-area-inset-bottom); transition: max-height .25s ease; }
  .panel.collapsed { max-height: 196px; }
  .panel.collapsed .results, .panel.collapsed .pfoot, .panel.collapsed .hint, .panel.collapsed .tabs { display: none; }
  .sheet-handle { display: grid; place-items: center; height: 18px; cursor: pointer; }
  .sheet-handle span { width: 40px; height: 4px; border-radius: 2px; background: rgba(0,0,0,.2); }
  .brand { padding: 4px 14px 8px; } .mark svg { width: 34px; height: 34px; } .titles h1 { font-size: 15px; }
  .banner { margin: 0 14px 8px; padding: 6px 10px; font-size: 11.5px; }
  .search { margin: 0 14px 10px; } .search input { height: 44px; font-size: 16px; }
  .results { min-height: 120px; }
  .controls { top: 64px; bottom: auto; }
  #rotl, #rotr, #topBtn { display: none; }
  .ctl { width: 40px; height: 40px; }
  .compass { top: var(--gutter); bottom: auto; width: 40px; height: 40px; }
  .legend { top: var(--gutter); inset-inline-end: 58px; width: auto; max-width: calc(100vw - 80px); max-height: 50vh; }
  .legend-body { max-width: 260px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.chip.ent { background: var(--c); color: #fff; font-size: 13px; padding: 5px 11px; border-inline-start: 0; }
.chip.ent .ic { color: #fff; }

/* official logo in the panel header (PNG has ~11% side / ~22% top padding: cropped with CSS) */
.titles h1.logo { margin: 0; line-height: 0; direction: ltr; overflow: hidden; width: 207px; height: 60px; }
.titles h1.logo img { display: block; height: 84px; width: auto; max-width: none; margin: -18px 0 0 -27px; mix-blend-mode: multiply; }
.titles p { margin: 2px 2px 0; }
@media (max-width: 760px) {
  .titles h1.logo { width: 166px; height: 48px; }
  .titles h1.logo img { height: 67px; margin: -14px 0 0 -22px; }
}

/* the [hidden] attribute must win over display:flex */
.banner[hidden] { display: none; }

/* route box (destination + starting point) under the search field */
.nav { margin: 10px 16px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; flex: none; }
.nav[hidden] { display: none; }
.nav-row { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.nav-row + .nav-row { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 6px; }
.nav-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--c); background: var(--c); }
.nav-dot.to { --c: var(--accent); } .nav-dot.from { --c: #16a34a; }
.nav-f { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nav-f small { font-size: 11px; font-weight: 700; color: var(--muted); }
.nav-f b { font-size: 14px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-f input { width: 100%; height: 36px; margin-top: 2px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; font-size: 14px; outline: none; }
.nav-f input:focus { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.nav-f input::-webkit-search-cancel-button { display: none; }
.btn.sm { padding: 6px 10px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.btn.sm .ic { width: 15px; height: 15px; }
.btn.sm[aria-pressed="true"] { background: #16a34a; border-color: #16a34a; color: #fff; }
.nav-quick, .nav-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nav-sugg { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.nav-sugg:empty { display: none; }
.nav-opt { text-align: start; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 10px; font-size: 13.5px; cursor: pointer; }
.nav-opt:hover, .nav-opt:focus-visible { border-color: #16a34a; background: #f1faf4; }
.nav-sum { margin: 8px 0 0; font-size: 14px; color: var(--ink); }
.nav-sum b { color: #1565d8; }
.nav-note { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.nav-note.on { color: #15803d; font-weight: 600; }
.nav-err { margin: 8px 0 0; padding: 8px 10px; border-radius: 9px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; font-weight: 600; line-height: 1.6; }

/* fixed QR code: open this map on a phone. Sits beside the map controls, away from the hall. */
.qr { position: fixed; bottom: var(--gutter); inset-inline-end: calc(var(--gutter) + 56px); width: 132px; margin: 0; padding: 8px 8px 6px; background: #fff; border-radius: 14px; box-shadow: var(--shadow); z-index: 9; text-align: center; }
.qr svg { display: block; width: 116px; height: 116px; }
.qr p { margin: 4px 0 0; font-size: 10.5px; font-weight: 600; line-height: 1.45; color: var(--ink2); }
@media (max-width: 760px) {
  /* a visitor on a phone already has the map open: the QR would only cover the plan */
  .qr { display: none; }
  .nav { margin: 0 14px 8px; padding: 8px 10px; }
  .panel.collapsed.nav-on { max-height: min(72vh, 420px); }
  .panel.nav-on .brand { display: none; }
  .nav-note:not(.on) { display: none; }
}
@media (max-height: 620px) and (min-width: 761px) { .qr { width: 104px; } .qr svg { width: 88px; height: 88px; } .qr p { display: none; } }

/* ---- visitor journey: card actions, my visit, quick filters ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.btn.act { min-height: 34px; }
.btn.act.go { background: #1565d8; border-color: #1565d8; color: #fff; }
.btn.act.go:hover { background: #0f52b5; }
.btn.act[aria-pressed="true"] { background: #e3f3e8; border-color: #9fd3b0; color: var(--brand-ink); }
.btn.primary { background: #1565d8; border-color: #1565d8; color: #fff; }
.btn.danger { color: #b42318; border-color: rgba(180,35,24,.35); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.icon.xs { width: 30px; height: 30px; font-size: 12px; }
.visit-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.visit-btn .n:not(:empty) { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #1565d8; color: #fff; font-size: 12px; line-height: 20px; }
.visit-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.visit { margin: 10px 16px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.visit[hidden] { display: none; }
.panel.visit-on .tabs, .panel.visit-on .hint, .panel.visit-on .results, .panel.visit-on .nav, .panel.visit-on .filters { display: none; }
.vis-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vis-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 16px; flex-wrap: wrap; }
.vis-list { list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.vis-list > li { display: flex; gap: 8px; align-items: flex-start; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.vis-list .num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #1565d8; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.vis-f { flex: 1; min-width: 0; }
.vis-f ul { list-style: none; margin: 4px 0 0; padding: 0; }
.vis-f ul li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); }
.vis-f ul li span { flex: 1; min-width: 0; }
.vis-f .ic { width: 14px; height: 14px; flex: none; }
.vis-ctl { display: flex; flex: none; }
.lnk { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); text-align: start; cursor: pointer; }
.lnk:hover { text-decoration: underline; }
.vis-opt { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 13px; }
.vis-opt input { width: 18px; height: 18px; }
.filters { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; scrollbar-width: none; flex: none; }
.fchip { flex: none; display: inline-flex; align-items: center; gap: 5px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 10px 5px 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fchip .ic { width: 15px; height: 15px; color: var(--c); }
.fchip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.fchip[aria-pressed="true"] .ic { color: #fff; }
.fhead { display: flex; align-items: center; justify-content: space-between; margin: 8px 4px 8px; }
.qr-big { width: min(300px, 70vw); margin: 6px auto; }
.qr-big svg { display: block; width: 100%; height: auto; }
.qr-link { text-align: center; word-break: break-all; font-size: 12.5px !important; }
.chip.stopn { background: var(--c); color: #fff; border-inline-start: 0; min-width: 24px; justify-content: center; font-size: 13px; padding: 3px 8px; }
/* legibility: section letters far away, booth numbers + door numbers closer in */
.map2d .secl { opacity: 0; transition: opacity .2s; pointer-events: none; }
.map2d.far .secl { opacity: 1; }
.map2d .secl text { fill: #fff; font: 700 3px system-ui, sans-serif; }
.map2d .doors text { opacity: 0; fill: #14532d; font: 700 1.1px system-ui, sans-serif; paint-order: stroke; stroke: #fff; stroke-width: .3; transition: opacity .2s; pointer-events: none; }
.map2d:not(.far) .doors text { opacity: 1; }
.lbl.sec .secl { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font: 700 18px/1 system-ui, sans-serif; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.door { display: inline-block; padding: 2px 6px; border-radius: 6px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.sw.aisle { background: #f0dca8; border: 1.5px solid #b08842; }
/* admin: visitor interest */
.map2d.heatmap .st { fill: #e5e1da; }
.chip.heatn { background: var(--c); color: #3b0a00; border-inline-start: 0; font-size: 12.5px; }
.panel.interest-on .tabs, .panel.interest-on .hint, .panel.interest-on .results, .panel.interest-on .filters, .panel.interest-on .nav, .panel.interest-on #visitBtn { display: none; }
.interest select, .interest input { display: block; width: 100%; margin-top: 3px; height: 34px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 0 8px; font-size: 13px; }
.int-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.int-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.int-tot span { display: flex; flex-direction: column; padding: 8px; border-radius: 10px; background: #f6f3ec; font-size: 11.5px; color: var(--ink2); }
.int-tot b { font-size: 20px; color: var(--ink); }
.int-scale { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.int-scale span { flex: 1; height: 10px; border-radius: 5px; }
.int-scale small { color: var(--muted); font-size: 11px; }
.int-list { margin: 4px 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; }
.int-list li { font-size: 13px; }
.int-list small { display: block; color: var(--muted); font-size: 11px; }
.int-list .tag { margin-inline-start: 6px; }
.map2d .flow { animation: routeflow 1.6s linear infinite; }
@keyframes routeflow { to { stroke-dashoffset: -3; } }
@media (prefers-reduced-motion: reduce) { .map2d .flow { animation: none; } }
/* quick filter: matching places stand out, the rest of the plan steps back */
.map2d.filtering .st, .map2d.filtering .z:not(.fon) { opacity: .28; }
.map2d .fon { stroke: #111 !important; stroke-width: .5 !important; fill-opacity: .85 !important; }
@media (max-width: 760px) {
  .filters { padding: 0 14px 8px; }
  .panel.collapsed .filters { display: flex; }
  .visit { margin: 0 14px 8px; max-height: 60vh; }
  .panel.collapsed.visit-on { max-height: 72vh; }
  .panel.visit-on .brand { display: none; }
}
