/* 투어피아 (tourpia.co.kr) - 50대 국내 테마여행.
   Concept: a national-park trail signboard. Courses read like the wooden posts at a trailhead:
   a difficulty tab (하 green, 중 amber, 상 red as on the trail grade), the route, then time and
   distance in large figures. The one bold element is the foliage-peak strip, dates running from
   north to south like a ridge line. Misty blue-grey ground, pine ink, maple and ginkgo accents.
   Pretendard. Tokens use html:root so they win over the shared site CSS that loads after this. */
html:root {
  --bg: #e8ecee; --surface: #ffffff; --text: #1d2a24; --muted: #56625c; --line: #cfd6d8;
  --accent: #a5281b; --on-accent: #ffffff; --pine: #1f3a2e; --ginkgo: #c8901a; --tint: #dde3e5;
  --lv-easy: #2f7d4f; --lv-mid: #b07c0c; --lv-hard: #a5281b;
}
@media (prefers-color-scheme: dark) {
  html:root {
    --bg: #111716; --surface: #18201e; --text: #e3e8e5; --muted: #9aa7a1; --line: #2b3533;
    --accent: #e0705f; --on-accent: #111716; --pine: #9cc7b0; --ginkgo: #e2b450; --tint: #1f2826;
    --lv-easy: #5fb784; --lv-mid: #e0ad3c; --lv-hard: #e0705f;
  }
}
body.travel header.site, body.travel main, body.travel footer { max-width: 1040px; }
body.travel h1 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.2; text-wrap: balance; }
body.travel h2 { letter-spacing: -0.02em; text-wrap: balance; margin-top: 40px; }
.tag { color: var(--pine); font-weight: 700; font-size: 0.9rem; margin: 0 0 6px; }
.lead { max-width: 62ch; }
.fine { color: var(--muted); font-size: 0.9rem; max-width: 70ch; margin: 8px 0 12px; }

/* home hero */
.hero { padding: 8px 0 12px; }
.hero h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); line-height: 1.12; margin: 0 0 14px; color: var(--pine); }

/* foliage-peak strip: north to south, earliest first */
.peaks { margin: 26px 0 24px; }
.peaks ol { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  border-top: 4px solid var(--accent); }
.peaks li { position: relative; padding: 16px 12px 0 0; }
.peaks li::before { content: ""; position: absolute; top: -10px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); border: 4px solid var(--accent); }
.peaks li:nth-child(even)::before { border-color: var(--ginkgo); }
.pk-date { display: block; font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--text); }
.pk-name { display: block; color: var(--muted); font-weight: 600; margin-top: 2px; }
.peaks figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 14px; max-width: 70ch; }

.peak { margin: 4px 0 14px; color: var(--text); }
.peak strong { color: var(--accent); font-size: 1.15rem; }

/* park list */
.parks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.parks a { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-left: 6px solid var(--pine); border-radius: 4px 10px 10px 4px; color: var(--text); text-decoration: none; }
.parks a:hover { border-color: var(--pine); }
.parks strong { font-size: 1.15rem; }
.parks .reg { color: var(--muted); font-size: 0.88rem; }
.parks .meta { color: var(--pine); font-size: 0.88rem; font-weight: 600; margin-top: 4px; }

/* course signboards */
.courses { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.course { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.course .lv { writing-mode: horizontal-tb; display: grid; place-items: center; width: 52px; border-radius: 0; font-size: 1.15rem; }
.c-main { padding: 14px 16px; min-width: 0; }
.c-main strong { display: block; font-size: 1.08rem; }
.c-sec { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 2px; overflow-wrap: anywhere; }
.c-main p { margin: 8px 0 0; font-size: 0.95rem; }
.c-num { display: grid; grid-auto-flow: column; gap: 18px; margin: 0; padding: 14px 18px; align-content: center; border-left: 1px dashed var(--line); }
.c-num div { display: grid; gap: 2px; }
.c-num dt { color: var(--muted); font-size: 0.78rem; }
.c-num dd { margin: 0; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
  .course { grid-template-columns: auto 1fr; }
  .c-num { grid-column: 1 / -1; border-left: 0; border-top: 1px dashed var(--line); justify-content: start; padding: 10px 16px; }
}

/* difficulty tab (국립공원공단 하/중/상) */
.lv { display: inline-grid; place-items: center; min-width: 30px; padding: 2px 8px; border-radius: 6px; font-weight: 800;
  color: #fff; font-size: 0.9rem; }
.lv-easy { background: var(--lv-easy); }
.lv-mid { background: var(--lv-mid); }
.lv-hard { background: var(--lv-hard); }
@media (prefers-color-scheme: dark) { .lv { color: #111716; } }

/* all courses */
.table-wrap { overflow-x: auto; }
table.all { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
table.all th, table.all td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.all thead th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
table.all tbody th { font-weight: 700; white-space: nowrap; }
table.all td.sec { color: var(--muted); font-size: 0.88rem; }
table.all td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  table.all { min-width: 0; }
  table.all thead { display: none; }
  table.all tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name lv" "sec sec" "time time";
    column-gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.all th, table.all td { border: 0; padding: 0; }
  table.all tbody th { grid-area: name; white-space: normal; }
  table.all td.l { grid-area: lv; }
  table.all td.sec { grid-area: sec; margin-top: 2px; }
  table.all td.t { grid-area: time; margin-top: 4px; font-weight: 700; }
  table.all td.k { display: none; }
  table.all td.t::after { content: " · " attr(data-km); font-weight: 400; color: var(--muted); }
}

/* outfit link box (picknbuy) */
.outfit { margin-top: 40px; padding: 18px 20px; background: var(--tint); border-radius: 12px; }
.outfit h2 { margin: 0 0 6px; }
.outfit p { margin: 0 0 12px; color: var(--muted); }
.outfit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.outfit a { display: grid; gap: 2px; padding: 12px 14px; background: var(--surface); border-radius: 8px; color: var(--text); text-decoration: none; }
.outfit a:hover strong { text-decoration: underline; }
.outfit a span { color: var(--muted); font-size: 0.85rem; }

.src { margin-top: 40px; }
.src p { color: var(--muted); font-size: 0.9rem; }

/* festivals near the parks (TourAPI): photo shown whole (공공누리, no cropping), date first */
.fests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.fx { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; align-content: start; }
.fx img { width: 100%; height: auto; display: block; background: var(--tint); }
.fx-body { padding: 12px 14px 14px; display: grid; gap: 3px; }
.fx-date { margin: 0; color: var(--accent); font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-body strong { font-size: 1.05rem; line-height: 1.4; }
.fx-addr, .fx-tel { color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; }
.fx-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fx-links a { font-size: 0.82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.fx-links a.fx-park { color: var(--pine); border-color: var(--pine); }
.fx-links a:hover { border-color: var(--text); }

/* monthly festival pages */
.chips { list-style: none; padding: 0; margin: 12px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.chips a:hover, .chips a[aria-current="page"] { border-color: var(--pine); color: var(--pine); }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-sub { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
@media (max-width: 640px) {
  .fests.compact { gap: 8px; }
  .fests.compact .fx { grid-template-columns: 108px minmax(0, 1fr); align-items: start; }
  .fests.compact .fx img { width: 96px; margin: 10px 0 10px 10px; border-radius: 6px; }
  .fests.compact .fx-body { padding: 10px 12px; gap: 1px; }
  .fests.compact .fx-body strong { font-size: 0.98rem; }
  .fests.compact .fx-addr, .fests.compact .fx-tel { font-size: 0.8rem; }
  .fests.compact .fx-links { margin-top: 4px; }
  .fests.compact .fx-links a { padding: 2px 8px; font-size: 0.78rem; }
}
