:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --paper-strong: #ffffff;
  --ink: #161716;
  --muted: #686b62;
  --line: #d8d4ca;
  --forest: #225247;
  --teal: #26717a;
  --rust: #a44d37;
  --amber: #d6a13b;
  --blue: #2d5f91;
  --shadow: 0 20px 60px rgba(22, 23, 22, 0.14);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(34, 82, 71, 0.05) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(34, 82, 71, 0.04) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 48px 48px;
  color: var(--ink);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  background: rgba(247, 245, 239, 0.9);
  border-bottom: 1px solid rgba(216, 212, 202, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 0 42%, var(--ink) 42% 48%, transparent 48%),
    radial-gradient(circle at 50% 50%, var(--amber) 0 22%, transparent 23%);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.site-nav {
  position: relative;
  min-width: 0;
}

.mobile-nav-trigger {
  display: none;
}

.nav-button {
  min-width: 82px;
  padding: 8px 12px;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
  white-space: nowrap;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav-button:hover,
.nav-button:focus-visible {
  color: var(--ink);
  background: rgba(34, 82, 71, 0.08);
  outline: none;
}

.nav-button.is-active {
  color: #fff;
  background: var(--forest);
}

.site-header.is-compact-nav .site-nav {
  width: 100%;
}

.site-header.is-compact-nav {
  align-items: stretch;
  flex-direction: column;
}

.site-header.is-compact-nav .mobile-nav-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  color: var(--forest);
  border: 1px solid rgba(34, 82, 71, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, #eef5f1, #fbf4e7),
    var(--paper-strong);
  box-shadow: 0 12px 28px rgba(22, 23, 22, 0.08);
}

.mobile-nav-kicker,
.mobile-nav-trigger strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-nav-kicker {
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
}

.mobile-nav-trigger strong {
  color: var(--ink);
  font-size: 1.06rem;
}

.mobile-nav-chevron {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--forest);
  border-bottom: 2px solid var(--forest);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.site-header.is-compact-nav.is-nav-open .mobile-nav-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.site-header.is-compact-nav .top-nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-color: rgba(34, 82, 71, 0.28);
  background: var(--paper-strong);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: 50% 0;
  box-shadow: 0 18px 42px rgba(22, 23, 22, 0.16);
  transition:
    opacity 170ms ease,
    transform 170ms ease;
  pointer-events: none;
}

.site-header.is-compact-nav.is-nav-open .top-nav {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.site-header.is-compact-nav .nav-button {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  text-align: left;
  background: var(--paper-strong);
}

.site-header.is-compact-nav .nav-button:hover,
.site-header.is-compact-nav .nav-button:focus-visible {
  background: #eef5f1;
}

.site-header.is-compact-nav .nav-button.is-active {
  color: #fff;
  background: var(--forest);
}

@media (max-width: 700px) {
  html:not(.nav-layout-ready) .site-header {
    align-items: stretch;
    flex-direction: column;
  }

  html:not(.nav-layout-ready) .site-header .site-nav {
    position: relative;
    width: 100%;
  }

  html:not(.nav-layout-ready) .site-header .mobile-nav-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 12px;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    color: var(--forest);
    border: 1px solid rgba(34, 82, 71, 0.22);
    border-radius: var(--radius);
    background:
      linear-gradient(135deg, #eef5f1, #fbf4e7),
      var(--paper-strong);
    box-shadow: 0 12px 28px rgba(22, 23, 22, 0.08);
  }

  html:not(.nav-layout-ready) .site-header .top-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    display: grid;
    gap: 6px;
    padding: 8px;
    border-color: rgba(34, 82, 71, 0.28);
    background: var(--paper-strong);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: 50% 0;
    box-shadow: 0 18px 42px rgba(22, 23, 22, 0.16);
    pointer-events: none;
  }

  html:not(.nav-layout-ready) .site-header .nav-button {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    text-align: left;
    background: var(--paper-strong);
  }
}

.view {
  display: none;
  padding-top: 42px;
}

.view.is-active {
  display: block;
  animation: view-enter 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--rust);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 2.35rem;
  line-height: 1.08;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.65rem;
  line-height: 1.14;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.section-note {
  width: min(430px, 100%);
  margin-bottom: 2px;
  color: var(--muted);
  line-height: 1.65;
}

.photo-grid {
  column-count: 3;
  column-gap: 16px;
}

.photo-masonry-grid {
  display: grid;
  column-count: initial;
  grid-template-columns: repeat(var(--masonry-columns, 3), minmax(0, 1fr));
  gap: 16px;
}

.photo-masonry-column {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.photo-masonry-grid .photo-card {
  margin: 0;
}

.empty-state {
  grid-column: 1 / -1;
  column-span: all;
  margin: 0;
  padding: 28px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.photo-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 0 16px;
  overflow: hidden;
  padding: 0;
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  background: #222;
  box-shadow: 0 12px 30px rgba(22, 23, 22, 0.12);
  break-inside: avoid;
  transform: translateY(0);
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
  animation: card-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--item-index, 0) * 42ms);
}

.photo-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0b0d0c;
}

.photo-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.76) 100%);
}

.photo-card:hover img,
.photo-card:focus-visible img {
  transform: none;
}

.photo-card:hover {
  box-shadow: 0 18px 42px rgba(22, 23, 22, 0.2);
  transform: translateY(-3px);
}

.hdr-card {
  background: #080b0a;
}

.hdr-card::after {
  background:
    linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.84) 100%),
    radial-gradient(circle at 16% 14%, rgba(214, 161, 59, 0.2), transparent 34%);
}

.photo-card:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.photo-card-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 1;
  text-align: left;
}

.photo-card-caption strong,
.thumb-button strong {
  display: block;
  line-height: 1.25;
}

.photo-card-caption span,
.thumb-button span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.35;
}

.category-browser {
  display: grid;
  gap: 18px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.category-tabs button span {
  display: inline-grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  color: var(--forest);
  border-radius: 999px;
  background: rgba(34, 82, 71, 0.1);
  font-size: 0.78rem;
  font-weight: 800;
}

.category-tabs button:hover,
.category-tabs button:focus-visible {
  color: var(--forest);
  outline: 2px solid rgba(214, 161, 59, 0.52);
  outline-offset: 2px;
}

.category-tabs button.is-active {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.category-tabs button.is-active span {
  color: var(--forest);
  background: #fff;
}

.category-detail {
  display: grid;
  gap: 18px;
}

.category-summary {
  max-width: 760px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.category-summary h2 {
  margin-bottom: 8px;
}

.category-summary p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.map-layout {
  --map-panel-height: clamp(500px, 42vw, 680px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.map-stage {
  position: relative;
  height: var(--map-panel-height);
  min-height: 360px;
  max-height: 680px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(38, 113, 122, 0.2), transparent 40%),
    linear-gradient(0deg, rgba(34, 82, 71, 0.08) 0 2px, transparent 2px 100%),
    linear-gradient(90deg, rgba(34, 82, 71, 0.08) 0 2px, transparent 2px 100%),
    #edf1e7;
  background-size: auto, 64px 64px, 64px 64px, auto;
}

.map-stage::before,
.map-stage::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.map-stage::before {
  inset: 52px 9% auto 6%;
  height: 44%;
  border: 2px solid rgba(34, 82, 71, 0.24);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 42% 58% 47% 53% / 55% 50% 50% 45%;
  transform: rotate(-7deg);
}

.map-stage::after {
  right: 9%;
  bottom: 9%;
  width: 42%;
  height: 36%;
  border: 2px solid rgba(164, 77, 55, 0.22);
  border-left-color: transparent;
  border-radius: 52% 48% 58% 42% / 55% 45% 55% 45%;
  transform: rotate(11deg);
}

.map-label {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 6;
  max-width: 280px;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid rgba(216, 212, 202, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.map-label strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.amap-canvas,
.maplibre-canvas,
.map-stage .map-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.map-status {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9;
  transform: translate(-50%, -50%);
  max-width: min(380px, calc(100% - 48px));
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  text-align: center;
}

.map-status.is-hidden {
  display: none;
}

.map-status.is-error {
  color: #7b2f20;
  border-color: rgba(164, 77, 55, 0.34);
  background: rgba(255, 247, 242, 0.95);
}

.map-transition {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #fff;
  background: rgba(13, 15, 14, 0.38);
  backdrop-filter: blur(4px);
  animation: transition-fade 180ms ease both;
}

.map-transition strong,
.map-transition small {
  position: relative;
  z-index: 1;
}

.map-transition strong {
  font-size: 1.05rem;
}

.map-transition small {
  color: rgba(255, 255, 255, 0.82);
}

.transition-ring {
  position: absolute;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  animation: transition-ring 760ms ease-in-out both;
}

.is-transitioning .amap-canvas,
.is-transitioning .maplibre-canvas,
.is-transitioning .map-canvas {
  transform: scale(1.04);
  transition: transform 760ms ease;
}

.map-marker {
  position: absolute;
  z-index: 3;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 6px 16px rgba(22, 23, 22, 0.24);
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.map-marker:hover,
.map-marker:focus-visible {
  transform: scale(1.2);
  outline: none;
}

.map-marker.is-active {
  background: var(--forest);
}

.marker-label {
  position: absolute;
  left: 28px;
  top: 50%;
  min-width: 82px;
  transform: translateY(-50%);
  padding: 4px 8px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  white-space: nowrap;
  pointer-events: none;
}

.map-stage.is-world,
.map-stage.is-city {
  background:
    linear-gradient(115deg, rgba(38, 113, 122, 0.16), transparent 42%),
    linear-gradient(0deg, rgba(34, 82, 71, 0.07) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(34, 82, 71, 0.07) 0 1px, transparent 1px 100%),
    #eef2eb;
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.map-stage.is-world::before,
.map-stage.is-world::after,
.map-stage.is-city::before,
.map-stage.is-city::after {
  content: none;
}

.map-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.has-real-map .map-toolbar {
  pointer-events: none;
}

.has-real-map .map-toolbar button {
  pointer-events: auto;
}

.has-real-map .map-label {
  pointer-events: none;
}

.map-toolbar > span {
  padding: 8px 10px;
  border: 1px solid rgba(216, 212, 202, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.map-back-button,
.text-button {
  color: var(--forest);
  border: 1px solid rgba(34, 82, 71, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
}

.map-back-button {
  padding: 8px 10px;
}

.text-button {
  margin-bottom: 14px;
  padding: 8px 10px;
}

.map-back-button:hover,
.map-back-button:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  color: #fff;
  background: var(--forest);
  outline: none;
}

.world-map-shell,
.city-map-shell {
  position: absolute;
  inset: 54px 28px 42px;
  z-index: 0;
  border: 1px solid rgba(216, 212, 202, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.38);
  box-shadow: inset 0 0 80px rgba(34, 82, 71, 0.08);
  animation: map-zoom 260ms ease both;
}

.world-map-shell {
  display: grid;
  place-items: center;
  padding: 26px;
}

.world-outline {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 24px rgba(34, 82, 71, 0.1));
}

.world-outline path {
  fill: rgba(34, 82, 71, 0.18);
  stroke: rgba(34, 82, 71, 0.3);
  stroke-width: 3;
}

.city-map-shell {
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.32) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0 1px, transparent 1px 100%),
    #dde6df;
  background-size: 36px 36px;
}

.city-water,
.city-park,
.city-road,
.city-zone {
  position: absolute;
  pointer-events: none;
}

.city-water {
  right: -8%;
  bottom: -20%;
  width: 46%;
  height: 58%;
  border-radius: 50% 0 0 0;
  background: rgba(45, 95, 145, 0.2);
}

.city-park {
  border-radius: 52% 48% 58% 42%;
  background: rgba(34, 82, 71, 0.14);
}

.city-park-a {
  left: 9%;
  top: 17%;
  width: 24%;
  height: 22%;
  transform: rotate(-11deg);
}

.city-park-b {
  right: 18%;
  top: 18%;
  width: 20%;
  height: 18%;
  transform: rotate(14deg);
}

.city-road {
  height: 8px;
  border-radius: 999px;
  background: rgba(22, 23, 22, 0.12);
  transform-origin: center;
}

.road-a {
  left: 7%;
  top: 52%;
  width: 86%;
  transform: rotate(-8deg);
}

.road-b {
  left: 20%;
  top: 24%;
  width: 68%;
  transform: rotate(35deg);
}

.road-c {
  left: 16%;
  top: 74%;
  width: 62%;
  transform: rotate(18deg);
}

.road-d {
  left: 50%;
  top: 11%;
  width: 8px;
  height: 78%;
  background: rgba(22, 23, 22, 0.1);
  transform: rotate(8deg);
}

.city-zone {
  left: 31%;
  top: 34%;
  width: 32%;
  height: 30%;
  border: 1px dashed rgba(164, 77, 55, 0.28);
  border-radius: 48% 52% 45% 55%;
  background: rgba(214, 161, 59, 0.11);
}

.theme-mountain .city-park-a,
.theme-mountain .city-park-b {
  background: rgba(34, 82, 71, 0.2);
}

.theme-harbor .city-water,
.theme-coast .city-water {
  width: 58%;
  background: rgba(45, 95, 145, 0.28);
}

.theme-desert .city-map-shell {
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.26) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, transparent 1px 100%),
    #e4d1ad;
}

.theme-snow .city-map-shell {
  background:
    linear-gradient(0deg, rgba(151, 164, 166, 0.15) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(151, 164, 166, 0.15) 0 1px, transparent 1px 100%),
    #edf1ef;
}

.theme-city .city-zone,
.theme-street .city-zone {
  border-style: solid;
  background: rgba(164, 77, 55, 0.12);
}

.map-marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
}

.city-marker {
  background: var(--rust);
}

.spot-marker {
  background: var(--teal);
}

.marker-pulse {
  position: absolute;
  inset: -8px;
  border: 1px solid currentColor;
  border-radius: inherit;
  color: rgba(164, 77, 55, 0.34);
  animation: marker-pulse 1800ms ease-out infinite;
}

.spot-marker .marker-pulse {
  color: rgba(38, 113, 122, 0.34);
}

.marker-count {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.map-marker.is-active {
  background: var(--forest);
  transform: scale(1.12);
}

.real-map-marker {
  position: relative;
  appearance: none;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  font: inherit;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 8px 18px rgba(22, 23, 22, 0.28);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
  will-change: transform;
}

.real-map-marker:hover,
.real-map-marker.is-active {
  box-shadow:
    0 0 0 4px rgba(214, 161, 59, 0.34),
    0 10px 22px rgba(22, 23, 22, 0.3);
}

.spot-real-marker {
  background: var(--teal);
}

.spot-real-marker.is-active {
  background: var(--forest);
}

.real-marker-pulse {
  position: absolute;
  inset: -8px;
  border: 1px solid currentColor;
  border-radius: inherit;
  color: rgba(164, 77, 55, 0.38);
  animation: marker-pulse 1800ms ease-out infinite;
}

.spot-real-marker .real-marker-pulse {
  color: rgba(38, 113, 122, 0.38);
}

.real-marker-count {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.real-marker-label {
  position: absolute;
  left: 32px;
  top: 50%;
  min-width: 72px;
  transform: translateY(-50%);
  padding: 4px 8px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.78rem;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(22, 23, 22, 0.12);
}

.city-marker[data-city-id="macau"] .marker-label {
  left: -38px;
  top: 34px;
}

.city-marker[data-city-id="sapporo"] .marker-label {
  left: -18px;
  top: -22px;
}

.city-marker[data-city-id="hong-kong"] .marker-label {
  top: -22px;
}

.city-marker[data-city-id="hangzhou"] .marker-label {
  left: 24px;
  top: 31px;
}

.city-marker[data-city-id="haixi"] .marker-label,
.city-marker[data-city-id="hotan"] .marker-label {
  left: -18px;
  top: -24px;
}

.panel-copy {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.city-list {
  display: grid;
  gap: 9px;
}

.city-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.city-card:hover,
.city-card:focus-visible {
  border-color: rgba(34, 82, 71, 0.38);
  background: rgba(34, 82, 71, 0.08);
  outline: none;
}

.city-card strong,
.city-card small {
  display: block;
}

.city-card small {
  margin-top: 4px;
  color: var(--muted);
}

.city-card-meta {
  color: var(--rust);
  font-size: 0.82rem;
  white-space: nowrap;
}

.spot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.spot-tabs button {
  padding: 7px 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.spot-tabs button:hover,
.spot-tabs button:focus-visible {
  color: var(--ink);
  border-color: rgba(34, 82, 71, 0.34);
  outline: none;
}

.spot-tabs button.is-active {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.spot-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.spot-detail-heading h3 {
  margin: 0;
}

.mobile-map-return {
  display: none;
  flex: 0 0 auto;
  padding: 7px 9px;
  color: var(--forest);
  border: 1px solid rgba(34, 82, 71, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.84);
}

.mobile-map-return:hover,
.mobile-map-return:focus-visible {
  color: #fff;
  background: var(--forest);
  outline: none;
}

@keyframes marker-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.7);
  }

  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes map-zoom {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes transition-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes transition-ring {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }

  55% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

.location-panel {
  height: var(--map-panel-height);
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  scrollbar-color: rgba(34, 82, 71, 0.34) transparent;
  scrollbar-width: thin;
}

.location-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.location-meta b {
  color: var(--ink);
}

.thumb-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  align-items: start;
}

.thumb-button {
  display: block;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  text-align: left;
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
  animation: card-enter 440ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--item-index, 0) * 32ms);
}

.thumb-button img {
  width: 100%;
  height: auto;
  border-radius: 0;
  background: #0b0d0c;
  object-fit: contain;
}

.thumb-button > span {
  display: block;
  padding: 10px 12px 12px;
}

.thumb-button:hover,
.thumb-button:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  box-shadow: 0 14px 34px rgba(22, 23, 22, 0.18);
}

.portrafix-promo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 18px;
  padding: 22px 58px 22px 24px;
  overflow: hidden;
  color: #f6fbff;
  border: 1px solid rgba(83, 194, 239, 0.35);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 12%, rgba(83, 194, 239, 0.26), transparent 34%),
    linear-gradient(135deg, #061b33 0%, #0b3c63 56%, #0f6fab 100%);
  box-shadow: 0 18px 46px rgba(6, 27, 51, 0.18);
}

.portrafix-promo[hidden] {
  display: none;
}

.portrafix-promo-logo {
  position: absolute;
  right: clamp(10px, 5vw, 60px);
  bottom: -46px;
  width: clamp(150px, 22vw, 260px);
  opacity: 0.12;
  pointer-events: none;
}

.portrafix-promo-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.portrafix-promo .eyebrow {
  color: #53c2ef;
}

.portrafix-promo h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
}

.portrafix-promo p:not(.eyebrow) {
  margin: 0 0 14px;
  color: rgba(246, 251, 255, 0.82);
  line-height: 1.75;
}

.portrafix-promo a {
  display: inline-flex;
  max-width: 100%;
  color: #fff;
  font-weight: 800;
  overflow-wrap: anywhere;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.portrafix-promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(8px);
}

.portrafix-promo-close:hover,
.portrafix-promo-close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.download-grid {
  display: grid;
  gap: 16px;
}

.download-tabs {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.download-tabs button {
  min-width: 108px;
  padding: 10px 14px;
  color: var(--muted);
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.download-tabs button:hover,
.download-tabs button:focus-visible {
  color: var(--forest);
  outline: none;
}

.download-tabs button.is-active {
  color: #fff;
  background: var(--forest);
}

.download-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.download-placeholder {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 36px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.download-placeholder h2 {
  margin-bottom: 10px;
}

.download-placeholder p:last-child {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.download-card p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.download-card h2 {
  overflow-wrap: anywhere;
}

.download-link-fallback {
  margin: 10px 0 0;
  padding: 10px;
  overflow-wrap: anywhere;
  color: var(--forest);
  border: 1px dashed rgba(34, 82, 71, 0.28);
  border-radius: 6px;
  background: rgba(247, 245, 239, 0.86);
  font-size: 0.88rem;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.pill {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(247, 245, 239, 0.8);
}

.primary-button {
  min-width: 94px;
  padding: 10px 14px;
  color: #fff;
  border: 0;
  border-radius: 6px;
  background: var(--forest);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--teal);
  outline: none;
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 240ms ease,
    visibility 0s linear 240ms;
}

.viewer.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.viewer-scrim {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 14, 0.78);
  opacity: 0;
  transition: opacity 260ms ease;
}

.viewer.is-open .viewer-scrim {
  opacity: 1;
}

.viewer-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(1500px, calc(100vw - 28px));
  height: min(940px, calc(100vh - 28px));
  height: min(940px, calc(100dvh - 28px));
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate3d(-50%, calc(-50% + 82px), 0) scale(0.96);
  transform-origin: 50% 82%;
  transition:
    opacity 220ms ease,
    transform 560ms cubic-bezier(0.16, 1.18, 0.3, 1);
}

.viewer.is-open .viewer-panel {
  opacity: 1;
  transform: translate3d(-50%, -50%, 0) scale(1);
}

.viewer-media {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  background: #080908;
}

.viewer-viewport {
  position: absolute;
  inset: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
  scrollbar-width: thin;
}

.viewer-stage {
  box-sizing: border-box;
  display: grid;
  min-width: 100%;
  min-height: 100%;
  padding: 32px 76px 76px;
  place-items: center;
}

.viewer-image-frame {
  position: relative;
  display: grid;
  width: min(100%, 960px);
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  place-items: center;
  border-radius: 4px;
  background: #050605;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.26);
  transition: opacity 180ms ease;
}

.viewer-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 32%, rgba(255, 255, 255, 0.12) 45%, transparent 58%),
    #050605;
  background-size: 220% 100%, auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  animation: viewer-loading-sweep 1050ms ease-in-out infinite;
}

.viewer-image-frame.is-loading::after {
  opacity: 1;
}

.viewer-image-frame.is-loading img {
  opacity: 0;
}

.viewer-image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  transition: opacity 160ms ease;
}

@keyframes viewer-loading-sweep {
  from {
    background-position: 140% 0, 0 0;
  }

  to {
    background-position: -60% 0, 0 0;
  }
}

.viewer-flight {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  display: block;
  object-fit: cover;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  will-change: transform, width, height, opacity;
}

.viewer-flight.is-visible {
  visibility: visible;
  opacity: 1;
}

.icon-button {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(22, 23, 22, 0.68);
  font-size: 1.6rem;
  line-height: 1;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(34, 82, 71, 0.95);
  outline: none;
}

.viewer-close {
  top: 18px;
  right: 18px;
}

.viewer-prev,
.viewer-next {
  top: 50%;
  transform: translateY(-50%);
}

.viewer-prev {
  left: 18px;
}

.viewer-next {
  right: 18px;
}

.viewer-zoom-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(20, 22, 21, 0.76);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.viewer-zoom-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  line-height: 1;
}

.viewer-zoom-reset {
  font-size: 1rem;
}

.viewer-zoom-button:hover,
.viewer-zoom-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(34, 82, 71, 0.95);
  outline: none;
}

.viewer-zoom-range {
  width: 120px;
  accent-color: var(--teal);
}

.viewer-zoom-label {
  min-width: 48px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.viewer-meta {
  overflow: auto;
  padding: 26px;
  background: var(--paper-strong);
}

.viewer-story {
  margin-bottom: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.meta-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.meta-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta-row dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.meta-row dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(420px, calc(100% - 44px));
  padding: 12px 14px;
  color: #fff;
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 900px) {
  .site-header,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
  }

  .nav-button {
    flex: 1;
  }

  .photo-grid {
    column-count: 2;
  }

  .download-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-layout,
  .viewer-panel {
    grid-template-columns: 1fr;
  }

  .map-layout {
    --map-panel-height: clamp(360px, 64vw, 520px);
  }

  .map-stage {
    max-height: 520px;
  }

  .location-panel {
    height: auto;
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }

  @media (orientation: portrait) {
    .mobile-map-return {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
  }

  .viewer-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80vh;
    height: 80dvh;
    max-height: 80vh;
    max-height: 80dvh;
    grid-template-rows: minmax(0, 58%) minmax(0, 42%);
    border-radius: 14px 14px 0 0;
    transform: translate3d(0, 108%, 0) scale(1);
    transform-origin: 50% 100%;
  }

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

  .viewer-stage {
    padding: 28px 64px 76px;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 10px;
  }

  h1 {
    font-size: 1.85rem;
  }

  .photo-grid {
    column-count: 1;
  }

  .download-card-list {
    grid-template-columns: 1fr;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .download-tabs {
    width: 100%;
  }

  .download-tabs button {
    flex: 1;
    min-width: 0;
  }

  .nav-button {
    min-width: 0;
    padding-inline: 6px;
  }

  .primary-button {
    width: 100%;
  }

  .viewer-stage {
    padding: 60px 16px 82px;
  }

  .viewer-prev {
    left: 10px;
  }

  .viewer-next {
    right: 10px;
  }

  .viewer-zoom-controls {
    right: 50%;
    bottom: 12px;
    gap: 6px;
    transform: translateX(50%);
  }

  .viewer-zoom-range {
    width: 86px;
  }

  .viewer-meta {
    padding: 20px;
  }

  .meta-row {
    grid-template-columns: 94px minmax(0, 1fr);
  }
}
