:root {
  --bg: #efe2cc;
  --panel: rgba(255, 248, 238, 0.8);
  --panel-strong: rgba(255, 250, 244, 0.94);
  --ink: #1d2319;
  --muted: #697260;
  --line: rgba(37, 44, 33, 0.12);
  --accent: #c86a35;
  --accent-deep: #8b4c28;
  --forest: #304e3f;
  --forest-soft: #597768;
  --sand: #d8b56a;
  --easy: #5d8d6b;
  --medium: #cb9540;
  --hard: #b45543;
  --shadow: 0 28px 70px rgba(55, 38, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 106, 53, 0.2), transparent 24%),
    radial-gradient(circle at 75% 15%, rgba(48, 78, 63, 0.18), transparent 22%),
    linear-gradient(180deg, #f7ecd9 0%, #ebddc7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 85%);
}

.page-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.hero,
.control-strip,
.map-panel,
.spotlight-card,
.results-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.85fr);
  gap: 24px;
  margin-bottom: 22px;
  padding: 24px;
}

.hero-copy,
.hero-panel {
  border-radius: 26px;
}

.hero-copy {
  position: relative;
  padding: 18px 12px 8px;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: 0;
  top: -24px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 181, 106, 0.42) 0%, transparent 72%);
  pointer-events: none;
}

.hero-panel {
  padding: 28px;
  background:
    radial-gradient(circle at top, rgba(216, 181, 106, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(41, 68, 55, 0.97), rgba(27, 46, 37, 0.98));
  color: #f6eadb;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent);
}

.panel-kicker {
  color: var(--forest-soft);
}

h1,
h2,
h3,
.place-name {
  font-family: "Noto Serif SC", serif;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.6rem, 4vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.hero-text {
  max-width: 58ch;
  margin: 18px 0 26px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats article {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(31, 42, 33, 0.08);
}

.hero-stats strong {
  display: block;
  font-size: 1.65rem;
  color: var(--forest);
}

.hero-stats span,
.hero-panel li,
.field span,
.place-copy,
.spotlight-copy,
.meta-chip,
.spotlight-grid dt {
  color: var(--muted);
}

.hero-panel p {
  margin: 0 0 14px;
  color: rgba(246, 234, 219, 0.72);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.hero-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-panel li {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 248, 236, 0.08);
  color: #f6eadb;
  line-height: 1.7;
}

.control-strip {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(140px, 0.7fr)) auto;
  gap: 14px;
  padding: 16px;
  margin-bottom: 24px;
}

.field {
  display: grid;
  gap: 10px;
}

.field span {
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select,
.ghost-btn {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(31, 42, 33, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font: inherit;
}

input,
select {
  padding: 14px 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input:focus,
select:focus {
  border-color: rgba(200, 106, 53, 0.6);
  box-shadow: 0 0 0 4px rgba(200, 106, 53, 0.12);
  transform: translateY(-1px);
}

.ghost-btn {
  width: auto;
  align-self: end;
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(250, 241, 228, 0.9));
}

.ghost-btn:hover {
  background: rgba(200, 106, 53, 0.08);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 420px);
  gap: 24px;
  align-items: start;
}

.map-panel,
.spotlight-card,
.results-panel {
  padding: 22px;
}

.detail-panel {
  display: grid;
  gap: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-header.compact {
  margin-bottom: 16px;
}

.legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.9rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(48, 78, 63, 0.08);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
}

.map-toolbar-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.easy {
  background: var(--easy);
}

.dot.medium {
  background: var(--medium);
}

.dot.hard {
  background: var(--hard);
}

.map-stage {
  position: relative;
  min-height: 760px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(31, 42, 33, 0.08);
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.55), transparent 36%),
    linear-gradient(180deg, #f8efdf 0%, #edd8b6 100%);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(76, 93, 79, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 93, 79, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
}

.china-map,
.map-spots,
.region-overlays {
  position: absolute;
  inset: 0;
}

.china-silhouette {
  fill: url(#terrainGradient);
  stroke: rgba(96, 67, 24, 0.72);
  stroke-width: 8;
  stroke-linejoin: round;
}

.china-shadow {
  fill: rgba(108, 130, 95, 0.2);
}

.province-boundaries path {
  fill: none;
  stroke: rgba(120, 99, 58, 0.42);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 10;
}

.island {
  fill: rgba(159, 127, 69, 0.52);
  stroke: rgba(96, 67, 24, 0.42);
  stroke-width: 3;
}

.map-spots,
.region-overlays {
  pointer-events: none;
}

.province-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.region-node,
.map-spot,
.province-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  padding: 0;
  pointer-events: auto;
  cursor: pointer;
}

.region-node {
  min-width: 170px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.74);
  border: 1px solid rgba(55, 68, 58, 0.1);
  box-shadow: 0 18px 34px rgba(48, 51, 33, 0.08);
  text-align: left;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

.region-node:hover,
.region-node.active {
  transform: translate(-50%, -52%);
  background: rgba(255, 249, 239, 0.94);
  box-shadow: 0 22px 42px rgba(48, 51, 33, 0.12);
}

.region-node.dimmed {
  opacity: 0.45;
}

.region-node-name,
.region-node-meta {
  display: block;
}

.region-node-name {
  margin-bottom: 6px;
  color: var(--ink);
  font-weight: 800;
}

.region-node-meta {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.province-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.82);
  border: 1px solid rgba(89, 76, 44, 0.12);
  box-shadow: 0 10px 24px rgba(48, 51, 33, 0.08);
  color: rgba(93, 70, 29, 0.72);
  opacity: 0.42;
  pointer-events: auto;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, color 180ms ease;
}

.province-tag.visible {
  opacity: 0.98;
  color: var(--accent-deep);
  background: rgba(255, 252, 246, 0.94);
}

.province-tag.active,
.province-tag:hover {
  transform: translate(-50%, -52%);
  background: rgba(255, 247, 233, 0.98);
  color: var(--ink);
}

.province-tag-name {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.province-tag-count {
  font-size: 0.72rem;
  color: var(--muted);
}

.map-spot-pulse,
.map-spot-core {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.map-spot-pulse {
  width: 32px;
  height: 32px;
  opacity: 0.26;
  animation: pulse 2.3s ease-out infinite;
}

.map-spot-core {
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255, 249, 240, 0.92);
  box-shadow: 0 8px 22px rgba(33, 39, 29, 0.22);
}

.map-spot.easy .map-spot-pulse,
.map-spot.easy .map-spot-core {
  background: var(--easy);
}

.map-spot.medium .map-spot-pulse,
.map-spot.medium .map-spot-core {
  background: var(--medium);
}

.map-spot.hard .map-spot-pulse,
.map-spot.hard .map-spot-core {
  background: var(--hard);
}

.map-spot-label {
  position: absolute;
  left: 18px;
  top: -11px;
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(34, 41, 32, 0.8);
  color: #fff6eb;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.map-spot:hover .map-spot-label,
.map-spot.active .map-spot-label {
  opacity: 1;
  transform: translateY(0);
}

.map-spot.active .map-spot-core {
  width: 20px;
  height: 20px;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.14), 0 12px 30px rgba(33, 39, 29, 0.3);
}

.terrain-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.terrain-label {
  position: absolute;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 246, 230, 0.44);
  color: rgba(93, 70, 29, 0.8);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.terrain-label-west {
  left: 11%;
  top: 56%;
}

.terrain-label-north {
  left: 56%;
  top: 14%;
}

.terrain-label-east {
  left: 69%;
  top: 39%;
}

.terrain-label-south {
  left: 60%;
  top: 72%;
}

.map-caption,
.map-compass {
  position: absolute;
  z-index: 2;
}

.map-caption {
  left: 22px;
  bottom: 22px;
  display: inline-flex;
  gap: 10px;
  align-items: baseline;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(28, 42, 34, 0.78);
  color: #f8f0e4;
}

.map-caption strong {
  font-size: 1.5rem;
}

.map-compass {
  right: 22px;
  top: 22px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(31, 42, 33, 0.12);
  background: rgba(255, 251, 245, 0.86);
  display: grid;
  place-items: center;
}

.map-compass span {
  position: absolute;
  top: 10px;
  font-weight: 800;
  color: var(--accent-deep);
}

.map-compass i {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(48, 78, 63, 0.9) 100%);
  transform: translateY(4px);
}

.spotlight-card {
  background:
    radial-gradient(circle at top left, rgba(200, 106, 53, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 245, 0.95), rgba(248, 242, 233, 0.98));
}

.spotlight-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.spotlight-badges,
.place-meta,
.place-topline,
.spotlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.spotlight-copy {
  margin: 16px 0 18px;
  line-height: 1.8;
}

.spotlight-grid {
  margin: 0;
  display: grid;
  gap: 14px;
}

.spotlight-grid div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(31, 42, 33, 0.07);
}

.spotlight-grid dt {
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.spotlight-grid dd {
  margin: 0;
  line-height: 1.6;
  font-weight: 600;
}

.spotlight-tags {
  margin-top: 18px;
}

.spotlight-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 42, 33, 0.08);
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
}

.spotlight-footer strong {
  font-size: 1.5rem;
  color: var(--forest);
}

.difficulty-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(48, 78, 63, 0.07);
  border: 1px solid rgba(48, 78, 63, 0.08);
}

.difficulty-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--forest);
}

.difficulty-note span {
  color: var(--muted);
  line-height: 1.7;
}

.results-list {
  display: grid;
  gap: 14px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.result-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(31, 42, 33, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 251, 245, 0.92));
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.result-card:hover,
.result-card.active {
  transform: translateY(-2px);
  border-color: rgba(200, 106, 53, 0.28);
  box-shadow: 0 16px 34px rgba(55, 38, 18, 0.1);
}

.place-topline {
  justify-content: space-between;
}

.place-name {
  margin: 0;
  font-size: 1.15rem;
}

.region-pill,
.difficulty-pill,
.season-pill,
.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.region-pill {
  background: rgba(48, 78, 63, 0.1);
  color: var(--forest);
}

.difficulty-pill.easy {
  background: rgba(93, 141, 107, 0.14);
  color: var(--easy);
}

.difficulty-pill.medium {
  background: rgba(203, 149, 64, 0.14);
  color: var(--medium);
}

.difficulty-pill.hard {
  background: rgba(180, 85, 67, 0.14);
  color: var(--hard);
}

.season-pill {
  background: rgba(216, 181, 106, 0.18);
  color: #94661d;
}

.meta-chip {
  background: rgba(31, 42, 33, 0.05);
}

.place-copy {
  margin: 12px 0 14px;
  line-height: 1.7;
  font-size: 0.95rem;
}

.empty-state {
  padding: 32px 18px;
  border-radius: 22px;
  border: 1px dashed rgba(31, 42, 33, 0.18);
  text-align: center;
  line-height: 1.7;
  color: var(--muted);
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.32;
  }

  70% {
    transform: translate(-50%, -50%) scale(1.55);
    opacity: 0;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.55);
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .hero,
  .app-grid {
    grid-template-columns: 1fr;
  }

  .control-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ghost-btn {
    width: 100%;
  }

  .results-list {
    max-height: none;
  }

  .map-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .map-toolbar-note {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1440px);
    padding-top: 16px;
  }

  .hero,
  .control-strip,
  .map-panel,
  .spotlight-card,
  .results-panel {
    border-radius: 24px;
  }

  .hero,
  .map-panel,
  .spotlight-card,
  .results-panel {
    padding: 18px;
  }

  .control-strip {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
    font-size: 2.6rem;
  }

  .map-stage {
    min-height: 560px;
  }

  .region-node {
    min-width: 126px;
    padding: 10px 12px;
  }

  .region-node-meta,
  .map-spot-label,
  .province-tag-count {
    display: none;
  }

  .province-tag {
    padding: 5px 8px;
  }

  .terrain-label {
    display: none;
  }
}
