:root {
  --ink: #17212b;
  --muted: #61707d;
  --paper: #f5f7f8;
  --card: #fff;
  --line: #dce3e8;
  --accent: #176b5b;
  --accent-dark: #0f5145;
  --land: #dceae5;
  --land-stroke: #8db3a8;
  --focus: #f2b544;
}
a {
  font-weight: 400;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
.wrap {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  padding: 56px 0 34px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--accent);
  margin: 0 0 8px;
}
.site-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}
.intro {
  margin: 0;
  color: var(--muted);
  max-width: 650px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
  gap: 24px;
  padding-block: 28px;
}
.map-card,
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(23, 33, 43, 0.06);
}
.map-card {
  overflow: hidden;
}
.map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
  max-width: 420px;
}
.map-toolbar label {
  font-weight: 700;
  white-space: nowrap;
}
.map-toolbar input {
  width: 100%;
  border: 1px solid #b9c5cc;
  border-radius: 9px;
  padding: 10px 12px;
  font: inherit;
}
.map-toolbar input:focus {
  outline: 3px solid rgba(242, 181, 68, 0.45);
  border-color: #9b711d;
}
.zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 38px;
  padding: 0 12px;
  border: 1px solid #b9c5cc;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}
.zoom-btn:hover:not(:disabled) {
  background: var(--land);
  border-color: var(--accent);
}
.zoom-btn:focus {
  outline: 3px solid rgba(242, 181, 68, 0.45);
  border-color: #9b711d;
}
.zoom-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.map-wrap {
  padding: 10px 20px 0;
  position: relative;
}
.map-wrap.is-zoomed svg {
  cursor: grab;
}
.map-wrap.is-panning svg {
  cursor: grabbing;
}
.map-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
  transform: translate(-50%, -100%);
  white-space: nowrap;
  z-index: 10;
}
.map-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}
.map-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
}
.map-tooltip:not(.is-flipped)::after {
  top: 100%;
  border-color: var(--ink) transparent transparent transparent;
}
.map-tooltip.is-flipped::after {
  bottom: 100%;
  border-color: transparent transparent var(--ink) transparent;
}
.map-wrap svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 860px;
}
.hotspot {
  cursor: pointer;
}
.hotspot path {
  fill: var(--land);
  stroke: var(--land-stroke);
  stroke-width: 1;
  stroke-linejoin: round;
}
.hotspot text {
  font-size: 9px;
  font-weight: 800;
  fill: var(--accent-dark);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.hotspot:hover path,
.hotspot:focus path,
.hotspot.is-selected path {
  fill: var(--accent);
}
.hotspot:hover text,
.hotspot:focus text,
.hotspot.is-selected text {
  fill: #fff;
}
.hotspot:focus {
  outline: none;
}
.hotspot:focus path {
  stroke: var(--focus);
  stroke-width: 2;
}
.map-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  padding: 4px 20px 18px;
}
.info-card {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 20px;
}
.info-empty {
  padding-bottom: 18px;
}
.info-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--land);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 18px;
}
.info-card h2 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  line-height: 1.15;
}
.info-card p {
  color: var(--muted);
  margin: 0;
}
.selected-content {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 18px;
}
.selected-content .number {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}
.selected-content h2 {
  margin: 5px 0 10px;
}
.selected-content p {
  margin: 0 0 14px;
}
.selected-content a {
  color: var(--muted);
}
.selected-content a:hover {
  color: var(--accent);
}
.site-footer {
  padding: 25px 0 45px;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p {
  margin: 0;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .info-card {
    position: static;
  }
  .map-wrap {
    padding-inline: 8px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: min(100% - 24px, 1240px);
  }
  .site-header {
    padding: 38px 0 26px;
  }
  .map-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .map-note {
    padding-inline: 12px;
  }
}
