.city-map {
  max-width: 1400px;
  padding-block: clamp(30px, 4vw, 56px);
}
.city-map .city-map-title {
  margin: 12px 0;
  font: italic 900 clamp(46px, 6.6vw, 94px)/.97 BarlowGame, Arial, sans-serif;
  text-transform: uppercase;
}
.city-map--homepage {
  max-width: none;
  background: #0e1d2b;
  border-block: 1px solid #2d4350;
}
.city-map--homepage .city-map-title { font-size: clamp(44px, 6vw, 83px); }
.map-page-link { margin: 22px 0 0; }
.city-map-intro {
  margin: 0 0 26px;
  max-width: 66ch;
  color: #cbdae4;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: clamp(16px, 3vw, 38px);
  align-items: start;
}
.map-tools, .map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.map-tools { gap: 5px; margin: 0 0 15px; }
.map-tools button, .map-zoom button {
  color: var(--paper);
  background: #101f2b;
  border: 1px solid #526b79;
  font: 700 14px/1.25 Arial, sans-serif;
  padding: 9px 12px;
  cursor: pointer;
}
.map-tools button[aria-pressed="true"], .map-tools button:hover {
  color: #191b20;
  border-color: var(--gold);
  background: var(--gold);
}
.map-legend {
  margin: 0 0 11px;
  padding: 0;
  gap: 8px 17px;
  list-style: none;
  color: #d0dee6;
  font-size: 12px;
}
.map-legend li { display: flex; align-items: center; gap: 6px; }
.key-demo, .key-full, .key-model { display: inline-block; width: 13px; height: 10px; }
.key-demo { background: #ffbf3970; border: 1px solid #ffd270; }
.key-full { background: #7ccee120; border: 1px solid #94dce9; }
.key-model { height: 8px; width: 8px; border-radius: 50%; background: #ffdc9b; }
.map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid #536e7a;
  background: #182c34;
}
.map-viewport { overflow: auto; aspect-ratio: 257 / 229; }
.map-stage { position: relative; width: 100%; aspect-ratio: 257 / 229; }
.map-ground, .map-overlay, .map-markers, .map-labels {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-overlay, .map-labels, .map-markers { pointer-events: none; }
.map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #f5f1e3;
  background: #0c1d27be;
  padding: 3px 5px;
  border-radius: 2px;
  font-size: clamp(8px, 1vw, 12px);
  font-weight: 700;
  letter-spacing: .035em;
  white-space: nowrap;
}
.map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: auto;
  width: clamp(17px, 2.15vw, 27px);
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid #ffdf9c;
  border-radius: 50%;
  color: #fff1ca;
  background: #162a33;
  font: 800 clamp(10px, 1.2vw, 13px)/1 Arial, sans-serif;
  box-shadow: 0 1px 4px #000a;
  cursor: pointer;
}
.map-marker.is-demo { background: #57391b; }
.map-marker.is-secondary {
  z-index: 1;
  width: 12px;
  background: #ffe2a7;
  border: 2px solid #1e2a31;
  color: #19232b;
}
.map-marker[aria-pressed="true"], .map-marker:hover {
  z-index: 4;
  color: #151b20;
  background: var(--gold);
  border-color: #171d23;
}
.city-map :is(button, input, a, .map-viewport):focus-visible {
  outline: 2px solid #fff6b4;
  outline-offset: 2px;
}
.map-marker:focus-visible { z-index: 5; }
.map-zoom { position: absolute; top: 12px; right: 12px; display: grid; z-index: 7; }
.map-zoom button {
  width: 34px;
  padding: 0;
  aspect-ratio: 1;
  font-size: 20px;
}
.map-zoom button:disabled { cursor: default; color: #82939d; }
.map-zoom button:not(:first-child) { border-top: 0; }
.map-north {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 7px;
  font-size: 12px;
  font-weight: 700;
  color: #fff4d8;
  background: #10232de8;
}
.map-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 7;
  padding: 4px 6px;
  color: #e9f0f1;
  background: #10212de8;
  font-size: 9px;
  line-height: 1.2;
}
.map-credit a { color: inherit; }
.map-layer-controls { margin: 14px 0 6px; }
.map-layer-controls label { display: inline-flex; gap: 7px; align-items: center; font-size: 14px; }
.map-layer-controls input { accent-color: var(--gold); width: 18px; height: 18px; margin: 0; }
.map-note { margin: 4px 0 0; color: #b9c9d4; font-size: 13px; line-height: 1.5; }
.map-preview { border: 1px solid #516b78; background: #122431; }
.map-preview-image { display: block; }
.map-preview-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.map-preview-text { padding: 15px 16px 18px; min-height: 120px; }
.map-preview-status { margin: 0 0 5px; color: #f4d58d; font-size: 12px; font-weight: 700; }
.map-preview-text [data-preview-name], #map-directory-title { margin: 0; font: 600 29px/1.05 BarlowGame, Arial, sans-serif; }
.map-preview-caption { color: #d1e0e8; font-size: 13px; margin: 8px 0; }
.map-preview-text .text-link { display: inline-block; margin-top: 9px; font-size: 14px; }
.map-directory { margin-top: 19px; }
#map-directory-title { margin-bottom: 8px; }
.map-place-list, .map-model-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.map-model-list { margin-top: 12px; }
.map-details li { border-top: 1px solid #324955; }
.map-details :is(button, .map-place-list a) {
  display: flex;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 8px 5px;
  color: var(--paper);
  border: 0;
  background: transparent;
  font: 500 14px/1.25 Arial, sans-serif;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.map-details :is(button, .map-place-list a):is(:hover, [aria-pressed="true"], [aria-current="true"]) { background: #253746; color: var(--gold); }
.map-place-number { min-width: 2ch; color: #edd39e; font-variant-numeric: tabular-nums; }
.city-map [hidden] { display: none; }
@media (min-width: 781px) {
  .map-details { position: sticky; top: 100px; }
  .map-lists { max-height: 250px; overflow: auto; }
}
@media (max-width: 780px) {
  .map-layout { grid-template-columns: minmax(0, 1fr); }
  .map-details { display: contents; }
  .map-preview { grid-row: 2; scroll-margin-top: 82px; }
  .map-directory { margin-top: 0; }
  .map-place-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  .map-marker { width: 16px; }
  .map-marker.is-secondary { width: 9px; }
  .map-zoom { top: 7px; right: 7px; }
}
@media (max-width: 355px) {
  .map-place-list { grid-template-columns: minmax(0, 1fr); }
}
