@font-face { font-family: "Fredoka"; src: url(fonts/fredoka.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(fonts/dm-sans.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(fonts/dm-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(fonts/dm-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --orange: #F26A1B; --orange-d: #DE5F16; --yellow: #FFC53D; --red: #D1352B; --green: #5BA55B; --blue: #3E7CB1;
  --cream: #F8F2E6; --panel: #FFFDF8; --ink: #2B2A28; --gray: #6F695F; --gray-l: #8A8378; --clay: #D9CFC0;
  --line: #E5DCCB; --off: #CFC7B8;
  --green-ink: #2F6B30; --red-ink: #A8261E;
  --shadow: 0 8px 24px rgba(43,42,40,.12);
  --ease: cubic-bezier(.2,.8,.2,1);
  --t-fast: 180ms; --t-panel: 320ms;
  --head: "Fredoka", "Baloo 2", ui-rounded, system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --top: 72px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--cream); color: var(--ink); font: 400 16px/1.4 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; font-weight: 600; }
button { font: inherit; color: inherit; cursor: pointer; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--ink); color: var(--cream); padding: 8px 16px; border-radius: 12px; }
.skip:focus { left: 8px; }
.label, .tag, .stat-table th, .mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }

/* ---------- MAP ---------- */
.map { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; outline: none; }
.map.dragging { cursor: grabbing; }
/* The stage is the 2000 x 1125 grid everything is plotted on. The town picture is bigger and overhangs it on every side:
   --pic-* say where it sits, in grid units (the same numbers as pic in data.js, which the script writes here again). */
.stage { position: absolute; left: 0; top: 0; width: 2000px; height: 1125px; transform-origin: 0 0; will-change: transform; --pic-x: -87.26px; --pic-y: -37px; --pic-w: 2147.61px; --pic-h: 1198.96px; }
.stage.anim { transition: transform 420ms var(--ease); }
.city { position: absolute; left: var(--pic-x); top: var(--pic-y); width: var(--pic-w); height: var(--pic-h); max-width: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 2.3%, #000 97.7%, transparent), linear-gradient(to bottom, transparent, #000 3.5%, #000 94%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 2.3%, #000 97.7%, transparent), linear-gradient(to bottom, transparent, #000 3.5%, #000 94%, transparent); mask-composite: intersect; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.overlay g { transition: opacity var(--t-panel) var(--ease); }
.overlay g.off { opacity: 0; }
.pins { position: absolute; inset: 0; }

/* pins keep a constant screen size: --inv = 1/scale, --rot = -board rotation */
.pin { position: absolute; left: 0; top: 0; transform: translate(var(--x), var(--y)) rotate(var(--rot, 0deg)) scale(var(--inv, 1)); transform-origin: 0 0; transition: opacity var(--t-panel) var(--ease); }
.pin > .pin-in { position: absolute; transform: translate(-50%, -100%); transition: transform var(--t-fast) var(--ease); }
.pin.off, .pins.far .pin.home { opacity: 0; pointer-events: none; }
.pin.dim { opacity: .35; }
.pin button { border: 0; padding: 0; background: none; }

.taco-pin { width: 36px; height: 46px; display: block; position: relative; transition: transform var(--t-fast) var(--ease); transform-origin: 50% 100%; filter: drop-shadow(0 4px 6px rgba(43,42,40,.28)); }
.taco-pin svg { width: 100%; height: 100%; display: block; }
.taco-pin .num { position: absolute; top: -10px; right: -12px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--orange); font: 600 12px/18px var(--head); color: var(--ink); text-align: center; }
.pin:hover .taco-pin, .taco-pin:focus-visible { transform: translateY(-4px); }
.pin.selected .taco-pin { transform: scale(1.44); }
.pin.selected .pulse { position: absolute; left: 50%; bottom: -6px; width: 28px; height: 12px; margin-left: -14px; border-radius: 50%; border: 2px solid var(--orange); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.pin.bounce .taco-pin { animation: bounce 520ms var(--ease); }
@keyframes bounce { 0% { transform: scale(1); } 40% { transform: scale(1.6) translateY(-10px); } 70% { transform: scale(1.38); } 100% { transform: scale(1.44); } }
.pin.closed .taco-pin { filter: grayscale(.55) drop-shadow(0 4px 6px rgba(43,42,40,.2)); }
.hover-ring { position: absolute; left: 50%; bottom: -14px; width: 120px; height: 44px; margin-left: -60px; border-radius: 50%; border: 3px solid var(--yellow); opacity: 0; transition: opacity var(--t-fast) var(--ease); pointer-events: none; }
.pin:hover .hover-ring, .pin:focus-within .hover-ring, .pin.selected .hover-ring { opacity: 1; }

.badge { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(43,42,40,.22); transition: transform var(--t-fast) var(--ease); }
.badge .ic { width: 14px; height: 14px; }
.badge-biz { background: var(--blue); }
.badge-home { background: var(--green); }
.badge-bus { background: #fff; color: var(--blue); border-color: var(--blue); border-radius: 8px; }
.pin:hover .badge { transform: translateY(-4px); }


/* the person is drawn in board units, like the cars, so the two stay in scale at every zoom: about as tall as a car is high */
.pawn { position: absolute; transform: translate(-50%, -97%); width: 20px; height: 38px; }
/* walker.webp: 8 drawings per row (one full stride), rows = side, front, back */
/* sheet: 14 columns, rows side (10 drawings), front (8), back (14); the script sets --f to the drawing for the ground covered */
.pawn .w-fig { position: absolute; inset: 0; background: url(assets/walker.webp) calc(var(--f, 4) * 100% / 13) 0 / 1400% 300% no-repeat; }
.pawn[data-view="front"] .w-fig { background-position-y: 50%; }
.pawn[data-view="back"] .w-fig { background-position-y: 100%; }
.pawn .w-shadow { position: absolute; left: 50%; bottom: -1px; width: 16px; height: 5px; margin-left: -8px; border-radius: 50%; background: rgba(43,42,40,.34); filter: blur(1.2px); }
.pawn[data-view="side"].left .w-fig { transform: scaleX(-1); }
/* townspeople: the same figure in other clothes (assets/people.webp, three rows a person; --p picks the person) */
.npc .pawn .w-fig { background-image: url(assets/people.webp); background-size: 1400% 1800%; background-position-y: calc(var(--p, 0) * 300% / 17); }
.npc .pawn[data-view="front"] .w-fig { background-position-y: calc((var(--p, 0) * 3 + 1) * 100% / 17); }
.npc .pawn[data-view="back"] .w-fig { background-position-y: calc((var(--p, 0) * 3 + 2) * 100% / 17); }
/* the phone: out when someone stops to look at it, and some walk with it out. Held in front of the chest, lit screen toward us. */
.pawn .w-phone { position: absolute; left: 13.2px; top: 11.5px; width: 5.2px; height: 8.4px; border-radius: 1.2px; background: #20242E; box-shadow: 0 0 0 .45px rgba(255,255,255,.8), 0 0 5px 1.4px rgba(196,236,255,.6); transform: rotate(10deg) scale(0); transform-origin: 50% 100%; transition: transform .26s cubic-bezier(.3,1.5,.5,1); }
.pawn .w-phone::after { content: ""; position: absolute; inset: .75px .65px 1.2px; border-radius: .6px; background: linear-gradient(160deg, #F6FCFF, #A6DBF6); }
.pawn.phone .w-phone { transform: rotate(10deg) scale(1); }
.pawn[data-view="side"].left .w-phone { left: 1.6px; transform: rotate(-10deg) scale(0); }
.pawn[data-view="side"].left.phone .w-phone { transform: rotate(-10deg) scale(1); }
/* coming toward us we see the back of the phone; walking away it is held up beside the head, as if taking a picture */
.pawn[data-view="front"] .w-phone { left: 10.6px; top: 12.5px; box-shadow: 0 0 0 .45px rgba(255,255,255,.8); }
.pawn[data-view="front"] .w-phone::after { inset: .9px auto auto .9px; width: 1.3px; height: 1.3px; border-radius: 50%; background: #6B7385; }
.pawn[data-view="back"] .w-phone { left: 14.6px; top: 3.5px; }
/* townspeople rendered with a phone in hand (assets/folk.webp: 16 columns, 12 rows, three rows a person; the script sets --r to the row
   and --f to the drawing). Their cell is a little wider than the walker's, for the arm held out in front. The drawn phone is not needed. */
.walker.folk .pawn { width: 21.7px; }
.walker.folk .pawn .w-fig, .walker.folk .pawn[data-view] .w-fig { background-image: url(assets/folk.webp); background-size: 1600% 1200%; background-position: calc(var(--f, 0) * 100% / 15) calc(var(--r, 0) * 100% / 11); }
.walker.folk .w-phone { display: none; }
.walker { position: absolute; left: 0; top: 0; will-change: transform; }
/* trees and lamp posts lifted off the city image, sorted with the cars and the walker by how far south they stand */
.occ { position: absolute; background-image: url(assets/occluders.webp); background-repeat: no-repeat; transition: opacity var(--t-panel) var(--ease); }
body.show-track .occ { opacity: .45; }
.walker.ghost { z-index: 4000; opacity: 0; transition: opacity .25s linear; }
.walker.ghost.on { opacity: .4; }

/* ---------- TOP BAR ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--top); display: flex; align-items: center; gap: 16px; padding: 0 24px; background: rgba(255,253,248,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); z-index: 20; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand-name { font: 700 22px/1.05 var(--head); letter-spacing: -.01em; white-space: nowrap; }

/* growth meter */
.grow { display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.grow-chip { display: flex; align-items: center; gap: 6px; padding: 2px 10px 2px 4px; border-right: 1px solid var(--line); font: 600 15px/1.1 var(--head); }
.grow-chip img { width: 28px; height: 28px; object-fit: contain; }
.grow-chip small, .grow-text small { display: block; font: 500 10px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.grow-meter { display: flex; align-items: center; gap: 8px; }
.grow-dots { display: flex; gap: 3px; }
.grow-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--off); transition: background var(--t-panel) var(--ease), transform var(--t-panel) var(--ease); }
.grow-dots i.on { background: var(--orange); }
.grow-dots i.new { transform: scale(1.6); }
.grow-text { font-size: 13px; white-space: nowrap; }
.grow-text b { font-weight: 700; }
.grow-skip { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); font-size: 13px; font-weight: 600; }
.grow-skip[hidden] { display: none; }
.grow-note { padding: 8px 12px; border-radius: 12px; background: #FFF4DE; border: 1px solid #F4DFB4; font-size: 14px !important; }

/* open sites: a grey copy of the map clipped to each shop not yet opened */
.sites { position: absolute; inset: 0; pointer-events: none; }
.site { position: absolute; border-radius: 14px; background-image: url(assets/city.webp); background-size: var(--pic-w) var(--pic-h); filter: grayscale(1) brightness(1.06) contrast(.75); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.site::after { content: ""; position: absolute; inset: 0; border: 3px dashed rgba(138,131,120,.9); border-radius: 14px; }
.site span { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(var(--inv, 1)); background: var(--panel); color: var(--ink); border: 2px solid var(--line); border-radius: 999px; padding: 4px 10px; font: 600 12px/1 var(--head); white-space: nowrap; filter: none; }
.site.gone { opacity: 0; transform: scale(1.04); }
.pin.taco.unbuilt { opacity: 0; pointer-events: none; }
.pin.taco.opening .taco-pin { animation: drop 700ms var(--ease); }
@keyframes drop { 0% { transform: translateY(-60px) scale(.6); opacity: 0; } 60% { transform: translateY(4px) scale(1.15); opacity: 1; } 100% { transform: none; } }
.brand-sub { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--gray); padding-left: 16px; border-left: 1px solid var(--line); white-space: nowrap; }
.search { position: relative; flex: 1; max-width: 560px; margin: 0 auto; }
.search .ic { position: absolute; left: 16px; top: 14px; color: var(--gray); pointer-events: none; }
.search input { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 16px 0 46px; font: 400 16px var(--body); color: var(--ink); outline: none; transition: box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.search input::placeholder { color: var(--gray); }
.search input:focus { border-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.search-list { position: absolute; top: 56px; left: 0; right: 0; margin: 0; padding: 8px; list-style: none; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); max-height: 360px; overflow: auto; }
.search-list li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; cursor: pointer; }
.search-list li[aria-selected="true"], .search-list li:hover { background: #FFF4D6; }
.search-list small { margin-left: auto; color: var(--gray); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.search-list .empty { color: var(--gray); cursor: default; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

.modes { display: flex; gap: 4px; background: var(--cream); padding: 4px; border-radius: 14px; border: 1px solid var(--line); }
.mode { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px; border: 0; background: none; font-weight: 500; color: var(--ink); transition: background var(--t-fast) var(--ease); }
.mode[aria-pressed="true"] { background: var(--panel); box-shadow: 0 2px 6px rgba(43,42,40,.12); }
.mode[aria-pressed="true"] .ic { color: var(--orange); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.98); }
/* charcoal on orange: white on #F26A1B is ~3:1 and fails 4.5:1 */
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); text-decoration: none; }
.btn-primary:hover { background: var(--orange-d); border-color: var(--orange-d); }
.btn-block { width: 100%; }
a.btn { text-decoration: none; color: var(--ink); }

/* pitch + head office */
.pitch { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.pitch h1 { font-size: 28px; font-weight: 700; margin: 4px 0 8px; }
.pitch p { margin: 0 0 12px; font-size: 15px; }
.views { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink); }
.views li { padding: 8px 12px; background: var(--cream); border-radius: 12px; border: 1px solid var(--line); }
.pitch-cta { display: flex; gap: 8px; }
.pitch-cta .btn { flex: 1; }
.eyebrow-gap { margin-top: 0; }
.hq h2 { font-size: 24px; margin: 4px 0 12px; }
.hq .eyebrow { margin: 0; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.insights { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.insights li { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; }
.insights i { width: 4px; border-radius: 4px; flex: none; }
.cta-box { margin-top: 16px; padding: 16px; border-radius: 12px; background: #FFF4DE; border: 1px solid #F4DFB4; }
.cta-box p { margin: 0 0 12px; font-size: 14px; }

/* ---------- PANELS ---------- */
.panel { position: absolute; top: calc(var(--top) + 16px); z-index: 10; background: rgba(255,253,248,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: auto; overscroll-behavior: contain; transition: transform var(--t-panel) var(--ease), opacity var(--t-panel) var(--ease); }
.panel-left { left: 16px; width: 280px; max-height: calc(100vh - var(--top) - 16px - 200px); padding: 16px; }
.panel-right { right: 16px; width: 340px; max-height: calc(100vh - var(--top) - 16px - 104px); padding: 16px; }
.sheet-handle { display: none; }
.pgroup + .pgroup { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.ph { display: flex; align-items: center; gap: 8px; font-size: 20px; margin-bottom: 8px; }
.ph .ic { color: var(--ink); }
.layers { list-style: none; margin: 0; padding: 0; }
.layer { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; }
.lt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lt b { font-weight: 600; font-size: 15px; }
.lt small { color: var(--gray); font-size: 13px; }
.sw { width: 20px; height: 20px; border-radius: 6px; flex: none; }
.sw-taco { background: var(--orange); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); width: 18px; height: 18px; }
.sw-cov { background: rgba(242,106,27,.28); border: 1px solid var(--orange); border-radius: 50%; }
.sw-ring { border: 2px dashed var(--orange); border-radius: 50%; }
.sw-biz { background: rgba(62,124,177,.45); border: 1px solid var(--blue); }
.sw-home { background: rgba(91,165,91,.45); border: 1px solid var(--green); }
.sw-heat { background: radial-gradient(circle, var(--red), var(--yellow)); border-radius: 50%; }
.sw-bus { border: 2px solid var(--blue); }
.sw-dice { background: var(--yellow); border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }

.tog { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 999px; background: var(--off); position: relative; flex: none; margin: 0; cursor: pointer; transition: background var(--t-fast) var(--ease); }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform var(--t-fast) var(--ease); }
.tog:checked { background: var(--on); }
.tog:checked::after { transform: translateX(18px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 14px; font-weight: 500; transition: background var(--t-fast) var(--ease); }
.chip:hover { border-color: var(--gray-l); }
.chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.filter-note { margin: 8px 0 0; font-size: 13px; color: var(--gray); }

/* mode visibility */
body[data-mode="explore"] .coverage-only, body[data-mode="explore"] .cov-only { display: none !important; }
body[data-mode="coverage"] .explore-only { display: none !important; }

/* ---------- INFO CARD ---------- */
.card { animation: cardIn var(--t-panel) var(--ease); }
@keyframes cardIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.card-top { display: flex; align-items: flex-start; gap: 8px; }
.card-top h2 { font-size: 24px; }
.card-top p { margin: 2px 0 0; color: var(--gray); font-size: 13px; }
.card-close { margin-left: auto; width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; flex: none; }
.strip { margin: 12px 0; height: 120px; border-radius: 12px; background-image: url(assets/city.webp); background-size: 1181px auto; background-repeat: no-repeat; background-color: #FDDDD3; border: 1px solid var(--line); position: relative; }
.strip .tag-sample { position: absolute; right: 8px; bottom: 8px; }
.rating { display: flex; align-items: center; gap: 4px; font-size: 14px; }
.rating .ic { width: 16px; height: 16px; color: var(--yellow); fill: var(--yellow); stroke: #C9931A; stroke-width: 1.2; }
.rating .ic.half { fill: none; stroke: var(--clay); }
.rating b { margin-left: 4px; }
.rating span { color: var(--gray); }
.facts { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.facts li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.facts .ic { width: 18px; height: 18px; color: var(--gray); }
.facts b { font-weight: 600; }
.state { margin-left: auto; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.state.open { background: #E3F1E1; color: var(--green-ink); }
.state.closed { background: #F8E0DD; color: var(--red-ink); }
.pill { background: #FFF1D0; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.menu-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.menu-chips span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: #FFF6E2; border: 1px solid #F4DFB4; font-size: 13px; }
.menu-chips span::before { content: ""; width: 10px; height: 6px; border-radius: 10px 10px 0 0; background: var(--yellow); border: 1.5px solid var(--orange); border-bottom: 0; }
.h3 { font: 600 16px/1.15 var(--head); margin: 0 0 4px; }
.card-empty .eyebrow { margin: 0 0 4px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.card-empty h2 { font-size: 28px; }
.card-empty > p { color: var(--gray); margin: 8px 0 16px; }
.near-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.near-list button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); text-align: left; transition: border-color var(--t-fast) var(--ease); }
.near-list button:hover { border-color: var(--orange); }
.near-list .n { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--orange); display: grid; place-items: center; font: 600 13px var(--head); flex: none; }
.near-list .nm { flex: 1; font-weight: 600; font-size: 14px; }
.near-list .nm small { display: block; font-weight: 400; color: var(--gray); }


/* ---------- COVERAGE STATS ---------- */
.stat-head { display: flex; align-items: center; gap: 8px; margin: 16px 0 8px; }
.stat-head:first-child { margin-top: 0; }
.stat-head .ph { margin: 0; font-size: 18px; }
.tag { margin-left: auto; padding: 4px 8px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--gray); font-size: 10px; white-space: nowrap; }
.tag-sample { background: #FFF1D0; border-color: #F4DFB4; color: #6B4A00; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stat-table th { text-align: right; color: var(--gray); font-weight: 500; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.stat-table th:first-child, .stat-table td:first-child { text-align: left; }
.stat-table td { text-align: right; padding: 6px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.stat-table td.taco { font-weight: 700; }
.stat-table td.taco i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 6px; vertical-align: 1px; }
.stat-table tr.total td { font-weight: 700; background: #FFF4DE; border-bottom: 0; }
.stat-table tbody tr { cursor: pointer; }
.stat-table tbody tr:hover td { background: #FFF8E8; }
.stat-foot { margin: 8px 0 0; font-size: 13px; color: var(--gray); }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 110px; padding-top: 22px; position: relative; }
.bars div { flex: 1; background: #F7B98F; border-radius: 4px 4px 0 0; position: relative; transition: background var(--t-fast) var(--ease), height var(--t-panel) var(--ease); }
.bars div.now { background: var(--orange); }
.bars div.now::after { content: attr(data-v); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 500 11px var(--mono); letter-spacing: .04em; background: var(--ink); color: var(--cream); padding: 3px 6px; border-radius: 8px; }
.bars-axis { display: flex; justify-content: space-between; font: 500 11px var(--mono); color: var(--gray); text-transform: uppercase; margin-top: 4px; }
.donut-row { display: flex; align-items: center; gap: 16px; }
.donut { width: 120px; height: 120px; flex: none; }
.donut-key { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.donut-key li { display: flex; align-items: center; gap: 8px; }
.donut-key i { width: 12px; height: 12px; border-radius: 4px; }

/* ---------- BOTTOM ---------- */
.minimap { position: absolute; left: 16px; bottom: 16px; width: 200px; height: 140px; border-radius: 12px; overflow: hidden; z-index: 10; background: var(--cream); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.minimap img { width: 200px; height: 112px; display: block; pointer-events: none; }
.mini-box { position: absolute; border: 2px solid var(--orange); border-radius: 4px; pointer-events: none; }
.controls { position: absolute; right: 16px; bottom: 16px; z-index: 10; display: flex; gap: 8px; align-items: flex-end; }
.ctrl-group { display: flex; gap: 4px; padding: 4px; background: rgba(255,253,248,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.ctrl { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; transition: background var(--t-fast) var(--ease); }
.ctrl:hover { background: var(--cream); }

.dice-dock, .time-dock { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 11; display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 16px; background: rgba(255,253,248,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); width: min(640px, calc(100vw - 32px - 232px - 208px)); }
.dice-pair { display: flex; gap: 8px; perspective: 400px; }
.die { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: inset 0 -3px 0 #EFE6D4, 0 3px 6px rgba(43,42,40,.15); display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 7px; }
.die i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); place-self: center; }
.die i.o { background: var(--orange); }
.die.rolling { animation: tumble 600ms var(--ease); }
@keyframes tumble { 0% { transform: rotate(0) translateY(0); } 30% { transform: rotate(200deg) translateY(-14px) rotateX(40deg); } 60% { transform: rotate(320deg) translateY(-4px); } 100% { transform: rotate(360deg); } }
.dice-text, .time-text { flex: 1; min-width: 0; }
.dice-title { margin: 0; font: 600 18px/1.15 var(--head); }
.dice-msg { margin: 2px 0 0; font-size: 13px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dice-score { display: flex; flex-direction: column; align-items: center; padding: 0 8px; }
.dice-score .label { color: var(--gray); }
.dice-score b { font: 700 20px/1.1 var(--head); }
.btn-roll { min-width: 96px; }
.btn-roll[disabled] { opacity: .6; cursor: progress; }

.time-dock { width: min(720px, calc(100vw - 32px - 232px - 208px)); }
.time-text { flex: 0 0 auto; }
.slider { flex: 1; appearance: none; -webkit-appearance: none; height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--orange) var(--pct, 70%), var(--off) var(--pct, 70%)); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F26A1B' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M2 12h2M20 12h2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E") center/14px no-repeat; border: 2px solid var(--orange); box-shadow: 0 2px 6px rgba(43,42,40,.25); cursor: pointer; }
.slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--orange); }
.slider:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }
.time-out { font: 600 15px var(--head); background: #FFF1D0; border: 1px solid #F4DFB4; border-radius: 12px; padding: 8px 12px; min-width: 76px; text-align: center; }

.tooltip { position: fixed; z-index: 30; background: var(--ink); color: var(--cream); font-size: 12px; padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 104px; transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; font-weight: 500; box-shadow: var(--shadow); animation: toastIn var(--t-panel) var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1280px) {
  .grow-chip { display: none; }
  .mode { padding: 0 10px; }
}
@media (max-width: 1100px) {
  .brand-name { font-size: 17px; white-space: normal; max-width: 110px; }
  .modes .mode { font-size: 0; gap: 0; }
  .modes .mode .ic { width: 20px; height: 20px; }
}
@media (max-width: 1000px) {
  :root { --top: 64px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .brand-name { display: block; font-size: 13px; white-space: normal; max-width: 92px; line-height: 1.05; }
  .grow { gap: 4px; padding: 2px; }
  .grow-text { font-size: 12px; }
  .grow-word { display: none; }
  .topbar { padding: 0 8px; gap: 6px; }
  .modes { padding: 2px; }
  .mode { height: 36px; padding: 0 8px; }
  .grow-skip { padding: 0 8px; }
  .search { flex: 0 0 44px; margin: 0; }
  .search input { padding: 0; width: 44px; color: transparent; }
  .search input:focus { position: fixed; left: 12px; right: 12px; width: auto; top: 10px; padding-left: 46px; color: var(--ink); z-index: 30; }
  .search input:focus + .search-list, .search-list { position: fixed; top: 60px; left: 12px; right: 12px; }
  .search input::placeholder { color: transparent; }
  .search input:focus::placeholder { color: var(--gray); }
  .grow-text small, .grow-dots { display: none; }
  .search input { height: 44px; }
  .search .ic { top: 12px; }
  .panel { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 62vh; border-radius: 16px 16px 0 0; padding-top: 8px; z-index: 15; transform: translateY(calc(100% - 56px)); }
  .panel.open { transform: none; }
  .panel-left { z-index: 14; }
  .panel.panel-right { transform: translateY(calc(100% - 132px)); }
  .panel.panel-right.open { transform: none; }
  .panel-right.has-card { transform: translateY(calc(100% - 220px)); }
  .panel-right.has-card.open { transform: none; }
  .sheet-handle { display: grid; place-items: center; width: 100%; height: 32px; border: 0; background: none; margin-bottom: 4px; }
  .sheet-handle span { width: 44px; height: 5px; border-radius: 5px; background: var(--off); }
  .minimap { display: none; }
  .controls { bottom: auto; top: calc(var(--top) + 12px); flex-direction: column; }
  .ctrl-group { flex-direction: column; }
  .dice-dock, .time-dock { bottom: 144px; left: 12px; right: 12px; transform: none; width: auto; padding: 12px; gap: 8px 12px; flex-wrap: wrap; }
  .dice-text { order: -1; flex: 0 0 100%; }
  .dice-text .dice-msg { white-space: normal; }
  .btn-roll { margin-left: auto; }
  .die { width: 36px; height: 36px; padding: 5px; }
  .die i { width: 6px; height: 6px; }
  .time-dock .time-text { display: none; }
  .panel-left { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---------- PAGE: map hero + crawlable content ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.zoom-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 12; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; font-weight: 500; pointer-events: none; }
.more { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); z-index: 9; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.more:focus { width: auto; height: auto; clip: auto; overflow: visible; background: var(--panel); padding: 8px 16px; border-radius: 12px; transform: translate(-50%, -120%); }
.pitch-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.seo { background: var(--panel); border-top: 1px solid var(--line); padding: 64px 24px; }
.wrap { max-width: 1080px; margin: 0 auto; }
.seo h2 { font-size: 32px; font-weight: 700; margin: 48px 0 16px; }
.seo h2:first-of-type { margin-top: 4px; font-size: 40px; }
.seo .eyebrow { margin: 0; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.seo .lede { font-size: 19px; line-height: 1.5; margin: 0; }
.seo p, .seo li { font-size: 16px; line-height: 1.5; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scard { padding: 24px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.scard h3 { font-size: 20px; margin-bottom: 8px; }
.scard h3::before { content: ""; display: block; width: 24px; height: 6px; border-radius: 6px; background: var(--orange); margin-bottom: 12px; }
.scard p { margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.col { padding: 24px; border-radius: 16px; border: 1px solid var(--line); }
.col h3 { font-size: 22px; }
.col ul { margin: 12px 0 0; padding-left: 20px; }
.col li + li { margin-top: 8px; }
.start { list-style: none; counter-reset: s; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.start li { counter-increment: s; padding: 24px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.start li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--orange); color: var(--ink); font: 600 16px var(--head); margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font: 600 19px/1.3 var(--head); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--ink); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 8px 0 0; }
.foot { padding: 32px 24px; border-top: 1px solid var(--line); background: var(--cream); font-size: 14px; }
.foot p { margin: 4px 0; }
.foot a { color: var(--ink); }
@media (max-width: 900px) {
  .cards, .cols, .start { grid-template-columns: 1fr; }
  .seo { padding: 48px 16px; }
  .seo h2:first-of-type { font-size: 30px; }
  .seo h2 { font-size: 26px; }
  .map { touch-action: pan-y; }
}

.seo .note { margin: 16px 0 0; padding: 12px 16px; border-left: 4px solid var(--orange); background: var(--cream); border-radius: 0 12px 12px 0; }


/* ---------- SERVICE PAGES + BOOKING (gen_pages.py) ---------- */
.btn .ic { width: 18px; height: 18px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.pnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.plink { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.plink:hover { background: var(--cream); }
.brand-logo { width: 36px; height: 36px; }
.pmain { padding-top: var(--top); }
.ibox { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #FDE3D3; color: #A8430B; flex: none; }
.ibox .ic { width: 22px; height: 22px; }

/* hero */
.phero { position: relative; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--line); padding: 48px 24px 56px; }
.phero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 30%, rgba(255,197,61,.28), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(91,165,91,.12), transparent 70%); pointer-events: none; }
.phero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.crumbs { margin: 0 0 20px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.crumbs a { color: var(--gray); }
.hicon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--orange); color: var(--ink); margin-bottom: 16px; box-shadow: 0 6px 0 #C9550F; }
.hicon .ic { width: 28px; height: 28px; }
.phero h1 { font: 700 52px/1.06 var(--head); letter-spacing: -.01em; margin: 0 0 16px; }
.phero .lede { font-size: 20px; line-height: 1.5; margin: 0 0 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { text-decoration: none; color: var(--ink); }

/* map crop + mock-ups */
.visual { margin: 0; }
.v-map { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; background-image: url(/assets/city.webp); background-repeat: no-repeat; background-color: #E9E0CF; box-shadow: 0 2px 0 var(--line), 0 24px 48px rgba(43,42,40,.16); border: 6px solid var(--panel); overflow: hidden; }
.visual figcaption { margin-top: 12px; font-size: 14px; color: var(--gray); display: flex; align-items: center; gap: 8px; }
.chip { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; color: var(--ink); }
.vpin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 2px; filter: drop-shadow(0 4px 6px rgba(43,42,40,.3)); }
.vpin img { width: 34px; height: 34px; border-radius: 50%; background: var(--panel); border: 3px solid var(--orange); }
.vpin b { font: 600 12px/1 var(--head); background: var(--panel); border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
.vring { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); border: 3px dashed; }
.vring.r-or { border-color: var(--orange); background: rgba(242,106,27,.14); }
.vring.r-bl { border-color: var(--blue); background: rgba(62,124,177,.12); }
.mock { position: absolute; background: var(--panel); border-radius: 16px; box-shadow: 0 16px 32px rgba(43,42,40,.22); font-size: 13px; line-height: 1.35; color: var(--ink); }
.mock .ic { width: 15px; height: 15px; }
.stars { color: #E2A100; letter-spacing: 1px; }
.stars i { font-style: normal; color: var(--clay); }
.m-name { display: block; font: 600 17px/1.2 var(--head); }
.mock-phone { right: 4%; top: 6%; width: 52%; padding: 12px; border: 6px solid var(--ink); border-radius: 22px; }
.m-search { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: var(--cream); margin-bottom: 8px; font-weight: 500; }
.m-results { list-style: none; margin: 0; padding: 0; }
.m-results li { display: grid; padding: 8px 4px; border-top: 1px solid var(--line); }
.m-results li:first-child { border-top: 0; }
.m-results b { font-family: var(--head); font-size: 14px; color: #1E5A8C; }
.m-results small { color: #2F7A3A; font-size: 11px; }
.mock-gbp { right: 5%; top: 8%; width: 50%; padding: 12px 14px; }
.m-photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4px; margin-bottom: 10px; }
.m-photos span { height: 46px; border-radius: 8px; background: linear-gradient(135deg, #F7B27E, #F26A1B); }
.m-photos span:nth-child(2) { background: linear-gradient(135deg, #B9DDB3, #5BA55B); }
.m-photos span:nth-child(3) { background: linear-gradient(135deg, #FFE29A, #FFC53D); }
.m-rate { margin: 4px 0 2px; font-weight: 600; }
.m-rate small { color: var(--gray); font-weight: 400; }
.m-meta { color: var(--gray); }
.m-open { display: flex; align-items: center; gap: 6px; margin: 6px 0 10px; color: #2F7A3A; font-weight: 600; }
.m-open i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.m-actions { display: flex; gap: 6px; }
.m-actions span { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: #1E5A8C; }
.mock-ad { right: 4%; bottom: 8%; width: 54%; padding: 12px 14px; }
.m-spons { font-weight: 700; font-size: 11px; }
.m-url { display: flex; align-items: center; gap: 6px; color: var(--gray); font-size: 12px; margin: 2px 0 4px; }
.m-head { display: block; font: 600 16px/1.2 var(--head); color: #1E5A8C; }
.mock-ad p { margin: 4px 0 8px; }
.m-ext { display: flex; gap: 6px; flex-wrap: wrap; }
.m-ext span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: #1E5A8C; }
.mock-reviews { right: 4%; top: 6%; width: 58%; padding: 8px; display: grid; gap: 8px; background: transparent; box-shadow: none; }
.m-rev { background: var(--panel); border-radius: 14px; padding: 10px 12px; box-shadow: 0 12px 24px rgba(43,42,40,.2); }
.m-rev p { margin: 4px 0 0; }
.m-who { display: flex; align-items: center; gap: 8px; }
.m-av { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--orange); font: 600 12px var(--head); }
.m-av.b { background: var(--yellow); }
.m-reply { margin-top: 8px; padding: 6px 10px; border-left: 3px solid var(--orange); background: var(--cream); border-radius: 0 8px 8px 0; font-size: 12px; }
.mock-browser { left: 6%; right: 6%; top: 8%; overflow: hidden; }
.m-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: var(--cream); border-bottom: 1px solid var(--line); }
.m-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.m-bar span { margin-left: 8px; flex: 1; background: var(--panel); border-radius: 999px; padding: 3px 10px; font-size: 11px; color: var(--gray); }
.m-page { padding: 12px 14px 14px; }
.m-page > small { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.m-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 10px; }
.m-two ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.m-two li { display: flex; align-items: center; gap: 6px; }
.m-mini { position: relative; border-radius: 10px; background-image: url(/assets/city.webp); background-repeat: no-repeat; aspect-ratio: 4 / 3; }
.m-mini .vpin img { width: 22px; height: 22px; border-width: 2px; }
.m-btns { display: flex; gap: 6px; }
.m-btns span { padding: 6px 14px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; }
.m-btns .on { background: var(--orange); border-color: var(--orange); }
.mock-list { right: 4%; bottom: 6%; width: 46%; padding: 12px 14px; }
.mock-list ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.mock-list li { display: flex; align-items: center; gap: 8px; }
.mock-list li b { flex: 1; font-weight: 600; }
.mock-list li i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.mock-list li i.c { background: var(--red); }
.mock-list > small { color: var(--gray); font-size: 11px; }

/* body */
.seo.pbody { border-top: 0; }
.seo.pbody h2:first-of-type { font-size: 32px; margin-top: 0; }
.seo.pbody p { margin: 0 0 12px; max-width: none; }
.seo a:not(.btn):not(.rcard):not(.mapnote):not(.card-link) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.icards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.icard { padding: 24px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.icard h3 { font-size: 19px; margin: 16px 0 6px; }
.icard p { margin: 0 !important; font-size: 15px; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--panel); background: var(--green); border-radius: 50%; padding: 3px; width: 24px; height: 24px; stroke-width: 2.6; margin-top: 0; }
.mapnote { display: flex; gap: 20px; align-items: center; margin: 48px 0 8px; padding: 16px 20px 16px 16px; border-radius: 20px; background: var(--ink); color: var(--cream); text-decoration: none; transition: transform var(--t-fast) var(--ease); }
.mapnote:hover { transform: translateY(-2px); }
.mapnote b { display: block; font: 600 20px/1.2 var(--head); color: var(--yellow); margin-bottom: 4px; }
.mapnote > span:nth-child(2) { flex: 1; font-size: 15px; line-height: 1.5; }
.mapnote > .ic { width: 28px; height: 28px; color: var(--orange); }
.mapthumb { flex: none; width: 160px; aspect-ratio: 4 / 3; border-radius: 14px; background: url(/assets/city-mini.webp) center / cover, #E9E0CF; border: 3px solid var(--panel); }
.psteps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.psteps li { display: block; position: relative; counter-increment: s; padding: 24px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.psteps li::after { content: counter(s); position: absolute; top: 20px; right: 22px; font: 700 40px/1 var(--head); color: var(--clay); }
.psteps b { display: block; font: 600 19px/1.25 var(--head); margin: 16px 0 6px; }
.psteps p { margin: 0 !important; font-size: 15px; }
.related-wrap { border-top: 0; padding-top: 56px; }
.related-wrap h2:first-of-type { font-size: 32px !important; margin-top: 0 !important; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rcard { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--cream); color: var(--ink); text-decoration: none; transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.rcard:hover { transform: translateY(-2px); border-color: var(--orange); }
.rcard b { font: 600 19px/1.25 var(--head); margin-top: 8px; }
.rtxt { font-size: 15px; line-height: 1.45; color: var(--gray); flex: 1; }
.rmore { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.rmore .ic { width: 16px; height: 16px; color: var(--orange); }

/* home cards */
.scard .ibox { margin-bottom: 14px; }
.scard:has(.ibox) h3::before { display: none; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.card-link .ic { width: 16px; height: 16px; color: var(--orange); transition: transform var(--t-fast) var(--ease); }
.card-link:hover .ic { transform: translateX(3px); }

/* booking */
.book { background: var(--ink); color: var(--cream); padding: 72px 24px; scroll-margin-top: var(--top); }
.book-grid { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: start; }
.book .eyebrow { margin: 0 0 8px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.book h2 { font: 700 40px/1.1 var(--head); margin: 0 0 16px; }
.book-copy p { font-size: 18px; line-height: 1.55; margin: 0 0 24px; }
.book-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.book-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.book-points .ic { width: 22px; height: 22px; color: var(--orange); }
.book-card { background: var(--panel); color: var(--ink); border-radius: 24px; padding: 28px; box-shadow: 0 24px 48px rgba(0,0,0,.25); }
.book-card .fine { font-size: 14px; line-height: 1.5; color: var(--gray); margin: 10px 0 0; }
.book-card .fine a { color: var(--ink); }
.book-card .or { font: 600 17px/1.3 var(--head); margin: 24px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.frow { display: grid; gap: 6px; margin-bottom: 14px; }
.frow label { font-weight: 600; font-size: 14px; }
.frow label span { font-weight: 400; color: var(--gray); }
.frow input { height: 48px; border: 1px solid var(--off); border-radius: 12px; padding: 0 14px; font: 400 16px var(--body); color: var(--ink); background: var(--panel); }
.frow input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242,106,27,.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ferr { color: var(--red) !important; }
.book-card button.btn { background: var(--cream); border-color: var(--off); cursor: pointer; font: 600 16px var(--body); }

/* footer */
.foot-top { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 600 18px var(--head); }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 500; }
.foot-links .ic { width: 18px; height: 18px; color: #A8430B; }
.foot-bottom { margin-top: 24px !important; padding-top: 16px; border-top: 1px solid var(--line); }

/* legal + thanks */
.legal { padding-top: 56px; }
.legal h1 { font: 700 44px/1.1 var(--head); margin: 0 0 12px; }
.legal .updated { color: var(--gray); margin-bottom: 24px; }
.legal h2 { font-size: 24px !important; margin: 32px 0 8px !important; }
.legal p { margin: 0 0 12px; }
.thanks { padding: 80px 24px; }
.thanks .hicon { background: var(--green); box-shadow: 0 6px 0 #3F7E3F; }

@media (max-width: 1100px) {
  .phero-grid { grid-template-columns: 1fr; gap: 32px; }
  .visual { max-width: 640px; }
  .book-grid { grid-template-columns: 1fr; gap: 32px; }
  .book-card { max-width: 560px; }
}
@media (max-width: 900px) {
  .plink { display: none; }
  .brand-logo { width: 28px; height: 28px; }
  .phero { padding: 32px 16px 40px; }
  .phero h1 { font-size: 34px; }
  .phero .lede { font-size: 18px; }
  .icards, .related, .psteps, .checks, .foot-top, .foot-links { grid-template-columns: 1fr; }
  .seo.pbody h2:first-of-type, .related-wrap h2:first-of-type { font-size: 26px !important; }
  .mapnote { flex-direction: column; align-items: flex-start; }
  .mapthumb { width: 100%; }
  .book { padding: 48px 16px; }
  .book h2 { font-size: 30px; }
  .book-card { padding: 20px; }
  .mock { font-size: 11px; }
  .m-name, .m-head { font-size: 14px; }
  .m-photos span { height: 28px; }
  .mock-phone, .mock-gbp { width: 62%; }
  .legal h1 { font-size: 32px; }
}
@media (max-width: 600px) {
  .mock-reviews .m-rev + .m-rev { display: none; }
  .mock-reviews { width: 64%; }
  .m-page { padding: 8px 10px 10px; }
  .m-two { margin: 6px 0 8px; }
  .mock-browser { top: 5%; }
}
@media (max-width: 600px) {
  .m-results small { display: none; }
  .mock-phone { top: 4%; padding: 8px; border-width: 4px; }
  .m-results li { padding: 5px 2px; }
}
.form-summary { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--red); background: #FBE9E7; }
.form-summary ul { margin: 6px 0 0; padding-left: 18px; }
.form-summary a { color: var(--ink); }
.frow .ferr { margin: 0; font-size: 14px; }
.frow input[aria-invalid="true"] { border-color: var(--red); }
.form-success { padding: 20px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.form-success h3 { font-size: 20px; margin: 12px 0 4px; }
.form-success p { margin: 0; }
.form-success .ibox { background: #DDEFDB; color: #2F6B2F; }

/* ---------- GUIDES ---------- */
.byline { margin: 0; font-size: 14px; color: var(--gray); }
.guide-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--top) + 24px); display: grid; gap: 16px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.toc a:not(.btn) { color: var(--ink); text-decoration: none !important; }
.toc a:not(.btn):hover { color: #A8430B; }
.foot-h { margin: 0 0 8px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.foot-h a { color: inherit; }
.guide-body h2 { scroll-margin-top: calc(var(--top) + 16px); }
.guide .guide-body h2:first-of-type { margin-top: 0; }
.gsteps { list-style: none; counter-reset: g; padding: 0; margin: 8px 0 0; display: grid; gap: 12px; }
.gsteps li { counter-increment: g; position: relative; padding: 18px 20px 18px 68px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.gsteps li::before { content: counter(g); position: absolute; left: 18px; top: 16px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); font: 600 16px var(--head); }
.gsteps b { display: block; font: 600 18px/1.3 var(--head); margin-bottom: 4px; }
.gsteps p { margin: 0 !important; }
.gtable-wrap { overflow-x: auto; margin-top: 8px; border-radius: 16px; border: 1px solid var(--line); }
.gtable { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--panel); }
.gtable caption { caption-side: bottom; text-align: left; padding: 10px 16px; font-size: 13px; color: var(--gray); background: var(--cream); }
.gtable th, .gtable td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.gtable thead th { background: var(--ink); color: var(--cream); font: 600 15px var(--head); }
.gtable tbody th { font-weight: 600; width: 30%; }
.svc-box { margin-top: 40px; padding: 24px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.svc-box .foot-links a { color: var(--ink); text-decoration: none !important; }
.gcards { grid-template-columns: repeat(2, 1fr); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot-cols .foot-links { grid-template-columns: 1fr; }
.ibox.g { background: #DDEFDB; color: #2F6B2F; }
/* guide visuals */
.mock-split { right: 4%; top: 8%; width: 58%; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-col { display: grid; gap: 4px; align-content: start; }
.m-col .ibox { width: 32px; height: 32px; border-radius: 10px; }
.m-col .ibox .ic { width: 16px; height: 16px; }
.m-col b { font: 600 15px var(--head); }
.m-col small { color: var(--gray); font-size: 11px; }
.m-col ul { margin: 4px 0 0; padding-left: 16px; }
.mock-plan { right: 5%; top: 7%; width: 50%; padding: 12px 14px; }
.mock-plan > small, .mock-fund > small { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.mock-plan ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.mock-plan li { display: flex; align-items: center; gap: 8px; color: var(--gray); }
.mock-plan li .ic { width: 16px; height: 16px; border-radius: 50%; padding: 2px; border: 1.5px solid var(--clay); color: transparent; }
.mock-plan li.on { color: var(--ink); }
.mock-plan li.on .ic { background: var(--green); border-color: var(--green); color: var(--panel); }
.mock-fund { right: 4%; top: 7%; width: 56%; padding: 12px 14px; }
.m-in { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.m-in span { padding: 3px 8px; border-radius: 999px; background: #FDE3D3; font-size: 11px; font-weight: 600; }
.m-arrow { display: flex; justify-content: center; margin: 4px 0; color: var(--orange); transform: rotate(90deg); }
.mock-fund ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mock-fund li { position: relative; padding: 5px 8px; border-radius: 8px; background: var(--cream); overflow: hidden; font-size: 12px; font-weight: 600; }
.mock-fund li i { position: absolute; inset: 0 auto 0 0; background: rgba(255,197,61,.55); z-index: 0; }
.mock-fund li { isolation: isolate; }
.mock-fund li i { z-index: -1; }
@media (max-width: 1100px) {
  .guide-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; padding: 20px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .gcards, .foot-cols { grid-template-columns: 1fr; }
  .gsteps li { padding: 16px 16px 16px 60px; }
  .gtable { font-size: 14px; }
  .gtable th, .gtable td { padding: 10px 12px; }
}
@media (max-width: 600px) {
  .mock-split, .mock-fund { width: 70%; }
  .m-col ul, .mock-fund li:nth-child(3), .m-in span:nth-child(n+3) { display: none; }
  .mock-plan li:nth-child(n+6) { display: none; }
}

/* ---------- ABOUT ---------- */
.portrait { margin: 0; justify-self: center; text-align: center; }
.portrait img { width: 320px; height: 320px; border-radius: 50%; border: 8px solid var(--panel); box-shadow: 0 0 0 4px var(--orange), 0 24px 48px rgba(43,42,40,.18); object-fit: cover; }
.portrait figcaption { margin-top: 20px; font-size: 14px; color: var(--gray); }
.portrait figcaption b { display: block; font: 600 20px var(--head); color: var(--ink); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 8px; position: relative; }
.tl { padding: 24px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.tl b { display: block; font: 600 18px/1.25 var(--head); margin: 14px 0 4px; }
.tl p { margin: 0 !important; font-size: 15px; }
.foot-top a { color: var(--ink); }
.byline a { color: var(--ink); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; }
  .portrait img { width: 220px; height: 220px; }
}

/* ---------- MARKETING TACTICS (app.js "MARKETING TACTICS") ---------- */
.tac-intro { margin: -4px 0 4px; font-size: 13px; color: var(--gray); }
.sw-tac { width: 22px; height: 22px; border-radius: 7px; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.sw-tac .ic { width: 14px; height: 14px; }
.tac-strip { display: none; }
#lyr-tac { pointer-events: none; }
.pin.tacp { z-index: 6; pointer-events: none; }
.pin.tcall { z-index: 9; pointer-events: auto; }

/* Google Ads: searches float up near homes, a line runs to the nearest shop */
.tac-arc { fill: none; stroke-width: 3; stroke-dasharray: 10 10; vector-effect: non-scaling-stroke; opacity: 0; animation: tacArc 3.2s linear infinite; }
@keyframes tacArc { 0% { opacity: 0; stroke-dashoffset: 120; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { opacity: 0; stroke-dashoffset: -80; } }
.tac-q { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 6px 12px 6px 8px; border-radius: 999px; background: #fff; border: 2px solid #3E7CB1; color: var(--ink); font: 600 13px/1 var(--body, inherit); box-shadow: 0 4px 12px rgba(43,42,40,.18); animation: tacFloat 3.2s var(--ease) infinite both; }
.tac-q .ic { width: 14px; height: 14px; color: #3E7CB1; }
@keyframes tacFloat { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 12%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }
.tac-adtag { display: block; margin-bottom: 52px; margin-left: 34px; padding: 3px 7px; border-radius: 6px; background: #3E7CB1; color: #fff; font: 700 11px/1 var(--head); border: 2px solid #fff; animation: tacPop 400ms var(--ease) both; }
@keyframes tacPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* Google Business Profile: a listing card above each shop */
.tac-card { display: grid; grid-template-columns: auto auto; gap: 2px 8px; align-items: center; margin-bottom: 56px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 2px solid #2E8B57; box-shadow: 0 6px 16px rgba(43,42,40,.2); white-space: nowrap; font-size: 13px; animation: tacPop 420ms var(--ease) both; }
.tac-card b { display: inline-flex; align-items: center; gap: 3px; font: 700 14px/1 var(--head); }
.tac-card b .ic { width: 14px; height: 14px; fill: #FFC53D; stroke: #B5860F; }
.tac-card .op { color: #2E7D32; font-weight: 600; }
.tac-card .cl { color: var(--gray); font-weight: 600; }
.tac-card small { grid-column: 1 / -1; color: var(--gray); font-size: 11px; }

/* Social: rings spread from each shop, likes rise from nearby homes */
.tac-ripple { fill: rgba(209,53,43,.12); stroke-width: 6; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; opacity: 0; animation: tacRipple 2.7s var(--ease) infinite; }
@keyframes tacRipple { 0% { transform: scale(.15); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.tac-heart { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #D1352B; color: #fff; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(43,42,40,.22); animation: tacRise 2.4s var(--ease) infinite both; }
.tac-heart .ic { width: 14px; height: 14px; fill: #fff; }
@keyframes tacRise { 0% { opacity: 0; transform: translateY(0) scale(.6); } 20% { opacity: 1; transform: translateY(-6px) scale(1); } 100% { opacity: 0; transform: translateY(-46px) scale(.9); } }

/* Targeted display: draw a fence, then a banner ad blinks inside */
.tac-ad { display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 6px; padding: 6px 10px 6px 8px; border-radius: 8px; background: #FFF4DE; border: 2px solid #C98A00; color: var(--ink); font: 700 13px/1.1 var(--head); white-space: nowrap; box-shadow: 0 4px 12px rgba(43,42,40,.18); animation: tacPop 400ms var(--ease) both, tacBlink 2s ease-in-out 1s infinite; }
.tac-ad .ic { grid-row: span 2; width: 20px; height: 20px; color: #C98A00; }
.tac-ad small { font: 500 11px/1.2 var(--mono, monospace); color: var(--gray); text-transform: uppercase; letter-spacing: .04em; }
@keyframes tacBlink { 50% { transform: translateY(-4px); box-shadow: 0 10px 18px rgba(201,138,0,.35); } }

/* Streaming TV: screens light up in homes */
.tac-tv { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #1F7A8C; color: #fff; border: 2px solid #fff; animation: tacPop 400ms var(--ease) both, tacGlow 1.8s ease-in-out infinite; }
.tac-tv.sm { width: 24px; height: 24px; border-radius: 7px; }
.tac-tv .ic { width: 16px; height: 16px; }
.tac-tv.sm .ic { width: 12px; height: 12px; }
@keyframes tacGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,122,140,.5), 0 3px 8px rgba(43,42,40,.22); } 50% { box-shadow: 0 0 0 10px rgba(31,122,140,0), 0 3px 8px rgba(43,42,40,.22); } }

/* Callout */
.tac-call { position: relative; width: 280px; margin-bottom: 14px; padding: 14px 16px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--c); box-shadow: var(--shadow), 0 12px 32px rgba(43,42,40,.22); font-size: 14px; line-height: 1.45; animation: tacPop 360ms var(--ease) both; }
.tac-call::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; margin-left: -8px; background: var(--panel); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.tac-call p { margin: 0 0 8px; }
.tac-h { display: flex; align-items: center; gap: 8px; font: 700 17px/1.2 var(--head); padding-right: 28px; }
.tac-ic { width: 28px; height: 28px; border-radius: 8px; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.tac-ic .ic { width: 16px; height: 16px; }
.tac-rep { padding: 8px 10px; border-radius: 10px; background: var(--cream); font-size: 13px; }
.tac-call a { font-weight: 600; color: var(--ink); }
.tac-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; display: grid; place-items: center; cursor: pointer; color: var(--gray); }
.tac-x:hover { background: var(--cream); color: var(--ink); }
.tac-x .ic { width: 16px; height: 16px; }

@media (max-width: 1000px) {
  .tac-strip { display: flex; gap: 8px; position: fixed; z-index: 12; top: calc(var(--top) + 8px); left: 0; right: 56px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
  .tac-strip::-webkit-scrollbar { display: none; }
  .tac-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,253,248,.95); font: 600 13px/1 var(--head); color: var(--ink); white-space: nowrap; box-shadow: 0 2px 8px rgba(43,42,40,.12); }
  .tac-chip .ic { width: 16px; height: 16px; color: var(--c); }
  .tac-chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
  .tac-chip[aria-pressed="true"] .ic { color: #fff; }
  .tac-call { width: 250px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .tac-arc, .tac-ripple { animation: none !important; opacity: .7; }
  .tac-ripple:nth-of-type(3n+2), .tac-ripple:nth-of-type(3n) { display: none; }
  .tac-q, .tac-heart { animation: none !important; opacity: 1; }
}

/* ---------- PANEL FIT: collapsible groups (app.js "PANEL FIT") ---------- */
.ph .pg-tog { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pg-tog:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.pg-chev { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform var(--t-fast) var(--ease); }
.pgroup.shut .pg-chev { transform: rotate(-90deg); }
.pgroup.shut .pg-body { display: none; }
.pgroup.shut .ph { margin-bottom: 0; }

/* Local SEO: one brand site, a page for each location */
.tac-page { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 54px; padding: 4px 9px 4px 6px; border-radius: 8px; background: #fff; border: 2px solid #44546A; color: var(--ink); font: 600 12px/1 var(--mono, monospace); white-space: nowrap; box-shadow: 0 4px 10px rgba(43,42,40,.18); animation: tacPop 420ms var(--ease) both; }
.tac-page .ic { width: 14px; height: 14px; color: #44546A; }
.tac-hub { display: inline-flex; align-items: center; gap: 6px; transform: translateY(50%); padding: 8px 12px 8px 9px; border-radius: 12px; background: #44546A; color: #fff; border: 2px solid #fff; font: 700 14px/1 var(--head); white-space: nowrap; box-shadow: 0 6px 16px rgba(43,42,40,.28); animation: tacPop 420ms var(--ease) both, tacGlow 1.8s ease-in-out infinite; }
.tac-hub .ic { width: 16px; height: 16px; }

/* ---------- GUIDED TOUR (app.js "GUIDED TOUR") ---------- */
.tour { position: absolute; left: 232px; right: 292px; bottom: 16px; margin: 0 auto; z-index: 12; max-width: 600px; padding: 14px 16px 14px 18px; background: rgba(255,253,248,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.tour[hidden] { display: none; }
.tour-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-step { margin: 0; font: 500 12px/1 var(--mono, monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.tour-x { border: 0; background: none; padding: 6px 0; font: 600 13px/1 var(--body, inherit); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tour-x[hidden] { display: none; }
.tour-h { margin: 6px 0 4px; font: 600 21px/1.15 var(--head); }
.tour-p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.tour-sub { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.tour-sub[hidden] { display: none; }
.tour-tac { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--c, var(--ink)); color: #fff; font-weight: 700; font-size: 13px; }
.tour-tac .ic { width: 15px; height: 15px; }
.tour-of { font: 500 12px/1 var(--mono, monospace); color: var(--gray); }
.tour-link { margin-left: auto; border: 0; background: none; padding: 6px 0; font: 600 13px/1 var(--body, inherit); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tour-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: 12px; }
.tour-dots { display: flex; gap: 6px; margin-right: auto; }
.tour-dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--off); transition: width var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.tour-dots i.on { background: var(--orange); }
.tour-dots i.now { width: 22px; background: var(--orange); }
.tour-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.tour-btns .btn { height: 40px; padding: 0 14px; }
.tour-x:focus-visible, .tour-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* while touring: the step card replaces the dice dock; the pitch keeps H1, line and Book a call */
body.touring .dice-dock, body.touring #growSkip, body.touring .tac-strip,
body.touring .pitch .views, body.touring .pitch-more, body.touring #btnTour { display: none !important; }
body.touring .time-dock { bottom: calc(var(--tourH, 150px) + 28px); left: 232px; right: 292px; margin: 0 auto; transform: none; width: auto; max-width: 600px; }
/* narrower desktops: the panels would reach down into the card, so they end above it (and above the time slider on step 5) */
@media (min-width: 1001px) and (max-width: 1260px) {
  body.touring .minimap { display: none; }
  body.touring .tour, body.touring .time-dock { left: 16px; }
  body.touring .panel-left, body.touring .panel-right { max-height: calc(100vh - var(--top) - 48px - var(--tourH, 200px)); }
  body.touring.tour-time .panel-left, body.touring.tour-time .panel-right { max-height: calc(100vh - var(--top) - 124px - var(--tourH, 200px)); }
}
#nearList.tour-hl { border-radius: 14px; box-shadow: 0 0 0 3px var(--orange); animation: tourHl 1.6s ease-in-out 3; }
@keyframes tourHl { 50% { box-shadow: 0 0 0 7px rgba(242,106,27,.35); } }
.ring-in circle { transform-box: fill-box; transform-origin: center; animation: ringIn 1.1s var(--ease) both; }
@keyframes ringIn { from { transform: scale(.15); opacity: 0; } }

@media (max-width: 1000px) {
  .tour { top: calc(var(--top) + 8px); bottom: auto; left: 8px; right: 78px; margin: 0; max-width: none; padding: 10px 12px; z-index: 13; }
  .tour-h { font-size: 17px; margin: 4px 0 2px; }
  .tour-p { font-size: 13.5px; line-height: 1.4; }
  .tour-sub { margin-top: 8px; gap: 8px; }
  .tour-nav { margin-top: 8px; gap: 8px; }
  .tour-dots { display: none; }
  .tour-btns { flex-wrap: wrap; justify-content: flex-end; }
  .tour-btns .btn { height: 40px; padding: 0 12px; font-size: 14px; }
  body.touring .time-dock { bottom: 144px; left: 12px; right: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  #nearList.tour-hl, .ring-in circle { animation: none; }
}

/* small phones: the card takes the full width; zoom buttons sit just under it, and the rotate group hides until the tour ends */
@media (max-width: 600px) {
  .tour { right: 8px; }
  body.touring .controls { top: calc(var(--top) + var(--tourH, 200px) + 16px); }
  body.touring .ctrl-group[aria-label="Turn the board"] { display: none; }
  .tour-btns { width: 100%; }
  .tour-btns .btn { flex: 1 1 auto; }
}

/* ---------- FREE EXPLORE LAYOUT (12-02 layout check) ---------- */
/* desktop: dice game and time slider sit between the minimap and the zoom controls */
@media (min-width: 1001px) {
  .dice-dock, .time-dock { left: 232px; right: 292px; margin: 0 auto; transform: none; width: auto; max-width: 640px; }
  .time-dock { max-width: 720px; }
}
@media (min-width: 1001px) and (max-width: 1260px) {
  .dice-dock .dice-msg { white-space: normal; }
}
/* phones: chips stop short of the zoom column; the dice game lifts above an open shop card */
@media (max-width: 1000px) {
  .tac-strip { right: 78px; }
  .panel-right.has-card:not(.open) ~ .dice-dock { bottom: 232px; right: 78px; }
  .panel-right.has-card:not(.open) ~ .dice-dock .dice-pair { display: none; }
}
/* 901-1100: the gap between the panels is narrow, so both docks go compact (no dice faces, no time label) */
@media (min-width: 1001px) and (max-width: 1100px) {
  .dice-dock .dice-pair, .time-dock .time-text { display: none; }
  .dice-dock, .time-dock { gap: 10px; padding: 10px 10px 10px 14px; }
  .dice-dock .dice-title { font-size: 16px; }
  .dice-dock .dice-score { padding: 0 2px; }
  .btn-roll { min-width: 0; }
}
@media (min-width: 1001px) and (max-width: 1100px) {
  .tac-call { width: 220px; font-size: 13px; }
}
@media (max-width: 600px) {
  .tac-call { width: min(250px, calc(100vw - 96px)); }
}
@media (max-width: 600px), (max-width: 1000px) and (max-height: 720px) {
  body.tac-note .dice-dock { display: none; }   /* small phones and short tablets: the open tactic note needs the room; closing it brings the game back */
}

/* ---------- LIVING TOWN + QUIET UI (12-02) ---------- */
/* traffic: the cars were cut out of the artwork, so the same cars now drive the streets */
.cars { position: absolute; inset: 0; pointer-events: none; isolation: isolate; }
.car { position: absolute; left: 0; top: 0; will-change: transform; }
.car img { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); max-width: none; }
.car .cf, .car .cr, .car.down .cs, .car.up .cs { display: none; } .car.down .cf, .car.up .cr { display: block; }
.car.flip .cs { transform: translate(-50%, -50%) scaleX(-1); }
body[data-mode="coverage"] .car, body[data-mode="coverage"] .walker { visibility: hidden; }

/* desktop: both side panels are drawers behind a small tab; the tactic chips sit along the top */
.ptab { display: none; }
@media (min-width: 1001px) {
  .ptab { position: absolute; top: calc(var(--top) + 12px); z-index: 12; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,253,248,.95); box-shadow: 0 2px 8px rgba(43,42,40,.12); font: 600 14px/1 var(--head); color: var(--ink); cursor: pointer; }
  .ptab .ic { width: 18px; height: 18px; }
  .ptab-left { left: 16px; } .ptab-right { right: 16px; }
  .ptab[aria-expanded="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
  .ptab:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
  .panel-left, .panel-right { top: calc(var(--top) + 64px); transition: transform var(--t-panel) var(--ease), visibility 0s; }
  .panel-left { max-height: calc(100vh - var(--top) - 64px - 180px); }
  .panel-right { max-height: calc(100vh - var(--top) - 64px - 96px); }
  body:not(.lp-open) .panel-left { transform: translateX(calc(-100% - 32px)); visibility: hidden; transition: transform var(--t-panel) var(--ease), visibility 0s var(--t-panel); }
  body:not(.rp-open) .panel-right { transform: translateX(calc(100% + 32px)); visibility: hidden; transition: transform var(--t-panel) var(--ease), visibility 0s var(--t-panel); }
  .tac-strip { display: flex; gap: 8px; position: absolute; z-index: 11; top: calc(var(--top) + 14px); left: 130px; right: 130px; justify-content: safe center; overflow-x: auto; scrollbar-width: none; padding: 0 4px; }
  .tac-strip::-webkit-scrollbar { display: none; }
  .tac-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,253,248,.95); font: 600 13px/1 var(--head); color: var(--ink); white-space: nowrap; box-shadow: 0 2px 8px rgba(43,42,40,.12); cursor: pointer; }
  .tac-chip .ic { width: 16px; height: 16px; color: var(--c); }
  .tac-chip[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
  .tac-chip[aria-pressed="true"] .ic { color: #fff; }
}
@media (min-width: 1001px) and (max-width: 1260px) {
  body.touring .panel-left, body.touring .panel-right { max-height: calc(100vh - var(--top) - 96px - var(--tourH, 200px)); }
  body.touring.tour-time .panel-left, body.touring.tour-time .panel-right { max-height: calc(100vh - var(--top) - 172px - var(--tourH, 200px)); }
}

/* tactics as a numbered sequence in two groups; one shows at a time */
.tac-chip { padding-left: 6px; }
.tac-n { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: #fff; font: 700 11px/1 var(--mono); }
.tac-chip[aria-pressed="true"] .tac-n { background: #fff; color: var(--c); }
.tac-grp { flex: none; align-self: center; height: 24px; padding: 0 9px; display: inline-flex; align-items: center; border-radius: 999px; background: rgba(43,42,40,.82); color: #fff; font: 500 10px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.tac-div { flex: none; align-self: center; width: 1px; height: 22px; margin: 0 4px; background: rgba(43,42,40,.3); }
.layers .tac-sub { margin: 8px 0 2px; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--gray); list-style: none; }
.layers .tac-sub:first-child { margin-top: 0; }
.tac-call .tac-step { margin: 0 0 4px; font: 500 11px/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--gray); padding-right: 28px; }
.tac-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.tac-nav button { border: 0; background: none; min-height: 32px; padding: 4px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; text-align: right; }
.tac-nav button:hover { color: var(--orange); }
body.touring .tac-nav { display: none; }
/* while a tactic is showing, the reach lines and walk rings step back so the map says one thing */
#lyr-coverage, #lyr-rings { transition: opacity .2s; }
body.tac-on #lyr-coverage, body.tac-on #lyr-rings { opacity: 0; }

@media (min-width: 1001px) {
  .tac-strip { gap: 6px; left: 120px; right: 118px; }
  .tac-chip { padding-right: 10px; }
  .tac-grp { padding: 0 7px; }
  .tac-div { margin: 0 2px; }
}
/* not enough room for the group names: the numbers and the divider still show the order */
@media (max-width: 1439px) { .tac-grp { display: none; } }
