:root {
  --sea:#176b70;
  --ink:#143d43;
  --muted:#50686b;
  --page:#f4f8f8;
  --paper:#fff;
  --line:#d6e3e3;
  --flower:#f2cb57;
  --soft:#e6f1f1;
  --header-height:72px;
  font-family:
    "Paperlogy",
    "Malgun Gothic",
    sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: var(--sea);
}
[hidden] {
  display: none !important;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--sea);
  outline-offset: 3px;
}
.sr-only,
.svg-definitions {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 30;
  left: 16px;
  top: -100px;
  background: var(--paper);
  padding: 12px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.back-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
}
.brand-mark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.06em;
  color: var(--sea);
}
.brand-copy,
.header-hint {
  font-size: 13px;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  height: calc(100dvh - var(--header-height));
  min-height: 600px;
  padding: 12px 0 12px 12px;
  gap: 12px;
}
.map-stage {
  --place-panel-width:min(352px,43%);
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #b8dcdf;
  border-radius: 24px;
  isolation: isolate;
}
.map-canvas {
  position: absolute;
  inset: 0;
}
.map-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.map-canvas canvas:focus-visible {
  outline: 3px solid var(--flower);
  outline-offset: -5px;
}
.world-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.map-topline {
  position: absolute;
  z-index: 3;
  top: 24px;
  left: 24px;
  max-width: calc(100% - 240px);
  pointer-events: none;
  padding: 0;
}
.map-topline h1 {
  font-size: clamp(23px, 2.2vw, 32px);
  line-height: 1.3;
  letter-spacing: -.055em;
  margin: 0 0 10px;
  font-weight: 800;
  text-shadow: 0 1px 14px #e4f8f6;
}
.map-topline p {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
  margin: 0 0 14px;
}
.map-guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  background: var(--paper);
  border-radius: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 3px 14px #143d4312;
}
.map-guide > span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sea);
  color: white;
  font-size: 12px;
  font-weight: 800;
}
.map-controls {
  position: absolute;
  z-index: 4;
  right: 18px;
  top: 18px;
  display: grid;
  gap: 8px;
  width: 154px;
}
.map-controls button,
.map-navigation button,
.map-pan summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #ffffffb3;
  border-radius: 10px;
  background: #fffffff5;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 3px 12px #143d4312;
}
.map-controls button:hover,
.map-navigation button:hover,
.map-pan summary:hover {
  background: var(--soft);
}
.map-controls button[aria-pressed=true] {
  background: var(--sea);
  border-color: var(--sea);
  color: white;
}
.map-mode-controls {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #fffffff0;
  border-radius: 13px;
}
.map-mode-controls button {
  flex: 1;
  padding: 0 5px;
  border: 0;
  box-shadow: none;
  gap: 5px;
  min-height: 40px;
}
.map-mode-controls svg {
  width: 17px;
}
.map-controls button:focus-visible,
.map-navigation button:focus-visible,
.map-pan summary:focus-visible {
  outline-color: var(--ink);
  box-shadow: 0 0 0 5px white;
}
.map-navigation {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 90px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.map-zoom {
  display: grid;
  padding: 3px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 3px 14px #143d4320;
}
.map-zoom button {
  border: 0;
  border-radius: 8px;
  width: 44px;
  box-shadow: none;
}
.map-zoom button + button {
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}
.map-pan {
  position: relative;
  order: -1;
}
.map-pan summary {
  width: 50px;
  min-height: 50px;
  list-style: none;
}
.map-pan summary::-webkit-details-marker {
  display: none;
}
.map-pan[open] summary {
  background: var(--sea);
  color: white;
}
.pan-buttons {
  position: absolute;
  bottom: 60px;
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 4px;
  padding: 7px;
  border-radius: 13px;
  background: #fffffff5;
  box-shadow: 0 4px 16px #143d4322;
}
.pan-buttons button:first-child {
  grid-column: 2;
}
.pan-buttons button:nth-child(2) {
  grid-column: 1;
}
.pan-buttons button:last-child {
  grid-column: 2;
}
.map-status {
  position: absolute;
  z-index: 3;
  left: 20px;
  bottom: 20px;
  margin: 0;
  max-width: calc(100% - 40px);
  padding: 10px 14px;
  border-radius: 10px;
  background: #143d43ee;
  color: white;
  font-size: 13px;
  line-height: 1.6;
  pointer-events: none;
}
.map-status:empty {
  display: none;
}
.map-instructions {
  position: absolute;
  z-index: 3;
  left: 20px;
  bottom: 72px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: #ffffffe6;
  color: var(--ink);
  font-size: 12px;
  pointer-events: none;
}
.model-note {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 6px 8px;
  color: var(--ink);
  font-size: 11px;
  background: #ffffffa8;
  border-radius: 5px;
}
.map-fallback {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: var(--soft);
  text-align: center;
}
.map-fallback strong {
  font-size: 22px;
}
.map-fallback span {
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.map-fallback a {
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 9px;
  background: var(--sea);
  color: white;
  text-decoration: none;
  font-weight: 700;
}
.explore-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--paper);
  border-radius: 22px 0 0 22px;
  overflow: hidden;
}
.explore-tools {
  padding: 24px 24px 0;
  flex: none;
  border-bottom: 1px solid var(--line);
}
.panel-intro h2 {
  font-size: 24px;
  letter-spacing: -.055em;
  line-height: 1.4;
  margin: 0 0 6px;
}
.panel-intro p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 0 13px;
  border: 1px solid #b8cdce;
  border-radius: 11px;
  background: var(--paper);
}
.search-field:focus-within {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px #176b7020;
}
.search-field svg {
  color: var(--sea);
  width: 18px;
}
.search-field input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}
.search-field input::placeholder {
  color: #647b7e;
}
.search-field input:focus-visible {
  outline: none;
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.filter-row label {
  flex: none;
  font-size: 13px;
  font-weight: 600;
}
.filter-row select {
  flex: 1;
  width: 0;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 9px;
  background: var(--page);
  color: var(--ink);
  font-size: 14px;
}
.filter-row button,
.empty-state button {
  min-height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--sea);
  font-weight: 700;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.explore-switch {
  display: flex;
  gap: 18px;
  margin-top: 20px;
}
.explore-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  flex: 1;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  padding: 7px 0;
}
.explore-switch svg {
  width: 18px;
}
.explore-switch button[aria-pressed=true] {
  border-color: var(--sea);
  color: var(--sea);
}
.explore-switch button > span {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--soft);
}
.result-count {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0;
  line-height: 1.6;
}
.explore-results {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #b7cccc transparent;
  padding: 4px 24px 24px;
  min-height: 0;
}
.place-list {
  display: grid;
}
.place-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 16px 2px;
  min-height: 80px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  cursor: pointer;
  transition: background .16s;
  color: var(--ink);
}
.place-item:hover {
  background: var(--page);
}
.place-item.is-active {
  background: var(--soft);
  box-shadow: inset 3px 0 0 var(--sea);
  padding-left: 10px;
  border-radius: 8px;
}
.place-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--sea);
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.place-icon[data-category=섬·지형] {
  background: #e3edf6;
  color: #275e83;
}
.place-icon[data-category=역사·문화] {
  background: #f6ead8;
  color: #805722;
}
.place-icon[data-category=평화·시민] {
  background: #ebe8f8;
  color: #62528d;
}
.place-icon[data-category=마을·교육] {
  background: #e9efda;
  color: #50612b;
}
.place-icon[data-category=음식] {
  background: #f9e6df;
  color: #995036;
}
.place-copy {
  flex: 1;
  min-width: 0;
}
.place-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.place-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.place-arrow {
  font-size: 24px;
  font-weight: 400;
  color: #6c8588;
}
.empty-state {
  padding: 24px 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}
.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}
.empty-state p {
  margin: 7px 0;
}
.reading-hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 14px 0 18px;
}
.resource-list {
  display: grid;
  gap: 16px;
}
.resource-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  padding: 18px;
}
.resource-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.resource-card h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 8px 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.resource-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 8px 0;
}
.resource-card .resource-question {
  color: var(--ink);
  font-weight: 600;
}
.resource-card a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
}
.panel-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.panel-footer p {
  margin: 0 0 12px;
}
.panel-footer > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}
.place-panel {
  position: absolute;
  z-index: 5;
  left: 10px;
  top: 10px;
  bottom: 10px;
  width: var(--place-panel-width);
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 0 5px 30px #143d4326;
  scrollbar-color: #b7cccc transparent;
}
.place-panel:focus {
  outline: none;
}
.place-dialog-close {
  position: sticky;
  float: right;
  top: 0;
  margin: -8px -8px 4px 8px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}
.place-dialog-close:hover {
  background: var(--soft);
}
.dialog-kicker {
  display: block;
  min-height: 36px;
  padding-top: 4px;
  color: var(--sea);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
}
.place-panel h2 {
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: -.055em;
  margin: 12px 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.dialog-description {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
  margin: 16px 0;
}
.dialog-address {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.schematic-note {
  padding: 12px;
  border-radius: 9px;
  background: var(--page);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.dialog-question {
  padding: 17px 16px;
  border-left: 4px solid var(--flower);
  border-radius: 0 10px 10px 0;
  background: #fcf7e6;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--ink);
}
.dialog-question-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #6d571c;
  font-weight: 700;
}
.dialog-next-title {
  margin: 26px 0 12px;
  font-size: 15px;
}
.dialog-actions,
.dialog-resources {
  display: grid;
  gap: 9px;
}
.dialog-action,
.dialog-resources a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  background: var(--paper);
  color: var(--sea);
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.dialog-action:hover,
.dialog-resources a:hover {
  background: var(--soft);
}
.dialog-action-primary {
  background: var(--sea);
  color: white;
  border-color: var(--sea);
}
.dialog-action-primary:hover {
  background: var(--ink);
  color: white;
}
.dialog-resources a {
  justify-content: flex-start;
  text-align: left;
  font-weight: 600;
}
.travel-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 0;
  padding: 6px 10px;
  border-radius: 7px;
  background: #fcf1c6;
  color: #6c5415;
  font-size: 12px;
  font-weight: 700;
}
.travel-badge::before {
  content: "…";
  font-size: 16px;
  line-height: 1;
}
.travel-badge[data-state=arrived] {
  background: var(--soft);
  color: var(--sea);
}
.travel-badge[data-state=arrived]::before {
  content: "✓";
}
.has-place-panel .map-canvas,
.has-place-panel .world-labels {
  left: calc(var(--place-panel-width) + 20px);
}
.has-place-panel .map-topline,
.has-place-panel .map-instructions {
  display: none;
}
.has-place-panel .map-status {
  left: calc(var(--place-panel-width) + 32px);
  max-width: calc(100% - var(--place-panel-width) - 44px);
}
.has-place-panel .model-note {
  display: none;
}
.world-label {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 5px solid transparent;
  border-radius: 50%;
  background: #155c54;
  background-clip: padding-box;
  color: white;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color .16s;
}
.world-label::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 9px #143d4340;
  pointer-events: none;
}
.world-label[data-schematic=true] {
  background-color: #356e8c;
}
.world-label:hover {
  background-color: var(--ink);
}
.world-label.is-active {
  background-color: var(--flower);
  color: var(--ink);
}
.world-label.is-active::after {
  box-shadow: 0 0 0 3px #f2cb574d, 0 3px 12px #143d4344;
}
.world-label:focus-visible {
  outline-color: var(--ink);
  outline-offset: 0;
  z-index: 2;
}
.world-label-number {
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.world-label-name {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 41px;
  transform: translateX(-50%);
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: normal;
  width: max-content;
  max-width: 210px;
  word-break: keep-all;
  pointer-events: none;
}
.world-label:hover .world-label-name,
.world-label:focus-visible .world-label-name,
.world-label.is-active .world-label-name {
  display: block;
}
.marker-leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.marker-leaders line {
  stroke: #fff;
  stroke-width: 1.5;
  stroke-opacity: .8;
}
.explorer-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 6px 10px;
  border: 1px solid white;
  border-radius: 7px;
  background: var(--flower);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}
@media (min-width: 1600px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 430px;
  }
  .explore-tools {
    padding: 30px 30px 0;
  }
  .explore-results {
    padding-inline: 30px;
  }
  .map-topline {
    top: 32px;
    left: 32px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .brand-copy {
    display: none;
  }
  .map-topline {
    top: 18px;
    left: 18px;
    max-width: calc(100% - 185px);
  }
  .map-topline h1 {
    font-size: 24px;
  }
  .map-topline p,
  .map-guide {
    display: none;
  }
  .map-controls {
    width: 140px;
    right: 12px;
    top: 12px;
  }
  .map-stage {
    --place-panel-width:46%;
  }
  .place-panel {
    padding: 18px;
  }
  .place-panel h2 {
    font-size: 22px;
  }
  .explore-tools {
    padding: 20px 18px 0;
  }
  .explore-results {
    padding-inline: 18px;
  }
  .panel-intro h2 {
    font-size: 22px;
  }
  .map-instructions,
  .model-note {
    display: none;
  }
  .has-place-panel .map-controls {
    width: 110px;
  }
  .has-place-panel .map-mode-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .has-place-panel .map-mode-controls button {
    gap: 3px;
  }
  .has-place-panel .map-mode-controls svg {
    display: none;
  }
}
@media (max-width: 700px) {
  :root {
    --header-height:64px;
  }
  .site-header {
    gap: 12px;
    padding: 0 16px;
  }
  .back-link {
    font-size: 13px;
  }
  .brand-mark {
    font-size: 20px;
  }
  .header-hint {
    display: none;
  }
  .layout {
    display: block;
    min-height: 0;
    height: auto;
    padding: 8px;
    gap: 0;
  }
  .map-stage {
    height: 54dvh;
    min-height: 350px;
    border-radius: 18px;
  }
  .map-topline {
    top: 17px;
    left: 16px;
    max-width: calc(100% - 128px);
  }
  .map-topline h1 {
    font-size: 23px;
    max-width: 170px;
    line-height: 1.5;
  }
  .map-controls,
  .has-place-panel .map-controls {
    top: 12px;
    right: 12px;
    left: auto;
    width: 104px;
    gap: 6px;
  }
  .map-mode-controls,
  .has-place-panel .map-mode-controls {
    display: flex;
    padding: 3px;
    gap: 2px;
  }
  .map-mode-controls button {
    gap: 0;
    min-height: 40px;
    font-size: 12px;
  }
  .map-mode-controls svg {
    display: none;
  }
  .map-controls button {
    font-size: 12px;
    gap: 5px;
  }
  .map-controls > button svg {
    width: 16px;
  }
  .map-navigation {
    bottom: 80px;
    right: 12px;
    gap: 7px;
  }
  .map-pan summary {
    width: 44px;
    min-height: 44px;
  }
  .map-zoom {
    padding: 0;
  }
  .map-zoom button {
    width: 44px;
  }
  .map-status {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    font-size: 12px;
    padding: 9px 11px;
  }
  .explore-panel {
    margin-top: 10px;
    border-radius: 17px;
    overflow: visible;
  }
  .explore-tools {
    padding: 23px 20px 0;
  }
  .panel-intro h2 {
    font-size: 24px;
  }
  .search-field {
    margin-top: 18px;
  }
  .explore-results {
    overflow: visible;
    padding: 0 20px 24px;
  }
  .place-item {
    min-height: 82px;
  }
  .place-copy small {
    font-size: 13px;
  }
  .result-count {
    font-size: 13px;
  }
  .map-stage.has-place-panel {
    height: calc(100dvh - var(--header-height) - 8px);
    min-height: 560px;
  }
  .has-place-panel .map-canvas,
  .has-place-panel .world-labels {
    left: 0;
    top: 0;
    bottom: auto;
    height: 55%;
  }
  .has-place-panel .place-panel {
    left: 0;
    top: 55%;
    bottom: 0;
    width: 100%;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    padding: 20px;
  }
  .has-place-panel .map-status {
    left: 12px;
    right: 12px;
    bottom: calc(45% + 8px);
    max-width: none;
  }
  .has-place-panel .map-navigation {
    bottom: calc(45% + 66px);
  }
  .place-panel h2 {
    font-size: 24px;
  }
  .place-dialog-close {
    margin: -7px -7px 4px 8px;
  }
  .dialog-kicker {
    font-size: 12px;
  }
  .place-panel .dialog-actions {
    grid-template-columns: 1fr;
  }
  .panel-footer {
    font-size: 13px;
  }
  .map-instructions {
    display: none;
  }
}
@media (max-width: 380px) {
  .explore-tools {
    padding-inline: 16px;
  }
  .explore-results {
    padding-inline: 16px;
  }
  .map-topline h1 {
    font-size: 21px;
  }
  .brand-mark {
    font-size: 18px;
  }
  .filter-row {
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .has-place-panel .map-canvas,
  .has-place-panel .world-labels {
    left: 0;
    top: 0;
    bottom: auto;
    height: 55%;
  }
  .has-place-panel .place-panel {
    left: 0;
    top: 55%;
    bottom: 0;
    width: 100%;
    padding: 20px;
    border-radius: 18px 18px 0 0;
  }
  .has-place-panel .map-status {
    left: 12px;
    right: 12px;
    bottom: calc(45% + 8px);
    max-width: none;
  }
  .has-place-panel .map-navigation {
    bottom: calc(45% + 66px);
  }
  .has-place-panel .map-controls {
    width: 110px;
  }
}
@media (max-width: 700px) {
  .map-topline {
    max-width: calc(100% - 32px);
  }
  .map-topline h1 {
    font-size: 22px;
    max-width: none;
  }
  .map-controls,
  .has-place-panel .map-controls {
    top: 64px;
    left: 12px;
    right: 12px;
    display: flex;
    width: auto;
    gap: 6px;
  }
  .map-controls > button {
    flex: 1;
    padding: 8px 5px;
  }
  .map-mode-controls {
    flex: 1.2;
  }
  .map-mode-controls button {
    flex: 1;
  }
  .has-place-panel .map-controls {
    top: 12px;
  }
}
/* Landscape detail stays in the scene; the interface only explains movement. */
.journey-progress{margin:12px 0 18px}.journey-progress>span{display:block;margin-bottom:7px;color:var(--muted);font-size:12px;line-height:1.6}.journey-progress progress{display:block;width:100%;height:5px;border:0;border-radius:10px;overflow:hidden;accent-color:var(--sea);background:var(--soft)}.journey-progress progress::-webkit-progress-bar{background:var(--soft);border-radius:10px}.journey-progress progress::-webkit-progress-value{background:var(--sea);border-radius:10px}.journey-progress progress::-moz-progress-bar{background:var(--sea);border-radius:10px}
.map-navigation #follow-explorer{padding:10px 13px;background:var(--ink);color:white;border-color:var(--ink);font-size:12px}.map-navigation #follow-explorer:hover{background:var(--sea)}
.world-label{background-color:#235f60}.world-label::after{box-shadow:0 2px 7px #143d4330}.world-label-name{font-size:12px;box-shadow:0 4px 12px #143d4330}.marker-leaders line{stroke-width:1.15;stroke-opacity:.6}.map-stage{background:#b6d5d6}.map-guide{box-shadow:none;border:1px solid #d6e3e3}.map-status{background:#143d43e8}
@media(max-width:700px){.map-controls>button{gap:3px;padding:7px 3px;font-size:11px}.map-controls>button svg{width:14px}.map-mode-controls{flex:1.12}.map-navigation #follow-explorer{position:absolute;right:0;bottom:102px;white-space:nowrap;min-width:158px}.has-place-panel .map-navigation #follow-explorer{bottom:102px}}
.map-topline{top:18px;left:18px;padding:16px 18px;background:#ffffffed;border:1px solid #ffffffb3;border-radius:16px;max-width:min(320px,calc(100% - 220px))}.map-topline h1{font-size:27px;line-height:1.35;margin:0 0 8px;text-shadow:none}.map-topline p{font-size:13px;line-height:1.75;margin:0 0 10px}.map-guide{padding:0;background:none;border:0;font-size:12px}.map-guide>span{background:var(--sea)}#ambient-toggle[aria-pressed=true]{background:#e6f1f1;color:var(--ink);border-color:#d6e3e3}
@media(max-width:1100px){.map-topline{padding:12px 14px;max-width:calc(100% - 185px)}.map-topline h1{font-size:22px;margin:0}}
@media(max-width:700px){.map-topline{top:10px;left:12px;padding:8px 12px;max-width:calc(100% - 24px);border-radius:10px}.map-topline h1{font-size:21px;line-height:1.4;margin:0}}
