:root {
  color-scheme: light dark;
  --bg: #e7eeeb;
  --bg-deep: #dce7e3;
  --surface: rgba(248, 251, 250, 0.78);
  --surface-solid: #f5f8f7;
  --surface-soft: rgba(232, 240, 237, 0.86);
  --text: #14211e;
  --text-soft: #5b6b66;
  --hairline: rgba(42, 68, 60, 0.14);
  --glass-edge: rgba(255, 255, 255, 0.72);
  --sea: #cedfda;
  --grid: rgba(55, 91, 80, 0.13);
  --land: #aebbb6;
  --land-hover: #9baca6;
  --accent: #214f43;
  --accent-text: #f1f8f5;
  --visited: #2f7f67;
  --planned: #d77832;
  --guide: #d7a62d;
  --unvisited: #98a39f;
  --shadow: 0 24px 70px rgba(38, 72, 62, 0.15);
  --shadow-small: 0 10px 30px rgba(38, 72, 62, 0.11);
  --radius-map: 32px;
  --radius-card: 26px;
  --header-height: 70px;
}

:root[data-theme="dark"] {
  --bg: #111b18;
  --bg-deep: #0d1613;
  --surface: rgba(24, 37, 33, 0.78);
  --surface-solid: #1a2925;
  --surface-soft: rgba(30, 46, 41, 0.9);
  --text: #edf4f1;
  --text-soft: #a5b5af;
  --hairline: rgba(220, 238, 232, 0.13);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --sea: #1a2b27;
  --grid: rgba(190, 224, 213, 0.1);
  --land: #46544f;
  --land-hover: #586961;
  --accent: #dbece6;
  --accent-text: #10201b;
  --visited: #67b997;
  --planned: #ed9a50;
  --guide: #efc55b;
  --unvisited: #66736e;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --shadow-small: 0 12px 34px rgba(0, 0, 0, 0.26);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111b18;
    --bg-deep: #0d1613;
    --surface: rgba(24, 37, 33, 0.78);
    --surface-solid: #1a2925;
    --surface-soft: rgba(30, 46, 41, 0.9);
    --text: #edf4f1;
    --text-soft: #a5b5af;
    --hairline: rgba(220, 238, 232, 0.13);
    --glass-edge: rgba(255, 255, 255, 0.14);
    --sea: #1a2b27;
    --grid: rgba(190, 224, 213, 0.1);
    --land: #46544f;
    --land-hover: #586961;
    --accent: #dbece6;
    --accent-text: #10201b;
    --visited: #67b997;
    --planned: #ed9a50;
    --guide: #efc55b;
    --unvisited: #66736e;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    --shadow-small: 0 12px 34px rgba(0, 0, 0, 0.26);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg-deep);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% 8%, rgba(255, 255, 255, 0.48), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-optical-sizing: auto;
  line-height: 1.5;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible,
.map-frame:focus-visible,
.map-marker:focus-visible .marker-core {
  outline: 3px solid color-mix(in srgb, var(--accent) 64%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 50;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 720;
  text-decoration: none;
  transform: translateY(-160%);
}

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

.atlas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(690px, calc(100dvh - var(--header-height) - 1rem)) auto auto;
  min-height: 100dvh;
  padding: 0 max(0.85rem, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(0.85rem, env(safe-area-inset-left));
}

.site-header {
  position: relative;
  z-index: 12;
  display: flex;
  grid-row: 1;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1800px);
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 0.45rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.67rem;
  font-weight: 820;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-small);
}

.brand-name {
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.15em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.05rem;
}

.updated {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
  min-height: 2.7rem;
  padding: 0 0.25rem 0 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.theme-toggle-track {
  position: relative;
  width: 2.85rem;
  height: 1.66rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface-soft);
  box-shadow: inset 0 1px 2px rgba(27, 52, 45, 0.11);
}

.theme-toggle-track i {
  position: absolute;
  top: 0.22rem;
  left: 0.22rem;
  width: 1.12rem;
  height: 1.12rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 7px rgba(26, 50, 43, 0.22);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] .theme-toggle-track i {
  transform: translateX(1.16rem);
}

.theme-toggle-label {
  min-width: 2em;
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 680;
}

.hero-copy {
  position: relative;
  z-index: 5;
  grid-row: 2;
  grid-column: 1;
  align-self: start;
  width: min(44rem, 48vw);
  margin: clamp(2.1rem, 5vw, 5.8rem) 0 0 clamp(1.35rem, 4.2vw, 5rem);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.18em;
}

.hero-copy h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.7rem, 5.8vw, 6.8rem);
  font-weight: 650;
  letter-spacing: -0.062em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-copy h1 em {
  color: var(--visited);
  font-style: normal;
}

.lede {
  max-width: 27rem;
  margin: 1.2rem 0 0;
  color: var(--text-soft);
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  line-height: 1.72;
}

/* Web frosted material approximation. Controls are pills, cards use one soft radius scale. */
.glass-web-approx {
  border: 1px solid var(--glass-edge);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.21), rgba(255, 255, 255, 0.045)),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow-small);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
  backdrop-filter: blur(24px) saturate(155%);
}

.map-shell {
  position: relative;
  z-index: 2;
  grid-row: 2;
  grid-column: 1;
  width: min(100%, 1800px);
  min-height: 690px;
  margin: 0 auto;
}

.map-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: var(--radius-map);
  background:
    radial-gradient(circle at 72% 34%, rgba(255, 255, 255, 0.45), transparent 30%),
    var(--sea);
  box-shadow: var(--shadow);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.map-frame.is-dragging {
  cursor: grabbing;
}

.map-frame::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 90px rgba(50, 92, 80, 0.08);
  content: "";
  pointer-events: none;
}

#world-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#map-viewport {
  will-change: transform;
}

.sphere {
  fill: transparent;
  pointer-events: none;
}

.graticule {
  fill: none;
  stroke: var(--grid);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.country {
  fill: var(--land);
  stroke: color-mix(in srgb, var(--sea) 76%, var(--text));
  stroke-width: 0.68;
  vector-effect: non-scaling-stroke;
  transition: fill 460ms cubic-bezier(0.16, 1, 0.3, 1), opacity 460ms cubic-bezier(0.16, 1, 0.3, 1), stroke-width 220ms ease;
}

.country[data-state="visited"] {
  fill: var(--visited);
}

.country[data-state="planned"] {
  fill: var(--planned);
}

.country[data-state="guide"] {
  fill: var(--guide);
}

.country[data-state="mixed"] {
  fill: url(#china-mixed-light);
}

:root[data-theme="dark"] .country[data-state="mixed"] {
  fill: url(#china-mixed-dark);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .country[data-state="mixed"] {
    fill: url(#china-mixed-dark);
  }
}

.country.is-interactive {
  cursor: pointer;
}

.country.is-interactive:hover,
.country.is-highlighted {
  stroke: color-mix(in srgb, var(--text) 76%, transparent);
  stroke-width: 1.7;
}

.country.is-muted {
  opacity: 0.27;
}

.map-marker {
  cursor: pointer;
  outline: none;
}

.marker-hit {
  fill: transparent;
}

.marker-ring,
.marker-pulse {
  fill: none;
  stroke: currentColor;
  transform-box: fill-box;
  transform-origin: center;
}

.marker-ring {
  stroke-width: 2;
  opacity: 0.45;
}

.marker-pulse {
  stroke-width: 1.5;
  opacity: 0;
}

.marker-core {
  fill: currentColor;
  stroke: color-mix(in srgb, var(--surface-solid) 92%, transparent);
  stroke-width: 3;
  filter: url(#marker-shadow);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 340ms ease;
}

.marker-label-bg {
  fill: var(--surface-solid);
  stroke: var(--glass-edge);
  stroke-width: 1;
  filter: url(#marker-shadow);
}

.marker-label {
  fill: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 740;
  letter-spacing: -0.02em;
  pointer-events: none;
}

.map-marker[data-state="visited"] {
  color: var(--visited);
}

.map-marker[data-state="planned"] {
  color: var(--planned);
}

.map-marker[data-state="guide"] {
  color: var(--guide);
}

.map-marker:hover .marker-core,
.map-marker:focus-visible .marker-core,
.map-marker.is-active .marker-core {
  transform: scale(1.42);
}

.map-marker.is-muted {
  pointer-events: none;
}

.map-marker.is-muted .marker-core,
.map-marker.is-muted .marker-ring,
.map-marker.is-muted .marker-label-bg,
.map-marker.is-muted .marker-label {
  opacity: 0.16;
}

.map-toolbar {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  z-index: 9;
  display: flex;
  width: min(47rem, 55vw);
  min-height: 4.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.8rem 0.75rem 1.15rem;
  border-radius: var(--radius-card);
}

.map-toolbar h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.map-toolbar p {
  margin: 0.13rem 0 0;
  color: var(--text-soft);
  font-size: 0.72rem;
}

.filter-group {
  display: flex;
  max-width: 100%;
  gap: 0.25rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.filter-group::-webkit-scrollbar {
  display: none;
}

.filter-button,
.zoom-button,
.reset-button,
.sheet-close {
  border: 0;
  cursor: pointer;
}

.filter-button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 2.6rem;
  align-items: center;
  gap: 0.42rem;
  padding: 0 0.76rem;
  border-radius: 999px;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 680;
  white-space: nowrap;
  transition: color 240ms ease, background-color 320ms cubic-bezier(0.16, 1, 0.3, 1), transform 180ms ease;
}

.filter-button:hover {
  background: color-mix(in srgb, var(--surface-solid) 68%, transparent);
  color: var(--text);
}

.filter-button.is-active {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 0.57rem;
  height: 0.57rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.status-visited {
  background: var(--visited);
}

.status-planned {
  background: var(--planned);
}

.status-guide {
  background: var(--guide);
}

.status-unvisited {
  background: var(--unvisited);
}

.zoom-controls {
  position: absolute;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 8;
  display: grid;
  grid-template-columns: 2.75rem 2.75rem auto;
  gap: 0.26rem;
  padding: 0.28rem;
  border-radius: 999px;
  transition: right 420ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease;
}

.map-frame.has-detail .zoom-controls {
  right: 25.25rem;
}

.zoom-button,
.reset-button {
  min-height: 2.7rem;
  border-radius: 999px;
  background: transparent;
  transition: background-color 220ms ease, transform 160ms ease;
}

.zoom-button {
  font-size: 1.25rem;
  font-weight: 450;
}

.reset-button {
  padding: 0 0.95rem;
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

.zoom-button:hover,
.reset-button:hover {
  background: var(--surface-solid);
}

.pressable {
  transform: translateZ(0);
  transition-property: transform, background-color, color, opacity, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.pressable:active,
.pressable.is-pressed {
  transform: scale(0.97);
  transition-duration: 80ms;
}

.map-footer {
  position: absolute;
  bottom: 1.18rem;
  left: 1.25rem;
  z-index: 6;
  display: flex;
  align-items: end;
  gap: 1.2rem;
  pointer-events: none;
}

.travel-stats {
  display: flex;
  gap: 1.2rem;
  margin: 0;
}

.travel-stats div {
  display: flex;
  flex-direction: column-reverse;
}

.travel-stats dt,
.travel-stats dd {
  margin: 0;
}

.travel-stats dt {
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 650;
}

.travel-stats dd {
  font-size: 1.42rem;
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.gesture-hint {
  margin: 0 0 0.06rem;
  color: var(--text-soft);
  font-size: 0.68rem;
}

.map-tooltip {
  position: absolute;
  z-index: 20;
  max-width: 15rem;
  padding: 0.62rem 0.78rem;
  border: 1px solid var(--glass-edge);
  border-radius: 0.86rem;
  background: var(--surface-solid);
  box-shadow: var(--shadow-small);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 660;
  pointer-events: none;
  transform: translate3d(12px, 12px, 0) scale(0.96);
  transform-origin: top left;
}

.map-tooltip strong,
.map-tooltip span {
  display: block;
}

.map-tooltip span {
  margin-top: 0.13rem;
  color: var(--text-soft);
  font-weight: 520;
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  background: var(--sea);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 650;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.map-loading.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loading-world {
  position: relative;
  width: 8rem;
  height: 4.7rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.loading-world i {
  position: absolute;
  border-radius: 50%;
  background: var(--land);
  transform: rotate(-10deg);
}

.loading-world i:nth-child(1) {
  top: 0.65rem;
  left: 0.8rem;
  width: 2.75rem;
  height: 1.6rem;
}

.loading-world i:nth-child(2) {
  top: 1.25rem;
  left: 3.5rem;
  width: 3.35rem;
  height: 1.65rem;
}

.loading-world i:nth-child(3) {
  top: 2.7rem;
  left: 5rem;
  width: 1.3rem;
  height: 0.7rem;
}

.map-error,
.map-empty {
  position: absolute;
  z-index: 12;
  width: min(21rem, calc(100% - 2rem));
  padding: 1.2rem;
  border-radius: var(--radius-card);
}

.map-error {
  top: 50%;
  left: 50%;
  text-align: center;
  transform: translate(-50%, -50%);
}

.map-empty {
  top: 7.4rem;
  left: 50%;
  transform: translateX(-50%);
}

.map-error strong,
.map-empty strong {
  font-size: 0.95rem;
}

.map-error p,
.map-empty p {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.map-error .primary-button {
  margin: 1rem auto 0;
}

[hidden] {
  display: none !important;
}

.detail-sheet {
  position: absolute;
  top: 50%;
  right: 1.15rem;
  z-index: 18;
  width: min(23rem, calc(100% - 2.3rem));
  max-height: calc(100% - 8.5rem);
  overflow: auto;
  border-radius: var(--radius-card);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(100% + 2.4rem), -50%, 0) scale(0.96);
  transform-origin: right center;
  transition: opacity 220ms ease, transform 460ms cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 460ms ease;
  scrollbar-width: thin;
}

.detail-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, -50%, 0) scale(1);
}

.sheet-grabber {
  display: none;
}

.sheet-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(17, 31, 27, 0.68);
  color: #f3f7f5;
  font-size: 0.72rem;
  font-weight: 720;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.sheet-media {
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: var(--surface-soft);
}

.sheet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity 330ms ease, transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-sheet.is-open .sheet-media img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.sheet-body {
  padding: 1.25rem 1.35rem 1.35rem;
}

.sheet-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.8rem;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 680;
}

.sheet-country {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 650;
}

.sheet-body h3 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 680;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.sheet-description {
  margin: 0.8rem 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.65;
}

.sheet-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0 1.1rem;
}

.sheet-meta div {
  padding: 0.75rem;
  border-radius: 0.9rem;
  background: var(--surface-soft);
}

.sheet-meta small,
.sheet-meta b {
  display: block;
}

.sheet-meta small {
  color: var(--text-soft);
  font-size: 0.63rem;
}

.sheet-meta b {
  margin-top: 0.16rem;
  font-size: 0.8rem;
  font-weight: 720;
}

.primary-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-text);
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.destination-dock {
  position: relative;
  z-index: 7;
  display: grid;
  grid-row: 3;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(61rem, calc(100% - 2rem));
  margin: -1.65rem auto 1rem;
  padding: 0.35rem;
  border-radius: var(--radius-card);
}

.destination-button {
  display: flex;
  min-width: 0;
  min-height: 4.25rem;
  align-items: center;
  gap: 0.72rem;
  padding: 0.7rem 0.9rem;
  border: 0;
  border-radius: 1.25rem;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.destination-button:hover,
.destination-button.is-active {
  background: var(--surface-solid);
}

.destination-button .status-dot {
  width: 0.7rem;
  height: 0.7rem;
}

.destination-button span,
.destination-button b,
.destination-button small {
  display: block;
  min-width: 0;
}

.destination-button b {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.destination-button small {
  margin-top: 0.12rem;
  color: var(--text-soft);
  font-size: 0.67rem;
}

.site-footer {
  display: flex;
  grid-row: 4;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 1800px);
  min-height: 4rem;
  margin: 0 auto;
  padding: 0 0.45rem;
  color: var(--text-soft);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

.noscript-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 90;
  padding: 1rem;
  border-radius: 1rem;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  color: var(--text);
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: reveal-down 700ms 90ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero-copy > * {
    animation: reveal-up 760ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .hero-copy > :nth-child(1) {
    animation-delay: 110ms;
  }

  .hero-copy > :nth-child(2) {
    animation-delay: 180ms;
  }

  .hero-copy > :nth-child(3) {
    animation-delay: 260ms;
  }

  .map-shell {
    animation: map-arrive 980ms 100ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .destination-dock {
    animation: reveal-up 750ms 420ms both cubic-bezier(0.16, 1, 0.3, 1);
  }

  .map-marker[data-state="planned"] .marker-pulse,
  .map-marker[data-state="guide"] .marker-pulse {
    animation: marker-pulse 2.8s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  }

  .loading-world::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 34%, rgba(255, 255, 255, 0.48) 50%, transparent 66%);
    content: "";
    animation: loading-sheen 1.5s ease-in-out infinite;
  }
}

@keyframes reveal-down {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes map-arrive {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes marker-pulse {
  0% { opacity: 0.42; transform: scale(0.8); }
  72%, 100% { opacity: 0; transform: scale(2.25); }
}

@keyframes loading-sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@media (max-width: 1120px) {
  :root[data-atlas-level="country"] .hero-copy,
  :root[data-atlas-level="region"] .hero-copy {
    display: none;
  }

  .atlas {
    grid-template-rows: auto auto minmax(650px, 72dvh) auto auto;
  }

  .hero-copy {
    grid-row: 2;
    width: min(44rem, 100% - 2rem);
    margin: 1.5rem 1rem 1.2rem;
  }

  .hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
  }

  .map-shell {
    grid-row: 3;
    min-height: 650px;
  }

  .map-toolbar {
    width: calc(100% - 2.3rem);
  }

  .destination-dock {
    grid-row: 4;
  }

  .site-footer {
    grid-row: 5;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 62px;
    --radius-map: 24px;
    --radius-card: 21px;
  }

  body {
    background: var(--bg);
  }

  .atlas {
    grid-template-rows: auto auto minmax(620px, 73dvh) auto auto;
    padding-right: max(0.55rem, env(safe-area-inset-right));
    padding-left: max(0.55rem, env(safe-area-inset-left));
  }

  .site-header {
    padding: 0 0.35rem;
  }

  .brand-name {
    font-size: 0.68rem;
  }

  .updated {
    display: none;
  }

  .theme-toggle-label {
    display: none;
  }

  .hero-copy {
    width: calc(100% - 1.2rem);
    margin: 1.25rem 0.6rem 1.1rem;
  }

  .eyebrow {
    margin-bottom: 0.62rem;
    font-size: 0.62rem;
  }

  .hero-copy h1 {
    max-width: 11.5ch;
    font-size: clamp(2.65rem, 13vw, 4.5rem);
    line-height: 1;
  }

  .lede {
    margin-top: 0.8rem;
    font-size: 0.9rem;
  }

  .map-shell {
    min-height: 620px;
  }

  .map-toolbar {
    top: 0.68rem;
    right: 0.68rem;
    left: 0.68rem;
    display: block;
    width: auto;
    min-height: auto;
    padding: 0.7rem;
  }

  .map-toolbar > div:first-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0 0.2rem 0.5rem;
  }

  .map-toolbar p {
    margin: 0;
    white-space: nowrap;
  }

  .filter-group {
    margin-right: -0.2rem;
    padding-bottom: 0.08rem;
  }

  .filter-button {
    min-height: 2.75rem;
    padding: 0 0.72rem;
  }

  #world-map {
    top: 2.9rem;
    height: calc(100% - 2.9rem);
  }

  .zoom-controls {
    right: 0.72rem;
    bottom: 0.72rem;
    grid-template-columns: 2.55rem 2.55rem;
  }

  .map-frame.has-detail .zoom-controls {
    right: 0.72rem;
    opacity: 0;
    pointer-events: none;
  }

  .reset-button {
    grid-column: 1 / -1;
    min-height: 2.25rem;
  }

  .map-footer {
    bottom: 0.92rem;
    left: 0.95rem;
  }

  .travel-stats {
    gap: 0.9rem;
  }

  .gesture-hint {
    display: none;
  }

  .detail-sheet {
    top: auto;
    right: 0.68rem;
    bottom: 0.68rem;
    left: 0.68rem;
    width: auto;
    max-height: calc(100% - 7.25rem);
    transform: translate3d(0, calc(100% + 1.4rem), 0) scale(0.98);
    transform-origin: bottom center;
    background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
    -webkit-backdrop-filter: blur(32px) saturate(140%);
    backdrop-filter: blur(32px) saturate(140%);
  }

  .detail-sheet.is-open {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .sheet-grabber {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
  display: block;
  width: 4.75rem;
  height: 2.75rem;
    background: transparent;
    cursor: grab;
    touch-action: none;
    transform: translateX(-50%);
  }

  .sheet-grabber::after {
    content: "";
    position: absolute;
    top: 0.45rem;
    left: 50%;
    width: 2.8rem;
    height: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    transform: translateX(-50%);
  }

  .sheet-grabber:active {
    cursor: grabbing;
  }

  .sheet-media {
    aspect-ratio: 16 / 7.5;
  }

  .sheet-body {
    padding: 1rem 1rem 1.05rem;
  }

  .sheet-body h3 {
    font-size: 2rem;
  }

  .sheet-description {
    font-size: 0.8rem;
  }

  .sheet-meta {
    margin: 0.82rem 0;
  }

  .destination-dock {
    display: flex;
    width: calc(100% - 1.1rem);
    margin-top: -1.15rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .destination-dock::-webkit-scrollbar {
    display: none;
  }

  .destination-button {
    flex: 0 0 8.8rem;
    min-height: 4rem;
    scroll-snap-align: start;
  }

  .site-footer {
    padding: 0 0.35rem;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: clamp(2.45rem, 13vw, 3.5rem);
  }

  .map-toolbar h2 {
    font-size: 0.8rem;
  }

  .map-toolbar p {
    font-size: 0.65rem;
  }

  .map-frame {
    border-radius: 20px;
  }

  .travel-stats div:nth-child(2) {
    display: none;
  }

  .site-footer p:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .map-marker .marker-pulse {
    display: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .glass-web-approx,
  .sheet-close {
    background: var(--surface-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --hairline: color-mix(in srgb, var(--text) 52%, transparent);
    --glass-edge: color-mix(in srgb, var(--text) 52%, transparent);
  }

  .glass-web-approx,
  .map-frame {
    border-width: 2px;
  }

  .country {
    stroke: var(--text);
    stroke-width: 1;
  }
}

/* Hierarchical Asia atlas */
.hero-copy {
  transition: opacity 380ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-atlas-level="country"] .hero-copy,
:root[data-atlas-level="region"] .hero-copy {
  opacity: 0;
  transform: translate3d(-1.5rem, 0, 0) scale(0.98);
}

.map-toolbar {
  width: min(61rem, 68vw);
  transition: right 460ms cubic-bezier(0.16, 1, 0.3, 1), width 460ms cubic-bezier(0.16, 1, 0.3, 1), opacity 220ms ease, transform 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 761px) {
  .map-shell.has-detail-panel .map-toolbar {
    right: 25.25rem;
    width: min(42rem, calc(100% - 27.5rem));
  }
}

.map-heading {
  min-width: 9.5rem;
}

.map-toolbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.breadcrumbs ol,
.breadcrumbs {
  margin: 0;
  padding: 0;
}

.breadcrumbs ol {
  display: flex;
  max-width: 22rem;
  align-items: center;
  gap: 0.2rem;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.breadcrumbs ol::-webkit-scrollbar {
  display: none;
}

.breadcrumbs li {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 0.2rem;
  color: var(--text-faint);
  content: "/";
  font-size: 0.66rem;
}

.breadcrumb-button,
.search-toggle,
.back-button,
.text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.breadcrumb-button {
  min-height: 1.5rem;
  padding: 0 0.12rem;
  color: var(--text-soft);
  font-size: 0.65rem;
  font-weight: 680;
  white-space: nowrap;
}

.breadcrumb-button:hover,
.breadcrumb-button.is-current {
  color: var(--text);
}

.breadcrumb-button.is-current {
  cursor: default;
}

.search-toggle {
  flex: 0 0 auto;
  min-height: 2.6rem;
  padding: 0 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 66%, transparent);
  color: var(--text);
  font-size: 0.73rem;
  font-weight: 720;
  white-space: nowrap;
}

.search-toggle:hover {
  background: var(--surface-solid);
}

.status-mixed {
  background: linear-gradient(135deg, var(--visited) 0 48%, var(--guide) 52% 100%);
}

.map-frame[data-level="asia"] .country:not(.is-asia-context) {
  opacity: 0.12;
}

.map-frame[data-level="country"] .country,
.map-frame[data-level="region"] .country {
  opacity: 0.05;
  pointer-events: none;
}

.map-frame[data-level="country"] .country.is-highlighted,
.map-frame[data-level="region"] .country.is-highlighted {
  opacity: 0.18;
}

.admin-region {
  fill: var(--land);
  stroke: color-mix(in srgb, var(--text) 68%, var(--sea));
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 360ms cubic-bezier(0.16, 1, 0.3, 1), opacity 360ms cubic-bezier(0.16, 1, 0.3, 1), stroke-width 180ms ease, filter 260ms ease;
}

.admin-region[data-state="visited"] {
  fill: var(--visited);
}

.admin-region[data-state="planned"] {
  fill: var(--planned);
}

.admin-region[data-state="guide"] {
  fill: var(--guide);
}

.admin-region[data-state="mixed"] {
  fill: url(#mixed-visited-guide-light);
}

:root[data-theme="dark"] .admin-region[data-state="mixed"] {
  fill: url(#mixed-visited-guide-dark);
}

.admin-region:hover,
.admin-region:focus-visible,
.admin-region.is-highlighted {
  stroke: var(--text);
  stroke-width: 3;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--text) 28%, transparent));
}

.admin-region.is-muted {
  opacity: 0.2;
}

.map-frame[data-level="region"] .admin-region:not(.is-highlighted) {
  opacity: 0.22;
}

.map-frame[data-level="region"] .admin-region:not(.is-highlighted):hover,
.map-frame[data-level="region"] .admin-region:not(.is-highlighted):focus-visible {
  opacity: 0.55;
}

.city-marker {
  color: var(--unvisited);
  cursor: pointer;
  outline: none;
}

.city-marker[data-tier="2"] .marker-ring {
  opacity: 0.32;
}

.city-marker[data-tier="3"] .marker-ring {
  opacity: 0.2;
}

.city-marker[data-tier="3"] .marker-core {
  transform: scale(0.72);
}

.city-marker[data-tier="3"]:hover .marker-core,
.city-marker[data-tier="3"]:focus-visible .marker-core,
.city-marker[data-tier="3"].is-active .marker-core {
  transform: scale(1.24);
}

.micro-country {
  color: var(--unvisited);
  cursor: pointer;
  outline: none;
}

.micro-country:hover .marker-core,
.micro-country:focus-visible .marker-core {
  transform: scale(1.42);
}

.micro-country.is-muted {
  pointer-events: none;
}

.micro-country.is-muted .marker-core,
.micro-country.is-muted .marker-ring,
.micro-country.is-muted .marker-label-bg,
.micro-country.is-muted .marker-label {
  opacity: 0.14;
}

.map-frame[data-level="country"] .micro-country,
.map-frame[data-level="region"] .micro-country {
  opacity: 0;
  pointer-events: none;
}

.city-marker[data-state="visited"] {
  color: var(--visited);
}

.city-marker[data-state="planned"] {
  color: var(--planned);
}

.city-marker[data-state="guide"] {
  color: var(--guide);
}

.city-marker[data-state="mixed"] {
  color: var(--visited);
}

.city-marker:hover .marker-core,
.city-marker:focus-visible .marker-core,
.city-marker.is-active .marker-core {
  transform: scale(1.42);
}

.city-marker.is-muted {
  pointer-events: none;
}

.city-marker.is-muted .marker-core,
.city-marker.is-muted .marker-ring,
.city-marker.is-muted .marker-label-bg,
.city-marker.is-muted .marker-label {
  opacity: 0.14;
}

.city-marker.is-label-hidden .marker-label,
.city-marker.is-label-hidden .marker-label-bg {
  opacity: 0;
  pointer-events: none;
}

.city-marker.is-label-hidden:hover .marker-label,
.city-marker.is-label-hidden:hover .marker-label-bg,
.city-marker.is-label-hidden:focus-visible .marker-label,
.city-marker.is-label-hidden:focus-visible .marker-label-bg {
  opacity: 1;
}

.map-route {
  fill: none;
  stroke: var(--visited);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 9 7;
  vector-effect: non-scaling-stroke;
  opacity: 0.84;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px color-mix(in srgb, var(--visited) 28%, transparent));
}

.map-route[data-state="guide"] {
  stroke: var(--guide);
}

.map-route[data-state="planned"] {
  stroke: var(--planned);
}

.map-route.is-muted {
  opacity: 0.08;
}

@media (prefers-reduced-motion: no-preference) {
  .map-route {
    animation: route-arrive 1100ms both cubic-bezier(0.16, 1, 0.3, 1);
    stroke-dasharray: var(--route-length) var(--route-length);
  }
}

@keyframes route-arrive {
  from {
    opacity: 0;
    stroke-dashoffset: var(--route-length);
  }
  to {
    opacity: 0.84;
    stroke-dashoffset: 0;
  }
}

.map-notice {
  position: absolute;
  top: 7.25rem;
  left: 50%;
  z-index: 22;
  width: min(21rem, calc(100% - 2rem));
  padding: 0.9rem 1rem;
  border-radius: var(--radius-card);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -0.8rem, 0) scale(0.97);
  transition: opacity 220ms ease, transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.map-notice.is-visible {
  opacity: 1;
  transform: translate3d(-50%, 0, 0) scale(1);
}

.map-notice strong,
.map-notice p {
  display: block;
}

.map-notice strong {
  font-size: 0.86rem;
}

.map-notice p {
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  font-size: 0.74rem;
}

.zoom-controls {
  grid-template-columns: auto 2.75rem 2.75rem auto;
}

.back-button {
  min-height: 2.7rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 720;
}

.back-button:hover {
  background: var(--surface-solid);
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sheet-actions .primary-button.is-secondary {
  border: 1px solid var(--hairline);
  background: var(--surface-solid);
  box-shadow: none;
  color: var(--text);
}

.sheet-empty-action {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  margin: 0;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 680;
}

.detail-sheet.has-no-media {
  padding-top: 2.9rem;
}

.detail-sheet.has-no-media .sheet-media {
  display: none;
}

.explorer-panel {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 26;
  display: flex;
  width: min(25rem, calc(100% - 2.3rem));
  flex-direction: column;
  padding: 1rem;
  border-radius: var(--radius-card);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(calc(100% + 2.4rem), 0, 0) scale(0.98);
  transform-origin: right center;
  transition: opacity 220ms ease, transform 460ms cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 460ms ease;
}

.explorer-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.explorer-grabber {
  display: none;
}

.explorer-header {
  display: flex;
  min-height: 3.35rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0.1rem 0.75rem;
}

.explorer-header p,
.explorer-header h3 {
  margin: 0;
}

.explorer-header p {
  color: var(--text-soft);
  font-size: 0.65rem;
  font-weight: 680;
}

.explorer-header h3 {
  margin-top: 0.15rem;
  font-size: 1.42rem;
  letter-spacing: -0.04em;
}

.explorer-header .sheet-close {
  position: static;
  flex: 0 0 auto;
}

.search-field {
  display: grid;
  gap: 0.38rem;
}

.search-field span {
  color: var(--text-soft);
  font-size: 0.67rem;
  font-weight: 680;
}

.search-field input {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.92rem;
  border: 1px solid var(--hairline);
  border-radius: 0.95rem;
  outline: none;
  background: var(--surface-solid);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
}

.search-field input::placeholder {
  color: color-mix(in srgb, var(--text-soft) 80%, transparent);
}

.search-field input:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.explorer-meta {
  display: flex;
  min-height: 2.45rem;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.12rem;
}

.explorer-meta p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.67rem;
}

.text-button {
  min-height: 2rem;
  padding: 0 0.25rem;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 720;
}

.explorer-results {
  display: grid;
  min-height: 0;
  flex: 1;
  align-content: start;
  gap: 0.28rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.08rem 0.1rem 0.25rem;
  scrollbar-width: thin;
}

.explorer-result {
  display: grid;
  grid-template-columns: 3.15rem minmax(0, 1fr) auto;
  min-height: 3.7rem;
  align-items: center;
  gap: 0.72rem;
  padding: 0.58rem 0.7rem;
  border: 0;
  border-radius: 0.95rem;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.explorer-result:hover,
.explorer-result:focus-visible {
  background: var(--surface-solid);
}

.result-type {
  display: grid;
  min-height: 1.75rem;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 0.7rem;
  color: var(--text-soft);
  font-size: 0.62rem;
  font-weight: 700;
}

.result-copy,
.result-copy b,
.result-copy small {
  display: block;
  min-width: 0;
}

.result-copy b {
  overflow: hidden;
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-copy small {
  overflow: hidden;
  margin-top: 0.14rem;
  color: var(--text-soft);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-empty {
  padding: 2.4rem 1rem;
  color: var(--text);
  text-align: center;
}

.explorer-empty strong {
  font-size: 0.86rem;
}

.explorer-empty p {
  margin: 0.38rem 0 0;
  color: var(--text-soft);
  font-size: 0.72rem;
}

.destination-dock {
  display: block;
  width: min(74rem, calc(100% - 2rem));
  overflow: hidden;
}

.dock-items {
  display: flex;
  gap: 0.22rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.dock-items::-webkit-scrollbar {
  display: none;
}

.dock-items .destination-button {
  flex: 0 0 12rem;
  scroll-snap-align: start;
}

.site-footer a {
  color: inherit;
  text-decoration-color: var(--hairline);
  text-underline-offset: 0.2em;
}

@media (max-width: 980px) {
  .map-toolbar {
    width: min(50rem, calc(100% - 2.3rem));
  }

  .map-toolbar-actions {
    max-width: 68%;
  }
}

@media (max-width: 760px) {
  :root[data-atlas-level="country"] .hero-copy,
  :root[data-atlas-level="region"] .hero-copy {
    display: none;
  }

  .map-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.52rem;
    padding: 0.68rem;
  }

  .map-heading {
    display: block !important;
    min-width: 0;
    padding: 0 0.15rem !important;
  }

  .map-heading h2 {
    margin-top: 0.12rem;
  }

  .map-heading > p {
    display: none;
  }

  .map-toolbar-actions {
    display: contents;
    max-width: none;
  }

  .search-toggle {
    grid-column: 2;
    grid-row: 1;
    min-height: 2.75rem;
    padding: 0 0.72rem;
  }

  .filter-group {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .breadcrumbs ol {
    max-width: 13rem;
  }

  .zoom-controls {
    grid-template-columns: auto 2.55rem 2.55rem auto;
  }

  .reset-button,
  .back-button {
    grid-column: auto;
    min-height: 2.75rem;
    padding: 0 0.72rem;
  }

  .zoom-button {
    min-height: 2.75rem;
  }

  .map-notice {
    top: 8.2rem;
  }

  .explorer-panel {
    top: auto;
    right: 0.68rem;
    bottom: 0.68rem;
    left: 0.68rem;
    width: auto;
    max-height: calc(100% - 1.36rem);
    padding: 1.05rem 0.8rem 0.8rem;
    background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
    transform: translate3d(0, calc(100% + 1.4rem), 0) scale(0.98);
    transform-origin: bottom center;
  }

  .explorer-panel.is-open {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .explorer-grabber {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 3;
  display: block;
  width: 5rem;
  height: 2.75rem;
    background: transparent;
    cursor: grab;
    touch-action: none;
    transform: translateX(-50%);
  }

  .explorer-grabber::after {
    position: absolute;
    top: 0.45rem;
    left: 50%;
    width: 2.8rem;
    height: 0.3rem;
    border-radius: 999px;
    background: var(--text-faint);
    content: "";
    transform: translateX(-50%);
  }

  .explorer-header {
    padding-top: 0.55rem;
  }

  .destination-dock {
    width: calc(100% - 1.1rem);
  }

  .dock-items .destination-button {
    flex-basis: 9.4rem;
  }

  .city-marker .marker-hit {
    r: 31px;
  }
}

@media (max-width: 430px) {
  .breadcrumbs ol {
    max-width: 9rem;
  }

  .search-toggle {
    font-size: 0.68rem;
  }

  .zoom-controls {
    left: 0.72rem;
    right: auto;
  }

  .map-footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .city-marker .marker-pulse,
  .map-route {
    animation: none !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .explorer-panel,
  .map-notice {
    background: var(--surface-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .admin-region {
    stroke: var(--text);
    stroke-width: 2.2;
  }

  .admin-region:hover,
  .admin-region:focus-visible,
  .admin-region.is-highlighted {
    stroke-width: 3.4;
  }
}
