:root {
  color-scheme: dark;
  --ink: #f5ead7;
  --ink-soft: #b8ccc3;
  --paper: #173b3a;
  --panel: #234b49;
  --panel-raised: #315e58;
  --panel-soft: #294f4b;
  --line: #50746d;
  --line-strong: #6c9188;
  --neighborhood: #50b8a5;
  --neighborhood-pale: #285b53;
  --facility: #e58a67;
  --facility-pale: #63392e;
  --poi: #85bff2;
  --poi-pale: #294d6a;
  --focus: #86d6cf;
  --warm: #e7b86a;
  --shadow: 0 18px 60px rgb(6 28 27 / 30%);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background:
    radial-gradient(circle at 14% 0%, rgb(80 184 165 / 16%), transparent 38rem),
    var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100%;
  isolation: isolate;
  background: transparent;
}

body::before {
  position: fixed;
  z-index: 1;
  inset: 0;
  background: rgb(8 38 37 / 50%);
  content: "";
  pointer-events: none;
}

body.landing-open {
  overflow: hidden;
}

body.landing-open .app-shell {
  visibility: hidden;
}

body.landing-open::before {
  background: transparent;
}

.landing {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.5rem, 5vw, 5rem);
  background: transparent;
  color: #fff6e8;
  isolation: isolate;
  transition: opacity 650ms ease, visibility 650ms ease;
}

.landing::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(6 25 25 / 18%), rgb(6 25 25 / 50%)),
    linear-gradient(90deg, rgb(6 25 25 / 18%), transparent 55%, rgb(6 25 25 / 12%));
}

.site-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.landing-content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  text-align: center;
}

.landing-logo {
  display: block;
  width: clamp(7rem, 11vw, 10rem);
  height: auto;
  margin: 0 auto clamp(0.75rem, 1.8vw, 1.35rem);
  filter: drop-shadow(0 5px 24px rgb(4 22 22 / 46%));
}

.landing h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 7.75rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 4px 35px rgb(3 17 17 / 64%);
}

.landing-action {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: clamp(2rem, 5vw, 3.75rem);
  padding: 0.9rem 1.15rem 0.9rem 1.35rem;
  border: 1px solid rgb(255 246 232 / 48%);
  border-radius: 999px;
  background: rgb(6 31 31 / 38%);
  color: inherit;
  cursor: pointer;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.landing-action span {
  font-size: 1.2rem;
  line-height: 1;
}

.landing-action:hover {
  border-color: #fff6e8;
  background: rgb(255 246 232 / 14%);
  transform: translateY(-2px);
}

body:not(.landing-open) .landing {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-video {
    animation: none;
  }
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 65%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.25rem;
  background: var(--warm);
  color: #091512;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 640px;
  padding: clamp(0.75rem, 1.4vw, 1.25rem);
}

.app-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  max-width: none;
  min-height: 64px;
  margin: 0 0 0.85rem;
  padding: 0 0.35rem 0.65rem;
  border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 36px,
    rgb(224 173 104 / 18%) 36px 37px,
    transparent 37px 48px
  );
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: 100% 1px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.header-logo {
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 9px rgb(3 20 20 / 46%));
}

.eyebrow,
.toolbar-label,
.map-kicker,
.section-label,
.record-type {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0.3rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
  white-space: nowrap;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgb(224 173 104 / 14%);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 38vw);
  flex: 1;
  width: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: grid-template-columns 300ms ease;
}

.workspace.is-dossier-expanded {
  grid-template-columns: minmax(300px, 32%) minmax(0, 68%);
}

.workspace.is-comparison {
  grid-template-columns: 1fr;
}

.workspace.is-comparison .map-region {
  display: none;
}

.workspace.is-comparison .dossier {
  box-shadow: none;
}

.workspace.is-comparison #dossier-content {
  max-width: 1500px;
  margin: 0 auto;
}

.map-region {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
}

.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: #234b49;
}

.toolbar-context {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
}

.quiet-button {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.25rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
}

.quiet-button:hover:not(:disabled) {
  border-color: var(--ink-soft);
  background: var(--panel-soft);
}

.quiet-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.toolbar-actions {
  display: flex;
  gap: 0.65rem;
}

.map-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  isolation: isolate;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  overflow: hidden;
  min-height: 0;
  background: #244744;
}

#map {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.map-stage.map-ready {
  justify-content: flex-end;
}

.map-stage.map-ready #map {
  z-index: 0;
}

.map-stage.map-ready .map-grid,
.map-stage.map-ready .map-message {
  display: none;
}

.map-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgb(85 167 146 / 10%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(85 167 146 / 10%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom right, black, transparent 82%);
}

.map-message {
  max-width: 550px;
}

.map-message h2 {
  margin: 0.35rem 0 0.7rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.map-message > p:last-child {
  max-width: 500px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.record-directory {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem;
  align-items: end;
}

.map-stage.map-ready .record-directory {
  max-width: 820px;
}

.map-stage.map-ready .record-directory section {
  box-shadow: 0 10px 32px rgb(7 34 32 / 30%);
}

.record-directory section {
  padding: 1rem;
  border: 1px solid rgb(184 204 195 / 28%);
  border-radius: 0.4rem;
  background: rgb(35 75 73 / 91%);
  backdrop-filter: blur(12px);
}

.record-directory section:first-child {
  background: rgb(49 94 88 / 94%);
}

.record-directory section:last-child {
  background: rgb(90 59 50 / 94%);
}

.record-directory h3 {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
}

.directory-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.65rem; }
.directory-heading span, .clinic-search-label { color: var(--ink-soft); font-size: 0.7rem; }
.clinic-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.clinic-search { width: 100%; margin-bottom: 0.6rem; padding: 0.58rem 0.65rem; border: 1px solid rgb(255 255 255 / 20%); border-radius: 0.25rem; outline: none; background: rgb(20 39 38 / 55%); color: var(--ink); font: inherit; font-size: 0.78rem; }
.clinic-search::placeholder { color: var(--ink-soft); }
.clinic-search:focus { border-color: #62c5d0; }
.clinic-explorer .record-list { max-height: min(32vh, 270px); padding-right: 0.25rem; overflow-y: auto; scrollbar-color: rgb(255 255 255 / 30%) transparent; }
.directory-empty { margin: 0.4rem 0; color: var(--ink-soft); font-size: 0.78rem; }

.record-list {
  display: grid;
  gap: 0.45rem;
}

.record-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.62rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.record-button:hover {
  background: var(--panel-soft);
}

.record-button[aria-pressed="true"] {
  border-color: currentColor;
  background: #39665f;
}

.record-button.facility[aria-pressed="true"] {
  background: #714a3c;
}

.record-button.poi[aria-pressed="true"] {
  background: #315a78;
}

.map-marker {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid #f3ead9;
  border-radius: 50% 50% 50% 0;
  background: var(--neighborhood);
  color: #071411;
  box-shadow: 0 3px 12px rgb(7 34 32 / 38%);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
  transform: rotate(-45deg);
  transition: scale 120ms ease, box-shadow 120ms ease;
}

.map-marker span {
  transform: rotate(45deg);
}

.map-marker svg,
.record-symbol svg {
  display: block;
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.map-marker.facility {
  border-radius: 50%;
  background: var(--facility);
  transform: none;
}

.map-marker.facility span {
  transform: none;
}

.map-marker.poi {
  border-radius: 50%;
  background: var(--poi);
  color: #09243a;
  transform: none;
}

.map-marker.poi span {
  transform: none;
}

.map-marker.selected {
  outline: 3px solid var(--warm);
  outline-offset: 3px;
  scale: 1.16;
  box-shadow: 0 5px 18px rgb(7 34 32 / 46%);
}

.leaflet-div-icon,
.map-marker-wrapper {
  border: 0;
  background: transparent;
}

.leaflet-control-attribution {
  font-size: 0.62rem;
}

#map .leaflet-tile-pane {
  filter: brightness(0.78) saturate(0.78) contrast(1.04) sepia(0.08);
}

#map .leaflet-control-zoom a {
  border-color: var(--line);
  background: rgb(35 75 73 / 94%);
  color: var(--ink);
}

#map .leaflet-control-zoom a:hover {
  background: var(--panel-soft);
}

#map .leaflet-control-attribution {
  background: rgb(23 59 58 / 84%);
  color: var(--ink-soft);
}

#map .leaflet-control-attribution a {
  color: #a6e0d5;
}

.record-symbol {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  border-radius: 50% 50% 50% 0;
  background: var(--neighborhood);
  color: #071411;
  font-size: 0.63rem;
  font-weight: 800;
  transform: rotate(-45deg);
}

.record-symbol span {
  transform: rotate(45deg);
}

.record-button.facility .record-symbol {
  border-radius: 50%;
  background: var(--facility);
  transform: none;
}

.record-button.facility .record-symbol span {
  transform: none;
}

.record-button.poi .record-symbol {
  border-radius: 50%;
  background: var(--poi);
  color: #09243a;
  transform: none;
}

.record-button.poi .record-symbol span {
  transform: none;
}

.record-name {
  overflow: hidden;
  font-size: 0.83rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-code {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
}

.map-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 54px;
  padding: 0.85rem 1rem;
  background: #1d4140;
  color: var(--ink-soft);
  font-size: 0.74rem;
  line-height: 1.45;
}

.map-notice span {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.72rem;
}

.map-notice p {
  margin: 0;
}

.dossier {
  min-width: 0;
  overflow-y: auto;
  background: #332f2b;
  scrollbar-color: #76695c #332f2b;
  transition: box-shadow 300ms ease;
}

.workspace.is-dossier-expanded .dossier {
  box-shadow: -18px 0 42px rgb(18 15 12 / 24%);
}

.dossier .eyebrow,
.dossier .section-label,
.dossier .dossier-id {
  color: #d5a85f;
}

#dossier-content {
  min-height: 100%;
  padding: clamp(1.35rem, 3vw, 2.25rem);
}

.dossier:has(#city-video-content:not([hidden])) #dossier-content { min-height: 0; }
#city-video-content, #city-photos-content { padding: 0 clamp(1.35rem, 3vw, 2.25rem) clamp(1.35rem, 3vw, 2.25rem); }
#city-video-content .city-video-section { margin-top: 0; }

.workspace.is-dossier-expanded #dossier-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  column-gap: clamp(1.5rem, 3vw, 3.5rem);
}

.workspace.is-dossier-expanded .dossier-heading,
.workspace.is-dossier-expanded .dossier-actions-top,
.workspace.is-dossier-expanded .provenance-note {
  grid-column: 1 / -1;
}

.workspace.is-dossier-expanded .dossier-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  column-gap: clamp(1.5rem, 3vw, 3.5rem);
  align-items: end;
}

.workspace.is-dossier-expanded .dossier-heading .type-badge,
.workspace.is-dossier-expanded .dossier-heading .dossier-id,
.workspace.is-dossier-expanded .dossier-heading h2 {
  grid-column: 1;
}

.workspace.is-dossier-expanded .dossier-heading .dossier-summary {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  padding-left: 1.25rem;
  border-left: 1px solid #5c5147;
}

.dossier-empty {
  display: grid;
  align-content: center;
  min-height: 100%;
}

.dossier-empty h2,
.dossier-heading h2 {
  margin: 0.35rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.dossier-empty p,
.dossier-summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.dossier-actions {
  display: flex;
  margin-top: 1.4rem;
}

.dossier-actions-top {
  margin-top: 1rem;
  justify-content: flex-start;
}

.dossier-actions-top .dossier-action {
  width: auto;
  background: transparent;
  color: #e7bf7d;
}

.dossier-action {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #d5a85f;
  border-radius: 0.3rem;
  background: #d5a85f;
  color: #2d2925;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.dossier-action:hover {
  background: #e3bd7d;
}

.summary-footnote {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.field-review {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-top: 1.1rem;
  border-top: 1px solid rgb(229 184 106 / 30%);
}

.field-review-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.field-review-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
}

.field-review-empty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.15rem 0.85rem;
  min-height: 132px;
  padding: 1rem;
  border: 1px dashed rgb(245 234 215 / 24%);
  border-radius: 0.4rem;
  background: rgb(20 29 27 / 22%);
}

.field-review-empty img {
  grid-row: 1 / 3;
  width: 3.25rem;
  height: 3.25rem;
  opacity: 0.6;
}

.field-review-empty p,
.field-review-empty span {
  margin: 0;
}

.field-review-empty p {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.field-review-empty span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.45;
}

.field-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.field-review-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 0.35rem;
  background: rgb(20 29 27 / 34%);
}

.field-review-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.field-review-grid figcaption {
  padding: 0.55rem 0.65rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
  line-height: 1.4;
}

.comparison-heading {
  max-width: 860px;
}

.comparison-heading h2 {
  margin: 0.35rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.comparison-actions {
  justify-content: flex-start;
}

.comparison-actions .dossier-action {
  width: auto;
  background: transparent;
  color: #e7bf7d;
}

.comparison-table-wrap {
  margin-top: 1.6rem;
  overflow-x: auto;
  border: 1px solid #5c5147;
  border-radius: 0.45rem;
}

.comparison-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  padding: clamp(0.9rem, 1.7vw, 1.35rem);
  border-right: 1px solid #5c5147;
  border-bottom: 1px solid #5c5147;
  text-align: left;
  vertical-align: top;
}

.comparison-table tr > :last-child {
  border-right: 0;
}

.comparison-table tbody tr:last-child > * {
  border-bottom: 0;
}

.comparison-table thead th {
  background: #473c32;
  color: #d5a85f;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.comparison-table thead th:first-child,
.comparison-table tbody th {
  width: 18%;
}

.comparison-table tbody th {
  background: #3a332d;
  color: #d5a85f;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.comparison-table td {
  background: #332f2b;
}

.comparison-table td span {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.comparison-table td .comparison-primary {
  margin-top: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 650;
}

.comparison-neighborhood-name,
.comparison-region {
  display: block;
}

.comparison-neighborhood-name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
}

.comparison-region {
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.comparison-note {
  max-width: 980px;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: var(--neighborhood-pale);
  color: var(--neighborhood);
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.type-badge.facility {
  background: var(--facility-pale);
  color: var(--facility);
}

.type-badge.poi {
  background: var(--poi-pale);
  color: var(--poi);
}

.dossier-id {
  margin: 0;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.dossier-section {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.dossier .dossier-section,
.dossier .note-list li,
.dossier .source-list li {
  border-color: #5c5147;
}

.dossier-section h3 {
  margin: 0.3rem 0 0.85rem;
  font-size: 0.95rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 0;
}

.fact {
  min-width: 0;
  padding: 0.75rem;
  border-radius: 0.3rem;
  border: 1px solid rgb(213 168 95 / 13%);
  background: #463d35;
}

.fact dt {
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.85rem;
  line-height: 1.4;
}

.fact-link {
  color: var(--focus);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

.fact-link:hover {
  color: #b9eee7;
}

.unknown {
  color: var(--ink-soft);
  font-style: italic;
}

.note-list,
.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list li,
.source-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.55;
}

.note-list li:last-child,
.source-list li:last-child {
  border-bottom: 0;
}

.source-list a {
  color: var(--focus);
  text-underline-offset: 0.18em;
}

.provenance-note {
  margin-top: 1.5rem;
  padding: 0.85rem;
  border-left: 3px solid var(--warm);
  background: #4d4030;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .app-shell {
    height: auto;
    min-height: 100dvh;
  }

  .app-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .workspace {
    grid-template-columns: 1fr;
    flex: none;
    min-height: 0;
    overflow: visible;
  }

  .workspace.is-dossier-expanded {
    grid-template-columns: 1fr;
  }

  .workspace.is-dossier-expanded .map-region {
    display: none;
  }

  .workspace.is-dossier-expanded .dossier {
    min-height: calc(100dvh - 150px);
  }

  .workspace.is-dossier-expanded #dossier-content {
    display: block;
  }

  .workspace.is-dossier-expanded .dossier-heading {
    display: block;
  }

  .workspace.is-dossier-expanded .dossier-heading .dossier-summary {
    padding-left: 0;
    border-left: 0;
  }

  .map-region {
    min-height: 650px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dossier {
    min-height: 440px;
    overflow: visible;
  }
}

@media (max-width: 600px) {
  .app-shell {
    padding: 0;
  }

  .app-header {
    padding: 1.15rem;
    margin: 0;
  }

  .workspace {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .map-region {
    grid-template-rows: auto auto auto;
  }

  .map-stage {
    min-height: 570px;
    padding: 1.3rem;
  }

  .record-directory {
    grid-template-columns: 1fr;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .comparison-table-wrap {
    margin-right: -0.5rem;
    margin-left: -0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

/* Three-pane decision workspace */
.workspace {
  grid-template-columns: 280px minmax(0, 1fr) minmax(350px, 28vw);
}

.explorer {
  min-width: 0;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #1d4140;
  scrollbar-color: var(--line-strong) #1d4140;
}

.explorer-header {
  padding: 1.25rem 1rem 1.05rem;
  border-bottom: 1px solid var(--line);
}

.explorer-header h2 {
  margin: 0.35rem 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 400;
}

.explorer-header p:last-child,
.clinic-guidance {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.5;
}

.directory-switcher {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  padding: 0.65rem;
  border-bottom: 1px solid var(--line);
  background: rgb(10 42 41 / 24%);
}

.directory-switcher button {
  min-width: 0;
  padding: 0.55rem 0.25rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.66rem;
}

.directory-switcher button:hover {
  color: var(--ink);
}

.directory-switcher button:disabled {
  color: rgb(184 204 195 / 38%);
  cursor: not-allowed;
  opacity: 0.72;
}

.directory-switcher button:disabled:hover {
  color: rgb(184 204 195 / 38%);
}

.directory-switcher button[aria-selected="true"] {
  border-color: rgb(245 234 215 / 24%);
  background: rgb(80 184 165 / 18%);
  color: var(--ink);
}

.explorer-section[hidden] {
  display: none;
}

.explorer-section {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.explorer-section h3 {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.poi-explorer {
  background: transparent;
}

.explorer .record-button {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.7rem 0.55rem;
}

.explorer .record-name {
  white-space: normal;
}

.record-meta {
  grid-column: 2;
  color: var(--ink-soft);
  font-size: 0.67rem;
  line-height: 1.35;
}

.explorer-action {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.3rem;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.76rem;
}

.explorer-action:hover,
.text-action:hover {
  color: var(--warm);
}

.stakeholder-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.24rem 0.42rem;
  border-radius: 999px;
  background: var(--facility-pale);
  color: var(--facility);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.clinic-controls[hidden] { display: none; }

.text-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.7rem;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.explorer .clinic-explorer .record-list {
  max-height: none;
  margin-top: 0.65rem;
  padding-right: 0;
  overflow: visible;
}

.map-region {
  border-right: 1px solid var(--line);
}

.map-stage {
  padding: 0;
}

.map-toolbar {
  min-height: 58px;
}

.dossier-empty h2,
.dossier-heading h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
}

.summary-caution {
  margin: 1rem 0 0;
  padding: 0.8rem;
  border-left: 3px solid var(--warm);
  background: #4d4030;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.5;
}

.workspace:not(.is-dossier-expanded) .dossier-id {
  display: none;
}

.workspace.is-dossier-expanded {
  grid-template-columns: 1fr;
}

.workspace.is-dossier-expanded .explorer,
.workspace.is-dossier-expanded .map-region {
  display: none;
}

.workspace.is-dossier-expanded #dossier-content {
  max-width: 1400px;
  margin: 0 auto;
}

.workspace.is-comparison .explorer,
.workspace.is-comparison .map-region {
  display: none;
}

@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .dossier {
    grid-column: 1 / -1;
    min-height: 390px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .workspace {
    display: block;
  }

  .explorer,
  .map-region,
  .dossier {
    min-height: auto;
    border-right: 0;
  }

  .explorer {
    overflow: visible;
  }

  .map-stage {
    min-height: 520px;
  }
}

/* Persistent cinematic backdrop */
body:not(.landing-open)::before {
  background: rgb(7 34 33 / 22%);
  backdrop-filter: saturate(0.94);
}

.app-header {
  padding-inline: 0.75rem;
  border-bottom-color: rgb(184 204 195 / 42%);
  text-shadow: 0 2px 18px rgb(3 20 20 / 72%);
}

.workspace {
  background: rgb(26 60 58 / 22%);
  border-color: rgb(184 204 195 / 38%);
  box-shadow: 0 20px 70px rgb(4 24 23 / 48%);
  backdrop-filter: blur(12px) saturate(0.86);
}

.explorer {
  background: rgb(13 52 50 / 64%);
  scrollbar-color: var(--line-strong) rgb(13 52 50 / 62%);
}

.map-toolbar {
  background: rgb(18 57 55 / 76%);
}

.map-notice {
  background: rgb(16 53 51 / 70%);
}

.dossier {
  background: rgb(43 38 34 / 68%);
  scrollbar-color: #76695c rgb(43 38 34 / 66%);
}

.workspace.is-dossier-expanded .dossier,
.workspace.is-comparison .dossier {
  background: rgb(48 43 39 / 88%);
}

.map-stage,
.map-stage.map-ready {
  background: #244744;
}

/* Expanded dossiers share the same light, cinematic glass treatment as the workspace. */
.workspace.is-dossier-expanded {
  background: rgb(26 60 58 / 22%);
}

.workspace.is-dossier-expanded .dossier {
  background: rgb(22 49 47 / 56%);
  box-shadow: none;
  scrollbar-color: rgb(184 204 195 / 52%) transparent;
  backdrop-filter: blur(12px) saturate(0.9);
}

.workspace.is-dossier-expanded #dossier-content,
.workspace.is-dossier-expanded #city-video-content,
.workspace.is-dossier-expanded #city-photos-content {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3.5vw, 3.5rem);
}

.workspace.is-dossier-expanded #dossier-content {
  min-height: auto;
  padding: clamp(1.25rem, 3.5vw, 3.5rem);
  row-gap: 1rem;
}

.workspace.is-dossier-expanded .dossier-heading {
  margin-bottom: 0;
  padding: clamp(1.1rem, 2.5vw, 2rem);
  border: 1px solid rgb(245 234 215 / 18%);
  border-radius: 0.65rem;
  background: rgb(12 42 40 / 24%);
  box-shadow: 0 18px 50px rgb(4 24 23 / 16%);
}

.workspace.is-dossier-expanded .dossier-heading .dossier-summary {
  border-left-color: rgb(184 204 195 / 32%);
}

.workspace.is-dossier-expanded .dossier-actions-top {
  margin: 0;
}

.workspace.is-dossier-expanded .dossier-actions-top .dossier-action {
  padding-inline: 0;
  border-color: transparent;
  color: var(--warm);
}

.workspace.is-dossier-expanded .dossier-actions-top .dossier-action:hover {
  background: transparent;
  color: #f3d39c;
  transform: translateX(-2px);
}

.workspace.is-dossier-expanded .dossier-actions:not(.dossier-actions-top) {
  margin: 0;
}

.workspace.is-dossier-expanded .dossier-actions:not(.dossier-actions-top) .dossier-action {
  width: auto;
  background: rgb(231 184 106 / 12%);
  color: #f0ca8c;
}

.workspace.is-dossier-expanded .dossier-actions:not(.dossier-actions-top) .dossier-action:hover {
  background: rgb(231 184 106 / 20%);
}

.workspace.is-dossier-expanded .dossier-section {
  margin-top: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgb(184 204 195 / 20%);
  border-radius: 0.55rem;
  background: rgb(18 57 55 / 28%);
}

.workspace.is-dossier-expanded .field-review {
  grid-column: 1 / -1;
  margin-top: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid rgb(184 204 195 / 20%);
  border-radius: 0.55rem;
  background: rgb(18 57 55 / 28%);
}

.workspace.is-dossier-expanded .field-review-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace.is-dossier-expanded .dossier-section h3 {
  margin-bottom: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.workspace.is-dossier-expanded .fact {
  border-color: rgb(245 234 215 / 14%);
  background: rgb(255 246 232 / 7%);
}

.workspace.is-dossier-expanded .note-list li,
.workspace.is-dossier-expanded .source-list li {
  border-color: rgb(184 204 195 / 20%);
}

.workspace.is-dossier-expanded .provenance-note {
  margin: 0;
  border: 1px solid rgb(231 184 106 / 24%);
  border-left: 3px solid var(--warm);
  border-radius: 0.35rem;
  background: rgb(83 65 42 / 30%);
}

@media (max-width: 920px) {
  .workspace.is-dossier-expanded .dossier {
    min-height: 0;
  }

  .workspace.is-dossier-expanded #dossier-content {
    padding: clamp(1rem, 4vw, 2rem);
  }

  .workspace.is-dossier-expanded #city-video-content,
  .workspace.is-dossier-expanded #city-photos-content {
    padding-inline: clamp(1rem, 4vw, 2rem);
  }

  .workspace.is-dossier-expanded .dossier-heading {
    padding: clamp(1rem, 4vw, 1.5rem);
  }

  .workspace.is-dossier-expanded .dossier-heading .dossier-summary {
    margin-top: 0.75rem;
  }

  .workspace.is-dossier-expanded .field-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .workspace.is-dossier-expanded .fact-grid {
    grid-template-columns: 1fr;
  }

  .workspace.is-dossier-expanded .dossier-heading,
  .workspace.is-dossier-expanded .dossier-section,
  .workspace.is-dossier-expanded .field-review {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

/* Persistent neighborhood context and freely browsable categories. */
.explorer-context { padding: 1rem; border-bottom: 1px solid var(--line); background: rgb(10 42 41 / 24%); }
.explorer-context > label { display: block; margin-bottom: 0.5rem; color: var(--ink-soft); font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
.context-selector-row { display: flex; gap: 0.45rem; }
#neighborhood-selector { width: 100%; min-width: 0; padding: 0.65rem; border: 1px solid var(--line-strong); border-radius: 0.3rem; background: #173634; color: var(--ink); font: inherit; font-size: 0.86rem; }
#clear-neighborhood { flex: 0 0 32px; border: 1px solid var(--line-strong); border-radius: 0.3rem; background: transparent; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
#clear-neighborhood[hidden], #view-neighborhood[hidden], .text-action[hidden] { display: none; }
#neighborhood-context-hint { margin: 0.6rem 0; color: var(--ink-soft); font-size: 0.69rem; line-height: 1.5; }
.context-actions { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; }
.directory-switcher {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.8rem 1rem 0.25rem;
  background: transparent;
  border-bottom: 0;
}
.directory-switcher button {
  grid-column: span 2;
  padding: 0.65rem 0.2rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background: rgb(10 42 41 / 16%);
  font-size: 0.66rem;
  line-height: 1.2;
  white-space: normal;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}
.directory-switcher button:hover {
  border-color: var(--line-strong);
  background: rgb(80 184 165 / 10%);
}
.directory-switcher button[aria-pressed="true"] {
  border-color: rgb(98 197 208 / 65%);
  background: rgb(80 184 165 / 20%);
  color: var(--ink);
}
.directory-search { padding: 0.6rem 1rem 0; }
.directory-search .clinic-search { margin: 0; }
.explorer-section { padding-top: 0.85rem; }
.directory-switcher button:focus-visible, #clear-neighborhood:focus-visible, #neighborhood-selector:focus-visible { outline: 2px solid #62c5d0; outline-offset: 2px; }

.directory-switcher button:nth-child(n + 4) { grid-column: span 3; }

/* Hospital markers use a blue square H; clinics retain coral circles. */
.map-marker.hospital {
  border-radius: 0.4rem;
  background: #83c5ee;
  color: #102c43;
  transform: none;
  font-size: 1rem;
}
.map-marker.hospital span { transform: none; }
.record-button.hospital .record-symbol {
  border-radius: 0.3rem;
  background: #83c5ee;
  color: #102c43;
  transform: none;
}
.record-button.hospital .record-symbol span { transform: none; }
.record-button.hospital[aria-pressed="true"] { border-color: #83c5ee; background: rgb(131 197 238 / 14%); }
.type-badge.hospital { background: #24485e; color: #a5d8f5; }
.hospital-map-key { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.6rem; color: var(--ink-soft); font-size: 0.68rem; }
.hospital-map-key span { display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 0.2rem; background: #83c5ee; color: #102c43; font-weight: 800; }

/* Fire stations use a red diamond F, separate from clinic + and hospital H. */
.map-marker.fire-station {
  border-radius: 0.2rem;
  background: #d85454;
  color: #fff6eb;
  transform: rotate(45deg);
  font-size: 0.95rem;
}
.map-marker.fire-station span { transform: rotate(-45deg); }
.record-button.fire-station .record-symbol { border-radius: 0.2rem; background: #d85454; color: #fff6eb; transform: rotate(45deg); }
.record-button.fire-station .record-symbol span { transform: rotate(-45deg); }
.record-button.fire-station[aria-pressed="true"] { border-color: #ee8585; background: rgb(216 84 84 / 16%); }
.type-badge.fire-station { background: #612e32; color: #ffb0a7; }
.fire-map-key { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.6rem; color: var(--ink-soft); font-size: 0.68rem; }
.fire-map-key span { display: grid; place-items: center; width: 1rem; height: 1rem; border-radius: 0.15rem; background: #d85454; color: #fff6eb; transform: rotate(45deg); }
.fire-map-key b { transform: rotate(-45deg); }

.clinic-explorer .directory-heading span { color: #a5d8ce; font-weight: 700; }
.clinic-explorer .clinic-controls > .text-action { margin-top: 0.25rem; color: var(--ink); }

/* Military installations use a sage shield with a five-point star. */
.map-marker.military-base {
  border-radius: 0.3rem 0.3rem 50% 50%;
  background: #a7ba7b;
  color: #213022;
  transform: none;
  font-size: 1.05rem;
}
.map-marker.military-base span { transform: none; }
.record-button.military-base .record-symbol { border-radius: 0.25rem 0.25rem 50% 50%; background: #a7ba7b; color: #213022; transform: none; }
.record-button.military-base .record-symbol span { transform: none; }
.record-button.military-base[aria-pressed="true"] { border-color: #a7ba7b; background: rgb(167 186 123 / 14%); }
.type-badge.military-base { background: #394c32; color: #c5d4a2; }
.military-map-key { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.6rem; color: var(--ink-soft); font-size: 0.68rem; }
.military-map-key span { display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 0.2rem 0.2rem 50% 50%; background: #a7ba7b; color: #213022; font-weight: 800; }
/* Desktop browsing refinements */




.explorer-context { padding-top: 1.1rem; }
.directory-switcher button { min-height: 44px; font-size: .76rem; }
.directory-switcher button[aria-pressed="true"] { background: rgb(80 184 165 / 20%); color: #fff8e9; border-color: #8ac7b7; box-shadow: inset 0 -3px #d2ab61; }
.text-action { min-height: 44px; padding: .45rem .1rem; font-size: .78rem; }
.context-actions { gap: 1rem; }
.directory-heading { flex-wrap: wrap; gap: .4rem; }
.directory-heading span { font-size: .73rem; }
.explorer .record-button { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .55rem; padding: .8rem .55rem; }
.record-name { font-size: .83rem; line-height: 1.4; }
.record-meta { font-size: .74rem; }
.record-distance { grid-column: 3; grid-row: 1 / 3; align-self: center; padding: .3rem .4rem; border: 1px solid rgb(210 171 97 / 30%); border-radius: .3rem; color: #eed29a; background: rgb(210 171 97 / 10%); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.city-muted .map-marker.neighborhood { transform: scale(.65); opacity: .58; }
.detail-disclosure { margin: 1.3rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .3rem 0; }
.detail-disclosure summary { padding: .85rem .1rem; cursor: pointer; color: var(--warm); font-size: .9rem; font-weight: 650; }
.detail-disclosure .fact-grid { margin-top: .6rem; }
.dossier-section .section-label { display: none; }
.dossier-section h3 { font-size: 1rem; }
.comparison-chooser { display: flex; flex-wrap: wrap; gap: .5rem; border: 1px solid var(--line); border-radius: .4rem; padding: .8rem 1rem 1rem; margin: 1rem 0 1.5rem; }
.comparison-chooser legend { color: var(--ink-soft); font-size: .85rem; padding: 0 .4rem; }
.comparison-option { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .7rem; border-radius: .3rem; background: rgb(80 184 165 / 9%); cursor: pointer; }
.comparison-option:has(:checked) { background: #326d62; color: #fff8e9; }
.comparison-option:has(:disabled) { opacity: .5; cursor: default; }
.comparison-option input { accent-color: #d2ab61; width: 1rem; height: 1rem; }
.comparison-table thead th { position: sticky; top: 0; background: #214740; z-index: 2; }
.comparison-table tbody th { position: sticky; left: 0; background: #29382f; z-index: 1; width: 180px; }
.comparison-table thead th:first-child { left: 0; z-index: 3; }
.comparison-table td .comparison-primary { color: #eed29a; font-size: 1.1rem; }
/* Full details: compact content, persistent navigation, original glass surfaces. */
.workspace.is-dossier-expanded #dossier-content { display: flex; flex-direction: column; gap: 1.1rem; align-items: stretch; }
.workspace.is-dossier-expanded .dossier-heading { display: block; }
.workspace.is-dossier-expanded .dossier-heading .type-badge { width: fit-content; }
.workspace.is-dossier-expanded .dossier-heading .dossier-summary { padding-left: 0; border-left: 0; margin: .5rem 0 0; }
.workspace.is-dossier-expanded .dossier-actions-top { position: sticky; top: 0; z-index: 5; width: fit-content; padding: .25rem .8rem; border: 1px solid rgb(184 204 195 / 20%); border-radius: .4rem; background: rgb(12 42 40 / 60%); backdrop-filter: blur(12px); }
.workspace.is-dossier-expanded .detail-disclosure { margin: 0; align-self: stretch; }
.workspace.is-dossier-expanded .fact-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.distance-context { display: flex; flex-direction: column; gap: .35rem; margin: 1rem 0 0; color: var(--ink-soft); font-size: .85rem; line-height: 1.5; }
.distance-context strong { color: var(--warm); font-size: 1.05rem; }
.nearby-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.nearby-service { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; padding: 1rem; border: 1px solid rgb(184 204 195 / 24%); border-radius: .4rem; background: rgb(255 246 232 / 7%); color: var(--ink); text-align: left; cursor: pointer; }
.nearby-service:hover { border-color: var(--warm); background: rgb(231 184 106 / 12%); }
.nearby-service strong { font-size: .95rem; line-height: 1.4; }
.nearby-distance { color: var(--warm); font-weight: 700; }
.reference-description { color: var(--ink-soft); line-height: 1.6; }
.compact-gallery h3 { margin: 0 0 .8rem; }
.compact-gallery .field-review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compact-gallery .field-review-grid figure:first-child { grid-column: 1 / -1; }
.compact-gallery .field-review-grid figure:first-child img { aspect-ratio: 16 / 7; max-height: 320px; }
.city-video { display: block; width: 100%; height: auto; margin: 12px 0; border-radius: 8px; background: #102a26; }
.photo-preview { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-action { margin-top: .8rem; }
.photo-viewer { width: min(1100px, 92vw); max-height: 92vh; padding: 1rem; border: 1px solid rgb(184 204 195 / 40%); border-radius: .7rem; background: rgb(12 34 32 / 94%); color: var(--ink); }
.photo-viewer::backdrop { background: rgb(0 12 12 / 75%); backdrop-filter: blur(5px); }
.photo-viewer-controls { display: flex; justify-content: flex-end; gap: .65rem; margin-bottom: .8rem; }
.photo-viewer-controls .dossier-action { width: auto; padding: .65rem 1rem; }
.photo-viewer > img { display: block; width: 100%; height: min(65vh, 700px); object-fit: contain; }
.photo-viewer-caption { margin: .8rem 0 0; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 720px) { .nearby-services { grid-template-columns: 1fr; } }
.nearby-service .section-label { display: block; margin: 0; }
/* Keep city context and the selected destination visible together. */
.selected-city-context { margin: 0 0 1.4rem; padding: 1rem; border: 1px solid rgb(184 204 195 / 26%); border-radius: .55rem; background: rgb(18 57 55 / 28%); }
.selected-city-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.selected-city-heading .type-badge { margin-bottom: .35rem; }
.selected-city-heading h3 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; font-weight: 400; }
.selected-city-heading .city-context-action { width: auto; padding: .65rem .7rem; border: 1px solid rgb(231 184 106 / 40%); background: rgb(231 184 106 / 10%); color: var(--warm); font-size: .73rem; white-space: nowrap; }
.selected-city-region { margin: .6rem 0 0; color: var(--ink-soft); font-size: .8rem; }
.selected-city-reference { margin: .35rem 0 0; color: var(--ink-soft); font-size: .76rem; line-height: 1.5; }
.selected-location-context { padding-top: .2rem; }
.selected-location-context .dossier-heading h2 { font-size: clamp(1.55rem, 2.1vw, 2rem); }
/* SVG placeholders preview the same frames that real city photos will use. */
.compact-gallery .field-review-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.field-review-grid img.placeholder-photo { object-fit: contain; padding: 12%; background: linear-gradient(135deg, rgb(66 106 93 / 60%), rgb(16 47 44 / 75%)); }
.photo-viewer > img.placeholder-photo { padding: 2rem; background: rgb(36 73 63 / 50%); }
.selected-city-context .city-context-gallery { margin: .8rem 0 0; padding: .8rem 0 0; border-top: 1px solid rgb(184 204 195 / 20%); }
.city-context-gallery h3 { font-family: inherit; font-size: .8rem; margin-bottom: .55rem; }
.city-context-gallery .field-review-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
.city-context-gallery .field-review-grid figure:first-child { grid-column: auto; }
.city-context-gallery .field-review-grid img, .city-context-gallery .field-review-grid figure:first-child img { aspect-ratio: 1; max-height: none; }
.city-context-gallery figcaption { display: none; }
.city-context-gallery .gallery-action { width: auto; padding: .45rem 0; margin-top: .5rem; background: transparent; color: var(--warm); font-size: .76rem; }
/* Example-home stats are shared by city summaries, details, and comparisons. */
.example-home { margin: 1.2rem 0; padding: 1rem; border: 1px solid rgb(184 204 195 / 24%); border-radius: .55rem; background: rgb(18 57 55 / 28%); }
.example-home h3 { margin: 0 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 400; }
.example-home-address, .example-home-pending { margin: 0 0 .8rem; color: var(--ink-soft); font-size: .82rem; line-height: 1.5; }
.example-home .home-stat-grid { margin: 0; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.example-home .home-stat-grid .fact { min-width: 0; }
.example-home .home-stat-grid .fact:first-child dd { color: var(--warm); font-weight: 700; }
.example-home .home-stat-grid .fact:first-child dd.unknown { color: var(--ink-soft); font-weight: 400; }
.example-home-link { display: inline-block; margin-top: .8rem; color: var(--warm); font-size: .8rem; }
.workspace.is-dossier-expanded .example-home { margin: 0; padding: clamp(1rem, 2vw, 1.5rem); }
.workspace.is-dossier-expanded .example-home .home-stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.example-home-compact { margin: .8rem 0 0; padding: .8rem 0 0; border: 0; border-top: 1px solid rgb(184 204 195 / 20%); border-radius: 0; background: transparent; }
.example-home-compact h3 { font-family: inherit; font-size: .85rem; font-weight: 700; }
.example-home-compact .fact { padding: .55rem; }
@media (max-width: 720px) { .workspace.is-dossier-expanded .example-home .home-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
