/* Instago 旅遊站（代號 camp）v1 —跟 GlimStar／PLNTverse 同一套：曜石黑 × 香檳金，黑底留白是主角；露營加一個苔綠（合法列管）與營火橘（注意事項） */
:root {
  --m-bg-0: #0d0b09; --m-bg-1: #14110e; --m-surface: rgba(255, 255, 255, .03); --m-hairline: rgba(255, 246, 232, .09);
  --m-text: #f4f0ea; --m-muted: #94897b; --m-gold: #c9a86a; --m-moss: #8fb47a; --m-ember: #e8935a;
  --m-font: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, sans-serif;
  --m-font-display: "Fraunces", "Noto Serif TC", "PingFang TC", serif;
  --m-num: "Space Grotesk", "JetBrains Mono", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--m-bg-0); color: var(--m-text); font-family: var(--m-font); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; padding-bottom: calc(68px + env(safe-area-inset-bottom)); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--m-font-display); font-weight: 600; letter-spacing: .01em; }
.num { font-family: var(--m-num); font-variant-numeric: tabular-nums; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 16px 10px; background: linear-gradient(var(--m-bg-0) 70%, transparent); }
.brand { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.brand-mark { color: var(--m-gold); font-size: 12px; }
.brand-logo { width: 26px; height: 26px; flex: none; align-self: center; object-fit: contain; }
.brand-name { font-family: var(--m-font-display); font-weight: 700; letter-spacing: .18em; font-size: 15px; }
.brand-sub { color: var(--m-muted); font-size: 12px; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--m-hairline); color: var(--m-muted); font-size: 18px; flex: none; }

.view { padding: 4px 16px 24px; max-width: 720px; margin: 0 auto; }
.section { margin-top: 26px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sec-head h2 { font-size: 17px; }
.sec-head .more { color: var(--m-gold); font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
.eyebrow { color: var(--m-gold); font-size: 11px; letter-spacing: .22em; }
.muted { color: var(--m-muted); }
.small { font-size: 12px; }

/* hero：這個月去哪 */
.hero { position: relative; overflow: hidden; border-radius: 20px; border: 1px solid var(--m-hairline); padding: 22px 20px 18px;
  background: radial-gradient(110% 90% at 88% 10%, rgba(232,147,90,.16), transparent 55%), radial-gradient(90% 70% at 0% 100%, rgba(143,180,122,.10), transparent 60%), var(--m-bg-1); }
.hero h1 { font-size: 27px; line-height: 1.22; position: relative; z-index: 1; }
.hero .lead { margin-top: 10px; color: var(--m-muted); font-size: 13px; line-height: 1.6; position: relative; z-index: 1; max-width: 30em; }
.hero .stats { display: flex; gap: 18px; margin-top: 16px; position: relative; z-index: 1; flex-wrap: wrap; }
.hero .stats b { display: block; font-family: var(--m-num); font-size: 22px; color: var(--m-gold); }
.hero .stats span { font-size: 11px; color: var(--m-muted); letter-spacing: .08em; }
.hero svg.ridge { position: absolute; right: 14px; bottom: 16px; width: 110px; opacity: .32; pointer-events: none; }
.hero .cta { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }

/* 卡片 */
.card { background: var(--m-surface); border: 1px solid var(--m-hairline); border-radius: 16px; padding: 14px; }
.card + .card { margin-top: 10px; }
.card.row { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: start; cursor: pointer; }
.alt { font-family: var(--m-num); color: var(--m-gold); line-height: 1; padding-top: 2px; }
.alt b { display: block; font-size: 20px; font-weight: 600; }
.alt small { display: block; font-size: 10px; color: var(--m-muted); margin-top: 5px; letter-spacing: .04em; font-family: var(--m-font); }
.title { font-weight: 600; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.sub { color: var(--m-muted); font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.price { font-size: 12.5px; margin-top: 6px; color: var(--m-text); opacity: .86; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--m-hairline); font-size: 11px; color: var(--m-muted); margin: 6px 6px 0 0; white-space: nowrap; }
.chip.gold { color: var(--m-gold); border-color: rgba(201,168,106,.4); }
.chip.moss { color: var(--m-moss); border-color: rgba(143,180,122,.45); }
.chip.ember { color: var(--m-ember); border-color: rgba(232,147,90,.45); }
.fav-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--m-hairline); color: var(--m-muted); font-size: 16px; }
.fav-btn.on { color: var(--m-ember); border-color: rgba(232,147,90,.5); }

/* 篩選 */
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; height: 42px; border-radius: 12px; border: 1px solid var(--m-hairline); background: var(--m-bg-1); padding: 0 14px; font-size: 15px; outline: none; }
.search input:focus { border-color: rgba(201,168,106,.55); }
.selects { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.selects select { height: 38px; min-width: 0; border-radius: 10px; border: 1px solid var(--m-hairline); background: var(--m-bg-1); padding: 0 8px; font-size: 13px; color: var(--m-text); }
.pill-row { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.pill-row::-webkit-scrollbar { display: none; }
.pill { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--m-hairline); font-size: 13px; color: var(--m-muted); }
.pill.on { color: var(--m-text); border-color: var(--m-gold); background: rgba(201,168,106,.08); }
.count-line { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 10px; font-size: 12px; color: var(--m-muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--m-hairline); font-size: 13px; color: var(--m-text); }
.btn.primary { background: var(--m-gold); color: #1a140c; border-color: var(--m-gold); font-weight: 600; }
.btn.block { width: 100%; margin-top: 14px; }
.empty { color: var(--m-muted); text-align: center; padding: 40px 10px; font-size: 13px; line-height: 1.7; }

/* 推薦卡 */
.reco .why { color: var(--m-gold); font-size: 12px; margin-top: 6px; line-height: 1.5; }
.reco-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.6); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet .panel { position: relative; width: 100%; max-width: 720px; max-height: 88dvh; overflow-y: auto; background: var(--m-bg-1); border: 1px solid var(--m-hairline); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 14px 20px calc(28px + env(safe-area-inset-bottom)); }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--m-hairline); margin: 0 auto 12px; }
.sheet .close { position: absolute; right: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--m-hairline); color: var(--m-muted); font-size: 18px; }
.sheet h2 { font-size: 23px; margin-top: 6px; padding-right: 36px; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: 76px 1fr; gap: 10px 12px; margin-top: 16px; font-size: 14px; line-height: 1.6; }
.kv dt { color: var(--m-muted); font-size: 12px; padding-top: 2px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.notice { margin-top: 14px; border: 1px solid rgba(232,147,90,.4); background: rgba(232,147,90,.07); color: #f3c9a8; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.6; }
.desc { margin-top: 14px; font-size: 14px; line-height: 1.75; color: #e7e1d8; overflow-wrap: anywhere; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* 出處 */
.credit { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--m-hairline); color: var(--m-muted); font-size: 11.5px; line-height: 1.7; }
.credit a { color: var(--m-gold); }

/* tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(7, 1fr);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); background: rgba(13,11,9,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--m-hairline); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--m-muted); padding: 4px 0; }
.tab .t-ic { font-size: 17px; line-height: 1; }
.tab.on { color: var(--m-gold); }

.skeleton { height: 220px; border-radius: 20px; background: linear-gradient(90deg, var(--m-bg-1), #1b1712, var(--m-bg-1)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--m-gold); color: #1a140c; padding: 9px 18px; border-radius: 999px; font-size: 13px; z-index: 30; }
.toast[hidden] { display: none; }

/* 靜態詳細頁 */
.page { max-width: 720px; margin: 0 auto; padding: 8px 18px 40px; }
.page h1 { font-size: 28px; margin-top: 8px; overflow-wrap: anywhere; }
.crumb { color: var(--m-muted); font-size: 12px; margin-top: 4px; }
.crumb a { color: var(--m-gold); }

@media (min-width: 760px) { .hero h1 { font-size: 32px; } }
/* v2.0：附近景點 */
.sec-h { margin: 22px 0 8px; font-size: 15px; color: var(--m-muted); font-family: var(--m-font); font-weight: 700; }
.near { list-style: none; margin: 0; padding: 0; }
.near li { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--m-hairline); font-size: 14px; }
/* v2.1：活動 */
.card.act .alt b { font-size: 18px; }
.near li a b { border-bottom: 1px solid rgba(201,168,106,.45); }
/* v2.2：景點頁的圖（連到來源網址，圖下標攝影／提供者）、收藏的「去過」與備註、行程 */
.shots { display: flex; gap: 10px; overflow-x: auto; margin-top: 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; width: min(86%, 420px); margin: 0; scroll-snap-align: start; }
.shot:only-child { width: 100%; }
.shot img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; border: 1px solid var(--m-hairline); background: var(--m-bg-1); }
.shot figcaption { margin-top: 5px; font-size: 11px; color: var(--m-muted); line-height: 1.5; overflow-wrap: anywhere; }
.card.spot .alt b { font-size: 14px; font-family: var(--m-font); line-height: 1.25; }
.parsed { margin: 8px 0 2px; font-size: 12px; color: var(--m-muted); }
.fav-meta { display: flex; gap: 8px; align-items: center; margin: 6px 0 12px; }
.fav-meta .pill { padding: 6px 12px; font-size: 12px; flex: none; }
.fav-meta .pill.on { color: var(--m-moss); border-color: rgba(143,180,122,.55); background: rgba(143,180,122,.08); }
.fav-meta input, .trip input, .trip textarea { flex: 1; min-width: 0; height: 34px; border-radius: 10px; border: 1px solid var(--m-hairline); background: var(--m-bg-1); padding: 0 10px; font-size: 13px; outline: none; }
.fav-meta input:focus, .trip input:focus, .trip textarea:focus { border-color: rgba(201,168,106,.55); }
.trip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.trip > * { min-width: 0; }
.trip .two { display: grid; grid-template-columns: minmax(0, 1fr) 136px; gap: 8px; }
.trip .two input { width: 100%; }
.trip textarea { font: inherit; color: var(--m-text); height: auto; min-height: 170px; padding: 10px; line-height: 1.7; font-size: 14px; resize: vertical; width: 100%; }
.trip-day { margin: 14px 0 4px; color: var(--m-gold); font-size: 12px; letter-spacing: .12em; }
.trip-row { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--m-hairline); font-size: 14px; }
.trip-row .tm { font-family: var(--m-num); color: var(--m-gold); font-size: 13px; }
.trip-row .tag { color: var(--m-moss); font-size: 12px; margin-right: 8px; }
.trip-row .tag[data-key] { border-bottom: 1px solid rgba(143,180,122,.5); cursor: pointer; }
/* 來源與精度（verse-core PROVENANCE v1.0，2026-11-22）：依據可展開、林道的交通工具表 */
.basis { margin-top: 6px; font-size: 13px; }
.basis summary { cursor: pointer; color: var(--m-gold); list-style: none; }
.basis summary::-webkit-details-marker { display: none; }
.basis summary::after { content: " ▸"; color: var(--m-muted); }
.basis[open] summary::after { content: " ▾"; }
.basis ul { margin: 6px 0 4px; padding-left: 18px; line-height: 1.6; }
.basis p { margin: 6px 0 0; line-height: 1.6; }
.near li .chip { margin: 0 4px 0 0; padding: 0 6px; }
.modes { border-collapse: collapse; width: 100%; font-size: 13px; }
.modes th { text-align: left; color: var(--m-muted); font-weight: 400; padding: 3px 10px 3px 0; white-space: nowrap; vertical-align: top; width: 3em; }
.modes td { padding: 3px 0; border-bottom: 1px solid var(--m-hairline); }
