:root {
  --bg: #f6f3ee;
  --card: #fffdf9;
  --ink: #1c2a22;
  --muted: #5c6b62;
  --line: #e2ddd3;
  --green: #2f6b4f;
  --green-soft: #e8f2ec;
  --amber: #c47a2c;
  --amber-soft: #fff3e3;
  --blue: #2a5f8a;
  --shadow: 0 10px 30px rgba(28,42,34,.08);
  --radius: 16px;
  --max: 980px;
  --font: "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #dff0e6 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #ffe8cc 0%, transparent 50%),
    var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
.wrap { width: min(100% - 1.5rem, var(--max)); margin-inline: auto; }
.hero {
  padding: 1.6rem 0 1rem;
}
.hero-card {
  background: linear-gradient(135deg, #1f4d3a 0%, #2f6b4f 45%, #3d7a58 100%);
  color: #f7fff9;
  border-radius: 24px;
  padding: 1.4rem 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.kicker {
  display: inline-flex; gap: .4rem; align-items: center;
  font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
  opacity: .85; margin-bottom: .55rem;
}
.hero h1 {
  margin: 0 0 .35rem;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  line-height: 1.2; font-weight: 700;
}
.hero .sub {
  margin: 0;
  opacity: .92;
  font-size: .95rem;
  max-width: 40rem;
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1rem;
}
.chip {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .82rem;
}
.tabs {
  display: flex; gap: .5rem;
  margin: 1rem 0 .9rem;
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  padding: .55rem 0;
}
.tab-btn {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: .7rem .9rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}
.tab-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47,107,79,.25);
}
.panel { display: none; padding-bottom: 3rem; }
.panel.active { display: block; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.05rem;
  margin-bottom: .9rem;
}
.card h2 {
  margin: 0 0 .55rem;
  font-size: 1.15rem;
}
.card h3 {
  margin: 0 0 .35rem;
  font-size: 1rem;
}
.muted { color: var(--muted); font-size: .9rem; }
.map-box {
  height: min(58vh, 460px);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  z-index: 1;
}
.map-legend {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-top: .7rem;
  font-size: .82rem;
}
.legend-item { display: inline-flex; align-items: center; gap: .35rem; }
.swatch {
  width: 18px; height: 4px; border-radius: 4px; display: inline-block;
}
.swatch.green { background: #2f6b4f; }
.swatch.amber { background: #c47a2c; }
.swatch.blue { background: #2a5f8a; }
.swatch.dash {
  background: repeating-linear-gradient(90deg, #6b8f7a 0 6px, transparent 6px 10px);
  height: 3px;
}
.route-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .55rem;
  margin-top: .75rem;
}
.stat {
  background: var(--green-soft);
  border-radius: 12px;
  padding: .65rem .75rem;
}
.stat b { display: block; font-size: 1.05rem; color: var(--green); }
.stat span { font-size: .78rem; color: var(--muted); }
.day {
  border-left: 4px solid var(--green);
  padding-left: .85rem;
  margin: 1rem 0;
}
.day-title {
  display: flex; flex-wrap: wrap; gap: .45rem; align-items: baseline;
  margin-bottom: .45rem;
}
.day-title strong { font-size: 1.05rem; }
.badge {
  font-size: .72rem;
  background: var(--amber-soft);
  color: #8a5310;
  border-radius: 999px;
  padding: .15rem .5rem;
  font-weight: 600;
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: .55rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--line);
}
.timeline li:last-child { border-bottom: 0; }
.time {
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  font-size: .9rem;
}
.addr {
  margin-top: .25rem;
  font-size: .84rem;
  color: var(--muted);
}
.warn {
  background: var(--amber-soft);
  border: 1px solid #f0d2a8;
  color: #6d4510;
  border-radius: 12px;
  padding: .7rem .85rem;
  font-size: .88rem;
  margin: .7rem 0;
}
.cost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .5rem;
}
.cost-item {
  background: #faf7f1;
  border-radius: 12px;
  padding: .7rem;
}
.cost-item .label { font-size: .78rem; color: var(--muted); }
.cost-item .val { font-weight: 700; font-size: 1.05rem; }
.hotel {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .85rem;
  margin: .55rem 0;
  background: #fff;
}
.hotel .price {
  color: var(--amber);
  font-weight: 700;
}
.hotel .tag {
  display: inline-block;
  font-size: .72rem;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 999px;
  padding: .12rem .45rem;
  margin-right: .25rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .55rem;
}
.gallery figure {
  margin: 0;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #ddd;
}
.gallery figcaption {
  padding: .45rem .55rem .55rem;
  font-size: .78rem;
  color: var(--muted);
}
.spot {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: .8rem;
  align-items: start;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}
.spot:last-child { border-bottom: 0; }
.spot img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.spot h3 { margin-bottom: .2rem; }
.spot .note { font-size: .9rem; }
@media (max-width: 640px) {
  .spot { grid-template-columns: 1fr; }
  .spot img { aspect-ratio: 16/10; }
  .timeline li { grid-template-columns: 3.8rem 1fr; }
}
.footer {
  margin: 1.5rem 0 2rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
.footer ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.85);
  display: none; align-items: center; justify-content: center;
  z-index: 100; padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  border-radius: 8px;
}
.leaflet-container { font: inherit; }
