:root {
  --bg-glass: rgba(10, 13, 19, 0.84);
  --bg-glass-solid: rgba(11, 15, 22, 0.96);
  --bg-elevated: rgba(15, 20, 29, 0.94);
  --border: rgba(255, 255, 255, 0.085);
  --border-subtle: rgba(255, 255, 255, 0.055);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-gold: rgba(229, 190, 99, 0.38);
  --gold: #e5be63;
  --gold-soft: rgba(229, 190, 99, 0.10);
  --accent-red: #e53935;
  --text: #f3f6fb;
  --text-secondary: #c5cfdd;
  --muted: #8b97a8;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%; height: 100dvh;
  overflow: hidden; background: #0a0e14; color: var(--text);
  font-family: var(--font); font-size: 13px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

#map {
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh;
}

/* ============================================================================
 * LUXURY ARCHITECTURAL EDITORIAL 3D STUDIO HUD
 * ============================================================================ */
.hud-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 10;
  display: grid;
  grid-template-columns: 284px 1fr 346px;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  padding: 12px;
}
.hud-layer > * { pointer-events: none; }

.panel, .topbar, .bottom-bar, .spotlight-card, .modal-card, .studio-popover {
  pointer-events: auto;
  background: rgba(10, 14, 21, 0.91);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  contain: layout style;
}

/* ============================================================================
 * FLAT EDITORIAL ARCHITECTURAL LEFT RAIL (284px)
 * ============================================================================ */
.left-col {
  grid-column: 1; grid-row: 1 / 3;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 0; width: 284px;
}
.left-panel {
  padding: 12px 13px 12px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 0 1 auto; min-height: 0;
  max-height: calc(100vh - 205px);
  max-height: calc(100dvh - 205px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
  border-color: var(--border);
  background: rgba(10, 13, 19, 0.84);
}
.left-panel::-webkit-scrollbar {
  width: 3px;
}
.left-panel::-webkit-scrollbar-track {
  background: transparent;
}
.left-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 2px;
}
.left-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}
.left-collapsible {
  display: flex; flex-direction: column; gap: 8px;
  min-height: 0; flex-shrink: 0;
}
.left-panel.compact .left-collapsible { display: none; }

.brand-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 6px;
}
.brand-util-row { gap: 3px; flex-shrink: 0; }
.brand-row .btn-sm {
  padding: 3px 6px; font-size: 10.5px; font-weight: 500;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--muted);
  border-radius: var(--radius-sm);
}
.brand-row .btn-sm:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
}
.brand-id { display: flex; align-items: flex-start; gap: 9px; min-width: 0; }
.brand-copy { min-width: 0; }
.brand-emblem {
  width: 28px; height: 28px; border-radius: 5px; flex-shrink: 0;
  display: grid; place-items: center; margin-top: 1px;
  font-size: 13px; font-weight: 700; color: var(--gold);
  background: rgba(229, 190, 99, 0.07);
  border: 1px solid rgba(229, 190, 99, 0.30);
}
.brand-eyebrow {
  font-size: 8.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; line-height: 1.2;
}
.brand-title {
  font-size: 15px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.18;
  color: #f8fafc; white-space: nowrap; margin: 2px 0 2px;
}
.brand-sub {
  font-size: 10.5px; color: var(--muted); line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
/* Plain muted editorial subtitle — zero chunky gold oval */
.stats-pill {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: -0.005em;
}
/* Clean multi-line wrap for editorial brand credit (overrides inline nowrap) */
.left-panel .brand-copy .studio-brand-credit {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.left-panel .studio-panel-footer {
  flex-wrap: wrap;
  gap: 4px 10px;
}

/* Buttons & Quiet Architectural Controls */
button, select {
  font-family: inherit; font-size: 12px; color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 10px; cursor: pointer;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
button:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--border-hover);
}
button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
/* Neutralize legacy .pill-gold spam across HUD chrome */
button.pill-gold {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--border);
  color: var(--text-secondary);
  font-weight: 500;
}
button.pill-gold:hover {
  background: rgba(255, 255, 255, 0.095);
  border-color: var(--border-hover);
  color: #ffffff;
}
button.active {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 600;
}
button.btn-primary {
  background: rgba(244, 247, 252, 0.94);
  color: #0b0f16;
  border-color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}
button.btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
}
/* Champagne gold strictly reserved for primary Feature Business CTA */
button.btn-gold {
  background: #e5be63;
  color: #0b0f16;
  border-color: rgba(245, 216, 145, 0.85);
  font-weight: 600;
  letter-spacing: 0.01em;
}
button.btn-gold:hover {
  background: #edd082;
  border-color: #f6dfa0;
}
button.btn-sm { padding: 4px 8.5px; font-size: 11px; border-radius: var(--radius-sm); }
.btn-row { display: flex; gap: 6px; align-items: center; }

/* Sleek Architectural Search Bar */
.search-wrap {
  display: flex; align-items: center; gap: 4px; position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 3px 2px 28px;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.search-wrap::before {
  content: "";
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; opacity: 0.55; pointer-events: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23c5cfdd' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='5.75'/%3E%3Cpath d='M13 13l4.2 4.2'/%3E%3C/svg%3E");
}
.search-wrap:focus-within {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(229, 190, 99, 0.45);
}
.search-wrap input {
  flex: 1; min-width: 0;
  background: transparent; border: none;
  padding: 5px 18px 5px 0; color: var(--text);
  font-family: inherit; font-size: 11.5px; outline: none;
}
.search-wrap input::placeholder { color: rgba(139, 151, 168, 0.80); }
#search-clear {
  position: absolute; right: 54px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: var(--muted); padding: 2px 5px;
  font-size: 14px; line-height: 1; display: none;
}
#search-clear.visible { display: block; }
#search-go {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-secondary);
}
#search-go:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* Flat Hairline Guided Tours & Drives Accordion (Zero Nested Box) */
.studio-tours-menu {
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 0;
  overflow: visible;
}
.studio-tours-summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 2px;
  font-size: 11px; font-weight: 500; color: var(--text-secondary);
  user-select: none;
  transition: color 0.15s ease;
}
.studio-tours-summary::-webkit-details-marker { display: none; }
.studio-tours-summary:hover {
  background: transparent;
  color: #ffffff;
}
.studio-tours-meta {
  font-size: 10px; color: var(--muted); font-weight: 400;
  display: inline-flex; align-items: center; gap: 5px;
}
.studio-tours-meta::after {
  content: "▾";
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.16s ease;
}
.studio-tours-menu[open] .studio-tours-meta::after {
  transform: rotate(180deg);
}
.studio-tours-menu .showcase-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 2px 0 6px;
}
.showcase-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
}
.showcase-btn {
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 5px 6px; font-size: 10.5px; font-weight: 500; border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border-subtle);
}

/* Search Results */
.search-results {
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto; max-height: 260px; padding-right: 2px; flex-shrink: 0;
}
.sr-item {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-subtle);
  border-radius: 5px; padding: 7px 9px;
}
.sr-item:hover { border-color: var(--border-hover); background: rgba(255, 255, 255, 0.055); }
.sr-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.sr-name { font-weight: 600; font-size: 11.5px; }
.sr-badge {
  font-size: 9px; font-weight: 600; letter-spacing: 0.05em;
  padding: 2px 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary); border: 1px solid var(--border); white-space: nowrap;
}
.sr-meta { font-size: 10.5px; color: var(--muted); margin: 3px 0 6px; }

/* Quick Chips & 3x2 Borderless Hairline Action Grid */
.quick-chips {
  display: flex; flex-wrap: wrap; gap: 4px;
}
.chip {
  padding: 4px 7px; font-size: 10.5px; font-weight: 500; border-radius: 4px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.chip:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: var(--border-hover);
  color: #ffffff;
}
.chip.chip-accent {
  border-color: var(--border);
  color: var(--text);
}

.yp-rail-stack { display: flex; flex-direction: column; gap: 9px; }

.quick-action-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
.quick-action-row .chip,
.quick-action-row .chip.chip-accent,
.quick-action-row a.chip {
  grid-column: span 2;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 3.5px 2px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}
.quick-action-row #btn-todays-paper,
.quick-action-row #btn-living-wiki,
.quick-action-row #btn-scenic-tours {
  grid-column: 1 / -1;
}
.quick-action-row #btn-commute,
.quick-action-row #btn-relocation-atlas,
.quick-action-row #btn-client-playbooks,
.quick-action-row #btn-passport {
  grid-column: span 3;
  background: rgba(229, 190, 99, 0.10);
  border: 1px solid rgba(229, 190, 99, 0.38);
  color: #f6e1a7;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 2px;
  padding: 6px 6px;
}
.quick-action-row #btn-commute:hover,
.quick-action-row #btn-relocation-atlas:hover,
.quick-action-row #btn-client-playbooks:hover,
.quick-action-row #btn-passport:hover {
  background: rgba(229, 190, 99, 0.18);
  border-color: rgba(229, 190, 99, 0.62);
  color: #ffffff;
}
.quick-action-row .chip:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-radius: 2px;
}
.quick-action-row .chip.active,
.quick-action-row .chip[aria-pressed="true"] {
  color: #ffffff;
  font-weight: 600;
}
.quick-action-row .chip.active::after,
.quick-action-row .chip[aria-pressed="true"]::after {
  content: "";
  position: absolute; left: 4px; right: 4px; bottom: -2px; height: 1.5px;
  background: var(--gold);
}

/* SNN Featured Event Dynamic Banner -> Flat Editorial Hairline Notice */
#left-panel #shokker-main-featured-event-card,
#snn-featured-event-card,
.snn-event-card,
.snn-featured-banner {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 8px !important;
  margin: 0 !important;
  padding: 6px 0 6px 9px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--border-subtle) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-left: 2px solid var(--gold) !important;
  box-shadow: none !important;
  font-size: 11px !important;
}
#left-panel #shokker-main-featured-event-card .sfec-top {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
#left-panel #shokker-main-featured-event-card .sfec-kicker {
  font-size: 8.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  color: var(--gold) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#left-panel #shokker-main-featured-event-card .sfec-close {
  font-size: 13px !important;
  color: var(--muted) !important;
  padding: 0 2px !important;
  background: transparent !important;
  border: none !important;
}
#left-panel #shokker-main-featured-event-card .sfec-title {
  grid-column: 1;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#left-panel #shokker-main-featured-event-card .sfec-meta {
  display: none !important;
}
#left-panel #shokker-main-featured-event-card .sfec-actions {
  grid-column: 2;
  margin: 0 !important;
  gap: 6px !important;
  flex-wrap: nowrap !important;
}
#left-panel #shokker-main-featured-event-card .sfec-btn {
  padding: 2px 6px !important;
  border-radius: 3px !important;
  border: 1px solid var(--border) !important;
  background: transparent !important;
  color: var(--text-secondary) !important;
  font-size: 10px !important;
  font-weight: 500 !important;
  white-space: nowrap;
}
#left-panel #shokker-main-featured-event-card .sfec-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
#left-panel #shokker-main-featured-event-card .sfec-btn:nth-child(2) {
  display: none !important;
}

/* County Guide Editorial Tabs & Borderless Editorial Category Index (ZERO PILL GRID) */
.cat-section { display: flex; flex-direction: column; gap: 4px; }
.cat-section-head {
  display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  padding: 0;
}
.cat-section-kicker,
.cat-section-head > span {
  font-size: 8.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.cat-section-sub { color: var(--muted); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

.cat-head-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  flex-wrap: nowrap;
}
.cat-neighborhood-tab,
.cat-deals-tab,
.cat-saved-tab {
  position: relative;
  padding: 2px 0 4px !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  letter-spacing: -0.005em;
  border-radius: 0 !important;
  white-space: nowrap;
  background: transparent !important;
  border: none !important;
  color: var(--muted) !important;
  box-shadow: none !important;
}
.cat-neighborhood-tab:hover,
.cat-deals-tab:hover,
.cat-saved-tab:hover {
  background: transparent !important;
  border: none !important;
  color: var(--text) !important;
}
.cat-neighborhood-tab.active,
.cat-neighborhood-tab[aria-expanded="true"],
.cat-saved-tab.has-saved {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}
.cat-neighborhood-tab.active::after,
.cat-neighborhood-tab[aria-expanded="true"]::after,
.cat-saved-tab.has-saved::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -5px;
  height: 1.5px; border-radius: 0;
  background: var(--gold);
}

#left-panel #category-explorer-grid.cat-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
#left-panel #category-explorer-grid.cat-grid[hidden] {
  display: none;
}
#left-panel #category-explorer-grid .cat-tile,
#left-panel #category-explorer-grid .cat-tile.cat-tile-gold {
  position: relative;
  display: flex; align-items: center; gap: 9px;
  width: 100%;
  padding: 6.5px 4px;
  border-radius: 0;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: none;
  transition: background 0.14s ease, color 0.14s ease, padding-left 0.14s ease;
}
#left-panel #category-explorer-grid .cat-tile:last-child {
  border-bottom: none;
}
#left-panel #category-explorer-grid .cat-tile:hover,
#left-panel #category-explorer-grid .cat-tile.cat-tile-gold:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border-subtle);
  padding-left: 7px;
}
#left-panel #category-explorer-grid .cat-tile.active {
  background: rgba(229, 190, 99, 0.065);
  border-color: var(--border-subtle);
  box-shadow: none;
  padding-left: 12px;
}
#left-panel #category-explorer-grid .cat-tile.active::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
#left-panel #category-explorer-grid .cat-tile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 0; flex-shrink: 0;
  background: transparent; color: var(--muted);
  opacity: 0.82;
}
#left-panel #category-explorer-grid .cat-tile.cat-tile-gold .cat-tile-icon,
#left-panel #category-explorer-grid .cat-tile.active .cat-tile-icon,
#left-panel #category-explorer-grid .cat-tile:hover .cat-tile-icon {
  color: var(--gold);
  opacity: 1;
}
#left-panel #category-explorer-grid .cat-tile-label {
  flex: 1; min-width: 0; font-size: 11.5px; font-weight: 500; color: var(--text);
  letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#left-panel #category-explorer-grid .cat-tile.active .cat-tile-label {
  color: #ffffff;
  font-weight: 600;
}
#left-panel #category-explorer-grid .cat-tile-count {
  font-size: 10.5px; font-weight: 500; color: var(--muted);
  background: transparent; padding: 0; border-radius: 0;
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
 * WHISPER-MINIMAL ARCHITECTURAL TOPBAR (36px, BORDERLESS SEGMENTED TOGGLES)
 * ============================================================================ */
.center-top {
  grid-column: 2 / 4; grid-row: 1; justify-self: center;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  max-width: 100%;
  position: relative;
  z-index: 20;
}
.topbar {
  height: 36px;
  max-height: 40px;
  padding: 0 5px 0 12px;
  border-radius: 6px;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  white-space: nowrap;
  max-width: calc(100vw - 320px);
  background: rgba(10, 13, 19, 0.80);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.30);
}
.topbar > * { flex-shrink: 0; }
.topbar .btn-sm {
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
  line-height: 1;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.weather-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px;
  font-size: 11px; font-weight: 500; line-height: 1;
  color: var(--text-secondary);
  padding: 0 10px 0 0;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  white-space: nowrap;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease;
}
.weather-pill:hover {
  background: transparent;
  border-color: var(--border);
  color: #ffffff;
  box-shadow: none;
}
.weather-pill:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}
.dot-live {
  width: 5.5px; height: 5.5px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.55);
}

.seg-group {
  display: inline-flex; align-items: center;
  height: 24px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 0 6px;
  gap: 2px;
}
.seg-group button {
  position: relative;
  height: 26px;
  border: none;
  background: transparent;
  padding: 0 7px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
}
.seg-group button:hover {
  color: var(--text);
  background: transparent;
}
.seg-group button.active {
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  box-shadow: none;
}
.seg-group button.active::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 1.5px;
  background: var(--gold);
}
#btn-studio-layers {
  background: transparent;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  height: 24px;
  padding: 0 10px;
  margin-right: 6px;
  color: var(--text-secondary);
}
#btn-studio-layers:hover,
#btn-studio-layers.popover-open {
  background: transparent;
  border-color: var(--border);
  color: #ffffff;
}
#btn-feature-biz {
  height: 26px;
  padding: 0 11px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

/* Studio Popover Triggers & Floating Apple-Maps-Style Popovers */
.studio-popover-trigger {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.studio-popover-trigger:hover,
.studio-popover-trigger.popover-open {
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--border-hover);
  color: #ffffff;
}
.studio-caret {
  font-size: 9.5px;
  opacity: 0.7;
  transition: transform 0.16s ease;
}
.studio-popover-trigger.popover-open .studio-caret {
  transform: rotate(180deg);
}
.studio-layers-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 3px;
  background: rgba(229, 190, 99, 0.18);
  border: 1px solid rgba(229, 190, 99, 0.45);
  color: var(--gold);
  font-size: 9.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.studio-layers-dot[hidden],
.studio-layers-dot:empty {
  display: none;
}

.studio-popover {
  position: fixed;
  z-index: 1200;
  background: rgba(10, 13, 19, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 11px;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.52);
}
.studio-popover[hidden] {
  display: none !important;
}
.studio-layers-popover {
  top: 56px;
  left: 50%;
  width: 296px;
  max-width: calc(100vw - 20px);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.studio-view-popover {
  bottom: 58px;
  right: 120px;
  width: 212px;
  max-width: calc(100vw - 20px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.studio-share-popover {
  bottom: 58px;
  right: 16px;
  width: 262px;
  max-width: calc(100vw - 20px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  border-radius: 4px;
  background: rgba(11, 15, 23, 0.96);
  border: 1px solid rgba(229, 190, 99, 0.34);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.62);
}
.share-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.share-mode-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid rgba(229, 190, 99, 0.45);
  background: rgba(229, 190, 99, 0.11);
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.share-popover-place {
  font-size: 11.5px;
  font-weight: 600;
  color: #f4f1e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.share-popover-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.studio-share-popover .studio-menu-item {
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.studio-share-popover .share-action-primary {
  background: rgba(229, 190, 99, 0.14);
  border-color: rgba(229, 190, 99, 0.48);
  color: #f9e8b8;
  font-weight: 600;
}
.studio-share-popover .share-action-primary:hover {
  background: rgba(229, 190, 99, 0.24);
  border-color: #e5be63;
  color: #ffffff;
}
.studio-share-popover .share-action-hint {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}
.studio-share-popover .share-action-primary .share-action-hint {
  color: rgba(229, 190, 99, 0.9);
}
.studio-share-popover .studio-menu-item.is-copied {
  background: rgba(139, 226, 168, 0.14) !important;
  border-color: rgba(139, 226, 168, 0.72) !important;
  color: #b7f5ca !important;
}
.studio-share-popover .studio-menu-item.is-copied .share-action-hint {
  color: #b7f5ca !important;
}
.studio-share-popover .share-action-secondary {
  font-size: 11px;
  color: var(--text-secondary);
}
.studio-popover-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.studio-popover-header,
.studio-popover-label {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 2px;
}
.studio-select {
  width: 100%;
  height: 31px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
  outline: none;
}
.studio-select:focus {
  border-color: var(--border-hover);
}
.studio-select option {
  background: #0f141e;
  color: #f3f6fb;
}
.studio-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 2px 0;
}
.studio-layers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.studio-layers-grid button,
.studio-layer-toggle {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 6.5px 9px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.studio-layers-grid button::before,
.studio-layer-toggle::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.studio-layers-grid button:hover,
.studio-layer-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: #ffffff;
}
.studio-layers-grid button.active,
.studio-layers-grid button[aria-pressed="true"],
.studio-layer-toggle.active,
.studio-layer-toggle[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 600 !important;
}
.studio-layers-grid button.active::before,
.studio-layers-grid button[aria-pressed="true"]::before,
.studio-layer-toggle.active::before,
.studio-layer-toggle[aria-pressed="true"]::before {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.55);
}

.studio-view-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.studio-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}
.studio-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  color: #ffffff;
}
.studio-menu-item.active,
.studio-menu-item[aria-pressed="true"] {
  background: rgba(229, 190, 99, 0.10);
  color: var(--gold);
}
.studio-kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--muted);
}

/* Whisper-Thin Subtle Caption Readout Beneath Topbar */
.status-banner {
  pointer-events: auto;
  background: rgba(10, 13, 19, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2.5px 10px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(226, 232, 240, 0.84);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: none;
}

.elevation-legend {
  width: fit-content; max-width: min(100%, 340px);
  padding: 7px 10px;
  background: var(--bg-glass-solid); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text); box-shadow: var(--shadow);
  font-size: 11px; line-height: 1.4;
  white-space: pre-line;
}

/* ============================================================================
 * RIGHT COLUMN: PLACE CARD / PROPERTY CHECK / HOW CLOSE DRAWER
 * ============================================================================ */
.right-col {
  grid-column: 3; grid-row: 2 / 4;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  min-height: 0;
  padding-bottom: 42px;
}
.right-drawer {
  display: none; flex-direction: column; gap: 10px;
  padding: 15px 15px 22px; max-height: calc(100vh - 102px); overflow-y: auto;
  max-height: calc(100dvh - 102px);
}
.right-drawer.open { display: flex; }

/* Auto-avoidance when Place Card (#right-drawer.open) is active */
body:has(#right-drawer.open) #shokker-first-visit-welcome,
body:has(#right-drawer.open) #quick-start,
body:has(#right-drawer.open) [id*="quick-start"] {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
@media (min-width: 901px) {
  body:has(#right-drawer.open) .maplibregl-ctrl-bottom-right {
    bottom: 60px !important;
    right: 372px !important;
  }
}
.drawer-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.pill-tag {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: var(--text-secondary);
}
.pill-tag.gold { background: var(--gold-soft); border-color: var(--border-gold); color: var(--gold); }
.card-title { font-size: 17.5px; font-weight: 650; letter-spacing: -0.02em; margin: 0; line-height: 1.2; }
.card-addr { font-size: 12px; color: var(--muted); margin-top: 3px; }
.card-photo {
  width: 100%; height: 165px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--border); display: none;
}
.card-photo.visible { display: block; }
.card-section { font-size: 12.5px; line-height: 1.5; color: #dce5f2; }
.card-section h4 {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted); font-weight: 600; margin: 0 0 4px;
}
#drawer-body a, .drawer-body a { color: #8ec5ff; text-decoration: underline; }
#drawer-body a:hover, .drawer-body a:hover { color: #b8dcff; }

[data-featured-listing-menu] > summary { cursor: pointer; }
[data-featured-listing-menu] :is(summary, button):focus-visible,
#right-drawer:has([data-featured-listing]) #drawer-close:focus-visible,
[data-featured-listing] :is(button, a):focus-visible {
  outline: 2px solid #e5be63;
  outline-offset: -2px;
}
@media (max-width: 900px), (pointer: coarse) {
  [data-featured-listing-menu] :is(summary, button),
  #right-drawer:has([data-featured-listing]) #drawer-close,
  [data-featured-listing] :is(button, a) { min-width: 44px; min-height: 44px; }
  [data-featured-listing-menu] > summary { align-content: center; }
  [data-featured-listing] a { display: inline-flex; align-items: center; padding-inline: 4px; }
}

:where(#modal-body, .modal-card, [role="dialog"]) a:where(:not([class*="btn"]):not([class*="cta"]):not([class*="chip"]):not([class*="pill"]):not(.download):not(.contact)) {
  color: #e6bc66;
  text-decoration: underline;
  text-underline-offset: 2px;
}
:where(#modal-body, .modal-card, [role="dialog"]) a:where(:not([class*="btn"]):not([class*="cta"]):not([class*="chip"]):not([class*="pill"]):not(.download):not(.contact)):visited {
  color: #e6bc66;
}
:where(#modal-body, .modal-card, [role="dialog"]) a:where(:not([class*="btn"]):not([class*="cta"]):not([class*="chip"]):not([class*="pill"]):not(.download):not(.contact)):hover {
  color: #f8df9c;
}
#modal-body a:focus-visible,
[role="dialog"] a:focus-visible { outline: 3px solid #e5be63; outline-offset: 3px; }
.metric-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px;
}
.metric-box {
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 9px;
}
.metric-label { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.metric-val { font-size: 13px; font-weight: 600; margin-top: 2px; color: #fff; }
.metric-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

.card-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}

/* ============================================================================
 * ARCHITECTURAL BOTTOM DOCK & GALLERY-PLATE SPOTLIGHT (268px)
 * ============================================================================ */
.bottom-row {
  grid-column: 1 / 4; grid-row: 3;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  position: relative;
}
.spotlight-card {
  width: 268px;
  padding: 10px 12px 11px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(10, 13, 19, 0.86);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}
.spot-eyebrow {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 8.5px; font-weight: 600; letter-spacing: 0.16em; color: var(--gold);
}
.spot-nav-row { gap: 3px; }
.spot-arrow-btn {
  width: 20px; height: 20px; padding: 0 !important;
  display: inline-grid; place-items: center;
  font-size: 12px; line-height: 1;
  border-radius: 4px !important;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.spot-arrow-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: #ffffff;
}
.spot-title {
  font-size: 13.5px; font-weight: 600; letter-spacing: -0.015em;
  margin: 4px 0 2px; color: #f8fafc;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spot-sub {
  font-size: 10.5px; color: var(--muted); margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.spot-actions-row { gap: 5px; }
.spot-actions-row .btn-sm {
  padding: 4.5px 9px;
  font-size: 10.5px;
  border-radius: 4px;
}
#spot-fly {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  font-weight: 600;
}
#spot-fly:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.26);
}
#spot-partner {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}
#spot-partner:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.bottom-bar {
  height: 36px;
  padding: 0 6px;
  border-radius: 6px;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(10, 13, 19, 0.82);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}
.bottom-bar > * { flex-shrink: 0; }
.bottom-bar .btn-sm {
  height: 26px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
}
.bottom-bar .btn-sm:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-subtle);
  color: #ffffff;
}
/* Override dynamically injected All Tools gold pill so bottom dock stays calm & unified */
.bottom-bar button.pill-gold,
.bottom-bar #shokker-all-tools-pill,
.bottom-bar [id*="all-tools"] {
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}
.bottom-bar button.pill-gold:hover,
.bottom-bar #shokker-all-tools-pill:hover,
.bottom-bar [id*="all-tools"]:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--border-subtle) !important;
  color: #ffffff !important;
}

.studio-dock-tour {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}
.tour-stepper {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 2px;
  border-radius: 4px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  gap: 1px;
  margin: 0 2px;
}
.tour-stepper .tour-step-btn {
  width: 22px;
  height: 22px;
  padding: 0 !important;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 3px;
  font-size: 9px;
  color: var(--text-secondary);
}
.tour-stepper .tour-step-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}
#tour-counter {
  font-size: 10.5px;
  color: var(--muted);
  padding: 0 5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
#tour-select {
  height: 26px;
  max-width: 148px;
  padding: 0 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  outline: none;
}
#tour-select:hover {
  border-color: var(--border-hover);
  color: var(--text);
}
#tour-select option {
  background: #0f141e;
  color: #f3f6fb;
}

/* ============================================================================
 * MODAL OVERLAY & MAPLIBRE CONTROLS
 * ============================================================================ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6, 9, 14, 0.82);
  z-index: 40;
  display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  width: min(680px, 95vw); max-height: 88vh; overflow-y: auto;
  max-height: 88dvh;
  padding: 20px; background: var(--bg-glass-solid);
  border-color: rgba(255, 255, 255, 0.12);
}
#map-detail-dialog[aria-modal="true"] #modal-close:focus-visible { outline: 3px solid #e5be63; outline-offset: 3px; }
.snn-item .snn-news-date { color: #bac8d7; font-size: 12px; }

.maplibregl-ctrl-bottom-right { bottom: 60px !important; right: 12px !important; }
.maplibregl-ctrl-group {
  background: rgba(10, 14, 21, 0.91) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: var(--shadow) !important;
}
.maplibregl-ctrl-group button { border-radius: 0 !important; filter: invert(0.9); }
.maplibregl-popup-content {
  background: var(--bg-glass-solid) !important; color: var(--text) !important;
  border: 1px solid var(--border-hover) !important; border-radius: 10px !important;
  padding: 10px 12px !important; box-shadow: var(--shadow) !important;
}
.maplibregl-popup-tip { border-top-color: rgba(12, 16, 24, 0.95) !important; }
.maplibregl-ctrl-attrib {
  background: rgba(11, 15, 22, 0.86) !important;
  color: #8b97a8 !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  font-size: 10px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
}
.maplibregl-ctrl-attrib-inner { color: #8b97a8 !important; }
.maplibregl-ctrl-attrib a { color: #cbd5e1 !important; }
.maplibregl-ctrl-attrib-button { filter: invert(0.85) hue-rotate(180deg); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 4px; }

/* Keep search first in the mobile panel while retaining desktop layout. */
@media (max-width: 480px) {
  .left-collapsible > .search-wrap { order: -3; }
  .left-collapsible > #search-status { order: -2; }
  .left-collapsible > #search-results { order: -1; min-width: 0; }
  .search-results .sr-item { min-width: 0; overflow-wrap: anywhere; }
  .search-results .sr-top { min-width: 0; }
  .search-results .sr-name { min-width: 0; overflow-wrap: anywhere; }
}

/* ============================================================================
 * RESPONSIVE TABLET & MOBILE HUD (<= 1024px / 768px / 640px — 0px Overflow)
 * ============================================================================ */
@media (max-width: 1024px) {
  .topbar {
    max-width: calc(100vw - 320px);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }
  .topbar::-webkit-scrollbar { display: none; }
}

@media (max-width: 960px) {
  .hud-layer {
    display: block;
    padding: 10px;
  }
  .center-top {
    position: fixed;
    top: 10px;
    left: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    min-width: 0;
    align-items: stretch;
    gap: 4px;
    z-index: 22;
  }
  .topbar {
    width: fit-content;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    max-height: none;
    margin: 0 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    padding: 4px 8px;
    gap: 5px;
  }
  .topbar::-webkit-scrollbar { display: none; }
  .topbar > * { flex-shrink: 0; }
  .topbar .btn-sm { min-height: 36px; height: 36px; padding: 0 9px; font-size: 11px; }
  .topbar .seg-group { height: 36px; }
  .topbar .seg-group button { min-height: 36px; height: 36px; padding: 0 9px; font-size: 11px; }
  .topbar .weather-pill { min-height: 36px; height: 36px; }
  .topbar .weather-badge { max-width: 172px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
  .status-banner {
    align-self: center;
    border-radius: 4px;
    padding: 2.5px 10px;
    font-size: 10.5px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .left-col {
    position: fixed;
    top: 88px;
    left: 10px;
    width: min(284px, calc(100vw - 20px));
    max-height: min(33.5vh, calc(100vh - 220px));
    max-height: min(33.5dvh, calc(100dvh - 220px));
    z-index: 16;
  }
  .left-panel {
    max-height: min(33.5vh, calc(100vh - 220px));
    max-height: min(33.5dvh, calc(100dvh - 220px));
    overflow-y: auto;
    overflow-x: hidden;
  }
  .left-panel .btn-sm,
  .quick-action-row .chip,
  .quick-action-row .chip.chip-accent {
    min-height: 36px;
  }
  .left-panel.compact {
    max-height: none;
    overflow: visible;
  }
  .right-col {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    padding: 0 10px 10px;
    pointer-events: none;
  }
  .right-drawer {
    width: 100%;
    max-height: 70vh;
    max-height: 70dvh;
    overflow-x: hidden;
    border-radius: 16px 16px 12px 12px;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .right-drawer .btn-sm,
  .right-drawer #drawer-close,
  .right-drawer .card-actions button {
    min-height: 36px;
  }
  .drawer-head > div,
  .card-actions > *,
  .metric-grid > * {
    min-width: 0;
  }
  .right-drawer.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }
  .bottom-row {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    display: flex;
    align-items: flex-end;
    gap: 8px;
    z-index: 20;
  }
  .spotlight-card {
    width: 224px;
    padding: 8px 10px;
    flex-shrink: 0;
    overflow-x: hidden;
  }
  .spotlight-card .spot-arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .spotlight-card .spot-actions-row .btn-sm {
    min-height: 36px;
    white-space: nowrap;
  }
  .bottom-bar {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 4px 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    align-items: center;
  }
  .bottom-bar .btn-sm {
    min-height: 36px;
    height: 36px;
    padding: 0 10px;
  }
  .bottom-bar::-webkit-scrollbar { display: none; }
  .bottom-bar > * { flex-shrink: 0; }
  .maplibregl-ctrl-bottom-right {
    bottom: 92px !important;
    right: 10px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  .maplibregl-ctrl-bottom-right .maplibregl-ctrl {
    float: none;
    margin: 0 !important;
  }
  .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib {
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    font-size: 10px;
    line-height: 18px;
    min-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib.maplibregl-compact {
    padding: 2px 26px 2px 8px;
  }
  .maplibregl-ctrl-bottom-right .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-inner {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 640px) {
  .left-col {
    top: 88px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    max-height: min(33.5vh, calc(100vh - 248px));
    max-height: min(33.5dvh, calc(100dvh - 248px));
  }
  .left-panel {
    padding: 10px 11px;
    gap: 8px;
    max-height: min(33.5vh, calc(100vh - 248px));
    max-height: min(33.5dvh, calc(100dvh - 248px));
    overflow-x: hidden;
  }
  .brand-title { font-size: 14.5px; }
  .brand-emblem { width: 28px; height: 28px; font-size: 13px; }
  .left-panel .brand-copy .studio-brand-credit {
    margin-top: 4px;
    font-size: 9.5px;
    line-height: 1.35;
  }
  .quick-action-row {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 0;
  }
  .quick-action-row .chip,
  .quick-action-row .chip.chip-accent {
    font-size: 11px;
    padding: 5px 4px;
    min-height: 36px;
  }
  .right-col { padding: 0; }
  .right-drawer {
    max-height: 76vh;
    max-height: 76dvh;
    border-radius: 18px 18px 0 0;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .bottom-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .spotlight-card {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2px 8px;
    padding: 7px 10px;
  }
  .spotlight-card .spot-eyebrow { grid-column: 1 / -1; }
  .spotlight-card .spot-title { margin: 0; font-size: 12.5px; }
  .spotlight-card .spot-sub { grid-column: 1; margin: 0; font-size: 10.5px; }
  .spotlight-card > .btn-row { grid-column: 2; grid-row: 2 / 4; }
  .spotlight-card .spot-actions-row .btn-sm {
    padding: 5px 10px;
    font-size: 11px;
    min-height: 36px;
    white-space: nowrap;
  }
  .spotlight-card .spot-arrow-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  .bottom-bar { width: 100%; max-width: 100%; padding: 4px 8px; }
  .studio-layers-popover {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100vw - 20px) !important;
  }
  .studio-view-popover,
  .studio-share-popover {
    right: 10px !important;
    max-width: calc(100vw - 20px) !important;
  }
  .maplibregl-ctrl-bottom-right {
    bottom: 144px !important;
    right: 10px !important;
  }
  .spotlight-kiosk-banner {
    bottom: 152px;
  }
  .modal-card {
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 15px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 4px 6px;
    gap: 2px;
    scroll-padding-inline: 6px;
  }
  .topbar .weather-pill {
    padding: 0 6px 0 0;
    font-size: 10.5px;
    min-height: 36px;
    height: 36px;
  }
  .topbar .seg-group {
    padding: 0 3px;
    gap: 1px;
    height: 36px;
  }
  .topbar .seg-group button {
    padding: 0 6px;
    font-size: 10.5px;
    min-height: 36px;
    height: 36px;
  }
  #btn-studio-layers {
    padding: 0 7px;
    margin-right: 4px;
    min-height: 36px;
    height: 36px;
  }
  #btn-feature-biz {
    padding: 0 8px;
    font-size: 10.5px;
    min-height: 36px;
    height: 36px;
  }
  .elevation-legend {
    order: -1;
    max-width: 100%;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  #btn-elevation-contours { order: -1; }
  #btn-elevation-contours:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
}

/* ============================================================================
 * SUN & SEASONS, TIME-LAPSE, DIRECTORY DRAWER & PLACE CARD DETAILS
 * ============================================================================ */
.sun-seasons {
  margin: 0; padding: 7px 2px;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  font-size: 11px;
}
.sun-seasons summary { cursor: pointer; font-weight: 500; color: var(--text-secondary); list-style: none; }
.sun-seasons label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.sun-seasons input { min-width: 0; color: #eef3fa; background: #131a26; border: 1px solid var(--border-hover); border-radius: 4px; padding: 4px 6px; color-scheme: dark; }
.sun-seasons button { margin-top: 8px; padding: 5px 8px; color: #eef3fa; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-hover); border-radius: 4px; cursor: pointer; }
.sun-seasons output { display: block; margin-top: 7px; color: #cbd7e5; }
.sun-seasons [data-error] { color: #ffb5a9; }

/* Override dynamically injected Time-Lapse & Seasons card to flat editorial hairline */
#left-panel .shokker-sun-tl-card {
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  border-top: 1px solid var(--border) !important;
  background: transparent !important;
  box-shadow: none !important;
}
#left-panel .shokker-sun-tl-summary {
  padding: 7px 2px !important;
  height: auto !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
}
#left-panel .shokker-sun-tl-summary:hover {
  color: #ffffff !important;
}
#left-panel .shokker-sun-tl-body {
  padding: 2px 2px 8px !important;
}
#left-panel .shokker-sun-tl-play {
  border-radius: 4px !important;
  font-weight: 600 !important;
}
#left-panel .shokker-sun-tl-phase {
  border-radius: 3px !important;
}
#left-panel .shokker-season-chip {
  border-radius: 4px !important;
}

#left-panel #category-directory-drawer.dir-drawer,
.dir-drawer {
  background: rgba(10, 13, 19, 0.92);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  padding: 9px;
  display: flex; flex-direction: column; gap: 7px;
}
.dir-drawer[hidden] { display: none; }
.dir-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.dir-kicker { font-size: 8.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--muted); }
.dir-title { font-size: 13px; font-weight: 650; color: #fff; }
.dir-count { font-size: 11px; font-weight: 500; color: var(--muted); }
.dir-quick-links { display: flex; flex-wrap: wrap; gap: 5px; }
.dir-list {
  display: flex; flex-direction: column; gap: 0;
  max-height: 250px; overflow-y: auto; padding-right: 2px;
}
.dir-row {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 8px 4px;
}
.dir-row:last-child { border-bottom: none; }
.dir-row-spotlight {
  border-left: 2px solid var(--gold);
  padding-left: 8px;
  background: rgba(229, 190, 99, 0.05);
}
.dir-row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.dir-row-name { font-size: 12px; font-weight: 600; color: #fff; }
.dir-row-badge {
  font-size: 9px; font-weight: 600; letter-spacing: 0.05em;
  padding: 2px 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); color: var(--muted);
  white-space: nowrap;
}
.dir-row-meta { font-size: 10.5px; color: var(--muted); margin: 3px 0 6px; }
.dir-empty { font-size: 11.5px; color: var(--muted); padding: 8px 4px; }
.dir-footer { border-top: 1px solid var(--border); padding-top: 6px; text-align: center; }
.dir-cta-link {
  width: 100%; background: transparent; border: none; color: var(--gold);
  font-size: 11px; font-weight: 600; padding: 3px 4px;
}
.dir-cta-link:hover { background: rgba(229, 190, 99, 0.08); border-color: transparent; }

/* Flat Hairline Quick Places Accordion (Zero Nested Box) */
.quick-places-accordion {
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 7px 2px 2px;
}
.quick-places-summary {
  cursor: pointer; font-size: 11px; font-weight: 500; color: var(--text-secondary);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.quick-places-summary:hover { color: #ffffff; }
.quick-places-summary::-webkit-details-marker { display: none; }
.quick-places-summary::after { content: "▾"; color: var(--muted); font-size: 10px; }
.quick-places-accordion[open] .quick-places-summary::after { content: "▴"; }
.quick-places-body { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.quick-places-chips { gap: 4px; }

/* Place Card Action Bar & Merchant Upgrade CTA */
.pc-action-bar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.pc-act-wide { grid-column: 1 / -1; }
.pc-upgrade-banner {
  margin-top: 10px; width: 100%; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 11px; border-radius: 10px;
  background: rgba(229, 190, 99, 0.08);
  border: 1px solid var(--border-gold);
}
.pc-upgrade-banner:hover {
  background: rgba(229, 190, 99, 0.14);
  border-color: var(--gold);
}
.pc-upgrade-kicker { font-size: 9px; font-weight: 700; letter-spacing: 0.09em; color: var(--gold); }
.pc-upgrade-text { font-size: 11.5px; color: #f3f6fb; }
.pc-upgrade-cta { font-size: 11.5px; font-weight: 600; color: var(--gold); }

/* Commercial Spotlight Sales Modal */
.modal-card:has([data-spotlight-sales-modal]) {
  width: min(710px, 95vw);
  max-height: 92vh;
  max-height: 92dvh;
  padding: 15px 18px 18px;
}
.modal-card:has([data-spotlight-sales-modal]) .drawer-head {
  margin-bottom: 6px !important;
}
.sp-sales-modal { display: flex; flex-direction: column; gap: 9px; padding-bottom: 2px; }
.sp-lead { margin: 0; font-size: 12.5px; color: #dce5f2; line-height: 1.4; }
.sp-compare-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px;
}
@media (max-width: 600px) { .sp-compare-grid { grid-template-columns: 1fr; } }
.sp-compare-card {
  border-radius: 11px; padding: 9px 12px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04);
}
.sp-compare-gold {
  border-color: var(--border-gold);
  background: linear-gradient(155deg, rgba(229, 190, 99, 0.14), rgba(16, 21, 31, 0.94));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}
.sp-compare-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.sp-compare-eyebrow {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em; color: var(--muted);
}
.sp-compare-eyebrow.gold { color: var(--gold); }
.sp-rec-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.07em;
  padding: 2px 6px; border-radius: 3px; background: var(--gold); color: #0b0f16;
}
.sp-compare-title { font-size: 13.5px; font-weight: 700; color: #fff; margin: 2px 0 5px; }
.sp-compare-list {
  margin: 0; padding-left: 15px; display: flex; flex-direction: column; gap: 3px;
  font-size: 11.5px; line-height: 1.32; color: #cbd7e5;
}
.sp-compare-gold .sp-compare-list { color: #f7f2e2; }

.sp-preview-wrap {
  border: 1px solid var(--border-gold);
  border-radius: 11px; padding: 8px 11px;
  background: rgba(8, 13, 21, 0.72);
  display: flex; flex-direction: column; gap: 7px;
}
.sp-preview-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--gold);
}
.sp-preview-chip {
  font-size: 9.5px; padding: 2px 6px; border-radius: 5px;
  background: rgba(255, 255, 255, 0.06); color: var(--muted);
}
.sp-preview-card {
  border-radius: 10px; padding: 9px 11px;
  border: 1px solid var(--border-gold);
  background: linear-gradient(135deg, rgba(229, 190, 99, 0.16), rgba(14, 19, 28, 0.94));
}
.sp-preview-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sp-preview-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.sp-preview-name { font-size: 15px; font-weight: 700; color: #fff; }
.sp-preview-addr { font-size: 11.5px; color: #dce5f2; margin-top: 2px; }
.sp-preview-beacon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 15px; font-weight: 700;
  color: #0b0f16; background: var(--gold);
}
.sp-preview-pills {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px;
}
.sp-preview-pills span {
  font-size: 10.5px; font-weight: 500; color: #ffe8a8;
  padding: 2px 7px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.34); border: 1px solid var(--border-gold);
}
.sp-preview-input-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted);
}
.sp-preview-input-row input {
  flex: 1; min-width: 180px;
  background: rgba(17, 24, 34, 0.9); border: 1px solid var(--border);
  border-radius: 8px; padding: 5px 8px; color: #fff; font-size: 12px; outline: none;
}
.sp-preview-input-row input:focus { border-color: var(--gold); }

.sp-contact-card {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 9px 12px; border-radius: 11px;
  border: 1px solid var(--border-gold);
  background: rgba(229, 190, 99, 0.06);
}
.sp-contact-kicker { font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em; color: var(--gold); }
.sp-contact-name { font-size: 14px; font-weight: 700; color: #fff; margin: 2px 0; }
.sp-contact-links { display: flex; align-items: center; gap: 7px; font-size: 12px; flex-wrap: wrap; }

/* Directory Filters & Neighborhood Cards */
.dir-neighborhoods-btn {
  width: 100%; text-align: center; padding: 6px 10px; font-size: 11px;
}
.dir-filter-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.dir-open-now-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px; border-radius: 4px; font-size: 11px; font-weight: 600;
  background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(74, 222, 128, 0.28);
  color: #bbf7d0;
}
.dir-open-now-btn:hover {
  background: rgba(34, 197, 94, 0.16); border-color: rgba(74, 222, 128, 0.52);
}
.dir-open-now-btn.active {
  background: rgba(34, 197, 94, 0.24); border-color: #4ade80; color: #fff;
}
.dir-open-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #34d399;
}
.dir-local-clock {
  font-size: 10px; color: var(--muted); white-space: nowrap;
}
.dir-row-badges {
  display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end;
}
.dir-status-pill {
  font-size: 9.5px; font-weight: 600; padding: 2px 6px; border-radius: 3px; white-space: nowrap;
}
.dir-status-open {
  background: rgba(34, 197, 94, 0.16); color: #86efac; border: 1px solid rgba(74, 222, 128, 0.4);
}
.dir-status-closed {
  background: rgba(148, 163, 184, 0.10); color: #9fb0c6; border: 1px solid rgba(148, 163, 184, 0.2);
}
.dir-status-hours {
  background: rgba(255, 255, 255, 0.06); color: #cbd7e5; border: 1px solid var(--border);
}

.nh-filter-wrap input {
  width: 100%;
  background: rgba(8, 12, 18, 0.78); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 9px; color: var(--text); font-size: 11.5px; outline: none;
}
.nh-filter-wrap input:focus { border-color: var(--border-hover); }
.nh-dir-drives { font-size: 10px; color: #dbe6f5; margin-top: 2px; }

.nh-card-section { display: flex; flex-direction: column; gap: 8px; }
.nh-vibe-text { margin: 0; font-size: 12.5px; line-height: 1.48; color: #e2e8f0; }
.nh-schools-box {
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px;
}
.nh-schools-val { font-size: 12px; font-weight: 600; color: #fff; margin-top: 3px; line-height: 1.4; }
.nh-drive-wide { grid-column: 1 / -1; }
.nh-highlights {
  margin: 4px 0 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: #dce5f2; line-height: 1.4;
}
.nh-cta-card {
  margin-top: 4px; padding: 10px 11px; border-radius: 11px;
  border: 1px solid var(--border-gold);
  background: rgba(229, 190, 99, 0.08);
  display: flex; flex-direction: column; gap: 7px;
}
.nh-cta-title { font-size: 13px; font-weight: 700; color: #fff; }
.nh-cta-contact { display: flex; flex-wrap: wrap; gap: 6px; }
.nh-ask-cta {
  text-decoration: none !important; color: #0b0f16 !important;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px; padding: 5px 9px; font-size: 11.5px; font-weight: 600;
  background: var(--gold); border: 1px solid rgba(245, 216, 145, 0.85);
}
.nh-cta-line {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: #dce5f2;
}
.nh-nav-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 2px;
}

/* Paid Spotlight Place Card Ribbon */
.pc-spotlight-ribbon {
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  background: rgba(229, 190, 99, 0.08);
}
.pc-spotlight-ribbon-top {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: var(--gold);
  color: #0b0f16;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em;
}
.pc-spotlight-star { font-size: 11px; line-height: 1; }
.pc-spotlight-callout { padding: 8px 10px; }
.pc-spotlight-callout-kicker {
  display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; color: var(--gold);
  margin-bottom: 3px;
}
.pc-spotlight-callout-text {
  margin: 0; font-size: 11.5px; line-height: 1.42; color: #f6efe0;
}
.pc-homes-crosslink {
  margin-top: 7px; width: 100%; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 10px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
}
.pc-homes-crosslink:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
}
.pc-homes-crosslink-kicker {
  font-size: 9px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted);
}
.pc-homes-crosslink-cta {
  font-size: 11px; font-weight: 600; color: #cde2ff;
}
.pc-hours-head {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 3px;
}
.pc-hours-head h4 { margin: 0; }

/* Regional Drive-Times */
.pc-drive-box { margin-top: 8px; border-color: var(--border); }
.pc-drive-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.pc-drive-note {
  font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
}
.pc-drive-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px;
}
.pc-drive-item {
  display: flex; flex-direction: column; gap: 1px;
  padding: 4px 6px; border-radius: 7px; background: rgba(255, 255, 255, 0.03);
}
.pc-drive-dest {
  font-size: 10.5px; color: #cbd7e5; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pc-drive-val { font-size: 11.5px; font-weight: 600; color: var(--text); }
.pc-drive-val small { font-weight: 400; color: var(--muted); font-size: 10px; }

/* Local Deals & Community Highlights Board */
.modal-card:has([data-local-deals-board]) {
  width: min(820px, 95vw);
  max-height: 90vh;
  max-height: 90dvh;
}
.ld-board { display: flex; flex-direction: column; gap: 11px; }
.ld-lead { margin: 0; font-size: 12.5px; color: #dce5f2; line-height: 1.45; }
.ld-filter-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ld-filter-pill {
  padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: #cbd7e5;
}
.ld-filter-pill.active {
  background: var(--gold); border-color: #f6dfa0; color: #0b0f16;
}
.ld-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px;
}
@media (max-width: 640px) { .ld-grid { grid-template-columns: 1fr; } }
.ld-card {
  display: flex; flex-direction: column; gap: 5px;
  padding: 11px 12px; border-radius: 11px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.035);
}
.ld-card-spotlight {
  border-color: var(--border-gold);
  background: linear-gradient(155deg, rgba(229, 190, 99, 0.12), rgba(15, 20, 30, 0.94));
}
.ld-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ld-card-cat {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.ld-card-badge {
  font-size: 9px; font-weight: 600; letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.07); color: #dbe6f5; white-space: nowrap;
}
.ld-card-badge.gold {
  background: var(--gold-soft); border: 1px solid var(--border-gold); color: var(--gold);
}
.ld-card-title { margin: 0; font-size: 13.5px; font-weight: 650; color: #fff; line-height: 1.25; }
.ld-card-sub { font-size: 11px; color: var(--gold); font-weight: 500; }
.ld-card-copy { margin: 2px 0 4px; font-size: 11.5px; line-height: 1.42; color: #d2deed; flex: 1; }
.ld-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.ld-slot-note { font-size: 10px; color: var(--muted); font-weight: 500; }
.ld-merchant-banner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 10px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border-gold);
  background: rgba(229, 190, 99, 0.08);
}
.ld-merchant-copy { flex: 1; min-width: 220px; }
.ld-merchant-kicker { font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em; color: var(--gold); }
.ld-merchant-headline { font-size: 14px; font-weight: 700; color: #fff; margin: 2px 0; }
.ld-merchant-sub { font-size: 11.5px; color: #dce5f2; }
.ld-merchant-cta { padding: 8px 13px; font-size: 12px; white-space: nowrap; }

/* Printable Shokker Property Brief */
.modal-card:has([data-property-brief]) { width: min(760px, 95vw); max-height: 92vh; max-height: 92dvh; }
.pb-sheet { display: flex; flex-direction: column; gap: 10px; }
.pb-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pb-toolbar-note { font-size: 11px; color: var(--muted); margin-left: auto; }
.pb-document {
  background: #ffffff; color: #111827; border-radius: 12px;
  padding: 18px 20px; border: 2px solid #d49423;
  display: flex; flex-direction: column; gap: 14px;
}
.pb-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid #e5e7eb;
}
.pb-brand { font-size: 10px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: #9a6708; }
.pb-prop-title { margin: 4px 0 2px; font-size: 19px; font-weight: 800; color: #0f172a; }
.pb-prop-sub { font-size: 12px; color: #475569; }
.pb-access-pill {
  display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 4px;
  background: #fef3c7; border: 1px solid #f59e0b; color: #92400e;
  font-size: 10.5px; font-weight: 700;
}
.pb-awareness {
  background: #fffbeb; border: 1px solid #fcd34d; border-left: 4px solid #d49423;
  border-radius: 8px; padding: 9px 12px;
}
.pb-awareness-title {
  font-size: 10px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
  color: #9a6708; margin-bottom: 3px;
}
.pb-awareness-copy { margin: 0; font-size: 11.5px; line-height: 1.45; color: #1e293b; }
.pb-stamp { text-align: right; }
.pb-stamp-kicker { font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: #64748b; }
.pb-stamp-val { font-size: 11px; font-weight: 700; color: #0f172a; }
.pb-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .pb-metrics { grid-template-columns: 1fr; } }
.pb-metric-card { background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 11px; }
.pb-kicker { font-size: 9.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: #64748b; }
.pb-val { font-size: 14px; font-weight: 800; color: #0f172a; margin-top: 2px; }
.pb-sub { font-size: 11px; color: #475569; margin-top: 2px; }
.pb-section-title {
  margin: 0 0 6px !important; font-size: 11px !important; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: #9a6708 !important;
}
.pb-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pb-table th, .pb-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e2e8f0; color: #1e293b; }
.pb-table th { background: #f1f5f9; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #475569; }
.pb-drive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
@media (max-width: 560px) { .pb-drive-grid { grid-template-columns: 1fr; } }
.pb-drive-cell {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 6px 9px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 7px; font-size: 11.5px;
}
.pb-drive-name { font-weight: 700; color: #0f172a; }
.pb-drive-meta { color: #475569; font-weight: 600; white-space: nowrap; }
.pb-footer {
  padding-top: 10px; border-top: 2px solid #d49423;
  display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: #1e293b;
}
.pb-footer-agent { font-weight: 700; color: #0f172a; }
.pb-footer-contact { color: #475569; }

@media print {
  html, body { overflow: visible !important; height: auto !important; background: #fff !important; }
  #map, .hud-layer, .pb-no-print, .modal-card > .drawer-head { display: none !important; }
  .modal-backdrop { position: static !important; display: block !important; background: #fff !important; padding: 0 !important; }
  .modal-card {
    width: 100% !important; max-width: none !important; max-height: none !important;
    overflow: visible !important; box-shadow: none !important; border: none !important;
    background: #fff !important; padding: 0 !important;
  }
  .pb-document { border-width: 1px !important; padding: 12px 14px !important; }
}

/* ============================================================================
 * CLEAN VIEW PRESENTER MODE, TOAST & COMPARE 2 PLACES
 * ============================================================================ */
.left-col,
.center-top,
.right-col,
.bottom-row,
.maplibregl-ctrl-bottom-right {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

body.clean-presenter-mode .left-col,
body.clean-presenter-mode .center-top,
body.clean-presenter-mode .right-col,
body.clean-presenter-mode .bottom-row,
body.clean-presenter-mode .studio-popover,
body.clean-presenter-mode .maplibregl-ctrl-bottom-right {
  opacity: 0 !important;
  pointer-events: none !important;
}

.clean-view-exit-pill {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 50;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #f3f6fb;
  background: rgba(11, 15, 22, 0.91);
  border: 1px solid var(--border-hover);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.26s ease, transform 0.26s ease, background 0.16s ease, border-color 0.16s ease;
}
body.clean-presenter-mode .clean-view-exit-pill {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.clean-view-exit-pill:hover {
  background: rgba(18, 24, 36, 0.92);
  border-color: var(--gold);
}

.shokker-toast {
  position: fixed;
  left: 50%;
  bottom: 66px;
  z-index: 60;
  transform: translate(-50%, 10px);
  padding: 7px 15px;
  border-radius: 4px;
  background: rgba(12, 16, 24, 0.94);
  border: 1px solid var(--border-gold);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.shokker-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* How Close -> Compare 2 Places */
.hc-compare-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; margin-bottom: 10px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-hover);
}
.hc-compare-banner-text { font-size: 11.5px; color: #e6eef9; line-height: 1.3; }
.hc-compare-banner-text strong { display: block; color: #ffffff; font-size: 12px; }

.cmp-wrap { display: flex; flex-direction: column; gap: 9px; }
.cmp-field { position: relative; display: flex; flex-direction: column; gap: 4px; }
.cmp-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.cmp-input {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(10, 15, 24, 0.85); color: var(--text); font-family: inherit; font-size: 12.5px;
}
.cmp-input:focus { outline: none; border-color: var(--border-hover); }
.cmp-input:focus-visible { outline: 2px solid rgba(229, 190, 99, 0.72); outline-offset: 1px; }
.cmp-suggest {
  margin-top: 4px; max-height: 185px; overflow-y: auto; border-radius: 10px;
  background: rgba(12, 16, 24, 0.98); border: 1px solid var(--border-hover);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45); padding: 4px;
}
.cmp-suggest[hidden] { display: none; }
.cmp-suggest-item {
  width: 100%; text-align: left; display: flex; flex-direction: column; gap: 1px;
  padding: 6px 8px; border-radius: 7px; border: none; background: transparent; cursor: pointer;
}
.cmp-suggest-item:hover,
.cmp-suggest-item.is-active { background: rgba(255, 255, 255, 0.08); }
.cmp-suggest-item.is-active { outline: 1px solid rgba(229, 190, 99, 0.42); }
.cmp-suggest-name { font-size: 12px; font-weight: 600; color: var(--text); }
.cmp-suggest-meta { font-size: 10.5px; color: var(--muted); }
.cmp-swap-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cmp-swap-row .btn-primary { flex: 1; }
.cmp-presets-block { display: flex; flex-direction: column; gap: 5px; }
.cmp-presets-title { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cmp-presets-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.cmp-preset-chip { font-size: 11px !important; padding: 4px 8px !important; }
.cmp-preset-chip[aria-pressed="true"] {
  border-color: rgba(229, 190, 99, 0.55);
  background: rgba(229, 190, 99, 0.14);
  color: var(--gold);
}
.cmp-result-card {
  display: flex; flex-direction: column; gap: 8px; padding: 9px;
  border-radius: 10px; background: rgba(11, 15, 22, 0.93);
  border: 1px solid var(--border-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cmp-metric-gold { border-color: var(--border-gold); background: rgba(16, 22, 32, 0.72); }
.cmp-metric-gold .metric-val { color: var(--gold); font-size: 15px; }
.cmp-route-endpoints { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: #dce6f5; }
.cmp-dot {
  display: inline-grid; place-items: center; width: 17px; height: 17px;
  border-radius: 50%; font-size: 10px; font-weight: 700; color: #0b0f16; margin-right: 4px;
}
.cmp-dot-a { background: var(--gold); }
.cmp-dot-b { background: #38bdf8; }
.cmp-empty {
  font-size: 11.5px; color: var(--muted); padding: 8px 10px;
  border-radius: 9px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
}
.cmp-warn { color: #ffd3a8; border-color: rgba(245, 158, 11, 0.45); }

/* 7-Day Greeneville & Smokies Live Weather Modal */
.modal-card:has([data-weather-forecast-modal]) {
  width: min(740px, 95vw); max-height: 90vh; padding: 16px 18px 18px;
  max-height: 90dvh;
  background: rgba(10, 14, 21, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.11);
}
.wf-modal { display: flex; flex-direction: column; gap: 12px; font-variant-numeric: tabular-nums; }
.wf-loading-text { margin: 12px 0; color: var(--muted); font-size: 13px; }
.wf-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-hover);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.wf-hero-left { display: flex; align-items: center; gap: 12px; }
.wf-hero-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(10, 15, 24, 0.78); border: 1px solid var(--border); flex-shrink: 0;
}
.wf-hero-temp { font-size: 26px; font-weight: 700; color: #fff; line-height: 1.05; letter-spacing: -0.02em; }
.wf-hero-cond { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.wf-hero-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.wf-updated { font-size: 10.5px; color: var(--muted); }
.wf-metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wf-metric {
  padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
}
.wf-metric-label { font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.wf-metric-val { font-size: 13px; font-weight: 600; color: #fff; margin-top: 3px; }
.wf-section { display: flex; flex-direction: column; gap: 7px; }
.wf-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.wf-section-sub { font-weight: 500; letter-spacing: 0.01em; text-transform: none; color: var(--muted); font-size: 11px; }
.wf-forecast-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wf-day-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 6px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); text-align: center;
}
.wf-day-card.is-today {
  background: rgba(229, 190, 99, 0.09); border-color: var(--border-gold);
  box-shadow: inset 0 1px 0 rgba(229, 190, 99, 0.12);
}
.wf-day-head { display: flex; flex-direction: column; gap: 1px; }
.wf-day-name { font-size: 11.5px; font-weight: 600; color: #fff; }
.wf-day-date { font-size: 10px; color: var(--muted); }
.wf-day-icon { display: grid; place-items: center; height: 28px; }
.wf-day-cond {
  font-size: 10px; color: var(--text-secondary); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.wf-day-temps { font-size: 12px; font-weight: 600; }
.wf-hi { color: #ffffff; }
.wf-sep { color: var(--muted); margin: 0 1px; }
.wf-lo { color: var(--muted); font-weight: 500; }
.wf-day-precip { font-size: 10px; color: #9ec3e6; }
.wf-mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.wf-mode-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.wf-mode-btn:hover { border-color: var(--border-hover); background: rgba(255, 255, 255, 0.065); }
.wf-mode-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wf-mode-btn.active {
  background: rgba(229, 190, 99, 0.11); border-color: var(--border-gold);
  box-shadow: inset 0 1px 0 rgba(229, 190, 99, 0.14);
}
.wf-mode-name { font-size: 12px; font-weight: 600; color: #fff; }
.wf-mode-btn.active .wf-mode-name { color: var(--gold); }
.wf-mode-hint { font-size: 10.5px; color: var(--muted); }

/* Share View & Instant QR Code Modal */
.modal-card:has([data-share-qr-modal]) {
  width: min(700px, 95vw); max-height: 90vh; padding: 16px 18px 18px;
  max-height: 90dvh;
}
.sq-modal { display: flex; flex-direction: column; gap: 11px; }
.sq-top-grid { display: grid; grid-template-columns: 205px 1fr; gap: 14px; align-items: stretch; }
.sq-qr-frame {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 10px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-hover);
}
.sq-qr-svg-wrap {
  width: 176px; height: 176px; padding: 6px; border-radius: 10px;
  background: #ffffff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.sq-qr-svg-wrap svg { width: 100%; height: 100%; display: block; }
.sq-qr-caption { font-size: 10.5px; color: #e4ebf5; text-align: center; line-height: 1.3; }
.sq-info-col {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 10px; min-width: 0;
}
.sq-view-card {
  padding: 10px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
}
.sq-view-kicker { font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.sq-view-title { font-size: 16px; font-weight: 650; color: #fff; margin: 4px 0 6px; }
.sq-url-box {
  padding: 6px 8px; border-radius: 7px; background: rgba(8, 12, 19, 0.85);
  border: 1px solid var(--border); color: #b7c8dd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sq-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.sq-action-btn { padding: 8px 10px !important; font-size: 12px !important; font-weight: 600; text-align: center; }
.sq-embed-details {
  border: 1px solid var(--border); border-radius: 10px;
  background: rgba(255, 255, 255, 0.03); padding: 7px 10px;
}
.sq-embed-summary { cursor: pointer; font-size: 11.5px; font-weight: 600; color: #dbe6f5; }
.sq-embed-textarea {
  width: 100%; margin-top: 7px; padding: 7px 9px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(8, 12, 19, 0.9); color: #dce7f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; resize: none;
}
.sq-brand-footer {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 8px; padding: 9px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
}
.sq-brand-name { display: block; font-size: 11.5px; font-weight: 650; letter-spacing: 0.03em; color: var(--gold); }
.sq-brand-sub { display: block; font-size: 10.5px; color: var(--muted); }
.sq-brand-contact { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; }

@media (max-width: 700px) {
  .wf-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .wf-forecast-strip {
    grid-template-columns: repeat(7, minmax(76px, 1fr));
    overflow-x: auto; padding-bottom: 4px;
  }
  .wf-mode-grid { grid-template-columns: repeat(2, 1fr); }
  .sq-top-grid { grid-template-columns: 1fr; }
  .sq-qr-frame { padding: 12px; }
  .sq-actions-grid { grid-template-columns: 1fr; }
}

/* Saved Shortlist */
.pc-save-btn {
  font-weight: 600;
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.pc-save-btn:hover {
  border-color: var(--gold);
  background: rgba(229, 190, 99, 0.12);
}
.pc-save-btn.saved-active {
  background: var(--gold);
  border-color: #f6dfa0;
  color: #0b0f16;
}
.modal-card:has([data-saved-shortlist-modal]) { width: min(720px, 95vw); max-height: 90vh; max-height: 90dvh; }
.sl-modal { display: flex; flex-direction: column; gap: 11px; }
.sl-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px; padding: 9px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
}
.sl-summary-stat { font-size: 12px; color: #dbe6f5; }
.sl-summary-stat strong { color: var(--gold); }
.sl-toolbar-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.sl-clear-btn { color: #fca5a5; border-color: rgba(252, 165, 165, 0.32); }
.sl-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 330px; overflow-y: auto; padding-right: 2px;
}
.sl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--border);
}
.sl-row:hover { border-color: var(--border-hover); }
.sl-row-main { min-width: 0; flex: 1; }
.sl-row-badges { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.sl-cat-pill {
  font-size: 9px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border); color: var(--text-secondary);
}
.sl-index { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.sl-row-title {
  font-size: 13.5px; font-weight: 650; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sl-row-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sl-row-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.sl-remove-btn:hover { border-color: rgba(248, 113, 113, 0.55); color: #fecaca; }
.sl-empty {
  padding: 20px 16px; border-radius: 11px;
  border: 1px dashed var(--border-hover); background: rgba(255, 255, 255, 0.025); text-align: center;
}
.sl-empty-title { font-size: 14px; font-weight: 650; color: #ffffff; margin-bottom: 6px; }
.sl-empty-copy { margin: 0; font-size: 12px; line-height: 1.45; color: #cbd7e5; }
.sl-ricky-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: rgba(229, 190, 99, 0.08); border: 1px solid var(--border-gold);
}
.sl-ricky-copy { flex: 1; min-width: 240px; }
.sl-ricky-kicker { font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em; color: var(--gold); }
.sl-ricky-title { font-size: 13px; font-weight: 700; color: #fff; margin: 2px 0; }
.sl-ricky-sub { font-size: 11.5px; color: #dbe6f5; }
.sl-phone-link { color: var(--gold) !important; font-weight: 600; text-decoration: none !important; }
.sl-send-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  text-decoration: none !important; color: #0b0f16 !important;
  background: var(--gold); border: 1px solid #f6dfa0;
}
.sl-send-btn:hover { filter: brightness(1.06); }

/* Broadcast Lower-Third Overlay for Spotlight Showcase Kiosk Mode */
.spotlight-kiosk-banner {
  position: fixed;
  left: 50%;
  bottom: 62px;
  width: min(540px, calc(100vw - 700px));
  min-width: 310px;
  z-index: 25;
  display: grid;
  grid-template-columns: 3px 1fr auto;
  align-items: center;
  gap: 10px 12px;
  padding: 11px 14px 13px 12px;
  border-radius: 13px;
  background: rgba(11, 15, 22, 0.95);
  border: 1px solid var(--border-gold);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(14px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.spotlight-kiosk-banner[hidden] { display: none; }
.spotlight-kiosk-banner.open {
  display: grid; opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.sk-kiosk-accent {
  align-self: stretch; border-radius: 2px; background: var(--gold);
}
.sk-kiosk-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sk-kiosk-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sk-kiosk-badge {
  display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 3px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  color: #0b0f16; background: var(--gold); white-space: nowrap;
}
.sk-kiosk-addr {
  font-size: 11px; font-weight: 500; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sk-kiosk-title {
  font-size: 15.5px; font-weight: 650; letter-spacing: -0.015em; color: #ffffff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sk-kiosk-highlight {
  font-size: 11.5px; line-height: 1.35; color: #d6e1ef;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sk-kiosk-actions { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.sk-kiosk-actions .btn-sm { white-space: nowrap; padding: 4px 10px; font-size: 11px; }
.sk-kiosk-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.08);
}
.sk-kiosk-progress-fill {
  display: block; width: 100%; height: 100%; transform-origin: left center;
  background: var(--gold); animation: skKioskProgress linear forwards;
}
@keyframes skKioskProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (max-width: 1120px) {
  .spotlight-kiosk-banner { width: min(560px, calc(100vw - 24px)); }
}
@media (max-width: 960px) {
  .spotlight-kiosk-banner {
    bottom: 118px; grid-template-columns: 3px 1fr;
    width: calc(100vw - 20px); min-width: 0;
  }
  .sk-kiosk-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; }
}

/* Location Reach & Visibility Scorecard */
.reach-scorecard-slot:empty { display: none; }
.reach-scorecard {
  margin-top: 10px; padding: 10px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.reach-scorecard-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px;
}
.reach-scorecard-title {
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.reach-corridor-pill {
  font-size: 10px; font-weight: 500; color: #dbe6f5;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  border-radius: 3px; padding: 1.5px 7px; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reach-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.reach-metric {
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 6px 7px; display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
}
.reach-metric-val { font-size: 14px; font-weight: 650; color: #ffffff; letter-spacing: -0.02em; line-height: 1.15; }
.reach-metric-lbl { font-size: 10px; color: var(--muted); white-space: nowrap; }
.reach-anchors {
  font-size: 11px; line-height: 1.35; color: #cbd7e5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reach-anchors-label { color: var(--text); font-weight: 600; }
.reach-scorecard-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px; padding-top: 6px; border-top: 1px solid var(--border-subtle);
}
.reach-comm-note { font-size: 10.5px; color: var(--muted); }
.reach-partner-badge {
  font-size: 10px; font-weight: 600; color: var(--gold);
  background: var(--gold-soft); border: 1px solid var(--border-gold);
  border-radius: 3px; padding: 2px 8px;
}
.reach-pitch-btn {
  background: transparent; border: none; padding: 2px 0;
  font-size: 11px; font-weight: 600; color: var(--gold); cursor: pointer;
}
.reach-pitch-btn:hover {
  background: transparent; border: none; color: #f6dfa0; text-decoration: underline;
}

/* Touch-target floor (WCAG 2.5.5 / Apple HIG 44pt) for coarse pointers incl. FB / iOS in-app browsers */
@media (pointer: coarse) {
  button.btn-sm, .chip, .studio-menu-item, .cat-neighborhood-tab, #search-clear, #drawer-close, #modal-close {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ============================================================================
 * PLACE CARD CLAIM / UPGRADE BAR & SELF-SERVE CHECKOUT MODAL
 * ============================================================================ */
.pc-claim-bar {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
  padding: 10px 11px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(229, 190, 99, 0.14), rgba(16, 22, 34, 0.92));
  border: 1px solid rgba(229, 190, 99, 0.38);
}
.pc-claim-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5be63;
}
.pc-claim-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pc-claim-btn-primary {
  flex: 1 1 150px;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 7px;
  border: 1px solid rgba(242, 209, 128, 0.65);
  background: linear-gradient(135deg, #e5be63, #c99a3b);
  color: #0b0e14;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.pc-claim-btn-primary:hover {
  filter: brightness(1.06);
}
.pc-claim-btn-secondary {
  flex: 1 1 130px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #eef3fa;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pc-claim-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.shk-checkout-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 8, 14, 0.84);
}
.shk-checkout-backdrop.open { display: flex; }
.shk-checkout-modal {
  width: min(860px, 96vw);
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  background: #0d121c;
  border: 1px solid rgba(229, 190, 99, 0.34);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  color: #f3f6fb;
  padding: 20px 22px;
}
.shk-co-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.shk-co-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5be63;
  margin-bottom: 4px;
}
.shk-co-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.shk-co-close {
  min-width: 36px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f3f6fb;
  font-size: 18px;
  cursor: pointer;
}
.shk-co-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 16px;
  margin-top: 14px;
}
@media (max-width: 760px) {
  .shk-co-grid { grid-template-columns: 1fr; }
}
.shk-co-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 13px;
}
.shk-co-section h3 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd7e6;
}
.shk-co-tier-list, .shk-co-upsell-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shk-co-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}
.shk-co-item.active {
  border-color: rgba(229, 190, 99, 0.65);
  background: rgba(229, 190, 99, 0.11);
}
.shk-co-item-body { flex: 1; min-width: 0; }
.shk-co-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}
.shk-co-item-price { color: #e5be63; white-space: nowrap; }
.shk-co-item-desc { font-size: 11.5px; color: #b7c4d6; margin-top: 2px; line-height: 1.4; }
.shk-co-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
@media (max-width: 560px) {
  .shk-co-form-row { grid-template-columns: 1fr; }
}
.shk-co-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 12, 20, 0.85);
  color: #f3f6fb;
  font-size: 12.5px;
}
.shk-co-summary {
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(229, 190, 99, 0.09);
  border: 1px solid rgba(229, 190, 99, 0.34);
}
.shk-co-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.shk-co-total-val { font-size: 21px; color: #e5be63; }
.shk-co-pay-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(242, 209, 128, 0.72);
  background: linear-gradient(135deg, #e5be63, #c99a3b);
  color: #0a0d14;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.shk-co-call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #eef3fa;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
}
.shk-co-trec {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11px;
  color: #a7b6ca;
  line-height: 1.45;
  text-align: center;
}
.shk-co-trec .shk-kw-brand {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}

/* TN TREC Rule 1260-02-.12 featured-listing brokerage font-size parity */
.fl-trec-brokerage {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
}
.fl-trec-agent {
  font-size: 12px;
  font-weight: 600;
  color: #e6b84c;
}
.fl-trec-details {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px), (pointer: coarse) {
  button.btn-primary,
  button.btn-gold,
  .fl-cta,
  .pc-claim-btn-primary {
    min-height: 44px;
  }
}

/* Perf: eliminate GPU full-frame compositor blurs on HUD overlays over WebGL canvas without altering dark studio crispness */
html body .hud-layer .panel,
html body .hud-layer .topbar,
html body .hud-layer .bottom-bar,
html body .hud-layer .spotlight-card,
html body .hud-layer .studio-popover,
html body .hud-layer .status-banner,
html body .spotlight-kiosk-banner,
html body .modal-card,
html body .shokker-cam-dock,
html body .shokker-cam-tip,
html body .shokker-orbit-hud,
html body .shokker-toast,
html body .clean-view-exit-pill,
html body #shokker-explorer-passport-toast,
html body .shokker-fleet-badge,
html body .shokker-building-hover-tooltip,
html body #shokker-main-featured-event-card,
html body #modal-backdrop.modal-backdrop,
html body .scl-badge-pill,
html body .scl-nav-btn,
html body .scl-gallery-link,
html body .scl-skip-pref,
html body .scl-enter-btn,
html body .scl-hud-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background-color: rgba(12, 16, 24, 0.94);
}

/* Keep Explorer Passport stamp toasts strictly hidden when any full-screen 3D game or Hall of Legends spotlight is open */
html body:has(
  #shokker-venue-billiards-root,
  #shokker-vbd-root,
  #shokker-hol-spotlight,
  #shokker-hall-of-legends-modal,
  #shokker-hol-modal,
  #shokker-hhg3d-root,
  #shokker-hskick3d-root,
  #shokker-pioneer-hr3d-root,
  #shokker-kgolf3d-root,
  #shokker-greene-arcade-hub
) #shokker-explorer-passport-toast {
  display: none !important;
}
