/* Craymill Square estate map. Loaded only on map.php, after style.css. */
:root{ --f0:#CAE6BE; --f0-edge:#5E9A55; --f1:#C5DFF1; --f1-edge:#4F8CB3; --f2:#F4DF9B; --f2-edge:#B08A1E; --cell-ink:#16252A; --sel:#16252A; --sel-ink:#FFFFFF; --ground:#F1EEE6; --walk:#ECDDC1; --walk-line:#8C7A5C; --door:#5B4A2E; --bridge:#C9674F; --entrance:#2F6FC0; --lift:#6B3FA0; --marker-ink:#FFFFFF; --wall:#8E9B97; --garden:#CBE2BB; --garden-2:#9CC587; --path:#F7F8F5; --road:#FFFFFF; --road-edge:#D3CFC4; --road-ink:#5A6763; --park:#E5E3DB; --park-ink:#6E7A74; --other:#E1E5E1; --bay:#FFFFFF; --gpath:#A88E5E; --pk:#24406B; --pk-ink:#FFFFFF; --hall:#DCCAB5; --hall-edge:#7A644E; --eA:#FFDA42; --eB:#43DCFF; --eC:#FF85C5; --eD:#FF6A00; --eA-ink:#16252A; --eB-ink:#16252A; --eC-ink:#16252A; --eD-ink:#16252A; --ent-ring:var(--surface); --cup:#8A2F2F; --cup-ink:#FFFFFF; --communal:#ECE3F5; --communal-edge:#7E5FA6; --bins:#D6DEE7; --bins-edge:#4D6680; --fire:#B3261E; --fire-ink:#FFFFFF; --dis:#2F6FCF; --dis-ink:#FFFFFF; --hatch-y:#D9A800; --trunk:#8A6A48; --tree:#7FB36B; --tree-light:#ABD496; --tree-shade:rgba(40,70,32,.30); --map-shadow:rgba(44,52,46,.17); --block-edge:#52605B; --pave-line:#C9B48E; --roof-lit:rgba(255,255,255,.38); --roof-dark:rgba(92,62,32,.16); --wall-face:#2A3538; --wall-edge:#3A484C; --i-wall:#C47F63; --i-wall-sd:#A8664E; --i-win:#D3E0E6; --i-door:#F3EEE6; --i-roof:#5D6A6E; --i-roof-edge:#3F4B50; --i-deck:#CDBFA7; --i-rail:#55605F; --i-ghost:#5E6C6A; --i-cut:#2E3B3C; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --f0:#2C4A2A; --f0-edge:#7FBF75; --f1:#233F50; --f1-edge:#7FB6D9; --f2:#4A4020; --f2-edge:#D9BE5C; --cell-ink:#F2F5F3; --sel:#FFD84D; --sel-ink:#0B0B0B; --ground:#111A1C; --walk:#3A3222; --walk-line:#B09A70; --door:#E8D5AE; --bridge:#E0806A; --entrance:#5B95E0; --lift:#A57BDB; --marker-ink:#0C1917; --wall:#0A1011; --garden:#1C3320; --garden-2:#2C5230; --path:#131C1E; --road:#253134; --road-edge:#33434A; --road-ink:#AAB8B5; --park:#192326; --park-ink:#8FA09C; --other:#1B2427; --bay:#33454A; --gpath:#B9A070; --pk:#5B7FB8; --pk-ink:#0B0B0B; --hall:#4A3D31; --hall-edge:#C9AE90; --cup:#E8907E; --cup-ink:#0B0B0B; --communal:#3A2F4A; --communal-edge:#B79BDB; --bins:#26313B; --bins-edge:#8FA8C2; --fire:#F28B82; --fire-ink:#0B0B0B; --dis:#3F7FDB; --dis-ink:#FFFFFF; --hatch-y:#C9A227; --trunk:#6B5236; --tree:#2E5C30; --tree-light:#3E7A40; --tree-shade:rgba(0,0,0,.45); --map-shadow:rgba(0,0,0,.42); --block-edge:#8FA39D; --pave-line:#5A4C33; --roof-lit:rgba(255,255,255,.08); --roof-dark:rgba(0,0,0,.22); --wall-face:#2A3538; --wall-edge:#3A484C; --i-wall:#5A3C32; --i-wall-sd:#46302A; --i-win:#8A7A52; --i-door:#C4A57A; --i-roof:#1A2224; --i-roof-edge:#61716F; --i-deck:#4B4435; --i-rail:#AAB8B5; --i-ghost:#9FB2AC; --i-cut:#DCE5E1; --ent-ring:#E6ECEA; } }
:root[data-theme="dark"]{ --f0:#2C4A2A; --f0-edge:#7FBF75; --f1:#233F50; --f1-edge:#7FB6D9; --f2:#4A4020; --f2-edge:#D9BE5C; --cell-ink:#F2F5F3; --sel:#FFD84D; --sel-ink:#0B0B0B; --ground:#111A1C; --walk:#3A3222; --walk-line:#B09A70; --door:#E8D5AE; --bridge:#E0806A; --entrance:#5B95E0; --lift:#A57BDB; --marker-ink:#0C1917; --wall:#0A1011; --garden:#1C3320; --garden-2:#2C5230; --path:#131C1E; --road:#253134; --road-edge:#33434A; --road-ink:#AAB8B5; --park:#192326; --park-ink:#8FA09C; --other:#1B2427; --bay:#33454A; --gpath:#B9A070; --pk:#5B7FB8; --pk-ink:#0B0B0B; --hall:#4A3D31; --hall-edge:#C9AE90; --cup:#E8907E; --cup-ink:#0B0B0B; --communal:#3A2F4A; --communal-edge:#B79BDB; --bins:#26313B; --bins-edge:#8FA8C2; --fire:#F28B82; --fire-ink:#0B0B0B; --dis:#3F7FDB; --dis-ink:#FFFFFF; --hatch-y:#C9A227; --trunk:#6B5236; --tree:#2E5C30; --tree-light:#3E7A40; --tree-shade:rgba(0,0,0,.45); --map-shadow:rgba(0,0,0,.42); --block-edge:#8FA39D; --pave-line:#5A4C33; --roof-lit:rgba(255,255,255,.08); --roof-dark:rgba(0,0,0,.22); --wall-face:#2A3538; --wall-edge:#3A484C; --i-wall:#5A3C32; --i-wall-sd:#46302A; --i-win:#8A7A52; --i-door:#C4A57A; --i-roof:#1A2224; --i-roof-edge:#61716F; --i-deck:#4B4435; --i-rail:#AAB8B5; --i-ghost:#9FB2AC; --i-cut:#DCE5E1; --ent-ring:#E6ECEA; }
:root[data-contrast="high"]{ --f0:#000; --f0-edge:#7CFFB0; --f1:#000; --f1-edge:#9FD3FF; --f2:#000; --f2-edge:#FFE033; --cell-ink:#FFF; --sel:#FFE033; --sel-ink:#000; --ground:#000; --walk:#000; --walk-line:#FFF; --door:#FFF; --bridge:#FF8C7A; --entrance:#9FD3FF; --lift:#C9A0FF; --marker-ink:#000; --wall:#555; --garden:#0B2A0B; --garden-2:#1E4D1E; --path:#000; --road:#1A1A1A; --road-edge:#FFF; --road-ink:#FFF; --park:#111; --park-ink:#FFF; --other:#111; --bay:#888; --gpath:#FFE033; --pk:#FFF; --pk-ink:#000; --hall:#000; --hall-edge:#FFF; --cup:#FF9E8A; --cup-ink:#000; --communal:#000; --communal-edge:#FF9BFF; --bins:#000; --bins-edge:#9FD3FF; --fire:#FF6B6B; --fire-ink:#000; --dis:#1E5BFF; --dis-ink:#FFFFFF; --hatch-y:#FFE033; --trunk:#1E4D1E; --tree:#1E4D1E; --tree-light:#1E4D1E; --tree-shade:transparent; --map-shadow:transparent; --block-edge:#FFF; --pave-line:#666; --roof-lit:transparent; --roof-dark:transparent; --wall-face:#000; --wall-edge:#FFF; --i-wall:#000; --i-wall-sd:#000; --i-win:#666; --i-door:#FFF; --i-roof:#222; --i-roof-edge:#FFF; --i-deck:#000; --i-rail:#FFF; --i-ghost:#FFF; --i-cut:#FFF; --ent-ring:#FFF; }
:root[data-contrast="high"] .m-cell polygon{stroke-width:2.5}
:root[data-contrast="high"] .m-plate{opacity:1}
:root[data-contrast="high"] .delivery{border:2px solid #FFE033}
.emap .page-head p{max-width:66ch}
.emap .select-wrap select{width:auto}
/* delivery banner (shown when someone opens a flat's link or QR code) */
.head-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end}
@media (max-width:760px){.head-grid{grid-template-columns:1fr}}
.driver-card{display:flex;gap:14px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px 16px;max-width:360px}
.driver-card b{display:block;font-family:var(--display);font-size:1.05rem;line-height:1.2}
.driver-card p{font-size:.9375rem;color:var(--muted);margin-top:4px}
.driver-card a{font-weight:700}
.delivery{margin-top:20px;background:var(--accent);color:var(--accent-ink);border-radius:18px;padding:20px 22px;display:flex;flex-direction:column;gap:6px}
.delivery .eyebrow{color:inherit;opacity:.85}
.delivery h2{font-size:clamp(1.8rem,4vw,2.4rem)}
.delivery p{font-size:1.1rem}
.delivery a{color:inherit}

.map-intro{color:var(--muted);margin-top:8px}
.jump{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px;font-weight:700}
.tools{margin-top:24px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:18px 20px;display:flex;flex-direction:column;gap:14px;scroll-margin-top:16px}
.tools:focus{outline:none}
.tools-main{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px 28px;align-items:end}
.tools .field{display:flex;flex-direction:column;gap:6px;margin:0}
.tools label,.tools .lbl{font-weight:700}
.start-field select{width:100%}
.tools .err{margin:0}
@media (max-width:860px){.tools-main{grid-template-columns:minmax(0,1fr) auto}.start-field{grid-column:1/-1;grid-row:2}}
@media (max-width:520px){.tools-main{grid-template-columns:1fr}.start-field{grid-row:auto}.tools{padding:16px}}
.find{display:flex;gap:10px;align-items:flex-end}
.find .field{flex:1}
.find input{width:100%;min-width:7rem;max-width:12rem;min-height:48px;border:2px solid var(--field);border-radius:12px;padding:10px 14px;background:var(--surface);font-family:var(--mono);font-size:1.15rem}
.find input[aria-invalid="true"]{border-color:var(--danger);border-width:3px}
.seg{display:inline-flex;gap:4px;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:14px;flex-wrap:wrap}
.seg button{min-height:44px;padding:6px 14px;border:0;border-radius:10px;background:none;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:8px;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.swatch{width:14px;height:14px;border-radius:4px;border:1px solid var(--ink);flex:none;display:inline-block;vertical-align:-2px}
.err{color:var(--danger);font-weight:700;margin-top:10px}

/* The map has the whole width, and on a wide screen it reaches past the page column (Four, 16 Oct 2026). Choosing a flat and its directions sit under the map, above the key. */
.layout{margin-top:20px}
.layout>*{min-width:0}
@media (min-width:1061px){.emap .layout{--lw:min(1400px,100vw - 56px);width:var(--lw);margin-inline:calc((100% - var(--lw)) / 2)}}
.nbrs{display:flex;flex-wrap:wrap;gap:12px 28px}
.mapcard{background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden}
.mapbox{overflow:hidden;background:var(--ground);touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.mapbox.zoomed{touch-action:none;cursor:grab}
.mapbox.zoomed:active{cursor:grabbing}
.stage{transition:transform .5s ease;transform-origin:50% 55%}
.mapbox svg{display:block;width:100%;height:auto}
.m-plate{fill:var(--surface);stroke:var(--line);stroke-width:1.5;opacity:.9}
.m-side{fill:var(--wall)}
.m-tier-label{fill:var(--ink);font-family:var(--display);font-weight:800;font-size:22px}
.m-tier-sub{fill:var(--muted);font-family:var(--body);font-weight:600;font-size:14px}
.m-tier-label,.m-tier-sub{paint-order:stroke;stroke:var(--surface);stroke-width:4px;stroke-linejoin:round}
.m-north{fill:var(--park-ink);font-family:var(--body);font-weight:700;font-size:12px;letter-spacing:.16em}
.m-stairs rect{stroke:var(--surface);stroke-width:2.5}
.m-stairs path{stroke:var(--ei,#fff);stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.m-stair-shaft{stroke-width:6;stroke-dasharray:1 7;stroke-linecap:round;opacity:.85}
.m-shaft{stroke:var(--lift);stroke-width:10;stroke-dasharray:2 7;stroke-linecap:round;opacity:.8}
.m-tier.dim .m-plate{opacity:.5}
.m-tier.dim .m-side,.m-tier.dim .m-link,.m-tier.dim .m-walk,.m-tier.dim .m-steps{opacity:.25}
@media (prefers-reduced-motion:reduce){.stage{transition:none}}

.panel{background:var(--surface);border-top:1px solid var(--line);padding:18px 20px 20px;display:flex;flex-direction:column;gap:14px;scroll-margin-top:12px}
.pb-grid{display:flex;flex-direction:column;gap:14px}
@media (min-width:760px){.panel .quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 28px;padding-left:1.1em}}
/* wide screens: the flat's details, its route and its delivery link side by side under the map */
@media (min-width:1061px){.pb-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr);grid-template-areas:"info route link" "nbrs route link";grid-template-rows:auto 1fr;gap:16px 28px;align-items:start}
  .pb-grid>.mkv{grid-area:info} .pb-grid>.how{grid-area:route} .pb-grid>.nbrs{grid-area:nbrs;flex-direction:column} .pb-grid>.qrbox{grid-area:link;border-top:0;padding-top:0}}
.panel h2{font-size:1.7rem}
.panel h2:focus{outline:none}
.mkv{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:0}
.mkv dt{color:var(--muted)}
.mkv dd{margin:0;font-weight:600}
.how{background:var(--surface-2);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.steps{margin:4px 0 0;padding-left:1.4em;display:flex;flex-direction:column;gap:6px}
.steps li::marker{font-weight:800;color:var(--accent)}
.delivery .steps li::marker{color:inherit}
.stepfree{display:flex;align-items:center;gap:8px;font-weight:600;min-height:44px;cursor:pointer}
.stepfree input{width:20px;height:20px;accent-color:var(--accent);margin:0}
select.start{min-height:48px;border:2px solid var(--field);border-radius:12px;padding:8px 12px;background:var(--surface);font:inherit;color:inherit;max-width:100%}
.ent-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
@media (min-width:1000px){.ent-grid{grid-template-columns:repeat(6,minmax(0,1fr))}}
.ent-card{background:var(--surface-2);border-radius:14px;padding:12px;border-top:6px solid var(--ec,var(--line));display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.ent-card b{font-family:var(--display);font-size:1.2rem}
.ent-card span{font-size:.8125rem;color:var(--muted)}
.ent-card b{font-size:1.1rem;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:2px 4px;line-height:1.2}
.ent-card .ent-chip{color:var(--ei,#fff);font-size:.8rem}
.how h3,.qrbox h3{font-size:1rem;font-family:var(--body);font-weight:700}
.mchips{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}
.mchip{min-height:44px;min-width:56px;padding:6px 12px;border-radius:10px;border:1px solid var(--field);background:var(--surface);font-family:var(--mono);cursor:pointer;display:inline-flex;align-items:center;gap:8px;justify-content:center}
.mchip:hover{background:var(--surface-2)}
.subh{font-weight:700}
.qrbox{border-top:1px solid var(--line);padding-top:14px;display:flex;flex-direction:column;gap:8px}
.qrrow{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.qr{background:#fff;border-radius:10px;padding:0;flex:none;line-height:0}
.qr svg{display:block}
.link{font-family:var(--mono);font-size:.875rem;overflow-wrap:anywhere;background:var(--surface-2);border-radius:8px;padding:6px 8px}


.drivers{margin-top:24px;display:flex;flex-direction:column;gap:18px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:24px;scroll-margin-top:16px}
.drivers:focus,.getting:focus{outline:none}
.drivers-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:14px 24px}
.drivers .prose{display:flex;flex-direction:column;gap:10px;max-width:68ch}
.drivers .prose p{color:var(--muted)}
.dl{display:flex;flex-wrap:wrap;gap:8px}
.ent-card.any b{font-family:var(--display)}

.getting{margin-top:32px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;scroll-margin-top:16px}
@media (max-width:860px){.getting{grid-template-columns:1fr}}
.getting-text{padding:24px;display:flex;flex-direction:column;gap:16px}
.addr{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.addr-line{font-size:1.15rem;font-weight:600;line-height:1.4}
.dir-links{display:flex;flex-wrap:wrap;gap:10px}
.travel{margin:0;display:flex;flex-direction:column;gap:12px}
.travel dt{font-weight:700}
.travel dd{margin:2px 0 0;color:var(--muted)}
.gmap{min-height:340px;background:var(--surface-2);position:relative;display:flex}
.gmap iframe{border:0;width:100%;min-height:340px;flex:1;display:block}
.gmap-ph{margin:auto;padding:28px 24px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;max-width:40ch}
.gmap:focus-within{outline:none}
.quick{margin:4px 0 0;padding-left:1.1em;display:flex;flex-direction:column;gap:8px;font-size:.9375rem}
#panelBody{display:flex;flex-direction:column;gap:14px}
.panel-actions{display:flex;flex-wrap:wrap;gap:8px}

@media print{
  .accessbar,header.site,footer.site,.skip,.jump,.driver-card,.tools,.getting,.drivers,.note,.maphint,.qrbox .btn,.speak-row,.panel-actions,.mchips,.subh,.delivery{display:none!important}
  .mapcard{display:flex;flex-direction:column;gap:16px}
  .panel{order:-1}
  .head-grid p:not(.eyebrow){display:none}
  .qrbox,.how .hint,.emap .page-head .eyebrow{display:none!important}
  .emap .page-head{padding:0}
  .mapbox{overflow:visible}
  .mapbox svg{min-width:0;max-width:140mm;margin:0 auto}
  .key{font-size:9pt;padding:4px 10px 8px;column-gap:14px}
  .key ul{gap:3px}
  .key small{display:none}
  .panel h2{font-size:18pt}
  .emap .page-head h1{font-size:16pt}
  .panel{position:static;border:0;padding:0;margin-top:8px}
  .mapcard{border:0;border-radius:0;overflow:visible}
  .mapwrap{border:1px solid #999;border-radius:12px;overflow:hidden;break-inside:avoid}
  .keybox{break-inside:avoid;border-top:0}
}
.note{margin-top:28px;font-size:.9375rem;color:var(--muted);max-width:70ch}

/* ---------- the map ---------- */
.m-road{fill:var(--road);stroke:var(--road-edge);stroke-width:2}
.m-road-label{fill:var(--road-ink);font-family:var(--display);font-weight:700;font-size:20px;letter-spacing:.24em}
.m-park{fill:var(--park);stroke:var(--road-edge);stroke-width:1.5}
.m-park-label{fill:var(--park-ink);font-family:var(--body);font-weight:700;font-size:15px;letter-spacing:.16em}
.m-other{fill:var(--other)}
.m-garden{fill:url(#grass)}
.m-garden-fence{fill:none;stroke:var(--walk-line);stroke-width:1;opacity:.75;stroke-linejoin:round}
.m-garden-post{fill:none;stroke:var(--walk-line);stroke-width:2.6;stroke-dasharray:.1 7;stroke-linecap:round}
.m-grass-bg{fill:var(--garden)}
.m-grass-dot{fill:var(--garden-2);opacity:.75}
.m-tree-shadow{fill:var(--tree-shade)}
.m-tree-crown{fill:var(--tree)}
.m-tree-light{fill:var(--tree-light)}
.m-tree-trunk{stroke:var(--trunk);stroke-width:3;stroke-linecap:round}
.m-hedge{fill:none;stroke:var(--tree);stroke-width:8;stroke-linecap:round}
.m-hedge-lit{fill:none;stroke:var(--tree-light);stroke-width:3;stroke-linecap:round;opacity:.7}
.m-shadows{fill:var(--map-shadow)}
.m-walls{fill:var(--wall-face);stroke:var(--wall-edge);stroke-width:1;stroke-linejoin:round}
.m-tier .m-walls,.m-tier .m-shadows{display:none}
.m-block{fill:none;stroke:var(--block-edge);stroke-width:1.3;stroke-linejoin:round;pointer-events:none}
.m-pave-bg{fill:var(--walk)}
.m-pave-line{stroke:var(--pave-line);stroke-width:1.1}
.m-garden-dark{fill:var(--garden-2)}
.m-path{stroke:var(--path);stroke-width:7;stroke-linecap:round}
.m-garden-label{fill:var(--park-ink);font-family:var(--body);font-weight:700;font-size:12px;letter-spacing:.16em}
.m-walk{fill:url(#hatch);stroke:var(--walk-line);stroke-width:1.6}
.m-door{fill:var(--door)}
.m-core-base{fill:var(--ground)}
.m-tier.dim .m-core-base{opacity:.3}
.m-core{fill:var(--ec);fill-opacity:.2;stroke:var(--ec);stroke-width:2;stroke-linejoin:round}
:root[data-contrast="high"] .m-core{fill-opacity:.45;stroke-width:3}
.m-tier.dim .m-core,.m-tier.dim .m-door{opacity:.3}
.m-hatch-bg{fill:var(--walk)}
.m-hatch-line{stroke:var(--walk-line);stroke-width:1;stroke-opacity:.35}
:root[data-contrast="high"] .m-hatch-line{stroke-opacity:.6}
.m-bridge{fill:url(#hatch);stroke:none}
.m-bridge-side{fill:none;stroke:var(--walk-line);stroke-width:1.6;stroke-linejoin:round}
.m-steps{fill:none;stroke:var(--ink);stroke-width:1.8;stroke-linecap:round}
.m-fire rect{fill:var(--fire)}
.m-fire path{fill:none;stroke:var(--fire-ink);stroke-linecap:round}
.m-ent-letter{fill:var(--ei,#fff);font-family:var(--body);font-weight:800;font-size:18px;pointer-events:none}
.m-route{stroke:var(--sel);stroke-width:6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.m-route-flow{stroke:var(--sel-ink);stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:.1 13}
.m-route-case{stroke:var(--ground);stroke-width:12;fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.m-route-up{stroke:var(--sel);stroke-width:5;stroke-dasharray:4 7;stroke-linecap:round}
@media (prefers-reduced-motion:no-preference){.m-route-flow{animation:march 1s linear infinite}@keyframes march{to{stroke-dashoffset:-13.1}}}
.m-here rect{fill:var(--danger)}
.m-here text{fill:#fff;font-family:var(--body);font-weight:800;font-size:12px}
.m-here .pulse{fill:none;stroke:var(--danger);stroke-width:3}
@media (prefers-reduced-motion:no-preference){.m-here .pulse{animation:ring 1.6s ease-out infinite;transform-box:fill-box;transform-origin:center}}
.m-compass circle{fill:var(--surface);stroke:var(--line);stroke-width:1.5}
.m-compass circle.m-compass-shadow{fill:var(--map-shadow);stroke:none}
.m-compass circle.m-compass-ring{fill:none;stroke:var(--line);stroke-width:1;stroke-dasharray:1.5 3}
.m-compass .needle-n{fill:var(--danger)}
.m-compass .needle-s{fill:var(--muted)}
.m-compass text{fill:var(--ink);font-family:var(--body);font-weight:800;font-size:13px}
.m-compass text.n{fill:var(--danger);font-size:15px}
.m-marker circle{stroke:var(--surface);stroke-width:3}
.m-entrance[data-ent] circle.m-pin-shadow{fill:var(--map-shadow);stroke:none}
.m-entrance circle{fill:var(--entrance)}
.m-entrance[data-ent="A"] circle{fill:var(--eA)} .m-entrance[data-ent="B"] circle{fill:var(--eB)}
.m-entrance[data-ent="C"] circle{fill:var(--eC)} .m-entrance[data-ent="D"] circle{fill:var(--eD)}
.ent-chip{display:inline-flex;align-items:center;justify-content:center;width:1.5em;height:1.5em;border-radius:50%;color:var(--ei,#fff);font-weight:800;font-size:.85em;vertical-align:.05em;margin-right:.25em;box-shadow:0 0 0 2px var(--ent-ring);user-select:none;-webkit-user-select:none}
/* Entrance colours are bright (Four 16 Oct 2026) and stay apart with colour blindness, and clear of the lift purple, fire door red and blue badge blue: A yellow, B sky blue, C pink, D orange, each a colour with its own name, all with dark letters */
.m-entrance circle:not(.m-pin-shadow),.m-stairs rect{stroke:var(--ent-ring)} /* a light ring keeps each entrance clear of the map underneath */
.ent-chip.A,.m-entrance[data-ent="A"]{--ei:var(--eA-ink)} .ent-chip.B,.m-entrance[data-ent="B"]{--ei:var(--eB-ink)} .ent-chip.C,.m-entrance[data-ent="C"]{--ei:var(--eC-ink)} .ent-chip.D,.m-entrance[data-ent="D"]{--ei:var(--eD-ink)}
.ent-chip.A{background:var(--eA)} .ent-chip.B{background:var(--eB)} .ent-chip.C{background:var(--eC)} .ent-chip.D{background:var(--eD)}
.m-marker path{stroke:var(--marker-ink);stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.m-lift polygon{fill:var(--lift)}
.m-lift .m-lift-icon{fill:var(--marker-ink)}
.m-label{fill:var(--ink);font-family:var(--body);font-weight:700;font-size:13px;paint-order:stroke;stroke:var(--ground);stroke-width:4px;stroke-linejoin:round}
.m-cell{cursor:pointer}
.m-cell polygon{stroke-width:1.2;stroke-linejoin:round;transition:opacity .15s}
.m-cell.f0 polygon{fill:var(--f0);stroke:var(--f0-edge)}
.m-cell.f1 polygon{fill:url(#lvl1);stroke:var(--f1-edge)}
.m-cell.f2 polygon{fill:url(#lvl2);stroke:var(--f2-edge)}
.lvl-line{stroke-width:1.2;opacity:.45}
.lvl-line.l1{stroke:var(--f1-edge)}
.lvl-line.l2{stroke:var(--f2-edge)}
.m-cell.f0 text{paint-order:stroke;stroke:var(--f0);stroke-width:4px;stroke-linejoin:round}
.m-cell.f1 text{paint-order:stroke;stroke:var(--f1);stroke-width:4px;stroke-linejoin:round}
.m-cell.f2 text{paint-order:stroke;stroke:var(--f2);stroke-width:4px;stroke-linejoin:round}
.m-cell.sel text{stroke:none}
.m-ftag rect{stroke-width:1.4}
.m-ftag.f0 rect{fill:var(--f0);stroke:var(--f0-edge)}
.m-ftag.f1 rect{fill:var(--f1);stroke:var(--f1-edge)}
.m-ftag.f2 rect{fill:var(--f2);stroke:var(--f2-edge)}
.m-ftag text{fill:var(--cell-ink);font-family:var(--body);font-weight:800;font-size:12px}
.lvl-icon{flex:none;vertical-align:-4px}
.lvl-icon rect{stroke-width:1.3}
.lvl-icon .off{fill:none;stroke:currentColor;opacity:.45}
.lvl-icon .on.f0{fill:var(--f0);stroke:var(--f0-edge)}
.lvl-icon .on.f1{fill:url(#lvl1);stroke:var(--f1-edge)}
.lvl-icon .on.f2{fill:url(#lvl2);stroke:var(--f2-edge)}
.lvl-icon .on{stroke-width:1.6}
.m-cell text{fill:var(--cell-ink);font-family:var(--display);font-weight:700;font-size:16.5px;pointer-events:none;font-variant-numeric:tabular-nums}
.m-cell:hover polygon{stroke-width:3}
.m-cell.dim polygon{opacity:.2}
.m-cell.dim text{opacity:.3}
.m-cell.sel polygon{fill:var(--sel);stroke:var(--sel);stroke-width:3}
.m-cell.sel text{fill:var(--sel-ink)}
.m-ring{fill:none;stroke:var(--sel);stroke-width:3}
@media (prefers-reduced-motion:no-preference){
  .m-ring{animation:ring 1.8s ease-out infinite;transform-box:fill-box;transform-origin:center}
  @keyframes ring{from{stroke-opacity:.9}to{stroke-opacity:0;transform:scale(1.35)}}
}

@media (max-width:700px){.head-grid .driver-card{display:none}}
.m-cup rect{fill:var(--cup);stroke:var(--surface);stroke-width:2.5}
.m-cup path{stroke:var(--cup-ink);fill:none;stroke-linecap:round}
.m-cup circle{fill:var(--cup-ink)}
.m-sign rect{fill:var(--ink);stroke:var(--surface);stroke-width:2.5}
.m-sign rect.m-sign-eye{fill:var(--surface);stroke:none}
.sign-chip{display:inline-block;width:1.25em;height:1.25em;border-radius:.3em;margin-right:.3em;vertical-align:-.2em;flex:none;
  background:linear-gradient(var(--surface),var(--surface)) 18% 18%/28% 28% no-repeat,linear-gradient(var(--surface),var(--surface)) 82% 18%/28% 28% no-repeat,linear-gradient(var(--surface),var(--surface)) 18% 82%/28% 28% no-repeat,var(--ink)}

/* zoom buttons and hint, in a bar under the map */
/* View, floor and zoom buttons in one row under the map (the floor buttons drop to their own row on phones), then the lift option and how to zoom */
.maptools{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid var(--line)}
.seg button{padding:6px 11px}
/* the zoom buttons float over the map's top left corner, where there's only road */
.mapwrap{position:relative}
.mapwrap .zoombar{position:absolute;top:10px;left:10px;z-index:2}
.mapwrap .zoombar button{width:44px;height:44px;box-shadow:0 2px 6px var(--map-shadow)}
.mapwrap .zoombar button:disabled{opacity:1;color:var(--muted);border-color:var(--line)}
@media print{.mapwrap .zoombar{display:none}}
@media (max-width:520px){.mapwrap .zoombar{top:6px;left:6px;gap:5px}.mapwrap .zoombar button{width:40px;height:40px}}
@media (max-width:760px){.maptools .seg-floor{order:3}}
.mapopts{display:flex;flex-wrap:wrap;align-items:center;gap:0 14px;padding:2px 16px 12px}
.mapopts .hint{margin:0;font-size:.9375rem}
.maphint{flex-basis:100%;font-size:.875rem;color:var(--muted);margin:0}
.zoombar{display:flex;gap:6px;flex:none}
.zoombar button{width:48px;height:48px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;border:2px solid var(--field);background:var(--surface);color:var(--ink);cursor:pointer;}
.zoombar button:hover:not(:disabled){background:var(--surface-2)}
.zoombar button:disabled{opacity:.45;cursor:default}

/* places around the building; names grow when the map is small so they stay readable */
.m-place{paint-order:stroke;stroke-linejoin:round}
.m-road-label{font-size:max(20px,calc(11px * var(--inv,0)))}
.m-park-label{font-size:clamp(15px,calc(10px * var(--inv,0)),20px);stroke:var(--park);stroke-width:3px}
.m-road-label.m-place{stroke:var(--road);stroke-width:3px}
.m-road-label.m-nway{font-size:clamp(20px,calc(11px * var(--inv,0)),26px)} /* Norris Way: only the strip east of its car park is free */
.m-bays path{stroke:var(--bay);stroke-width:2.5;fill:none;stroke-linecap:round}
.m-bays,.m-pk,.m-park-label{pointer-events:none}
/* Disabled (blue badge) bays: blue with the wheelchair sign, and the yellow hatched space beside them */
.m-disbays{pointer-events:none}
.m-dis{fill:var(--dis);stroke:var(--bay);stroke-width:1.2}
.m-dis-hatch{fill:url(#dishatch);stroke:var(--hatch-y);stroke-width:1}
.m-dishatch-bg{fill:var(--park)}
.m-dishatch-line{stroke:var(--hatch-y);stroke-width:1.3}
.m-isa circle{fill:var(--dis-ink)}
.m-isa path{fill:none;stroke:var(--dis-ink);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
/* the kerbed strip down the middle of the Norris Way car park, and the planted beds */
.m-kerb{fill:var(--ground);stroke:var(--road-edge);stroke-width:1}
.m-bed{stroke:var(--road-edge);stroke-width:.8}
.m-pk rect{fill:var(--pk)}
.m-pk text{fill:var(--pk-ink);font-family:var(--body);font-weight:800;font-size:21px}
.m-area{stroke-width:1.5}
.m-bins{fill:var(--bins);stroke:var(--bins-edge)}
.m-communal{fill:var(--communal);stroke:var(--communal-edge)}
/* a fence round the washing lines: posts along the edge */
.m-fence{fill:none;stroke:var(--communal-edge);stroke-width:3.2;stroke-dasharray:.1 6;stroke-linecap:round}
.m-cgarden{fill:var(--garden);stroke:var(--f0-edge);stroke-dasharray:5 3}
.m-area-label{fill:var(--ink);font-family:var(--body);font-weight:700;font-size:11px;letter-spacing:.04em;pointer-events:none}
.m-area3{font-size:9px}
.m-hall rect{fill:var(--hall);stroke:var(--hall-edge);stroke-width:2}
.m-hall path{stroke:var(--hall-edge);stroke-width:1.5;fill:none;opacity:.7}
.m-hall path.m-roof-lit{fill:var(--roof-lit);stroke:none;opacity:1}
.m-hall path.m-roof-dark{fill:var(--roof-dark);stroke:none;opacity:1}
.m-hall-label{fill:var(--ink);font-family:var(--body);font-weight:800;font-size:clamp(15px,calc(9px * var(--inv,0)),21px);stroke:var(--hall);stroke-width:4px}
@media print{.maptools{display:none}}

/* parking section */
.parking{margin-top:24px;display:flex;flex-direction:column;gap:18px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:24px;scroll-margin-top:16px}
.parking:focus{outline:none}
.parking-head{display:flex;gap:16px;align-items:flex-start}
.parking .prose{display:flex;flex-direction:column;gap:8px;max-width:68ch}
.pk-sign{flex:none;width:52px;height:52px;border-radius:10px;background:var(--pk);color:var(--pk-ink);display:inline-flex;align-items:center;justify-content:center;font-family:var(--body);font-weight:800;font-size:1.9rem}
.pk-warn{background:var(--warn-soft);border-left:6px solid var(--warn);border-radius:12px;padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.pk-warn h3{font-size:1.2rem}
.pk-warn ul{margin:0;padding-left:1.2em;display:flex;flex-direction:column;gap:4px}
:root[data-contrast="high"] .pk-warn{border:2px solid var(--warn);border-left-width:6px}
.pk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.pk-card{background:var(--surface-2);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:8px}
.pk-card h3{font-size:1.05rem;font-family:var(--body);font-weight:700}
.pk-places{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:14px}
.pk-places li{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.parking .mkv a{overflow-wrap:anywhere}
.m-parkarea{cursor:pointer}
.m-park.hl{stroke:var(--sel);stroke-width:5}
@media (prefers-reduced-motion:no-preference){.m-park.hl{animation:pkpulse 1s ease-in-out 3}@keyframes pkpulse{50%{stroke-width:9}}}
/* the isometric view lays the ground back, which thins lines, so its highlight is drawn heavier */
#mapIso .m-park.hl{stroke-width:8}
@media (prefers-reduced-motion:no-preference){#mapIso .m-park.hl{animation-name:pkpulseI}@keyframes pkpulseI{50%{stroke-width:14}}}
@media print{.parking{display:none!important}}

/* after scanning a QR code: a short form, then the directions and the map, and nothing else */
.scan-form{display:flex;flex-direction:column;gap:16px;margin-top:8px}
.scan-form label,.scan-form legend{color:inherit}
.scan-form input[type="text"]{width:100%;max-width:14rem;min-height:56px;border:3px solid var(--accent-ink);border-radius:12px;padding:10px 14px;background:var(--surface);color:var(--ink);font-family:var(--mono);font-size:1.6rem}
.scan-form input[aria-invalid="true"]{border-color:var(--danger);border-width:4px}
.scan-form .err{color:inherit;background:var(--danger);color:#fff;border-radius:8px;padding:8px 12px;margin:0}
.lift-q .yn{display:flex;flex-wrap:wrap;gap:10px}
.lift-q .yn label{display:flex;align-items:center;gap:10px;min-height:52px;padding:8px 16px;border:2px solid currentColor;border-radius:12px;font-weight:700;cursor:pointer;flex:1 1 200px}
.lift-q .yn label:has(input:checked){background:var(--surface);color:var(--ink);border-color:var(--surface)}
.lift-q .yn input{width:22px;height:22px;margin:0;accent-color:var(--accent)}
.lift-hint{font-size:.9375rem;opacity:.92}
.btn-go{background:var(--surface);color:var(--ink);font-size:1.15rem;min-height:56px;align-self:flex-start;padding:12px 28px}
.btn-go-2{background:transparent;color:inherit;border-color:currentColor}
.scan-again{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.lift-note{font-weight:700}
.see-map{margin-top:8px}
.qr-steps{margin:0;padding-left:1.4em;display:flex;flex-direction:column;gap:6px}
.qr-steps li::marker{font-weight:800;color:var(--accent)}
.ent-card .try{font-weight:700;font-size:.9375rem;margin-top:2px}
body.scan-mode .head-grid p:not(.eyebrow),body.scan-mode .jump,body.scan-mode .driver-card,body.scan-mode .tools,body.scan-mode .panel,body.scan-mode .getting,body.scan-mode .parking,body.scan-mode .drivers,body.scan-mode .note{display:none}
body.scan-mode .emap .page-head h1{font-size:1.4rem}
body.scan-mode .layout{grid-template-columns:1fr;margin-top:16px}
body.scan-mode .layout>div:first-child{position:static}
body.scan-mode .delivery{margin-top:12px}

.pk-card > ul:not(.pk-places){margin:0;padding-left:20px;display:flex;flex-direction:column;gap:4px}
/* 3D ground floor: smaller labels, as the floor is drawn smaller than the flat map */
.m-road3{font-size:13px;letter-spacing:.2em}
.m-park3{font-size:10px;letter-spacing:.14em}
.m-hall3{font-size:10px;stroke-width:3px}
.m-pk3 text{font-size:14px}
/* The map comes first: the flat search and "Starting from" sit in a bar on top of the map, and the view and zoom buttons under it. */
.emap .page-head{padding-block:24px 0}
.emap .page-head h1{font-size:clamp(1.5rem,4.5vw,2.4rem)}
.mapcard .tools{margin:0;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:14px 16px;gap:8px;scroll-margin-top:12px}
.mapcard .tools-main{grid-template-columns:auto minmax(0,1fr);gap:12px 20px}
.mapcard .find input{max-width:9rem}
@media (max-width:860px){.mapcard .tools-main{grid-template-columns:1fr}.mapcard .start-field{grid-column:auto;grid-row:auto}}
@media (max-width:520px){
  .emap .page-head{padding-top:14px}
  .emap .page-head .eyebrow{display:none}
  .layout{margin-top:12px}
  .mapcard{border-radius:16px}
  .mapcard .tools{padding:12px}
  .mapcard .find{gap:8px}
  .mapcard .find input{max-width:none}
  .mapcard .find .btn{min-height:48px;padding-inline:16px}
  .maptools{padding:8px 10px}
  .maptools .seg button{padding:6px 10px}
  .zoombar button{width:44px;height:44px}
  .mapopts{padding:2px 12px 12px}
}
@media print{.mapopts{display:none!important}}
.keybox{border-top:1px solid var(--line)}
/* The key: four short groups, side by side where there's room */
.key{columns:4 160px;column-gap:24px;padding:0 16px 4px}
.key-group{break-inside:avoid;padding-bottom:14px}
.key-h{font-size:.75rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}
.key ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:.9375rem}
.key li{display:flex;align-items:center;gap:10px;line-height:1.25}
.key small{display:block;font-size:.8125rem;color:var(--muted)}
.ki{flex:none;width:32px;display:inline-flex;justify-content:center;align-items:center}
.ki-ent{width:auto;gap:2px}
.ki .sign-chip{margin:0}
.keybox summary{cursor:pointer;font-weight:700;padding:12px 16px;min-height:48px;display:flex;align-items:center}
@media print{.keybox summary{display:none}}
.keybox summary{justify-content:space-between;list-style:none}
.keybox summary::-webkit-details-marker{display:none}
.keybox summary::after{content:"Show";font-weight:600;color:var(--accent);text-decoration:underline}
.keybox[open] summary::after{content:"Hide"}

/* isometric view: the building standing up, cut away above the floor being looked at */
.stage{position:relative}
.iso-cap{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:6px 8px 6px 12px;border-top:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:.875rem;line-height:1.35}
.iso-cap[hidden]{display:none}
.iso-now{margin:0;flex:1 1 17rem;min-width:0;display:flex;align-items:center;gap:8px}
/* which side the view is seen from, and the button that walks round to the next side */
.iso-turn{display:flex;align-items:center;gap:10px;margin-left:auto}
.iso-from{color:var(--muted)}
.iso-turn button{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:4px 12px;border:2px solid var(--field);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-weight:700;cursor:pointer}
.iso-turn button:hover{background:var(--surface-2)}
.mapbox .iso-cap .lvl-icon{flex:none;width:18px;height:17px;display:inline-block}
.i-shadow{fill:var(--map-shadow)}
.i-wall{stroke:var(--block-edge);stroke-width:.8;stroke-linejoin:round}
.i-wall.fr{fill:var(--i-wall)}
.i-wall.sd{fill:var(--i-wall-sd)}
.i-win{fill:var(--i-win)}
.i-door{fill:var(--i-door)}
.i-floorline{fill:none;stroke:var(--block-edge);stroke-width:.7;opacity:.55}
.i-roof{fill:var(--i-roof);stroke:var(--i-roof-edge);stroke-width:1.2;stroke-linejoin:round}
.i-slope-lit{fill:var(--roof-lit);opacity:.45;stroke:none;pointer-events:none}
.i-gfence{fill:var(--gpath);fill-opacity:.6;stroke:var(--walk-line);stroke-width:.6;stroke-linejoin:round}
.i-dormer{fill:var(--i-roof);stroke:var(--i-roof-edge);stroke-width:.6;stroke-linejoin:round}
.i-rooflight{fill:var(--i-win);stroke:var(--i-roof-edge);stroke-width:.5}
.i-dwin{stroke:var(--i-roof-edge);stroke-width:.4}
.i-parapet{fill:none;stroke:var(--roof-lit);stroke-width:1.4}
.i-deck{fill:var(--i-deck);stroke:var(--block-edge);stroke-width:.6;stroke-linejoin:round}
.i-rail{fill:none;stroke:var(--i-rail);stroke-width:1.2;opacity:.8}
.i-floor{fill:var(--surface)}
.i-cut{fill:none;stroke:var(--i-cut);stroke-width:2.6;stroke-linejoin:round;pointer-events:none}
.i-ghost{fill:none;stroke:var(--i-ghost);stroke-width:1;stroke-dasharray:3 4;opacity:.5;pointer-events:none}
.i-behind{opacity:.35}
.i-corewall{fill:var(--ec);stroke:var(--block-edge);stroke-width:.8;stroke-linejoin:round}
.i-corewall.sd{filter:brightness(.82)}
.i-hallwall{fill:var(--hall);stroke:var(--hall-edge);stroke-width:1.2;stroke-linejoin:round}
.i-hallwall.sd{filter:brightness(.9)}
.i-hallroof{fill:var(--hall);stroke:var(--hall-edge);stroke-width:1.2;stroke-linejoin:round}
.i-hallroof.lit{fill:color-mix(in srgb,var(--hall) 80%,#fff)}
.i-hallroof.dark{fill:color-mix(in srgb,var(--hall) 82%,#000)}
.i-hallridge{fill:none;stroke:var(--hall-edge);stroke-width:1.4}
.i-route-x{fill:none;stroke:var(--sel);stroke-width:3;stroke-dasharray:1 6;stroke-linecap:round;opacity:.85;pointer-events:none}
#mapIso .m-cell text{font-size:15px}
:root[data-contrast="high"] .i-wall,:root[data-contrast="high"] .i-roof,:root[data-contrast="high"] .i-deck{stroke:#FFF;stroke-width:1.4}
:root[data-contrast="high"] .i-corewall.sd,:root[data-contrast="high"] .i-hallwall.sd{filter:none}
/* Entrance B's fire door in the isometric view, red with a push bar as on the flat map; the washing lines' taller fence */
.i-firedoor{fill:var(--fire)}
.i-firebar{fill:none;stroke:var(--fire-ink);stroke-width:1.6;stroke-linecap:round}
.i-yfence{fill-opacity:.7}
.m-cgarden-fence{stroke:var(--f0-edge)}
/* the open path in front of the ground floor doors (there's no walkway at ground level), and the front garden paths */
.m-open{fill:var(--path);stroke:var(--road-edge);stroke-width:1}
.m-gardenpath{stroke-width:6;stroke-linecap:butt}
