:root {
  --ink: #18231e;
  --ink-soft: #526058;
  --forest: #203d31;
  --forest-2: #315849;
  --paper: #f1eadb;
  --paper-deep: #e3d7c0;
  --cream: #fbf8ef;
  --line: rgba(54, 61, 51, .16);
  --lost: #a84634;
  --changed: #bd7a2e;
  --preserved: #3e7957;
  --future: #98a199;
  --shadow: 0 18px 50px rgba(25, 34, 29, .18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: #d7d0c3;
  font-family: var(--sans);
  overflow: hidden;
}

button, input { font: inherit; }
button { color: inherit; }

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  gap: 18px;
  text-align: center;
  color: var(--cream);
  background: var(--forest);
}

.loading-screen p { margin: 0; letter-spacing: .03em; }

.loading-mark,
.brand-mark {
  display: grid;
  place-items: center;
  color: var(--paper);
  border: 1px solid rgba(241, 234, 219, .5);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 600;
}

.loading-mark {
  width: 74px;
  height: 74px;
  margin: auto;
  font-size: 36px;
  animation: breathe 1.4s ease-in-out infinite;
}

@keyframes breathe { 50% { opacity: .55; transform: scale(.96); } }

.app-shell {
  min-height: 100%;
  background: var(--cream);
}

.topbar {
  position: relative;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 26px;
  color: var(--cream);
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark { width: 43px; height: 43px; font-size: 22px; flex: 0 0 auto; }
.brand strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 500; }
.brand small { display: block; margin-top: 2px; color: rgba(255,255,255,.65); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.header-stats { display: flex; gap: 25px; color: rgba(255,255,255,.7); font-size: 12px; }
.header-stats b { color: #fff; font-size: 16px; font-weight: 600; }

.workspace { height: calc(100vh - 76px); display: grid; grid-template-columns: 330px minmax(0, 1fr); }

.catalog {
  z-index: 12;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 24px 20px 0;
  background: var(--cream);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 24px rgba(38, 46, 40, .05);
}

.catalog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.catalog-heading, .search-box, .filter-row, .catalog-result-line { flex-shrink: 0; }
.eyebrow { margin: 0 0 7px; color: #7b6545; font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.catalog h1 { margin: 0 0 20px; font-family: var(--serif); font-size: 27px; font-weight: 500; line-height: 1.08; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.search-box span { color: #86775f; font-size: 21px; transform: rotate(-18deg); }
.search-box input { width: 100%; height: 43px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 13px; }
.search-box:focus-within { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(49, 88, 73, .1); }

.filter-row { display: flex; gap: 6px; margin: 14px 0 12px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }

.filter-chip {
  padding: 7px 10px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  cursor: pointer;
}
.filter-chip:hover { border-color: var(--forest-2); }
.filter-chip.is-active { color: white; background: var(--forest-2); border-color: var(--forest-2); }

.catalog-result-line { display: flex; justify-content: space-between; padding: 0 4px 10px; color: #7c806f; font-size: 11px; }
.text-button { padding: 0; border: 0; color: var(--forest-2); background: transparent; font-size: 11px; cursor: pointer; }

.object-list { min-height: 0; overflow-y: auto; padding: 0 5px 30px 0; scrollbar-color: #b8ad99 transparent; scrollbar-width: thin; }

.object-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 11px;
  width: 100%;
  margin: 0;
  padding: 11px 8px;
  text-align: left;
  border: 0;
  border-top: 1px solid rgba(54, 61, 51, .1);
  background: transparent;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.object-card:hover, .object-card.is-selected { background: #eee6d7; }
.object-card:hover { transform: translateX(2px); }

.object-thumb { width: 58px; height: 48px; object-fit: cover; border-radius: 5px; filter: sepia(.08) saturate(.82); }
.object-card-copy { min-width: 0; }
.object-card-copy strong { display: block; overflow: hidden; font-family: var(--serif); font-size: 14px; font-weight: 600; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.object-card-copy small { display: block; overflow: hidden; margin-top: 5px; color: #7e776a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.object-card-arrow { color: #998d79; font-size: 18px; }

.status-line { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--ink-soft); font-size: 9px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; }
.status-dot.lost { background: var(--lost); }
.status-dot.changed { background: var(--changed); }
.status-dot.preserved { background: var(--preserved); }

.map-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--paper); }

.timeline-panel {
  position: absolute;
  z-index: 8;
  top: 18px;
  left: 22px;
  right: 22px;
  display: grid;
  grid-template-columns: 180px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 25px;
  min-height: 76px;
  padding: 12px 16px;
  border: 1px solid rgba(64, 71, 59, .15);
  border-radius: 12px;
  background: rgba(251, 248, 239, .93);
  box-shadow: 0 8px 28px rgba(58, 55, 45, .12);
  backdrop-filter: blur(9px);
}

.timeline-copy .eyebrow { margin-bottom: 2px; }
.timeline-copy div { display: flex; align-items: baseline; gap: 8px; }
.timeline-copy strong { font-family: var(--serif); font-size: 31px; font-weight: 500; }
.timeline-copy span { color: #7a7368; font-size: 11px; }
.timeline-control { min-width: 0; }

input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  border-radius: 4px;
  outline: none;
  background: linear-gradient(to right, var(--forest-2) 0 100%);
}
input[type="range"]::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  appearance: none;
  border: 4px solid var(--cream);
  border-radius: 50%;
  background: var(--forest-2);
  box-shadow: 0 1px 5px rgba(0,0,0,.35);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 4px solid var(--cream);
  border-radius: 50%;
  background: var(--forest-2);
  box-shadow: 0 1px 5px rgba(0,0,0,.35);
  cursor: grab;
}
.timeline-ticks { display: flex; justify-content: space-between; margin-top: 7px; color: #8a8478; font-size: 9px; }

.play-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  color: white;
  border: 0;
  border-radius: 8px;
  background: var(--forest);
  font-size: 11px;
  cursor: pointer;
}
.play-button:hover { background: var(--forest-2); }
.play-button.is-playing span { animation: blink .8s infinite alternate; }
@keyframes blink { to { opacity: .35; } }

.city-map { position: absolute; inset: 0; overflow: hidden; background: #e8dfcf; }
.real-map { position: absolute; z-index: 1; inset: 0; background: #e8dfcf; font-family: var(--sans); }
.real-map .leaflet-tile-pane { filter: sepia(.1) saturate(.72) brightness(1.04) contrast(.94); }
.real-map .leaflet-top { top: 106px; }
.real-map .leaflet-left { left: 10px; }
.real-map .leaflet-bottom { bottom: 54px; }
.real-map .leaflet-control-zoom { overflow: hidden; border: 1px solid rgba(40,55,47,.18); border-radius: 8px; box-shadow: 0 6px 18px rgba(33,44,37,.14); }
.real-map .leaflet-control-zoom a { color: var(--forest); background: rgba(251,248,239,.94); border-color: var(--line); }
.real-map .leaflet-control-attribution { padding: 3px 6px; color: #696d68; background: rgba(251,248,239,.84); font-size: 8px; }
.real-map .leaflet-control-attribution a { color: var(--forest-2); }
.geo-marker-host { background: transparent; border: 0; }
.geo-marker-wrap { position: relative; width: 36px; height: 36px; transition: opacity .25s ease, scale .2s ease; }
.geo-marker-pin {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 4px 13px rgba(33,42,36,.34);
  rotate: -45deg;
  transition: scale .2s ease, filter .2s ease;
}
.geo-marker-number { rotate: 45deg; font-size: 10px; font-weight: 800; }
.geo-marker-pin.lost { background: var(--lost); }
.geo-marker-pin.changed { background: var(--changed); }
.geo-marker-pin.preserved { background: var(--preserved); }
.geo-marker-pin.future { opacity: .33; background: var(--future); filter: grayscale(1); }
.geo-marker-pin.ghost { color: var(--lost); border-color: var(--lost); background: rgba(251,248,239,.82); box-shadow: none; opacity: .72; }
.geo-marker-host:hover .geo-marker-pin,
.geo-marker-host:focus .geo-marker-pin,
.geo-marker-pin.is-selected { z-index: 9; scale: 1.22; }
.geo-marker-label {
  position: absolute;
  z-index: 10;
  left: 26px;
  bottom: 26px;
  width: max-content;
  max-width: 205px;
  padding: 8px 10px;
  rotate: 45deg;
  color: var(--ink);
  border: 1px solid rgba(56,65,57,.15);
  border-radius: 6px;
  background: rgba(251,248,239,.97);
  box-shadow: 0 5px 16px rgba(31,35,31,.18);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  translate: -8px 5px;
  transition: opacity .15s, translate .15s;
}
.geo-marker-host:hover .geo-marker-label,
.geo-marker-host:focus .geo-marker-label,
.geo-marker-pin.is-selected .geo-marker-label { opacity: 1; translate: 0; }
.map-load-error { position: absolute; inset: 0; display: grid; place-content: center; padding: 30px; color: var(--ink-soft); background: var(--paper); text-align: center; }
.map-load-error strong { display: block; margin-bottom: 8px; color: var(--ink); font-family: var(--serif); font-size: 22px; }
.map-drawing { position: absolute; inset: 102px 0 0; width: 100%; height: calc(100% - 102px); }
.street-lines path { fill: none; stroke: #897d68; stroke-width: 5; opacity: .24; }
.block-lines rect { fill: rgba(123, 109, 83, .055); stroke: #7e715c; stroke-width: 2; opacity: .38; }
.rail-line { fill: none; stroke: #505950; stroke-width: 8; stroke-dasharray: 16 7 3 7; opacity: .38; }
.river { fill: #9eb8b6; opacity: .6; }

.map-label { position: absolute; z-index: 1; color: rgba(47, 57, 50, .38); font-family: var(--serif); font-size: 12px; font-style: italic; letter-spacing: .08em; pointer-events: none; }
.label-center { left: 48%; top: 45%; }
.label-garden { left: 65%; top: 20%; }
.label-station { left: 7%; bottom: 22%; }
.label-river { left: 73%; bottom: 8%; color: rgba(37, 78, 80, .55); font-size: 17px; }

.marker-layer { position: absolute; inset: 102px 0 0; }
.map-marker {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  transform: translate(-50%, -50%);
  color: white;
  border: 3px solid rgba(255,255,255,.88);
  border-radius: 50% 50% 50% 8px;
  box-shadow: 0 4px 12px rgba(44, 44, 35, .3);
  cursor: pointer;
  rotate: -45deg;
  transition: opacity .35s ease, scale .25s ease, filter .25s ease;
}
.map-marker span { rotate: 45deg; font-size: 10px; font-weight: 800; }
.map-marker:hover, .map-marker:focus-visible, .map-marker.is-selected { z-index: 7; scale: 1.22; outline: 0; }
.map-marker.lost { background: var(--lost); }
.map-marker.changed { background: var(--changed); }
.map-marker.preserved { background: var(--preserved); }
.map-marker.future { opacity: .28; background: var(--future); filter: grayscale(1); }
.map-marker.ghost { opacity: .42; background: transparent; border-color: var(--lost); box-shadow: none; }
.map-marker.ghost span { color: var(--lost); }
.map-marker.is-filtered { opacity: .07; pointer-events: none; }

.marker-label {
  position: absolute;
  z-index: 6;
  left: 25px;
  bottom: 25px;
  width: max-content;
  max-width: 190px;
  padding: 8px 10px;
  rotate: 45deg;
  color: var(--ink);
  border: 1px solid rgba(56,65,57,.14);
  border-radius: 6px;
  background: rgba(251,248,239,.96);
  box-shadow: 0 5px 16px rgba(31,35,31,.16);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  translate: -8px 5px;
  transition: opacity .15s, translate .15s;
}
.map-marker:hover .marker-label, .map-marker:focus-visible .marker-label, .map-marker.is-selected .marker-label { opacity: 1; translate: 0; }

.map-note {
  position: absolute;
  z-index: 5;
  left: 22px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 250px;
  padding: 10px 12px;
  color: #635f56;
  border: 1px solid rgba(75,74,66,.12);
  border-radius: 8px;
  background: rgba(250,246,236,.87);
  font-size: 11px;
}
.map-note > span { font-size: 20px; }
.map-note b, .map-note small { display: block; }
.map-note small { margin-top: 2px; color: #8d877c; font-size: 9px; }

.legend { position: absolute; z-index: 5; right: 22px; bottom: 24px; display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(250,246,236,.87); color: #6d6a62; font-size: 9px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.preserved { background: var(--preserved); }
.legend-dot.changed { background: var(--changed); }
.legend-dot.lost { background: var(--lost); }
.legend-dot.future { background: var(--future); }

.year-story {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 23px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  padding: 9px 13px;
  translate: -50%;
  border-radius: 8px;
  background: rgba(32,61,49,.94);
  color: rgba(255,255,255,.8);
  box-shadow: 0 7px 20px rgba(25,38,31,.2);
}
.story-number { font-family: var(--serif); font-size: 27px; color: white; }
.year-story p { margin: 0; font-size: 10px; line-height: 1.35; }

.icon-button { display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; }
.mobile-catalog-button { display: none; width: 40px; height: 40px; }
.mobile-catalog-button span { display: block; width: 19px; height: 1px; margin: 2px; background: white; }
.catalog-close { display: none; font-size: 26px; }

.panel-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(15,23,19,.46); opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px); }
.panel-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.detail-panel {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(690px, 100vw);
  overflow-y: auto;
  background: var(--cream);
  box-shadow: -22px 0 55px rgba(22,30,25,.28);
  translate: 102% 0;
  transition: translate .3s cubic-bezier(.2,.7,.2,1);
}
.detail-panel.is-open { translate: 0; }
.detail-close { position: fixed; z-index: 6; top: 17px; right: 19px; display: grid; place-items: center; width: 38px; height: 38px; color: white; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(25,35,30,.52); font-size: 25px; cursor: pointer; backdrop-filter: blur(5px); }

.detail-hero { position: relative; height: 285px; overflow: hidden; background: var(--forest); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(17,28,23,.88)); }
.hero-copy { position: absolute; z-index: 2; left: 32px; right: 62px; bottom: 24px; color: white; }
.hero-copy .eyebrow { color: rgba(255,255,255,.72); }
.hero-copy h2 { max-width: 540px; margin: 0; font-family: var(--serif); font-size: 35px; font-weight: 500; line-height: 1.03; }
.hero-copy p { margin: 8px 0 0; color: rgba(255,255,255,.76); font-size: 12px; }

.detail-body { padding: 27px 32px 48px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.detail-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 99px; color: #5d625d; background: #f4eee2; font-size: 10px; }

.detail-summary { margin: 0 0 24px; font-family: var(--serif); font-size: 20px; line-height: 1.42; }
.transformation { position: relative; margin: 22px 0; padding: 18px 20px 18px 24px; color: #f9f5ea; border-radius: 8px; background: var(--forest); }
.transformation::before { content: ""; position: absolute; top: 0; bottom: 0; left: 9px; width: 1px; background: rgba(255,255,255,.24); }
.transformation small { display: block; margin-bottom: 6px; color: rgba(255,255,255,.6); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.transformation strong { font-family: var(--serif); font-size: 16px; font-weight: 500; }

.section-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.section-title::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.compare-viewer { position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: 9px; background: #d4cab7; user-select: none; }
.compare-viewer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-old { clip-path: inset(0 50% 0 0); }
.compare-line { position: absolute; z-index: 3; top: 0; bottom: 0; left: 50%; width: 2px; background: white; pointer-events: none; }
.compare-line::after { content: "↔"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 34px; height: 34px; translate: -50% -50%; color: var(--forest); border-radius: 50%; background: white; box-shadow: 0 2px 9px rgba(0,0,0,.28); }
.compare-slider { position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; }
.photo-tag { position: absolute; z-index: 3; top: 12px; padding: 6px 8px; color: white; border-radius: 4px; background: rgba(20,29,24,.64); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.photo-tag.old { left: 12px; }
.photo-tag.now { right: 12px; }
.compare-caption { display: flex; justify-content: space-between; gap: 15px; margin-top: 8px; color: #7b766c; font-size: 10px; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.gallery button { position: relative; overflow: hidden; aspect-ratio: 4/3; padding: 0; border: 0; border-radius: 6px; background: #ddd2bf; cursor: pointer; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: scale .2s; }
.gallery button:hover img { scale: 1.04; }
.gallery span { position: absolute; inset: auto 0 0; padding: 16px 7px 6px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-size: 9px; text-align: left; }

.history-text { color: #373f39; font-family: var(--serif); font-size: 15px; line-height: 1.62; }
.history-text p { margin: 0 0 12px; }
.history-text .history-heading { margin-top: 20px; color: var(--forest); font-family: var(--sans); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.fact { padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #f5efe4; }
.fact small { display: block; margin-bottom: 5px; color: #8a8174; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.fact strong { font-family: var(--serif); font-size: 13px; font-weight: 600; line-height: 1.35; }

.connections { display: flex; flex-wrap: wrap; gap: 7px; }
.connection-button { padding: 8px 10px; color: var(--forest); border: 1px solid rgba(49,88,73,.2); border-radius: 6px; background: #edf0e8; font-size: 10px; cursor: pointer; }
.connection-button:hover { color: white; background: var(--forest-2); }

.sources-box { padding: 14px; border-left: 3px solid #9b8664; background: #f2ebdf; color: #68665f; font-size: 11px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.sources-box a { color: var(--forest-2); }
.verification-box { margin-top: 15px; padding: 12px 14px; color: #72583c; border: 1px solid rgba(155,118,70,.2); border-radius: 7px; background: #faf1df; font-size: 10px; line-height: 1.5; }
.verification-box strong { display: block; margin-bottom: 5px; }

.empty-state { padding: 55px 15px; color: #807c71; text-align: center; }
.empty-state span { font-size: 33px; }
.empty-state h2 { margin: 10px 0 6px; color: var(--ink); font-family: var(--serif); font-size: 20px; }
.empty-state p { margin: 0; font-size: 11px; }

@media (max-width: 1050px) {
  .workspace { grid-template-columns: 285px minmax(0, 1fr); }
  .timeline-panel { grid-template-columns: 150px 1fr; }
  .play-button { grid-column: 1 / -1; justify-self: end; margin-top: -8px; }
  .map-note { display: none; }
  .year-story { left: 22px; translate: 0; }
}

@media (max-width: 780px) {
  .topbar { height: 66px; padding: 0 16px; }
  .brand strong { font-size: 16px; }
  .brand small, .header-stats { display: none; }
  .mobile-catalog-button { display: block; }
  .workspace { height: calc(100vh - 66px); grid-template-columns: 1fr; }
  .catalog { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(360px, 92vw); translate: -105%; transition: translate .25s; box-shadow: 20px 0 50px rgba(24,32,27,.3); }
  .catalog.is-open { translate: 0; }
  .catalog-close { display: grid; }
  .timeline-panel { top: 10px; left: 10px; right: 10px; grid-template-columns: 120px 1fr; gap: 12px; min-height: 68px; padding: 9px 11px; }
  .timeline-copy strong { font-size: 25px; }
  .timeline-copy span { display: none; }
  .play-button { position: absolute; right: 10px; top: 76px; width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  .play-button b { display: none; }
  .real-map .leaflet-top { top: 152px; }
  .real-map .leaflet-left { left: 4px; }
  .real-map .leaflet-bottom { bottom: 48px; }
  .real-map .leaflet-control-attribution { max-width: 240px; font-size: 7px; }
  .geo-marker-label { display: none; }
  .legend { left: 10px; right: auto; bottom: 10px; max-width: calc(100% - 20px); }
  .year-story { display: none; }
  .detail-hero { height: 240px; }
  .hero-copy { left: 20px; bottom: 20px; }
  .hero-copy h2 { font-size: 29px; }
  .detail-body { padding: 22px 20px 40px; }
}

@media (max-width: 480px) {
  .timeline-panel { grid-template-columns: 90px 1fr; }
  .timeline-ticks { font-size: 8px; }
  .timeline-ticks span:nth-child(even) { display: none; }
  .map-marker { width: 31px; height: 31px; }
  .facts-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .detail-summary { font-size: 18px; }
  .compare-viewer { aspect-ratio: 4/3; }
}

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