:root {
  color-scheme: dark;
  --ink: #081d17;
  --pine: #0b251e;
  --pine-soft: #113127;
  --pine-light: #1c4939;
  --cream: #f0f3e9;
  --muted: #91a89b;
  --line: rgba(204, 226, 204, .12);
  --lime: #c4ec70;
  --brass: #d6ac60;
  --available: #edece1;
  --allocated: #36866a;
  --radius: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  color: var(--cream);
  background: radial-gradient(ellipse at 72% -25%, #1a3c2e 0, #0b251e 38%, #091e18 78%);
}
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button { border: 0; background: none; }
button:disabled { opacity: .42; cursor: default; }
a { color: inherit; text-decoration: none; }
button, a, input { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--lime); }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }
button, a { transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease; }
button svg, a svg, .lucide { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 1.65; }
button svg { pointer-events: none; }
img { max-width: 100%; }
p, h1, h2 { margin: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 14px 20px; background: var(--lime); color: var(--ink); border-radius: 8px; transform: translateY(-160%); font-weight: 650; }
.skip-link:focus { transform: translateY(0); }

/* A quiet editorial frame leaves the exhibition itself as the focal point. */
.site-header { height: 82px; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-width: 0; padding: 5px 8px; background: #fff; border: 1px solid #ffffffd9; border-radius: 7px; }
.brand > img { display: block; width: 340px; height: auto; object-fit: contain; flex-shrink: 1; border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 23px; flex-shrink: 0; }
.venue-label { display: flex; align-items: center; gap: 7px; color: #9bb1a4; font-size: 11px; }
.venue-label svg { width: 14px; height: 14px; }
.text-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 11px; font-weight: 550; }
.text-action:hover { color: var(--lime); }
.text-action svg { width: 15px; height: 15px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--line); border-radius: 10px; color: #dbe5d9; background: rgba(207, 229, 201, .025); }
.icon-button:hover { background: rgba(207, 229, 201, .09); border-color: rgba(207, 229, 201, .26); }
main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.intro { min-height: 130px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 19px 33px 22px; }
.eyebrow { color: var(--muted); font-size: 8px; letter-spacing: 1.7px; line-height: 1.4; font-weight: 650; }
.intro .eyebrow { display: flex; align-items: center; gap: 8px; font-size: 8px; letter-spacing: 1.9px; }
.intro .eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px #b5dd6540; }
h1 { margin-top: 7px; font-size: clamp(30px, 3.05vw, 46px); line-height: 1.12; letter-spacing: -1.75px; font-weight: 550; }
h1 em { color: var(--lime); font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -1.3px; }
.intro-caption { margin-top: 9px; color: #94a99c; font-size: 11px; line-height: 1.4; letter-spacing: .06px; }
.overview-stats { display: flex; align-items: center; flex-shrink: 0; padding-top: 9px; }
.stat { min-width: 97px; min-height: 64px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 3px 22px; border-left: 1px solid var(--line); text-align: left; border-radius: 0; }
.stat:last-child { padding-right: 7px; }
.stat:hover { background: #c4ec7007; }
.stat-value { font-size: 29px; font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.8px; }
.stat > span:last-child { display: flex; align-items: center; gap: 6px; color: #a5b6a9; font-size: 10px; }
.key { display: inline-block; width: 7px; height: 7px; border-radius: 2px; flex: 0 0 7px; }
.key.available { background: var(--available); box-shadow: inset 0 0 0 1px #d5d7c9; }
.key.allocated { background: var(--allocated); }
.key.reserved { background: var(--brass); }
.key.facility { background: #84998f; }

/* Directory */
.workspace { flex: 1; min-height: 455px; display: grid; grid-template-columns: 300px minmax(0, 1fr); margin: 0 28px; border: 1px solid rgba(189, 216, 185, .15); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 60px rgba(0, 9, 4, .15); isolation: isolate; }
.sidebar { background: linear-gradient(155deg, #102e24, #0c251e 75%); display: flex; flex-direction: column; min-height: 0; min-width: 0; border-right: 1px solid var(--line); position: relative; z-index: 5; scroll-margin-top: 20px; }
.directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 22px 20px 17px; }
.directory-heading .eyebrow { font-size: 7px; letter-spacing: 1.25px; color: #829d8d; margin-bottom: 7px; }
.directory-heading h2 { font-size: 16px; line-height: 1.2; letter-spacing: -.35px; font-weight: 550; }
.total-badge { color: #a8c29e; border: 1px solid #a9d08d27; background: #a9d08d08; border-radius: 5px; padding: 5px 6px; font-size: 8px; white-space: nowrap; align-self: flex-end; margin-bottom: 1px; }
.search-box { margin: 0 20px 15px; height: 44px; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #d2e5c521; border-radius: 8px; background: #061c164d; transition: border-color .18s, box-shadow .18s; }
.search-box:focus-within { border-color: #c4ec7080; box-shadow: 0 0 0 3px #c4ec700a; }
.search-box > svg { color: #94ad9d; width: 15px; height: 15px; flex: 0 0 15px; }
.search-box input { width: 100%; min-width: 0; height: 42px; border: 0; background: transparent; color: var(--cream); font-size: 11px; outline: none; }
.search-box input::placeholder { color: #7e9b89; opacity: 1; }
.search-box input::-webkit-search-cancel-button { cursor: pointer; }
.search-key { color: #92aa9a; font-size: 10px; padding: 1px 5px; border: 1px solid #b2c6ac24; border-radius: 3px; line-height: 14px; }
.directory-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 20px; border-bottom: 1px solid var(--line); }
.directory-tabs button { position: relative; height: 44px; padding: 0 10px; color: #819e8c; font-size: 11px; font-weight: 600; }
.directory-tabs button::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: transparent; transition: background .15s; }
.directory-tabs button:hover { color: var(--cream); }
.directory-tabs button.active { color: var(--lime); }
.directory-tabs button.active::after { background: var(--lime); }
.status-filters { display: flex; align-items: center; gap: 3px; padding: 9px 17px 0; }
.status-filters button { min-height: 44px; padding: 0 9px; border-radius: 6px; color: #94aa9d; font-size: 10px; position: relative; isolation: isolate; }
.status-filters button::before { content: ""; position: absolute; inset: 8px 0; border: 1px solid transparent; border-radius: 6px; z-index: -1; }
.status-filters button:hover { color: var(--cream); }
.status-filters button:hover::before { background: #cfdfc908; }
.status-filters button.active { color: var(--lime); font-weight: 600; }
.status-filters button.active::before { background: #c4ec7011; border-color: #c4ec7021; }
.list-heading { min-height: 31px; display: flex; align-items: center; justify-content: space-between; padding: 1px 21px 7px; color: #789684; font-size: 9px; letter-spacing: .15px; }
.clear-button { color: #c0d2b5; font-size: 9px; min-height: 28px; padding: 0 0 0 7px; text-decoration: underline; text-underline-offset: 3px; }
.clear-button:hover { color: var(--lime); }
.directory-list { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 9px 10px; scrollbar-width: thin; scrollbar-color: #47664e55 transparent; }
.directory-list::-webkit-scrollbar { width: 4px; }
.directory-list::-webkit-scrollbar-thumb { background: #47664e77; border-radius: 4px; }
.directory-list > [role="listitem"] + [role="listitem"] { margin-top: 3px; }
.directory-item { position: relative; width: 100%; min-height: 57px; display: flex; align-items: center; gap: 11px; padding: 8px 11px; text-align: left; border: 1px solid transparent; border-radius: 8px; background: transparent; }
.directory-item:hover { background: #b8d2a90a; border-color: #b8d2a910; }
.directory-item.selected, .directory-item.is-selected { background: #c4ec7010; border-color: #c4ec7040; box-shadow: inset 2px 0 0 #c4ec70; }
.stand-number, .stand-code { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; flex: 0 0 35px; border-radius: 7px; border: 1px solid #d1dfc825; background: #d1dfc808; color: #cddcc5; font-size: 11px; font-weight: 650; letter-spacing: -.15px; }
.directory-item[data-status="available"] .stand-number, .directory-item[data-status="available"] .stand-code { background: #eeeede0c; color: #e2e6d6; }
.directory-item[data-status="reserved"] .stand-number, .directory-item[data-status="reserved"] .stand-code { border-color: #d6ac604a; background: #d6ac600b; color: #d6bd88; }
.directory-item.selected .stand-number, .directory-item.is-selected .stand-code { background: #c4ec70; border-color: #c4ec70; color: #163626; }
.directory-item-copy, .stand-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.directory-item-copy strong, .stand-name { display: block; color: #e2e9dc; font-size: 11px; line-height: 1.35; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-item-copy small, .stand-meta { color: #809b8b; font-size: 9px; line-height: 1.3; }
.directory-item > .key { width: 5px; height: 5px; flex-basis: 5px; margin-right: 2px; border-radius: 50%; }
.stand-status, .status-dot { width: 5px; height: 5px; border-radius: 50%; }
.facility-item .stand-number, .facility-item .stand-code { color: #a7c3bc; border-color: #819f973b; }
.directory-empty, .empty-state { padding: 35px 20px; font-size: 12px; line-height: 1.6; color: #91ab9a; text-align: center; }
.directory-empty strong, .empty-state strong { display: block; font-size: 13px; color: #d4e0ce; margin-bottom: 7px; }
.sidebar-foot { flex-shrink: 0; display: flex; align-items: center; gap: 9px; min-height: 51px; padding: 12px 20px; border-top: 1px solid var(--line); color: #789782; background: #081e1726; }
.sidebar-foot svg { width: 14px; height: 14px; flex: 0 0 14px; color: #93b294; }
.sidebar-foot p { font-size: 9px; line-height: 1.5; max-width: 210px; }

/* Model canvas and a deliberately light layer of map furniture. */
.map-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #0c1915; isolation: isolate; }
.map-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(#a2b69b14 .75px, transparent .75px); background-size: 22px 22px; opacity: .6; }
#scene-container { position: absolute; inset: 0; z-index: 1; }
#scene-container canvas { display: block; width: 100%; height: 100%; }
#map-fallback { position: absolute; inset: 0; z-index: 2; padding: 88px 68px 68px 30px; }
#map-fallback svg { display: block; width: 100%; height: 100%; overflow: visible; }
#map-fallback .stand-shape { cursor: pointer; transition: opacity .18s ease, stroke .18s ease; }
#map-fallback .stand-shape.dimmed { opacity: .18; }
#map-fallback .stand-shape.selected, #map-fallback .stand-shape:hover, #map-fallback .stand-shape:focus-visible { stroke: #f5d88f; stroke-width: 2; outline: none; }
#map-fallback .stand-shape.selected polygon, #map-fallback .stand-shape:hover polygon, #map-fallback .stand-shape:focus-visible polygon { stroke: #f5d88f; stroke-width: 2; }
.map-topbar { position: absolute; z-index: 10; left: 22px; right: 20px; top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; pointer-events: none; }
.map-topbar > * { pointer-events: auto; }
.view-switch { display: flex; gap: 3px; padding: 4px; border: 1px solid #ccdec21c; background: #0d221bcc; border-radius: 10px; box-shadow: 0 8px 24px #030d0926; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.view-switch button { min-height: 36px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #a4b6a7; font-size: 10px; font-weight: 550; border-radius: 6px; }
.view-switch button svg { width: 14px; height: 14px; flex-basis: 14px; }
.view-switch button:hover { background: #d2e5c80b; color: #edf1e5; }
.view-switch button.active { background: #d5e4cb; color: #1c392b; box-shadow: 0 2px 5px #0000001a; }
.map-top-actions { display: flex; align-items: center; gap: 8px; }
.map-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 13px; color: #dce8d3; font-size: 10px; font-weight: 550; border: 1px solid #c7dcbd29; border-radius: 9px; background: #0d231bd9; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.map-action svg { width: 13px; height: 13px; flex-basis: 13px; fill: #dce8d31a; }
.map-action:hover, .map-action.active { color: var(--lime); border-color: #c4ec7059; background: #183526ed; }
.map-top-actions .icon-button { background: #0d231bd9; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.map-caption { position: absolute; z-index: 4; top: 88px; left: 24px; display: flex; flex-direction: column; gap: 7px; pointer-events: none; text-shadow: 0 2px 12px #0a1b10; }
.map-caption-line { display: block; width: 23px; height: 1px; background: #b3c99a; opacity: .7; margin-bottom: 2px; }
.map-caption > span:not(.map-caption-line) { color: #9eb39d; font-size: 7px; font-weight: 550; letter-spacing: 1.15px; }
.map-caption strong { font-size: 12px; color: #d8e4cc; font-weight: 450; letter-spacing: -.1px; }
.map-tools { position: absolute; z-index: 10; top: 50%; right: 19px; transform: translateY(-38%); display: flex; flex-direction: column; padding: 3px; border-radius: 11px; border: 1px solid #c9dabb24; background: #0c211bd9; box-shadow: 0 7px 23px #0000001a; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.map-tools button { width: 38px; height: 41px; display: flex; align-items: center; justify-content: center; color: #bdcfb5; border-radius: 7px; }
.map-tools button:hover { background: #d2e5c813; color: var(--cream); }
.map-tools button[aria-pressed="false"] { color: #677e70; }
.map-tools > span { height: 1px; margin: 3px 8px; background: #bbd1b321; }
.map-orientation { position: absolute; z-index: 4; right: 31px; top: 89px; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.map-orientation > span { font-size: 7px; letter-spacing: 1.1px; color: #91a78f; }
.map-orientation > div { width: 15px; height: 23px; position: relative; transform: rotate(27deg); }
.map-orientation > div::before, .map-orientation > div::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 50% 78%, 0 100%); background: #d3dbb9; }
.map-orientation > div::after { clip-path: polygon(50% 0, 100% 100%, 50% 78%); background: #72866a; }
.map-bottom { position: absolute; z-index: 8; bottom: 17px; left: 23px; right: 22px; display: flex; align-items: center; justify-content: space-between; gap: 15px; pointer-events: none; }
.map-legend { display: flex; align-items: center; gap: 16px; min-height: 34px; padding: 0 12px; border: 1px solid #c9dabb16; border-radius: 7px; background: #0b2019d9; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.map-legend > span { display: flex; align-items: center; gap: 6px; color: #b5c5ad; font-size: 9px; white-space: nowrap; }
.map-legend .key { width: 6px; height: 6px; flex-basis: 6px; border-radius: 1px; }
.navigation-hint { display: flex; align-items: center; gap: 7px; color: #92a18d; font-size: 8px; text-shadow: 0 1px 9px #000; }
.navigation-hint svg { width: 12px; height: 12px; }
.map-wrap:has(.detail-card:not([hidden])) .navigation-hint { visibility: hidden; }
.mobile-find { display: none; }

/* Stand information */
.detail-card { position: absolute; z-index: 12; right: 20px; bottom: 69px; width: 270px; max-height: calc(100% - 145px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #7c98815c transparent; padding: 21px 20px 18px; border: 1px solid #f5f8e9b3; border-radius: 12px; background: #f0f2e9f5; color: #1b3c2c; box-shadow: 0 18px 48px #020e0959, 0 1px 5px #00000012; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: reveal-card .22s ease-out both; }
.detail-close { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; color: #456149; background: transparent; border-color: transparent; border-radius: 8px; }
.detail-close:hover { background: #173d2c0b; border-color: transparent; }
.detail-close svg { width: 15px; height: 15px; }
.detail-eyebrow { font-size: 7px; font-weight: 700; letter-spacing: 1.5px; color: #6f856d; padding-right: 18px; margin-bottom: 14px; }
.detail-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.detail-id { font-size: 33px; line-height: 1; font-weight: 550; letter-spacing: -1.15px; color: #1f422d; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 5px; padding: 5px 7px; font-size: 8px; line-height: 1.2; font-weight: 600; background: #e2e6da; color: #65755e; white-space: nowrap; }
.status-badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.status-badge.available { background: #fafbf3; border: 1px solid #cbd3bf; color: #64724f; }
.status-badge.allocated { background: #dce9db; color: #2c674b; }
.status-badge.reserved { background: #f2e4c7; color: #8c6829; }
.status-badge.facility { background: #e1e8e3; color: #527064; }
.detail-card h2 { font-size: 20px; font-weight: 600; line-height: 1.22; letter-spacing: -.55px; margin-bottom: 14px; overflow-wrap: anywhere; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 12px 0; border-top: 1px solid #3551361a; border-bottom: 1px solid #3551361a; margin-bottom: 11px; }
.detail-facts > span { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #5e735a; line-height: 1.4; }
.detail-facts svg { width: 13px; height: 13px; flex: 0 0 13px; color: #819575; }
.detail-facts:empty { display: none; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-label { font-size: 8px; color: #7a8b70; }
.fact-value { font-size: 12px; color: #28462e; font-weight: 600; }
.detail-note { color: #71816a; font-size: 10px; line-height: 1.6; margin-bottom: 16px; }
.detail-note:empty { display: none; }
.detail-actions { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 13px; border-radius: 7px; font-size: 10px; line-height: 1.35; font-weight: 650; }
.primary-button { color: #183524; background: var(--lime); border: 1px solid #c4ec70; }
.primary-button:hover { color: #102b1a; background: #d2f38b; border-color: #d2f38b; box-shadow: 0 3px 12px #40691a1c; }
.secondary-button { color: #517048; border: 1px solid #8f9f7d4d; background: #f8faf140; padding: 0; }
.secondary-button:hover { background: #e0e7d6; border-color: #8f9f7d80; }
.detail-actions .secondary-button > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.primary-button svg, .secondary-button svg { width: 15px; height: 15px; flex-basis: 15px; }
.detail-card :focus-visible { outline-color: #355e2e; }
.detail-card.facility .detail-id { font-size: 21px; letter-spacing: -.5px; }
.tour-card { position: absolute; z-index: 11; bottom: 72px; left: 24px; display: flex; align-items: center; justify-content: space-between; gap: 15px; min-width: 225px; max-width: 280px; padding: 10px 9px 10px 15px; border: 1px solid #c4ec7047; border-radius: 9px; background: #122d20eb; box-shadow: 0 6px 25px #00000026; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); animation: reveal-card .22s ease-out both; }
.tour-card > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tour-card #tour-step { color: var(--lime); font-size: 8px; font-weight: 650; letter-spacing: 1.1px; }
.tour-card strong { color: #e0eacf; font-size: 11px; font-weight: 500; line-height: 1.3; }
.tour-card button { width: 44px; height: 44px; flex: 0 0 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d0e6ba26; border-radius: 7px; color: #cae7b0; }
.tour-card button:hover { background: #c4ec7015; }
.tour-card button svg { width: 12px; height: 12px; fill: currentColor; }

/* Loading, help and notifications */
.scene-loading { position: absolute; z-index: 20; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; background: radial-gradient(ellipse at 50% 45%, #163428, #0c1b15 65%); transition: opacity .45s ease, visibility .45s; }
.scene-loading.done { opacity: 0; visibility: hidden; pointer-events: none; }
.scene-loading strong { font-size: 15px; font-weight: 500; letter-spacing: -.2px; color: #e2ecd8; }
.scene-loading > span:last-child { color: #7e9c87; font-size: 10px; }
.loader-orbit { width: 39px; height: 39px; border: 1px solid #c4ec701a; border-top-color: #c4ec70; border-right-color: #c4ec7080; border-radius: 50%; margin-bottom: 7px; animation: spin 1.1s linear infinite; box-shadow: 0 0 30px #c4ec7007; }
.toast { position: fixed; z-index: 100; bottom: 27px; left: 50%; max-width: calc(100% - 36px); padding: 13px 21px; border: 1px solid #c4ec7052; border-radius: 9px; background: #dceacef5; color: #244c30; font-size: 12px; font-weight: 500; box-shadow: 0 12px 50px #00100859; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .22s ease, transform .22s ease, visibility .22s; text-align: center; }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
dialog { color: var(--cream); width: min(520px, calc(100% - 36px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto; padding: 30px 32px 29px; border: 1px solid #aecb9c36; border-radius: 18px; background: linear-gradient(145deg, #143526, #0b241c); box-shadow: 0 30px 100px #00000066; overflow: auto; }
dialog::backdrop { background: #020b0799; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: reveal-dialog .22s ease-out both; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: -13px; margin-right: -16px; margin-bottom: 13px; }
.dialog-top .eyebrow { font-size: 7.5px; color: #a8c78c; letter-spacing: 1.6px; }
.dialog-top .icon-button { border-color: transparent; }
dialog h2 { max-width: 350px; font-size: 30px; font-weight: 500; line-height: 1.18; letter-spacing: -1.15px; }
.help-list { list-style: none; padding: 0; margin: 28px 0 22px; display: flex; flex-direction: column; gap: 21px; }
.help-list li { display: flex; align-items: flex-start; gap: 15px; }
.help-list li > svg { width: 40px; height: 40px; flex: 0 0 40px; padding: 11px; background: #c4ec7009; border: 1px solid #c4ec7024; border-radius: 9px; color: #bed79e; }
.help-list strong { display: block; margin: 2px 0 5px; font-size: 12px; font-weight: 550; color: #e1ebd7; }
.help-list p { color: #95af9d; font-size: 11px; line-height: 1.65; }
.help-note { padding: 16px 0 21px; border-top: 1px solid var(--line); color: #75967e; font-size: 10px; line-height: 1.65; }
dialog > .primary-button { width: 100%; font-size: 12px; min-height: 47px; }
.site-footer { min-height: 53px; height: 53px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 33px; color: #748f7b; }
.organiser { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.organiser > span { font-size: 6px; letter-spacing: 1.3px; color: #6e8c77; }
.organiser > strong { font-size: 8px; font-weight: 650; color: #b5c3a7; letter-spacing: 1.25px; }
.site-footer > p { font-size: 8px; letter-spacing: .12px; text-align: center; }
.site-footer > p > span { color: #3d634b; padding: 0 8px; }
.site-footer > a { display: flex; align-items: center; gap: 6px; min-height: 44px; color: #98ac8e; font-size: 8px; flex-shrink: 0; }
.site-footer > a:hover { color: var(--lime); }
.site-footer > a svg { width: 11px; height: 11px; flex-basis: 11px; }
.map-wrap:fullscreen { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
.map-wrap:fullscreen .map-topbar { top: 24px; left: 28px; right: 28px; }
.map-wrap:fullscreen .detail-card { bottom: 83px; right: 28px; }
.map-wrap:fullscreen .map-bottom { left: 28px; right: 28px; bottom: 25px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes reveal-card { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-dialog { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1160px) and (min-width: 851px) {
  .site-header { padding: 0 25px; }
  .intro { padding-left: 26px; padding-right: 26px; }
  .workspace { margin-left: 22px; margin-right: 22px; grid-template-columns: 282px minmax(0, 1fr); }
  .stat { min-width: 82px; padding-left: 17px; padding-right: 17px; }
  .stat-value { font-size: 27px; }
  h1 { font-size: 33px; letter-spacing: -1.35px; }
  .directory-heading { padding-left: 17px; padding-right: 17px; }
  .search-box { margin-left: 17px; margin-right: 17px; }
  .directory-tabs { margin-left: 17px; margin-right: 17px; }
  .map-topbar { left: 16px; right: 16px; gap: 8px; }
  .view-switch button { padding: 0 9px; }
  .map-action { padding: 0 10px; }
  .map-caption { left: 18px; }
  .map-tools { right: 15px; }
  .map-bottom { left: 17px; right: 17px; }
  .map-legend { gap: 11px; padding: 0 9px; }
  .navigation-hint { display: none; }
  .tour-card { left: 17px; min-width: 190px; max-width: 225px; }
  .detail-card { right: 16px; width: 255px; }
  .map-wrap:has(.detail-card:not([hidden])) .tour-card { top: 145px; bottom: auto; max-width: 210px; }
  .site-footer { padding-left: 26px; padding-right: 26px; gap: 12px; }
  .organiser { gap: 7px; }
  .organiser > span { font-size: 5.5px; }
  .organiser > strong { font-size: 7px; letter-spacing: 1px; }
  .site-footer > p { font-size: 7px; }
}

@media (max-width: 850px) {
  body { height: auto; min-height: 100vh; min-height: 100dvh; }
  .site-header { height: 72px; min-height: 72px; padding: 0 20px; gap: 15px; }
  .brand > img { width: 300px; height: auto; }
  .header-actions { gap: 13px; }
  .venue-label { font-size: 10px; }
  .original-link { font-size: 10px; }
  .header-actions > .icon-button { width: 40px; height: 44px; flex-basis: 40px; }
  main { min-height: 0; }
  .intro { min-height: 128px; gap: 20px; padding: 23px 22px 24px; }
  h1 { font-size: 32px; letter-spacing: -1.25px; }
  h1 em { letter-spacing: -1px; }
  .intro .eyebrow { font-size: 7px; letter-spacing: 1.5px; }
  .intro-caption { font-size: 10px; }
  .overview-stats { padding-top: 5px; }
  .stat { min-width: 73px; min-height: 60px; padding: 3px 13px; gap: 7px; }
  .stat-value { font-size: 25px; }
  .stat > span:last-child { font-size: 9px; gap: 5px; }
  .workspace { display: flex; flex-direction: column; flex: none; margin: 0 18px; min-height: 0; overflow: hidden; }
  .map-wrap { order: -1; flex: none; height: 65vh; height: 65dvh; min-height: 480px; max-height: 760px; width: 100%; border-bottom: 1px solid var(--line); }
  .sidebar { width: 100%; border-right: 0; min-height: 0; }
  .directory-heading { padding: 22px 23px 17px; }
  .directory-heading h2 { font-size: 18px; }
  .directory-heading .eyebrow { font-size: 8px; }
  .total-badge { font-size: 10px; padding: 6px 8px; }
  .search-box { margin: 0 23px 12px; }
  .search-box input { font-size: 13px; }
  .directory-tabs { margin: 0 23px; }
  .directory-tabs button { font-size: 12px; }
  .status-filters { padding: 8px 20px 0; gap: 7px; }
  .status-filters button { font-size: 11px; padding: 0 12px; }
  .list-heading { padding: 3px 24px 10px; min-height: 35px; font-size: 10px; }
  .clear-button { min-height: 36px; font-size: 10px; }
  .directory-list { flex: none; min-height: 90px; max-height: 360px; padding: 0 12px 12px; }
  .directory-item { min-height: 64px; padding: 10px 12px; gap: 13px; }
  .stand-number, .stand-code { width: 39px; height: 39px; flex-basis: 39px; font-size: 12px; }
  .directory-item-copy strong, .stand-name { font-size: 13px; }
  .directory-item-copy small, .stand-meta { font-size: 10px; }
  .directory-item > .key { width: 7px; height: 7px; flex-basis: 7px; margin-right: 4px; }
  .sidebar-foot { padding: 15px 24px; }
  .sidebar-foot p { max-width: none; font-size: 10px; }
  .map-topbar { left: 16px; right: 16px; top: 15px; }
  .view-switch { padding: 3px; }
  .view-switch button { min-height: 38px; padding: 0 11px; font-size: 10px; }
  .map-caption { left: 20px; top: 85px; }
  .map-caption > span:not(.map-caption-line) { font-size: 7px; }
  .map-caption strong { font-size: 12px; }
  .map-tools { right: 15px; transform: translateY(-39%); }
  .map-tools button { width: 40px; height: 44px; }
  .map-orientation { top: 87px; right: 29px; }
  .map-bottom { left: 18px; right: 18px; bottom: 16px; }
  .map-legend { min-height: 38px; gap: 12px; padding: 0 10px; }
  .map-legend > span { font-size: 9px; }
  .navigation-hint { display: none; }
  .mobile-find { position: absolute; z-index: 11; right: 17px; bottom: 14px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid #c4ec7042; border-radius: 8px; background: #c4ec70; color: #1b3826; font-size: 10px; font-weight: 650; box-shadow: 0 4px 15px #0000001a; }
  .mobile-find svg { width: 15px; height: 15px; flex-basis: 15px; }
  .detail-card { right: 17px; bottom: 72px; width: 270px; max-height: calc(100% - 145px); }
  .detail-close { width: 44px; height: 44px; top: 0; right: 0; }
  .detail-eyebrow { padding-right: 24px; }
  .tour-card { left: 18px; bottom: 73px; min-width: 215px; max-width: 255px; }
  .map-wrap:has(.detail-card:not([hidden])) .tour-card { top: 140px; bottom: auto; max-width: 220px; }
  .site-footer { min-height: 85px; height: auto; flex-wrap: wrap; justify-content: space-between; gap: 1px 16px; padding: 15px 23px; }
  .site-footer > p { order: 3; width: 100%; text-align: left; margin-top: 2px; font-size: 8px; }
  .site-footer > a { min-height: 30px; font-size: 8px; }
  .organiser > span { font-size: 6px; }
  .organiser > strong { font-size: 8px; }
  #map-fallback { padding: 104px 65px 77px 18px; }
}

@media (max-width: 650px) {
  .site-header { height: auto; min-height: 0; flex-direction: column; align-items: stretch; gap: 7px; padding: 12px 17px 9px; }
  .brand { width: 100%; padding: 6px 8px; }
  .brand > img { width: 100%; height: auto; }
  .venue-label { display: flex; margin-right: auto; }
  .header-actions { width: 100%; min-height: 44px; justify-content: flex-end; gap: 10px; }
  .original-link { min-width: 44px; font-size: 11px; }
  .original-link svg { width: 18px; height: 18px; }
  .intro { flex-wrap: wrap; padding: 23px 20px 19px; gap: 18px; }
  .intro-copy { width: 100%; }
  h1 { font-size: 32px; }
  .intro-caption { margin-top: 8px; font-size: 10px; }
  .overview-stats { width: 100%; justify-content: flex-start; padding: 0; }
  .stat { flex: 1; min-height: 44px; padding: 0 20px; gap: 6px; }
  .stat:first-child { border-left: 0; padding-left: 0; }
  .stat:last-child { padding-right: 0; }
  .stat-value { font-size: 25px; }
  .stat > span:last-child { font-size: 9px; }
  .workspace { margin: 0 12px; border-radius: 12px; }
  .map-topbar { left: 12px; right: 12px; gap: 8px; top: 13px; }
  .map-top-actions { gap: 6px; }
  .view-switch button { padding: 0 9px; gap: 6px; }
  .map-action { width: 44px; padding: 0; }
  .map-action > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .map-action svg { width: 15px; height: 15px; }
  .map-caption { left: 17px; top: 82px; gap: 6px; }
  .map-caption > span:not(.map-caption-line) { font-size: 6.4px; letter-spacing: .9px; }
  .map-caption strong { font-size: 11px; }
  .map-tools { right: 12px; }
  .map-orientation { right: 25px; top: 85px; }
  .map-bottom { bottom: 15px; left: 14px; right: 14px; }
  .map-legend { gap: 9px; padding: 0 9px; min-height: 38px; }
  .map-legend > span { gap: 5px; font-size: 8px; }
  .mobile-find { width: 44px; padding: 0; font-size: 0; right: 13px; bottom: 12px; }
  .mobile-find svg { width: 18px; height: 18px; flex-basis: 18px; }
  .detail-card { right: 13px; bottom: 68px; width: 255px; max-width: calc(100% - 91px); padding: 19px 18px 16px; max-height: calc(100% - 148px); }
  .map-wrap:has(.detail-card:not([hidden])) .map-tools { left: 12px; right: auto; top: auto; bottom: 68px; transform: none; }
  .detail-card h2 { font-size: 19px; }
  .detail-id { font-size: 30px; }
  .detail-eyebrow { margin-bottom: 12px; }
  .tour-card { left: 14px; bottom: 68px; min-width: 0; width: 235px; max-width: calc(100% - 88px); }
  .map-wrap:has(.detail-card:not([hidden])) .tour-card { top: 132px; left: 15px; bottom: auto; max-width: 210px; width: 210px; min-height: 56px; }
  .map-wrap:has(.tour-card:not([hidden])) .detail-card { max-height: calc(100% - 270px); }
  .directory-heading { padding: 22px 20px 16px; }
  .directory-heading h2 { font-size: 17px; }
  .directory-heading .eyebrow { font-size: 7px; }
  .search-box { margin-left: 20px; margin-right: 20px; }
  .directory-tabs { margin-left: 20px; margin-right: 20px; }
  .status-filters { padding-left: 17px; padding-right: 17px; gap: 4px; }
  .status-filters button { font-size: 10px; padding: 0 10px; }
  .list-heading { padding-left: 21px; padding-right: 21px; }
  .sidebar-foot { padding-left: 21px; padding-right: 21px; }
  .site-footer { padding: 14px 19px 18px; }
  .organiser { gap: 7px; }
  .organiser > strong { font-size: 7px; letter-spacing: 1px; }
  .site-footer > a { font-size: 7px; }
  .site-footer > p { font-size: 7px; line-height: 1.7; }
  .site-footer > p > span { padding: 0 4px; }
  dialog { padding: 25px 24px; border-radius: 14px; }
  .dialog-top { margin-top: -10px; margin-right: -12px; }
  dialog h2 { font-size: 29px; }
  .help-list { gap: 19px; margin-top: 24px; }
  .help-list li { gap: 12px; }
  .help-list p { font-size: 11px; }
  .toast { bottom: 20px; font-size: 11px; }
}

@media (max-width: 370px) {
  h1 { font-size: 29px; letter-spacing: -1.3px; }
  .site-header { padding: 11px 13px 8px; }
  .header-actions { gap: 8px; }
  .view-switch button { padding: 0 7px; font-size: 9px; gap: 4px; }
  .map-topbar { left: 9px; right: 9px; }
  .map-top-actions { gap: 4px; }
  .map-legend { gap: 7px; padding: 0 7px; }
  .map-legend > span { font-size: 7.5px; gap: 4px; }
  .status-filters { gap: 2px; }
  .status-filters button { padding: 0 9px; }
}

@media (hover: none) {
  .view-switch button { min-height: 44px; }
  .map-tools button { width: 44px; height: 44px; }
  .detail-close { width: 44px; height: 44px; }
  .clear-button { min-height: 44px; }
  .site-footer > a { min-height: 44px; }
}

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