/* 黑山旅行手册 — 样式
   配色取自亚得里亚海的石灰岩、屋顶赤陶与深水色 */

:root {
  color-scheme: light dark;
  --bg: #f2eee5;
  --bg-soft: #eae4d7;
  --surface: #fbf8f1;
  --surface-2: #f5f0e5;
  --ink: #1b211e;
  --ink-soft: #5a645c;
  --ink-faint: #858d84;
  --line: rgba(27, 33, 30, 0.14);
  --line-strong: rgba(27, 33, 30, 0.28);
  --accent: #a2402f;
  --accent-soft: rgba(162, 64, 47, 0.1);
  --accent-ink: #fff9f2;
  --teal: #2c5b57;
  --teal-soft: rgba(44, 91, 87, 0.1);
  --sea: #ccdcd8;
  --land: #e8dcc5;
  --land-edge: #c8b795;
  --lake: #a9c8c4;
  --neighbor: #e0d8c6;
  --shadow: 0 1px 2px rgba(27, 33, 30, 0.05), 0 12px 32px -18px rgba(27, 33, 30, 0.35);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --r: 4px;
  --r-lg: 10px;
  --maxw: 1180px;
  --head-h: 62px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101413;
    --bg-soft: #151b19;
    --surface: #1a211e;
    --surface-2: #202824;
    --ink: #eee8dc;
    --ink-soft: #a6b0a8;
    --ink-faint: #7d877f;
    --line: rgba(238, 232, 220, 0.16);
    --line-strong: rgba(238, 232, 220, 0.32);
    --accent: #e0916f;
    --accent-soft: rgba(224, 145, 111, 0.13);
    --accent-ink: #21160f;
    --teal: #93c3ba;
    --teal-soft: rgba(147, 195, 186, 0.12);
    --sea: #101b1a;
    --land: #232b25;
    --land-edge: #3b4740;
    --lake: #1d3733;
    --neighbor: #1a2220;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -22px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.28; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border: 1px solid var(--line);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 600;
  padding: 4px 6px;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}
.brand-name {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.06em;
}
.head-nav {
  display: none;
  gap: 26px;
  font-size: 14px;
}
.head-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.head-nav a:hover { color: var(--ink); border-color: var(--line-strong); }

.fav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13.5px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.fav-trigger:hover { background: var(--accent-soft); border-color: var(--accent); }
.fav-count {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: #f7f3e9;
  overflow: hidden;
  background: #1a2422;
  padding-top: clamp(48px, 9vw, 96px);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 18, 18, 0.42) 0%, rgba(10, 18, 18, 0.12) 34%, rgba(9, 16, 18, 0.78) 78%, rgba(8, 14, 16, 0.94) 100%),
    linear-gradient(100deg, rgba(9, 16, 18, 0.55), rgba(9, 16, 18, 0) 62%);
}
.hero-inner {
  position: relative;
  padding-bottom: clamp(28px, 5vw, 54px);
}
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247, 243, 233, 0.78);
  margin-bottom: clamp(18px, 3vw, 28px);
}
.hero h1 {
  font-size: clamp(2.7rem, 8.4vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.28);
}
.hero h1 span { color: #f0d9b6; }
.hero .lede {
  max-width: 34em;
  margin-top: clamp(18px, 3vw, 26px);
  font-size: clamp(14.5px, 1.6vw, 17px);
  line-height: 1.85;
  color: rgba(247, 243, 233, 0.88);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 4vw, 34px);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-solid:hover { filter: brightness(1.06); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(247, 243, 233, 0.5);
  color: #f7f3e9;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-block { width: 100%; margin-bottom: 12px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.hero-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(247, 243, 233, 0.26);
  padding-top: 16px;
  padding-bottom: 22px;
  margin: 0 auto;
}
.hero-facts > div {
  padding: 8px 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.hero-facts dt {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(247, 243, 233, 0.62);
}
.hero-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(15px, 1.6vw, 18px);
  color: #f7f3e9;
}

/* ---------- shared section ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.sec-head { max-width: 62ch; margin-bottom: clamp(26px, 4vw, 44px); }
.sec-head h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  margin-bottom: 14px;
  text-wrap: balance;
}
.sec-lede { color: var(--ink-soft); font-size: 15.5px; line-height: 1.85; text-wrap: pretty; }

/* ---------- intro ---------- */
.intro-grid { display: grid; gap: clamp(28px, 5vw, 64px); }
.intro-lead h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: 18px; }
.intro-lead p { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 14px; line-height: 1.9; max-width: 40em; }
.intro-lead strong { color: var(--ink); font-weight: 600; }
.intro-lead em { font-style: normal; color: var(--teal); border-bottom: 1px solid currentColor; }
.intro-cards { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.intro-cards li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 12px;
}
.card-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  padding-top: 6px;
}
.intro-cards h3 { font-size: 19px; margin-bottom: 6px; }
.intro-cards p { color: var(--ink-soft); font-size: 14.2px; line-height: 1.8; }

/* ---------- map ---------- */
.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.chip {
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.map-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}
.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px 12px 8px;
  box-shadow: var(--shadow);
}
.country-map { width: 100%; height: auto; display: block; touch-action: manipulation; }
.map-sea { fill: var(--sea); }
.map-grid line { stroke: var(--line); stroke-width: 0.5; opacity: 0.5; }
.map-land {
  fill: url(#landFill);
  stroke: var(--land-edge);
  stroke-width: 1.1;
  stroke-linejoin: round;
}
.land-stop-a { stop-color: var(--land); }
.land-stop-b { stop-color: var(--bg-soft); }
.map-lake { fill: var(--lake); stroke: var(--lake); stroke-width: 0.8; }
.map-neighbors path { fill: var(--neighbor); stroke: var(--line); stroke-width: 0.7; stroke-linejoin: round; }
.map-water-label {
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  fill: var(--teal);
  opacity: 0.8;
}
.map-compass circle { fill: none; stroke: var(--line-strong); stroke-width: 0.8; }
.map-compass path { fill: var(--ink-soft); }
.map-compass text { font-family: var(--sans); font-size: 8px; fill: var(--ink-faint); text-anchor: middle; letter-spacing: 0.1em; }
.map-note {
  font-size: 11.5px;
  color: var(--ink-faint);
  padding: 6px 4px 2px;
  letter-spacing: 0.03em;
}

.map-pins .pin { cursor: pointer; }
.map-pins .pin-hit { fill: transparent; }
.map-pins .pin-dot {
  fill: var(--teal);
  stroke: var(--surface);
  stroke-width: 1.4;
  transition: r 0.18s ease, fill 0.18s ease;
}
.map-pins .pin--major .pin-dot { fill: var(--accent); }
.map-pins .pin:hover .pin-dot,
.map-pins .pin:focus-visible .pin-dot { r: 6.2; }
.map-pins .pin.is-active .pin-dot { fill: var(--ink); r: 6.6; }
.map-pins .pin.is-active .pin-ring {
  opacity: 1;
  animation: pinPulse 2.4s ease-out infinite;
}
.map-pins .pin-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0;
  r: 11;
  transform-box: fill-box;
}
@keyframes pinPulse {
  0% { opacity: 0.9; r: 8; }
  70% { opacity: 0; r: 17; }
  100% { opacity: 0; r: 17; }
}
.map-pins .pin-label {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  fill: var(--ink);
  paint-order: stroke;
  stroke: var(--surface);
  stroke-width: 2.6px;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.map-pins .pin:hover .pin-label,
.map-pins .pin:focus-visible .pin-label,
.map-pins .pin.is-active .pin-label { opacity: 1; }
.map-pins .pin:focus { outline: none; }

.spot-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--bg-soft), var(--surface-2));
  overflow: hidden;
}
.panel-media img { width: 100%; height: 100%; object-fit: cover; }
.panel-media.is-blank {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(128, 128, 128, 0.18) 9px 10px),
    var(--surface-2);
}
.blank-mark {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  color: color-mix(in srgb, var(--ink) 22%, transparent);
  letter-spacing: 0.08em;
}
.panel-region {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(16, 22, 20, 0.62);
  color: #f4efe4;
  backdrop-filter: blur(6px);
}
.panel-body { padding: 18px 20px 20px; }
.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
}
.panel-head h3 { font-size: clamp(1.35rem, 3vw, 1.6rem); }
.panel-en {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}
.fav-btn {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.fav-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.fav-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.fav-btn[disabled] { opacity: 0.5; cursor: progress; }
.panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.panel-meta b { color: var(--ink); font-weight: 600; }
.panel-blurb { font-size: 14.6px; line-height: 1.82; color: var(--ink); text-wrap: pretty; }
.panel-best {
  margin-top: 12px;
  font-size: 13px;
  color: var(--teal);
  display: flex;
  gap: 8px;
}
.panel-best span:first-child { flex: none; opacity: 0.65; letter-spacing: 0.08em; font-size: 11.5px; padding-top: 2px; }
.panel-tips { list-style: none; margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.panel-tips li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.panel-tips li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}
.panel-empty { padding: 28px 20px; color: var(--ink-soft); font-size: 14px; }

.spot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.spot-chip {
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.8px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.spot-chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.spot-chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.spot-chip.is-hidden { display: none; }

/* ---------- plan ---------- */
.plan-shell {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.plan-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.plan-tab {
  flex: 1 0 auto;
  min-width: 96px;
  min-height: 52px;
  padding: 10px 16px;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.plan-tab b { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.plan-tab:hover { background: var(--surface-2); color: var(--ink); }
.plan-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); background: var(--surface-2); }
.plan-body { padding: clamp(20px, 3.5vw, 32px); }
.plan-head { margin-bottom: 20px; }
.plan-head h3 { font-size: clamp(1.4rem, 3.4vw, 1.8rem); margin-bottom: 8px; }
.plan-head p { color: var(--ink-soft); font-size: 14.2px; max-width: 62ch; }

.plan-days { list-style: none; position: relative; }
.plan-day {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 22px;
  position: relative;
}
.plan-day:last-child { padding-bottom: 0; }
.plan-day::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.plan-day:last-child::before { display: none; }
.day-num {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 15px;
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.day-num span { font-size: 9px; letter-spacing: 0.1em; color: var(--ink-faint); display: block; text-align: center; line-height: 1; }
.day-body { padding-top: 2px; min-width: 0; }
.day-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.day-top h4 { font-size: 16.5px; font-family: var(--sans); font-weight: 600; }
.day-base { font-size: 11.5px; color: var(--accent); letter-spacing: 0.04em; }
.day-text { color: var(--ink-soft); font-size: 14px; margin-top: 6px; line-height: 1.8; }
.day-drive {
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.day-drive span { display: inline-flex; gap: 5px; align-items: center; }
.day-stops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.day-stop {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 26px;
}
.day-stop:hover { border-color: var(--teal); }

/* ---------- season ---------- */
.season-shell {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: clamp(18px, 3vw, 28px);
}
.season-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(3px, 0.8vw, 9px);
  align-items: end;
  height: 190px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.season-col {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  border-radius: 3px;
  position: relative;
}
.season-col:hover, .season-col:focus-visible { background: var(--surface-2); }
.season-bars { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 100%; justify-content: center; }
.season-bar {
  width: 42%;
  max-width: 13px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  opacity: 0.85;
}
.season-bar.rain { background: var(--teal); opacity: 0.55; }
.season-col[aria-pressed="true"] .season-bar { opacity: 1; }
.season-col[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset-inline: -2px;
  inset-block: 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  pointer-events: none;
}
.season-month-label {
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.season-col[aria-pressed="true"] .season-month-label { color: var(--accent); font-weight: 600; }
.season-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--ink-faint);
  margin-top: 12px;
}
.season-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.season-readout {
  margin-top: 18px;
  display: grid;
  gap: 6px;
  min-height: 74px;
}
.season-month { font-family: var(--serif); font-size: 19px; }
.season-readout p:last-child { color: var(--ink-soft); font-size: 14.3px; max-width: 68ch; }
.season-tips {
  display: grid;
  gap: 1px;
  margin-top: 22px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.season-tips > div { background: var(--surface); padding: 20px; }
.season-tips h3 { font-size: 15px; margin-bottom: 6px; color: var(--accent); }
.season-tips p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.8; }

/* ---------- practical ---------- */
.practical-grid {
  display: grid;
  gap: 16px;
}
.p-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
}
.p-card h3 {
  font-size: 18.5px;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.p-num {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  flex: none;
}
.p-card > p { font-size: 14.4px; color: var(--ink-soft); line-height: 1.85; }
.p-card > p + p { margin-top: 10px; }
.p-card strong { color: var(--ink); }
.p-list { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.p-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.8px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.p-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}
.p-list.tight { gap: 7px; }
.p-fine { font-size: 12.3px !important; color: var(--ink-faint) !important; margin-top: 12px; }

.budget-table {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.8px;
}
.b-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.2fr) minmax(0, 1.4fr) minmax(0, 1fr) 76px;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  align-items: baseline;
}
.b-head { color: var(--ink-faint); font-size: 10.5px; letter-spacing: 0.1em; }
.b-row span:last-child { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

.p-card-image { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.p-card-image img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.p-card-image-body { padding: clamp(18px, 3vw, 26px); }

.pit-grid { display: grid; gap: 16px 24px; margin-top: 4px; }
.pit-grid h4 { font-size: 14.5px; font-family: var(--sans); margin-bottom: 4px; }
.pit-grid p { font-size: 13.4px; color: var(--ink-soft); line-height: 1.8; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 44px 56px;
}
.foot-inner { display: grid; gap: 28px; }
.foot-title { font-family: var(--serif); font-size: 15px; margin-bottom: 8px; }
.foot-note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.8; max-width: 46ch; }
.foot-note + .foot-note { margin-top: 6px; }
.foot-links { display: grid; gap: 8px; align-content: start; }
.foot-links a {
  font-size: 12.8px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  justify-self: start;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.foot-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- drawer ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(12, 17, 16, 0.48);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.24s ease;
}
.drawer-backdrop.is-open { opacity: 1; }
.fav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: min(420px, 94vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.5);
  transform: translateX(102%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  visibility: hidden;
}
.fav-drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { font-size: 22px; }
.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}
.icon-btn:hover { border-color: var(--ink-soft); }
.drawer-sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; min-height: 20px; }
.drawer-sub.is-error { color: var(--accent); }
.fav-list {
  list-style: none;
  margin-top: 14px;
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.fav-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.fav-item-name { font-size: 14.5px; }
.fav-item-meta { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.fav-item button {
  min-width: 40px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 4px;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
}
.fav-item button:hover { border-color: var(--accent); color: var(--accent); }
.fav-empty { padding: 26px 4px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.8; }
.drawer-actions { padding-top: 14px; }
.clear-zone { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-soft); }
.link-btn {
  background: none;
  border: 0;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--ink); }
.link-btn.danger { color: var(--accent); font-weight: 600; }
.clear-confirm { display: inline-flex; gap: 10px; align-items: center; }

/* ---------- responsive ---------- */
@media (min-width: 620px) {
  .head-nav { display: flex; }
  .hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .practical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-card-wide { grid-column: 1 / -1; }
  .pit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .season-tips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-day { grid-template-columns: 54px minmax(0, 1fr); gap: 18px; }
  .day-num { width: 54px; height: 54px; font-size: 16px; }
  .plan-day::before { left: 26px; top: 48px; }
  .foot-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

@media (min-width: 900px) {
  .hero-facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero-facts > div { flex-direction: column; gap: 2px; }
  .intro-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: start; }
  .map-layout { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 26px; }
  .spot-panel { position: sticky; top: calc(var(--head-h) + 18px); }
  .practical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-card-image { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .p-card-image img { width: 46%; aspect-ratio: auto; height: 100%; }
  .p-card-image-body { width: 54%; }
  .season-chart { height: 220px; }
  .intro-cards li { grid-template-columns: 44px 1fr; padding: 22px 0; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 15px; }
  .fav-trigger span:first-child { display: none; }
  .season-month-label { font-size: 9px; }
  .b-row { grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr) 66px; }
  .b-row span:nth-child(4) { display: none; }
}
