:root {
  --ink: #2b2018;
  --ink-dim: #4f4234;
  --copper: #7a3a1c;
  --sky: #1d4d85;
  --sky-glow: #2f6fb855;
  --bg: #d5c0ae;
  --bg-2: #e2d2c2;
  --panel: #f2e8dc;
  --line: #2b201822;
  --line-strong: #2b20183d;

  --font-head: "Petrona", Georgia, serif;
  --font-body: "Alegreya", Georgia, serif;
  --font-mono: "Fragment Mono", "Courier New", monospace;

  --wk-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --wk-dur-1: 250ms;
  --wk-dur-2: 600ms;
  --wk-dur-3: 900ms;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--sky); color: var(--panel); }


@media (min-width: 1360px) {
  body::before {
    content: "";
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-repeat: repeat-y, repeat-y;
    background-position: left top, right top;
    background-size: 140px 360px, 140px 360px;
    background-image:
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 360"><path d="M70 40 C50 40 40 60 40 82 C40 108 53 122 55 138 C56 144 52 151 48 157 M70 40 C90 40 100 60 100 82 C100 108 87 122 85 138 C84 144 88 151 92 157 M70 40 L70 90 M50 70 C60 76 67 79 70 90 C73 79 80 76 90 70" stroke="%232b2018" stroke-width="2" fill="none" stroke-linecap="round"/></svg>'),
      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 360"><path d="M70 40 C50 40 40 60 40 82 C40 108 53 122 55 138 C56 144 52 151 48 157 M70 40 C90 40 100 60 100 82 C100 108 87 122 85 138 C84 144 88 151 92 157 M70 40 L70 90 M50 70 C60 76 67 79 70 90 C73 79 80 76 90 70" stroke="%232b2018" stroke-width="2" fill="none" stroke-linecap="round"/></svg>');
    opacity: 0.055;
  }
}
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
::marker { color: var(--copper); }
img, svg.illus { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--ink); line-height: 1.16; margin: 0 0 0.55em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
p { margin: 0 0 1.1em; max-width: 58ch; }
a { color: inherit; text-decoration: none; }

.route-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding-bottom: 0.12em; }
.route-link::after {
  content: ""; position: absolute; left: 0; bottom: -0.03em; height: 2px; width: 100%;
  background: var(--sky); transform: scaleX(0); transform-origin: left center;
  transition: transform var(--wk-dur-1) var(--wk-ease);
}
.route-link:hover::after, .route-link:focus-visible::after { transform: scaleX(1); }

.wrap { width: 100%; padding: 0 clamp(1.25rem, 4vw, 3.5rem); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


.masthead {
  position: sticky; top: 0; z-index: 60;
  
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.9rem 0; position: relative; }

@media (max-height: 500px) {
  .masthead-inner { padding: 0.4rem 0; gap: 1rem; }
  .brand-mark { width: 26px; height: 26px; }
  .brand-word { font-size: 1.05rem; }
  .brand-sub { display: none; }
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-word { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.brand-sub { display: block; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-dim); }
.nav-list { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }

.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle-btn span { display: block; width: 22px; height: 2px; background: var(--ink); }
.nav-toggle-input:focus-visible ~ .nav-toggle-btn { outline: 2px solid var(--sky); outline-offset: 2px; }


.intro { padding: clamp(2rem, 5vw, 3.2rem) clamp(1.25rem, 4vw, 3.5rem) 1.5rem 2.5rem; position: relative; }


.hero-bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  opacity: 0.14; filter: saturate(0.7);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--bg) 0%, var(--bg) 40%, transparent 78%),
              linear-gradient(var(--bg) 0%, transparent 18%, transparent 82%, var(--bg) 100%);
}


.locator { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.4rem; }
.locator svg { width: 46px; height: 62px; flex: none; }
.locator span { font-family: var(--font-mono); font-size: 0.62rem; color: var(--ink-dim); letter-spacing: 0.03em; }
.intro-eyebrow { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); margin-bottom: 1rem; }
.intro p.lede { font-size: 1.15rem; color: var(--ink-dim); max-width: 62ch; }


.stat-strip { display: flex; flex-wrap: wrap; gap: 0; margin: 1.6rem 0 0.4rem; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.stat-strip .stat { padding: 0.9rem 1.4rem 0.9rem 0; margin-right: 1.4rem; border-right: 1px solid var(--line); }
.stat-strip .stat:last-child { border-right: none; margin-right: 0; }
.stat-strip .stat b { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.stat-strip .stat span { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-dim); margin-top: 0.3rem; }
.stat-source { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-dim); margin: 0.6rem 0 0; }


.motif-row { display: flex; gap: 1.8rem; align-items: center; margin: 1.4rem 0 0; flex-wrap: wrap; }
.motif-row .motif { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.03em; }
.motif-row svg { width: 22px; height: 22px; flex: none; }


.journey { display: grid; grid-template-columns: minmax(0, 1fr) minmax(640px, 820px); gap: clamp(1rem, 3vw, 3rem); align-items: start; max-width: 1640px; margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 3rem); position: relative; }
.map-row { display: flex; align-items: flex-start; gap: 1.1rem; }
.journey-left { min-width: 0; }
.map-col { position: sticky; top: 76px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 1.5rem 0; gap: 0.9rem; }
.map-caption { font-size: 0.86rem; color: var(--ink-dim); text-align: center; max-width: 780px; margin: 0 auto; line-height: 1.5; }
.map-caption strong { color: var(--ink); font-weight: 700; }
.map-stage { position: relative; width: 100%; max-width: 460px; flex: none; aspect-ratio: 3/5; }



.city-card {
  display: none;
  width: 100%; max-width: 300px;
  background: var(--panel); border: 1px solid var(--ink); padding: 0;
  box-shadow: 0 10px 22px -14px #0006;
  align-self: center;
  overflow: hidden;
}
.city-card.is-open { display: block; }

#mapPlaceholder { display: block; }
#mapPlaceholder.is-hidden { display: none; }
.city-card img { width: 100%; height: 148px; object-fit: cover; display: block; border-bottom: 1px solid var(--ink); }
.city-card .body { padding: 1rem 1.1rem 0.9rem; }
.city-card h3 { font-family: var(--font-head); font-size: 1.3rem; margin: 0 0 0.2rem; }
.city-card .region { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.6rem; display: block; }
.city-card .pop { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--copper); }
.city-card .pop-label { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-dim); text-transform: uppercase; display: block; margin-bottom: 0.65rem; }
.city-card p { font-size: 0.94rem; margin: 0; color: var(--ink); line-height: 1.5; }
.city-card .src {
  font-family: var(--font-mono); font-size: 0.48rem; color: var(--ink-dim); margin-top: 0.65rem; display: block;
  white-space: nowrap; overflow: hidden;
}
.map-chile { width: 100%; height: 100%; overflow: visible; }
.map-chile .land { fill: var(--panel); }
.map-chile .coast { fill: none; stroke: var(--ink-dim); stroke-width: 1.1; }
.road { fill: none; stroke: var(--copper); stroke-width: 1.6; stroke-dasharray: 3 3; opacity: 0.7; }


.pin { cursor: pointer; }
.pin:focus { outline: none; }
.pin circle.dot { fill: var(--sky); opacity: 0; transform: scale(0.4); transform-origin: center; transition: opacity 500ms var(--wk-ease), transform 500ms var(--wk-ease), fill 200ms; }
.pin:hover circle.dot, .pin:focus-visible circle.dot, .pin.is-active circle.dot { fill: var(--copper); transform: scale(1.35); }
.pin:focus-visible circle.ring, .pin.is-active circle.ring { stroke: var(--copper); }
.pin circle.ring { stroke: var(--sky); stroke-width: 1; opacity: 0; transition: opacity 500ms var(--wk-ease); }
.pin.is-shown circle.dot { opacity: 1; transform: scale(1); }
.pin.is-shown circle.ring { opacity: 0.6; }
.pin text {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; fill: var(--ink);
  letter-spacing: 0.03em;
  paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round;
  opacity: 0; transition: opacity 500ms var(--wk-ease);
}
.pin.is-shown text { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .pin circle.dot, .pin circle.ring, .pin text { opacity: 1 !important; transform: none !important; }
}


.traveler {
  offset-path: path("M 97 95 C 88 170, 90 240, 83 308 C 77 370, 70 470, 65 558");
  offset-distance: var(--travel, 0%);
  transition: offset-distance 400ms var(--wk-ease);
}
@media (prefers-reduced-motion: reduce) { .traveler { transition: none; } }


.sections { display: flex; flex-direction: column; }
.section-panel {
  min-height: min(58vh, 480px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 3.5rem clamp(1.25rem, 4vw, 3.5rem) 3.5rem 2.5rem;
  border-top: 1px solid var(--line);
  transform: translateY(18px);
  transition: transform var(--wk-dur-2) var(--wk-ease);
}
.section-panel.unlocked { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .section-panel { transform: none; transition: none; } }
.section-panel .tag { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); margin-bottom: 0.7rem; display: inline-block; }
.section-panel.c-copper .tag { color: var(--copper); }
.section-panel p { color: var(--ink-dim); }
.section-illus { width: 100%; max-width: 100%; height: auto; margin: 1.2rem 0 0.4rem; border: 1px solid var(--line-strong); display: block; object-fit: cover; }
.photo-credit {
  font-family: var(--font-mono); font-size: 0.56rem; color: var(--ink-dim); margin: 0 0 1.1rem;
  max-width: none;
  white-space: nowrap; overflow: hidden;
}
.section-panel .go { font-family: var(--font-mono); font-size: 0.82rem; }

.site-footer { border-top: 1px solid var(--line-strong); padding: 2.4rem 0 2.8rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-dim); }
.footer-row { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }


.breadcrumb { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); }
.breadcrumb a { color: var(--ink-dim); }

.article-shell { max-width: 1180px; margin: 0 auto; padding: 2.2rem clamp(1.25rem, 4vw, 3.5rem) 4.5rem; position: relative; }
.article-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin: 1.3rem 0 0.7rem; }
.article-shell h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; align-items: center; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.04em; margin: 0.8rem 0 0; }
.article-meta .tag { background: var(--panel); border: 1px solid var(--line-strong); padding: 0.15rem 0.55rem; border-radius: 2px; }


.article-header-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; margin-top: 0.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line-strong); }
.article-header-text { min-width: 0; }
.article-hero { margin: 0; min-width: 0; }


.article-hero .section-illus { margin: 0; width: 100%; height: auto; object-fit: cover; aspect-ratio: 900/355; align-self: flex-start; }
.hero-caption { font-family: var(--font-body); font-size: 0.82rem; color: var(--ink-dim); margin: 0.55rem 0 0; }
.article-hero .photo-credit { margin-top: 0.2rem; white-space: normal; overflow: visible; }

.hero-quickfacts { list-style: none; margin: 1.1rem 0 0; padding: 0.9rem 0 0; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem 1.4rem; }
.hero-quickfacts li { font-size: 0.86rem; line-height: 1.4; color: var(--ink-dim); min-width: 0; }
.hero-quickfacts strong { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); display: block; margin-bottom: 0.15rem; }
@media (max-width: 480px) { .hero-quickfacts { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .article-header-row { grid-template-columns: 1fr; }
  .article-hero { order: 2; }
  .article-header-text { order: 1; }
}



.article-jumplinks { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 1.6rem 0; padding: 0.7rem 0.8rem; background: var(--panel); border: 1px solid var(--line-strong); }

.article-shell > .article-jumplinks { position: sticky; top: 92px; z-index: 40; }
.article-jumplinks a { font-family: var(--font-mono); font-size: 0.68rem; padding: 0.4rem 0.55rem; border: 1px solid var(--line-strong); background: var(--bg); min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; white-space: nowrap; }
.article-jumplinks a:hover, .article-jumplinks a:focus-visible { border-color: var(--sky); color: var(--sky); }
@media (max-width: 640px) { .article-jumplinks { flex-wrap: wrap; } }



.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(1.5rem, 3vw, 3rem); align-items: stretch; margin-top: 1.8rem; }
@media (max-width: 860px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-sidebar { position: static !important; top: auto !important; }
}
.article-body p { margin: 0 0 1.35em; max-width: 66ch; }
.article-body em { color: var(--ink-dim); }
.article-body h2 { scroll-margin-top: 92px; font-size: 1.35rem; margin-top: 1.8rem; }
.article-note { margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-dim); }


.article-sidebar { min-width: 0; }
.sidebar-sticky { position: sticky; top: 280px; display: flex; flex-direction: column; gap: 1.2rem; }
.synthesis-box { margin: 0; padding: 1.4rem 1.6rem; background: var(--panel); border: 1px solid var(--line-strong); border-left: 3px solid var(--ink); scroll-margin-top: 92px; }
.synthesis-box h2 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.synthesis-box ul { margin: 0 0 0.2rem; padding-left: 1.2rem; }
.synthesis-box li { margin: 0 0 0.55em; line-height: 1.55; max-width: 62ch; }
.synthesis-box li:last-child { margin-bottom: 0; }

.article-sidebar .synthesis-box .table-wrap { margin: 0; overflow-x: visible; }
.article-sidebar .synthesis-box .table-wrap table { font-size: 0.78rem; }
.article-sidebar .synthesis-box .table-wrap th, .article-sidebar .synthesis-box .table-wrap td { padding: 0.4rem 0 0.4rem 0.1rem; vertical-align: top; }
.article-sidebar .synthesis-box .table-wrap th:first-child, .article-sidebar .synthesis-box .table-wrap td:first-child { font-family: var(--font-mono); white-space: nowrap; padding-right: 0.6rem; }


.article-shell::before {
  content: ""; position: absolute; top: 0; right: 0; width: min(46vw, 620px); height: 620px;
  background: no-repeat top right / contain url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M100 18 C70 18 55 45 55 75 C55 110 75 130 78 150 C79 158 74 168 68 176 M100 18 C130 18 145 45 145 75 C145 110 125 130 122 150 C121 158 126 168 132 176 M100 18 L100 90 M60 60 C75 68 90 72 100 90 C110 72 125 68 140 60" stroke="%232b2018" stroke-width="2.2" fill="none" stroke-linecap="round"/></svg>');
  opacity: 0.05; pointer-events: none; z-index: 0;
}
.article-shell > * { position: relative; z-index: 1; }
@media (max-width: 860px) { .article-shell::before { width: 60vw; height: 60vw; } }
.table-wrap { overflow-x: auto; margin: 1.1rem 0 0.2rem; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line-strong); }
.table-wrap th { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-dim); font-weight: 600; }

.partner-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.6rem; padding: 1.6rem clamp(1.25rem, 4vw, 3.5rem) 3rem; border-top: 1px solid var(--line-strong); }
.partner-strip a { display: inline-flex; align-items: center; min-height: 44px; }
.partner-strip img { max-width: 100%; height: auto; opacity: 0.9; }
.partner-strip a:hover img, .partner-strip a:focus img { opacity: 1; }

.operator-logo { display: inline-block; background: #fff; border: 1px solid var(--line-strong); padding: 0.5rem 0.9rem; margin: 0.3rem 0 0.9rem; }
.operator-logo img { display: block; height: 32px; width: auto; }
.table-wrap tr:last-child td { border-bottom: none; }

.operator-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--panel); background: var(--sky); border-radius: 2px; padding: 0.55rem 1.1rem; margin: 0 0 1.1rem; text-decoration: none; }
.operator-cta:hover, .operator-cta:focus-visible { background: var(--ink); }

.rg-notice { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 2px; padding: 1rem 1.2rem; margin: 1.6rem 0; font-size: 0.92rem; }
.rg-notice p { margin: 0; max-width: none; }

.article-faq { margin-top: 2.6rem; }
.article-faq > h2 { margin-bottom: 0.9rem; }
.article-faq details { border-top: 1px solid var(--line-strong); padding: 0.9rem 0; }
.article-faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.article-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 44px; }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary h3 { margin: 0; font-size: 1.04rem; font-weight: 600; }
.article-faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--sky); font-size: 1.1rem; flex: none; }
.article-faq details[open] summary::after { content: "–"; }
.article-faq details p { margin: 0.7rem 0 0; max-width: 66ch; color: var(--ink-dim); }

.archivo-shell { max-width: 780px; }
.archivo-intro { font-size: 1.02rem; color: var(--ink-dim); max-width: 66ch; margin: 0.6rem 0 2.2rem; }
.archivo-year { font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); margin: 2rem 0 0.6rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line-strong); }
.archivo-list { display: flex; flex-direction: column; }
.archivo-item { display: flex; gap: 1.2rem; align-items: baseline; padding: 0.75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.archivo-item:hover .archivo-title { color: var(--sky); }
.archivo-date { flex: none; width: 9.5em; font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.02em; padding-top: 0.2rem; }
.archivo-title { color: var(--ink); font-family: var(--font-head); font-size: 1.02rem; line-height: 1.35; transition: color 200ms; }
@media (max-width: 640px) {
  .archivo-item { flex-direction: column; gap: 0.2rem; }
  .archivo-date { width: auto; }
}


@media (max-width: 860px), (max-height: 500px) {
  .journey { grid-template-columns: 1fr; }
  .map-col { position: static; height: auto; max-height: none; padding: 1.5rem 0; }
  
}


@media (max-width: 860px) {
  .map-row { flex-direction: column; align-items: center; }
}



@media (max-height: 500px) {
  .map-stage { width: auto; max-width: none; height: min(calc(100vh - 110px), 420px); flex: none; }
}


@media (max-height: 500px) and (min-width: 640px) {
  .map-row { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: center; }
  .city-card, #mapPlaceholder { max-width: 300px; flex: 1 1 260px; }
}

@media (max-width: 860px) {
  .section-panel { min-height: auto; padding: 2rem clamp(1.25rem,4vw,3.5rem); opacity: 1; }

  .nav-toggle-btn { display: flex; }
  .nav-list {
    display: none; flex-direction: column; gap: 0; list-style: none; margin: 0; padding: 0.6rem 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--panel); border-bottom: 1px solid var(--line-strong);
  }
  .nav-list li { border-top: 1px solid var(--line); }
  .nav-list li:first-child { border-top: none; }
  .nav-list a { display: block; padding: 0.9rem clamp(1.25rem, 4vw, 3.5rem); }
  .nav-toggle-input:checked ~ nav .nav-list { display: flex; }
}
