:root {
  --paper: #f4efe3;
  --paper-deep: #e7deca;
  --paper-light: #fffaf0;
  --ink: #19342d;
  --ink-soft: #62736c;
  --moss: #315f4d;
  --moss-deep: #17382f;
  --moss-light: #83a68f;
  --bamboo: #5f865e;
  --lacquer: #c84f36;
  --lacquer-dark: #913621;
  --sun: #e2a93a;
  --water: #4d8890;
  --line: rgba(25, 52, 45, 0.15);
  --line-strong: rgba(25, 52, 45, 0.28);
  --white: #fffdf7;
  --shadow: 0 22px 60px rgba(23, 42, 36, 0.18);
  --sidebar-width: min(430px, 36vw);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  width: 100%;
  height: 100%;
}

.sidebar {
  position: relative;
  z-index: 600;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 0 0, rgba(226, 169, 58, 0.2), transparent 27%),
    radial-gradient(circle at 100% 28%, rgba(49, 95, 77, 0.1), transparent 33%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.74), transparent 42%),
    var(--paper);
  box-shadow: 18px 0 44px rgba(25, 52, 45, 0.09);
  scrollbar-color: rgba(49, 95, 77, 0.35) transparent;
  scrollbar-width: thin;
}

.sidebar::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle, rgba(25, 52, 45, 0.085) 1px, transparent 1.4px),
    linear-gradient(90deg, rgba(25, 52, 45, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(25, 52, 45, 0.025) 1px, transparent 1px);
  background-position:
    0 0,
    0 0,
    0 0;
  background-size:
    18px 18px,
    36px 36px,
    36px 36px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 68%);
  pointer-events: none;
}

.mobile-sheet-bar {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 278px;
  padding: 38px 32px 28px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  right: -72px;
  bottom: -116px;
  z-index: -1;
  width: 290px;
  height: 290px;
  border: 48px solid rgba(49, 95, 77, 0.075);
  border-radius: 50%;
  content: "";
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--lacquer);
  font-family: "SFMono-Regular", "Menlo", "Courier New", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 6em;
  margin: 0;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(46px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.085em;
  line-height: 0.94;
}

h1 em {
  color: var(--moss);
  font-size: 0.66em;
  font-style: normal;
  letter-spacing: 0.02em;
}

.subtitle {
  margin: 16px 0 12px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.intro {
  max-width: 28em;
  margin: 0;
  color: var(--ink-soft);
  font-family: "Songti SC", "STSong", serif;
  font-size: 14px;
  line-height: 1.8;
}

.hero-seal {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(200, 79, 54, 0.58);
  color: var(--lacquer-dark);
  transform: rotate(4deg);
}

.hero-seal::before,
.hero-seal::after {
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid currentColor;
  content: "";
}

.hero-seal::before {
  top: 5px;
  left: 5px;
}

.hero-seal::after {
  right: 5px;
  bottom: 5px;
}

.hero-seal span {
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.hero-seal small {
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.18em;
  line-height: 1;
  writing-mode: vertical-rl;
}

.plan-section,
.controls {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.section-heading > span,
.filter-heading {
  color: var(--ink-soft);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-heading button {
  padding: 0;
  border: 0;
  color: var(--lacquer-dark);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.section-heading button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.plan-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.plan-card {
  position: relative;
  min-height: 88px;
  padding: 12px 12px 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.58);
  cursor: pointer;
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.plan-card::after {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.16;
}

.plan-card:hover {
  border-color: rgba(49, 95, 77, 0.52);
  transform: translateY(-1px);
}

.plan-card[aria-pressed="true"] {
  border-color: var(--moss-deep);
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 45%),
    var(--moss-deep);
  box-shadow: 0 9px 22px rgba(23, 56, 47, 0.18);
}

.plan-kicker,
.plan-card strong,
.plan-card small {
  position: relative;
  z-index: 1;
  display: block;
}

.plan-kicker {
  margin-bottom: 7px;
  color: var(--lacquer);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.plan-card[aria-pressed="true"] .plan-kicker {
  color: var(--sun);
}

.plan-card strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  letter-spacing: -0.04em;
}

.plan-card small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.35;
}

.plan-card[aria-pressed="true"] small {
  color: rgba(255, 253, 247, 0.7);
}

.plan-note {
  min-height: 34px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  line-height: 1.55;
}

.route-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.26);
}

.stat {
  min-width: 0;
  padding: 16px 8px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat strong {
  display: block;
  overflow: hidden;
  font-family: "DIN Alternate", "Arial Narrow", sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat span {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.day-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tab {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.56);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.day-tab:hover {
  border-color: rgba(49, 95, 77, 0.5);
}

.day-tab[aria-pressed="true"] {
  border-color: var(--moss);
  color: var(--white);
  background: var(--moss);
}

.place-search {
  position: relative;
  margin-top: 16px;
}

.place-search label {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 8px;
}

.search-row input {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.72);
  font-size: 11px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.search-row input:focus {
  border-color: rgba(49, 95, 77, 0.7);
  box-shadow: 0 0 0 3px rgba(49, 95, 77, 0.1);
}

.search-row button {
  padding: 8px 13px;
  border: 1px solid var(--moss);
  border-radius: 2px;
  color: var(--white);
  background: var(--moss);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.search-row button:hover {
  background: var(--moss-deep);
}

.search-results {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 1000;
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.search-result {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result:focus-visible {
  outline: none;
  background: rgba(49, 95, 77, 0.08);
}

.search-result strong {
  display: block;
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
}

.search-result span,
.search-empty {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
}

.search-empty {
  margin: 0;
  padding: 11px;
}

.filter-heading {
  margin-top: 16px;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.filter-button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.5);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.filter-button:hover {
  border-color: rgba(49, 95, 77, 0.5);
}

.filter-button[aria-pressed="true"] {
  border-color: var(--lacquer);
  color: var(--white);
  background: var(--lacquer);
}

.layer-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.layer-toggle input {
  width: 14px;
  height: 14px;
  accent-color: var(--moss);
}

.place-section {
  padding: 22px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  align-items: flex-end;
  margin-bottom: 15px;
}

.section-title > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.section-index {
  color: var(--lacquer);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 10px;
  font-weight: 800;
}

.section-title h2,
.before-you-go h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.section-title > span {
  color: var(--ink-soft);
  font-size: 9px;
}

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

.place-card {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 12px 10px 12px 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.58);
  cursor: pointer;
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.place-card:hover {
  border-color: rgba(49, 95, 77, 0.48);
  background: rgba(255, 253, 247, 0.9);
  transform: translateX(2px);
}

.place-card.is-active {
  border-color: var(--moss);
  background: rgba(49, 95, 77, 0.08);
}

.place-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--category-color, var(--moss));
  content: "";
}

.place-order {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--moss-deep);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 9px;
  font-weight: 900;
}

.place-copy {
  min-width: 0;
}

.place-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.place-meta span + span::before {
  margin-right: 5px;
  color: var(--line-strong);
  content: "/";
}

.place-name {
  display: block;
  overflow: hidden;
  font-family: "Songti SC", "STSong", serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-summary {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.place-duration {
  padding-top: 2px;
  color: var(--lacquer-dark);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.place-empty {
  padding: 24px 10px;
  border: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  font-family: "Songti SC", "STSong", serif;
  font-size: 12px;
  text-align: center;
}

.community-section {
  padding: 22px 24px 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 0 0, rgba(77, 136, 144, 0.09), transparent 32%),
    rgba(255, 253, 247, 0.18);
}

.community-intro {
  margin: -3px 0 14px;
  color: var(--ink-soft);
  font-family: "Songti SC", "STSong", serif;
  font-size: 11px;
  line-height: 1.65;
}

.community-list {
  display: grid;
  gap: 8px;
}

.community-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--water);
  background: rgba(255, 253, 247, 0.64);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.community-card:hover {
  border-color: rgba(77, 136, 144, 0.5);
  transform: translateX(2px);
}

.community-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.community-platform {
  padding: 3px 6px;
  color: var(--lacquer-dark);
  background: rgba(200, 79, 54, 0.1);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.community-metrics {
  color: var(--ink-soft);
  font-size: 8px;
  white-space: nowrap;
}

.community-card strong {
  display: block;
  font-family: "Songti SC", "STSong", serif;
  font-size: 14px;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.community-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.58;
}

.community-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.community-card-footer span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-card-footer a {
  color: var(--water);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.community-card-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.community-boundary {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.55;
}

.before-you-go {
  padding: 24px 24px 26px;
  background:
    linear-gradient(140deg, rgba(23, 56, 47, 0.055), transparent 70%),
    rgba(255, 253, 247, 0.28);
}

.before-you-go .eyebrow {
  margin-bottom: 7px;
}

.before-you-go h2 {
  margin-bottom: 15px;
  font-size: 21px;
}

.reminder-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.reminder {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 11px;
  background: rgba(244, 239, 227, 0.94);
}

.reminder strong {
  color: var(--lacquer);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 10px;
}

.reminder span {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.sidebar-footer {
  padding: 20px 24px 34px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.6;
}

.sidebar-footer p {
  margin: 0;
}

.sidebar-footer p + p {
  margin-top: 6px;
}

.sidebar-footer a {
  text-decoration-color: rgba(25, 52, 45, 0.28);
  text-underline-offset: 3px;
}

.map-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(226, 169, 58, 0.12), transparent 30%),
    #cfdbd0;
}

.atlas-back {
  position: absolute;
  top: 26px;
  right: 28px;
  z-index: 710;
  padding: 9px 11px;
  border: 1px solid rgba(25, 52, 45, 0.16);
  color: var(--ink);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 10px 26px rgba(25, 52, 45, 0.1);
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.atlas-back:hover {
  color: var(--white);
  background: var(--moss);
}

#map {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(rgba(49, 95, 77, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 95, 77, 0.06) 1px, transparent 1px),
    #d9e1d6;
  background-size: 30px 30px;
}

.map-title,
.map-legend,
.map-weather,
.basemap-control,
.location-control,
.basemap-notice,
.tile-warning,
.loading-card {
  z-index: 700;
}

.map-title {
  position: absolute;
  top: 26px;
  left: 28px;
  display: grid;
  min-width: 235px;
  padding: 15px 17px 14px;
  border: 1px solid rgba(25, 52, 45, 0.17);
  border-left: 4px solid var(--lacquer);
  background: rgba(255, 253, 247, 0.91);
  box-shadow: 0 14px 34px rgba(25, 52, 45, 0.13);
  backdrop-filter: blur(12px);
}

.map-title span,
.map-title small {
  color: var(--ink-soft);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.map-title strong {
  margin: 5px 0 4px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 21px;
  letter-spacing: -0.045em;
}

.map-title small {
  color: var(--moss);
  letter-spacing: 0.04em;
}

.map-legend {
  position: absolute;
  bottom: 26px;
  left: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  max-width: min(580px, calc(100% - 260px));
  padding: 11px 13px;
  border: 1px solid rgba(25, 52, 45, 0.14);
  background: rgba(255, 253, 247, 0.88);
  box-shadow: 0 10px 28px rgba(25, 52, 45, 0.11);
  backdrop-filter: blur(10px);
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
}

.map-legend i {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 3px;
}

.legend-route {
  background: var(--lacquer);
}

.legend-optional {
  background: var(--water);
}

.legend-place {
  width: 9px !important;
  height: 9px !important;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 1px var(--moss);
}

.legend-food {
  width: 9px !important;
  height: 9px !important;
  border-radius: 1px;
  background: var(--sun);
}

.map-weather {
  position: absolute;
  top: 75px;
  right: 28px;
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid rgba(25, 52, 45, 0.14);
  background: rgba(23, 56, 47, 0.9);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(23, 56, 47, 0.18);
  backdrop-filter: blur(10px);
}

.map-weather span {
  color: rgba(255, 253, 247, 0.65);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.map-weather strong {
  font-size: 11px;
}

.location-control {
  position: absolute;
  right: 28px;
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.locate-button,
.basemap-toggle {
  border: 1px solid rgba(25, 52, 45, 0.18);
  color: var(--ink);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 10px 26px rgba(25, 52, 45, 0.13);
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.locate-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
}

.locate-button:hover,
.locate-button.is-active {
  color: var(--white);
  background: var(--moss);
}

.locate-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.location-status {
  padding: 6px 8px;
  color: var(--ink-soft);
  background: rgba(255, 253, 247, 0.84);
  box-shadow: 0 6px 18px rgba(25, 52, 45, 0.08);
  font-size: 9px;
  font-weight: 800;
}

.basemap-control {
  position: absolute;
  right: 28px;
  bottom: 76px;
}

.basemap-toggle {
  padding: 9px 11px;
  border-radius: 2px;
  font-size: 9px;
  font-weight: 800;
}

.basemap-toggle:hover {
  border-color: var(--moss);
  color: var(--moss);
}

.basemap-notice,
.tile-warning {
  position: absolute;
  left: 50%;
  padding: 9px 13px;
  border: 1px solid rgba(25, 52, 45, 0.16);
  color: var(--ink);
  background: rgba(255, 253, 247, 0.95);
  box-shadow: 0 12px 30px rgba(25, 52, 45, 0.14);
  font-size: 10px;
  font-weight: 700;
  transform: translateX(-50%);
}

.basemap-notice {
  top: 28px;
}

.tile-warning {
  bottom: 128px;
  max-width: min(520px, calc(100% - 48px));
  text-align: center;
}

.loading-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 253, 247, 0.94);
  box-shadow: var(--shadow);
  font-size: 10px;
  font-weight: 800;
  transform: translate(-50%, -50%);
}

.loading-card span {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(49, 95, 77, 0.22);
  border-top-color: var(--moss);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.route-segment {
  filter: drop-shadow(0 2px 2px rgba(25, 52, 45, 0.18));
}

.place-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid var(--white);
  border-radius: 50% 50% 50% 3px;
  color: var(--white);
  background: var(--category-color, var(--moss));
  box-shadow:
    0 0 0 1px rgba(25, 52, 45, 0.24),
    0 5px 13px rgba(25, 52, 45, 0.24);
  transform: rotate(-45deg);
}

.place-marker span {
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 8px;
  font-weight: 900;
  transform: rotate(45deg);
}

.place-marker.is-food {
  border-radius: 2px;
}

.place-marker.is-food span {
  transform: none;
}

.place-marker.is-active {
  z-index: 10;
  box-shadow:
    0 0 0 3px rgba(255, 253, 247, 0.9),
    0 0 0 6px var(--category-color, var(--moss)),
    0 9px 20px rgba(25, 52, 45, 0.28);
}

.leaflet-container {
  font-family:
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 1px solid rgba(25, 52, 45, 0.17) !important;
  border-radius: 2px !important;
  box-shadow: 0 9px 24px rgba(25, 52, 45, 0.12) !important;
}

.leaflet-control-zoom a {
  color: var(--ink) !important;
  background: rgba(255, 253, 247, 0.94) !important;
}

.leaflet-control-attribution {
  color: rgba(25, 52, 45, 0.66);
  background: rgba(255, 253, 247, 0.78) !important;
  font-size: 8px !important;
}

.leaflet-popup-content-wrapper {
  border: 1px solid rgba(25, 52, 45, 0.15);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(25, 52, 45, 0.22);
}

.leaflet-popup-content {
  width: min(315px, 75vw) !important;
  margin: 16px 17px;
}

.leaflet-popup-tip {
  background: var(--white);
}

.leaflet-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  color: var(--ink-soft) !important;
}

.popup-kicker {
  margin: 0 0 5px;
  color: var(--lacquer);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.popup-title {
  margin: 0;
  color: var(--ink);
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
  letter-spacing: -0.04em;
}

.popup-meta {
  margin: 5px 0 10px;
  color: var(--moss);
  font-size: 9px;
  font-weight: 800;
}

.popup-description,
.popup-tip,
.popup-source {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.62;
}

.popup-tip {
  margin-top: 10px;
  padding: 9px 10px;
  border-left: 3px solid var(--sun);
  background: rgba(226, 169, 58, 0.11);
}

.popup-details {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.popup-detail {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.popup-detail strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.popup-detail span {
  display: block;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.popup-links a,
.popup-links button {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--moss);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
}

.popup-links a:hover,
.popup-links button:hover {
  border-color: var(--moss);
  color: var(--white);
  background: var(--moss);
}

.popup-source {
  margin-top: 9px;
  font-size: 8px;
}

.my-location-marker {
  border-radius: 50%;
  background: rgba(77, 136, 144, 0.24);
}

.my-location-marker::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--water);
  box-shadow:
    0 0 0 1px rgba(25, 52, 45, 0.28),
    0 4px 12px rgba(25, 52, 45, 0.24);
  content: "";
  transform: translate(-50%, -50%);
}

@media (max-width: 1080px) {
  :root {
    --sidebar-width: 390px;
  }

  .hero {
    min-height: 248px;
    padding-right: 26px;
    padding-left: 26px;
  }

  .hero-seal {
    right: 22px;
    bottom: 24px;
  }

  .plan-section,
  .controls,
  .place-section,
  .community-section,
  .before-you-go {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 760px) {
  body {
    overflow: hidden;
  }

  .app-shell {
    display: block;
    position: relative;
  }

  .map-stage {
    position: absolute;
    inset: 0;
    z-index: 1;
  }

  .sidebar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 800;
    width: 100%;
    height: min(86dvh, 780px);
    border: 0;
    border-top: 1px solid rgba(25, 52, 45, 0.2);
    border-radius: 20px 20px 0 0;
    background:
      radial-gradient(circle at 8% 0, rgba(226, 169, 58, 0.18), transparent 25%),
      var(--paper);
    box-shadow: 0 -20px 52px rgba(25, 52, 45, 0.2);
    transform: translateY(calc(100% - 76px));
    transition: transform 260ms cubic-bezier(0.2, 0.72, 0.2, 1);
    will-change: transform;
  }

  .sidebar.is-expanded {
    transform: translateY(0);
  }

  .mobile-sheet-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 239, 227, 0.96);
    backdrop-filter: blur(14px);
  }

  .mobile-sheet-handle {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: rgba(25, 52, 45, 0.2);
    transform: translateX(-50%);
  }

  .mobile-sheet-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
  }

  .mobile-sheet-copy strong {
    overflow: hidden;
    font-family: "Songti SC", "STSong", serif;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-sheet-copy span {
    color: var(--ink-soft);
    font-size: 9px;
  }

  .mobile-sheet-toggle {
    padding: 7px 12px;
    border: 1px solid var(--moss);
    border-radius: 999px;
    color: var(--white);
    background: var(--moss);
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
  }

  .hero {
    min-height: auto;
    padding: 28px 22px 23px;
  }

  h1 {
    font-size: 47px;
  }

  .intro {
    max-width: 25em;
    font-size: 13px;
  }

  .hero-seal {
    right: 20px;
    bottom: 22px;
    width: 62px;
    height: 62px;
  }

  .plan-section,
  .controls,
  .place-section,
  .community-section,
  .before-you-go {
    padding-right: 18px;
    padding-left: 18px;
  }

  .map-title {
    top: 16px;
    left: 16px;
    min-width: 0;
    max-width: calc(100% - 172px);
    padding: 11px 13px;
  }

  .map-title strong {
    overflow: hidden;
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-title small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-weather {
    top: 16px;
    right: 16px;
    max-width: 140px;
  }

  .atlas-back {
    top: auto;
    right: 16px;
    bottom: 188px;
    padding: 8px 9px;
  }

  .map-weather strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .map-legend {
    right: 16px;
    bottom: 94px;
    left: 16px;
    max-width: none;
    gap: 7px 11px;
  }

  .basemap-control {
    right: 16px;
    bottom: 142px;
  }

  .location-control {
    right: 16px;
    bottom: 92px;
  }

  .tile-warning {
    bottom: 194px;
  }

  .leaflet-control-zoom {
    display: none;
  }
}

@media (max-width: 390px) {
  .plan-switcher {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: 76px;
  }

  .hero-seal {
    display: none;
  }

  .map-weather {
    display: none;
  }

  .map-title {
    max-width: calc(100% - 32px);
  }

}

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