/* 小林台灣遊記：藍染＋朱紅印章＋金黃，民宿用青竹綠 */
:root {
  --indigo: #1d2b53;
  --indigo-2: #2b3f73;
  --indigo-3: #e7ebf4;
  --ink: #1b2233;
  --muted: #5d6678;
  --paper: #f2f3ef;
  --card: #ffffff;
  --line: #dde1d9;
  --red: #d6402a;
  --gold: #e8b04b;
  --gold-soft: #fbf1dc;
  --bamboo: #237a5c;
  --bamboo-soft: #e3f1ea;
  --food: #d6402a;
  --snack: #c27a12;
  --play: #2f6fa3;
  --stay: #237a5c;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 8px 24px rgba(20, 30, 60, .07);
  --shadow-lg: 0 2px 4px rgba(20, 30, 60, .08), 0 18px 40px rgba(20, 30, 60, .14);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html, body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; overflow-x: hidden; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
button { font: inherit; }
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.block { margin-top: 64px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.block-title { font-family: var(--serif); font-weight: 600; font-size: 30px; display: flex; align-items: center; gap: 10px; }
.block-title::after { content: ""; width: 34px; height: 3px; background: var(--red); border-radius: 2px; margin-left: 4px; }
.more { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--indigo); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.more:hover .ico { transform: translateX(3px); }
.more .ico { transition: transform .2s; }
.title-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; font-size: 22px; }
.cat-food { --c: var(--food); }
.cat-snack { --c: var(--snack); }
.cat-play { --c: var(--play); }
.title-ico { background: var(--c, var(--indigo)); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; padding-top: env(safe-area-inset-top); background: rgba(242, 243, 239, .82); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .94); border-color: var(--line); box-shadow: 0 4px 18px rgba(20, 30, 60, .06); }
.header-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .stamp { transition: transform .4s var(--ease); }
.brand:hover .stamp { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--indigo); letter-spacing: .04em; white-space: nowrap; }
.brand-light .brand-name { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.nav-link:hover, .nav-item:focus-within > .nav-link { background: var(--indigo-3); color: var(--indigo); }
.has-mega > .nav-link::after { content: "▾"; font-size: .7em; margin-left: 4px; opacity: .6; }
.mega { position: absolute; top: calc(100% + 10px); left: -20px; display: grid; grid-template-columns: repeat(5, 120px); gap: 18px; padding: 22px 24px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.mega-title { margin: 0 0 6px; font-size: .78rem; color: var(--red); font-weight: 700; letter-spacing: .1em; }
.mega a, .mega span { display: flex; justify-content: space-between; padding: 4px 0; text-decoration: none; font-size: .95rem; }
.mega a:hover { color: var(--red); }
.mega small { color: var(--muted); }
.mega .is-empty { color: #b2b7c0; }
.nav-search { display: flex; align-items: center; margin-left: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 2px 4px 2px 14px; transition: border-color .2s, box-shadow .2s; }
.nav-search:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(29, 43, 83, .12); }
.nav-search input { border: 0; outline: 0; background: none; width: 150px; font: inherit; font-size: .92rem; padding: 6px 0; }
.nav-search button { border: 0; background: var(--indigo); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.search-btn, .burger { display: none; }
.nav-close { display: none; }

@media (max-width: 900px) {
  /* backdrop-filter 會把 position:fixed 的全螢幕選單困在 header 裡，手機一律拿掉 */
  .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(246, 247, 243, .98); }
  .header-in { height: 58px; gap: 8px; }
  .search-btn { display: grid; place-items: center; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; color: var(--indigo); font-size: 20px; }
  .burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; border: 0; background: var(--indigo); border-radius: 12px; padding: 0 10px; cursor: pointer; }
  .burger span { height: 2px; background: #fff; border-radius: 2px; }
  .main-nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 80; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: calc(64px + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom)); background: var(--indigo); color: #fff; overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
  .main-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-close { display: block; position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
  .nav-link { color: #fff; font-family: var(--serif); font-size: 1.4rem; padding: 12px 4px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav-link:hover, .nav-item:focus-within > .nav-link { background: none; color: var(--gold); }
  .has-mega > .nav-link::after { display: none; }
  .mega { position: static; opacity: 1; visibility: inherit; pointer-events: inherit; transform: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; background: rgba(255, 255, 255, .06); border: 0; box-shadow: none; margin: 10px 0 6px; padding: 16px; }
  .mega-title { color: var(--gold); }
  .mega a { color: #fff; }
  .mega small { color: rgba(255, 255, 255, .6); }
  .mega .is-empty { color: rgba(255, 255, 255, .35); }
  .nav-search { order: -1; margin: 0 0 12px; background: #fff; }
  .nav-search input { width: 100%; flex: 1; font-size: 16px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--indigo); color: #fff; margin-top: -1px; }
.hero-bg, .banner-bg { position: absolute; inset: 0; pointer-events: none; }
.topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.topo path { fill: none; stroke: rgba(232, 176, 75, .22); stroke-width: 1.2; }
.hero .topo path { stroke-dasharray: 6 0; animation: drift 24s linear infinite alternate; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-40px); } }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.g1 { width: 420px; height: 420px; background: #3d5a9e; top: -120px; right: -80px; animation: float 12s ease-in-out infinite; }
.g2 { width: 300px; height: 300px; background: #8a3a3a; bottom: -140px; left: -60px; opacity: .35; animation: float 14s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(20px, 24px); } }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .9rem; letter-spacing: .12em; color: var(--gold); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: 56px; letter-spacing: .04em; line-height: 1.2; }
.hero-sub { margin: 10px 0 0; font-size: 1.15rem; color: rgba(255, 255, 255, .82); }
.hero-search { display: flex; align-items: center; gap: 8px; margin-top: 28px; max-width: 560px; background: #fff; color: var(--ink); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.hero-search .ico { color: var(--muted); font-size: 20px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 8px 0; background: none; }
.hero-search button { border: 0; background: var(--red); color: #fff; font-weight: 700; padding: 10px 22px; border-radius: 999px; cursor: pointer; transition: transform .15s, background .2s; }
.hero-search button:hover { background: #bd3420; transform: translateY(-1px); }
.hero-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-cat { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-weight: 600; transition: background .2s, transform .2s; }
.hero-cat .ico { color: var(--gold); font-size: 20px; }
.hero-cat:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 32px; margin: 30px 0 0; }
.hero-stats dt { font-size: .8rem; color: rgba(255, 255, 255, .6); letter-spacing: .1em; }
.hero-stats dd { margin: 0; color: rgba(255, 255, 255, .8); }
.hero-stats b { font-family: var(--serif); font-size: 2rem; color: #fff; font-weight: 600; margin-right: 2px; }

.hero-stack { position: relative; height: 380px; }
.polaroid { position: absolute; width: 230px; background: #fff; color: var(--ink); padding: 10px 10px 0; border-radius: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transition: transform .5s var(--ease); }
.polaroid-img { aspect-ratio: 1; border-radius: 3px; overflow: hidden; }
.polaroid-img img { width: 100%; height: 100%; object-fit: cover; }
.polaroid p { margin: 0; padding: 8px 2px 10px; font-family: var(--serif); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polaroid.p0 { top: 20px; left: 8%; transform: rotate(-7deg); z-index: 3; animation: bob 7s ease-in-out infinite; }
.polaroid.p1 { top: 0; right: 4%; transform: rotate(6deg); z-index: 2; animation: bob 8s ease-in-out -2s infinite; }
.polaroid.p2 { bottom: 0; left: 34%; transform: rotate(-1deg); z-index: 4; animation: bob 9s ease-in-out -4s infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
.hero-stack:hover .p0 { transform: rotate(-10deg) translateX(-14px); }
.hero-stack:hover .p1 { transform: rotate(10deg) translateX(14px); }

/* 跑馬燈 */
.marquee { overflow: hidden; background: var(--red); color: rgba(255, 255, 255, .55); white-space: nowrap; padding: 10px 0; font-family: var(--serif); font-size: 1.05rem; }
.marquee-track { display: inline-block; animation: marquee 50s linear infinite; }
.marquee span { padding: 0 6px; }
.marquee .is-open { color: #fff; }
.marquee i { font-style: normal; opacity: .5; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 無照片版型 ---------- */
.ph { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 100px; overflow: hidden; color: var(--c); background:
  radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .7), transparent 50%),
  repeating-linear-gradient(135deg, transparent 0 14px, rgba(0, 0, 0, .025) 14px 15px),
  color-mix(in srgb, var(--c) 12%, #fff); }
.ph-food { --c: var(--food); } .ph-snack { --c: var(--snack); } .ph-play { --c: var(--play); } .ph-stay { --c: var(--stay); }
.ph .ico { width: 34%; height: 34%; max-width: 72px; max-height: 72px; stroke-width: 1.5; opacity: .55; }
.ph em { position: absolute; bottom: 10px; font-style: normal; font-size: .72rem; letter-spacing: .2em; opacity: .6; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 20px; }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img, .card:hover .ph .ico { transform: scale(1.06); }
.ph .ico { transition: transform .6s var(--ease); }
.card-cat { display: inline-block; background: var(--c, var(--indigo)); color: #fff; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; letter-spacing: .05em; }
.card-img .card-cat { position: absolute; left: 12px; top: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-place { display: flex; align-items: center; gap: 4px; margin: 0 0 2px; font-size: .8rem; color: var(--muted); }
.card-body h3 { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; }
.card-sub { margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: auto 0 0; padding-top: 10px; font-size: .82rem; color: var(--muted); }
.card-meta .price { color: var(--red); font-weight: 700; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-grid .card-big { grid-column: span 2; grid-row: span 2; }
.card-big .card-img { aspect-ratio: auto; flex: 1; min-height: 260px; }
.card-big .card-body h3 { font-size: 1.5rem; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }

/* 橫向卡片列 */
.rail-wrap { position: relative; max-width: 1232px; margin: 0 auto; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 23%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 20px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .card { scroll-snap-align: start; }
.rail-btn { position: absolute; top: 38%; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); color: var(--indigo); font-size: 26px; line-height: 1; box-shadow: var(--shadow-lg); cursor: pointer; transition: opacity .2s, transform .2s; }
.rail-btn:hover { transform: scale(1.08); }
.rail-btn.prev { left: 0; } .rail-btn.next { right: 0; }
.rail-wrap.at-start .prev, .rail-wrap.at-end .next { opacity: 0; pointer-events: none; }

/* 縣市 */
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.region { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.region summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.region summary::-webkit-details-marker { display: none; }
.region-name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--indigo); }
.region-list { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region summary small { color: var(--red); font-weight: 700; }
.region summary::after { content: ""; grid-column: 3; grid-row: 1; justify-self: end; }
.region[open] .region-list { opacity: 0; }
.county-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 0 18px 18px; animation: open .35s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
.county { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: var(--indigo-3); text-decoration: none; transition: background .2s, transform .2s; }
.county b { font-family: var(--serif); font-weight: 600; color: var(--indigo); }
.county small { color: var(--red); font-size: .78rem; }
a.county:hover { background: var(--indigo); transform: translateY(-2px); }
a.county:hover b, a.county:hover small { color: #fff; }
.county.is-empty { background: #eef0ec; }
.county.is-empty b, .county.is-empty small { color: #a9afb8; }

/* ---------- 內頁橫幅 ---------- */
.banner { position: relative; overflow: hidden; background: var(--indigo); color: #fff; }
.banner-in { position: relative; padding-top: 18px; padding-bottom: 40px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: rgba(255, 255, 255, .65); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs b { color: #fff; font-weight: 600; }
.page-title { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 44px; margin-top: 14px; }
.banner-sub { margin: 6px 0 0; color: rgba(255, 255, 255, .75); }

.filter-bar { position: relative; z-index: 2; margin-top: -22px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 12px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tab { flex: none; text-decoration: none; padding: 8px 18px; border-radius: 12px; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.tab small { margin-left: 4px; font-weight: 400; }
.tab:hover { background: var(--indigo-3); color: var(--indigo); }
.tab.is-on { background: var(--indigo); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.chip { text-decoration: none; font-size: .88rem; padding: 4px 12px; border-radius: 999px; background: var(--paper); transition: background .2s; }
.chip:hover { background: var(--indigo-3); }
.chip.is-on { background: var(--red); color: #fff; }
.map { height: 340px; border-radius: var(--radius); margin: 20px 0 0; box-shadow: var(--shadow); z-index: 0; }
.empty { color: var(--muted); padding: 48px 0; text-align: center; }
.page-search { margin: 24px 0 0; max-width: none; box-shadow: var(--shadow); }

/* ---------- 單店頁 ---------- */
.place-hero { position: relative; overflow: hidden; background: var(--indigo); color: #fff; min-height: 300px; display: flex; align-items: flex-end; }
.place-hero.has-photo { min-height: min(62vh, 560px); }
.place-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } }
.place-hero.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 20, 40, .88), rgba(14, 20, 40, .2) 55%, rgba(14, 20, 40, .35)); }
.place-hero-ph { position: absolute; inset: 0; color: var(--gold); }
.place-hero-ph > .ico { position: absolute; right: 6%; bottom: -10%; width: 260px; height: 260px; stroke-width: 1; opacity: .18; }
.place-hero-in { position: relative; z-index: 1; width: 100%; padding-top: 18px; padding-bottom: 56px; }
.place-kicker { display: flex; align-items: center; gap: 10px; margin: 40px 0 8px; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.place-hero h1 { font-family: var(--serif); font-weight: 600; font-size: 48px; max-width: 18em; }
.place-sub { margin: 8px 0 0; font-size: 1.15rem; color: rgba(255, 255, 255, .85); max-width: 36em; }

.place-layout { max-width: 820px; }
.ticket { position: relative; margin-top: -32px; z-index: 2; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px 22px 14px; }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--paper); }
.ticket::before { left: -10px; } .ticket::after { right: -10px; }
.visit-stamp { position: absolute; right: 18px; top: -26px; width: 84px; height: 84px; border: 2.5px solid var(--red); border-radius: 50%; color: var(--red); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-12deg); background: rgba(255, 255, 255, .9); font-family: var(--serif); line-height: 1.1; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .9), inset 0 0 0 5.5px var(--red); animation: stamp .6s var(--ease) .3s both; }
.visit-stamp span { font-size: .85rem; letter-spacing: .3em; margin-right: -.3em; }
.visit-stamp b { font-size: 1rem; font-weight: 600; }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.8); } }
.info { margin: 0; }
.info > div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.info > div:last-child { border-bottom: 0; }
.info dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; }
.info dt .ico { color: var(--indigo); }
.info dd { margin: 0; padding-right: 70px; }
.info > div:not(:first-child) dd { padding-right: 0; }
.info small { display: block; color: var(--muted); }
.closed { margin-left: 8px; color: var(--red); font-size: .9rem; font-weight: 700; }
.nav-btn { margin-left: 8px; font-size: .82rem; padding: 2px 12px; border-radius: 999px; border: 0; color: #fff; background: var(--indigo); cursor: pointer; transition: transform .15s; }
.nav-btn:hover { transform: translateY(-1px); }
.info a { color: var(--indigo); font-weight: 700; }
.note { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }

.sec-title { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.sec-title::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--red); }
.items, .gallery-sec, .prose { margin-top: 40px; }
.menu { list-style: none; margin: 0; padding: 18px 22px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.menu li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.menu span { font-weight: 600; }
.menu i { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.menu b { color: var(--red); font-family: var(--serif); font-size: 1.1rem; font-weight: 600; white-space: nowrap; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery figure { margin: 0; }
.gallery .zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s var(--ease); }
.gallery .zoom:hover img { transform: scale(1.06); }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.prose { font-size: 1.06rem; line-height: 1.95; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { font-family: var(--serif); font-weight: 600; margin: 1.6em 0 .6em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 18px; border-left: 4px solid var(--gold); color: #3d4558; background: var(--gold-soft); border-radius: 0 10px 10px 0; }

/* ---------- 民宿（導房狸） ---------- */
.stays { margin-top: 40px; background: linear-gradient(135deg, var(--bamboo-soft), #f1f8f4); border: 1px solid #cfe5da; border-radius: 20px; padding: 18px; }
.stays-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.stays-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--stay); color: #fff; font-size: 20px; }
.stays-title { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--stay); }
.stay-list { display: grid; gap: 12px; }
.stay { display: grid; grid-template-columns: 116px 1fr; gap: 14px; text-decoration: none; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(20, 60, 40, .06); transition: transform .25s var(--ease), box-shadow .25s; }
.stay:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(20, 80, 55, .16); }
.stay-img { min-height: 108px; overflow: hidden; }
.stay-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.stay:hover .stay-img img { transform: scale(1.06); }
.stay-body { padding: 12px 14px 12px 0; display: flex; flex-direction: column; }
.stay-name { margin: 0; font-weight: 700; line-height: 1.4; }
.stay-tag { margin: 3px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.stay-foot { margin: auto 0 0; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.stay-price { font-size: .88rem; color: var(--stay); font-weight: 700; }
.stay-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; background: var(--stay); color: #fff; font-size: .86rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; transition: gap .2s; }
.stay:hover .stay-btn { gap: 8px; }
@media (min-width: 720px) { .stay-list { grid-template-columns: repeat(3, 1fr); } .stay { grid-template-columns: 1fr; } .stay-img { aspect-ratio: 4 / 3; } .stay-body { padding: 12px 14px 14px; } }

.sticky-stay { display: none; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox[open] { animation: open .3s var(--ease); }
.lightbox::backdrop { background: rgba(10, 14, 28, .9); }
.lightbox img { max-width: 96vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; }
.lb-close { position: fixed; top: 12px; right: 16px; font-size: 2.2rem; color: #fff; background: none; border: 0; cursor: pointer; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 96px; background: #141d38; color: rgba(255, 255, 255, .7); font-size: .9rem; }
.foot-wave { position: absolute; top: -28px; left: 0; right: 0; height: 30px; background: radial-gradient(circle at 15px -6px, transparent 18px, #141d38 19px) repeat-x; background-size: 30px 30px; }
.foot-grid { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 28px; padding-top: 52px; padding-bottom: 32px; }
.foot-brand p { margin: 12px 0 0; }
.foot-small { font-size: .8rem; color: rgba(255, 255, 255, .5); }
.foot-title { margin: 0 0 8px; color: var(--gold); font-weight: 700; letter-spacing: .1em; }
.foot-col a, .foot-col span { display: block; padding: 3px 0; text-decoration: none; }
.foot-col a { color: #fff; }
.foot-col a:hover { color: var(--gold); }
.foot-col span { color: rgba(255, 255, 255, .35); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); font-size: .8rem; color: rgba(255, 255, 255, .45); }

/* ---------- 進場動畫 ---------- */
.will-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.will-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 手機 ---------- */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; }
  .hero-stack { height: 240px; margin-top: 8px; }
  .polaroid { width: 150px; }
  .polaroid.p0 { left: 0; } .polaroid.p1 { right: 0; } .polaroid.p2 { left: 28%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 1.6rem; }
  .hero-search button { padding: 10px 16px; }
  .block { margin-top: 48px; }
  .block-title { font-size: 24px; }
  .title-ico { width: 34px; height: 34px; font-size: 18px; }
  .page-title { font-size: 30px; }
  .place-hero h1 { font-size: 30px; }
  .place-hero { min-height: 260px; }
  .place-hero.has-photo { min-height: 58vh; }
  .place-sub { font-size: 1rem; }
  .ticket { padding: 8px 16px 12px; }
  .visit-stamp { width: 70px; height: 70px; right: 10px; top: -30px; }
  .info dd { padding-right: 0; }
  .info > div:first-child dd { padding-right: 52px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-body h3 { font-size: 1rem; }
  .card-sub { display: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-big .card-img { min-height: 200px; }
  .card-big .card-body h3 { font-size: 1.2rem; }
  .rail { grid-auto-columns: 62%; gap: 12px; }
  .rail-btn { display: none; }
  .regions { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .page-place { padding-bottom: 76px; }
  .sticky-stay { display: flex; align-items: center; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; background: var(--stay); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 18px; border-radius: 999px; box-shadow: 0 10px 28px rgba(20, 90, 60, .4); animation: rise .5s var(--ease) .6s both; }
  .sticky-stay span { margin-left: auto; font-size: .85rem; background: rgba(255, 255, 255, .2); padding: 2px 12px; border-radius: 999px; }
  @keyframes rise { from { transform: translateY(120%); } }
}
@media (max-width: 340px) {
  .cards { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.05rem; }
}

/* Photo provenance remains visible on generated demo covers. */
.photo-disclosure { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 6px; background: rgba(20, 28, 35, .82); color: #fff; font-size: .72rem; letter-spacing: .04em; }
.cover-caption { position: absolute; right: 12px; top: 12px; z-index: 1; margin: 0; max-width: 60%; padding: 3px 10px; border-radius: 6px; background: rgba(14, 20, 40, .72); color: rgba(255, 255, 255, .9); font-size: .75rem; line-height: 1.5; }

.polaroid-img { position: relative; }
.polaroid-img .photo-disclosure { right: 5px; bottom: 5px; font-size: .6rem; padding: 2px 5px; }

/* ---------- 廣告版位 ---------- */
.ads { display: grid; gap: 12px; margin-top: 32px; }
.ads-block { margin-top: 40px; }
.ad-label { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: .68rem; letter-spacing: .1em; padding: 1px 7px; border-radius: 4px; background: rgba(20, 28, 50, .6); color: #fff; }
.ad-banner { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; }
.ad-banner img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; transition: transform .6s var(--ease); }
.ad-banner:hover img { transform: scale(1.03); }
.ad-banner-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 14px; color: #fff; background: linear-gradient(to top, rgba(14, 20, 40, .8), transparent); display: flex; flex-direction: column; }
.ad-banner-text b { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.ad-banner-text span { font-size: .9rem; opacity: .9; }
.ad-card { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 16px; text-decoration: none; background: var(--gold-soft); border: 1px solid #f0dcae; border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.ad-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(150, 100, 20, .16); }
.ad-card-img { min-height: 110px; background: #f6e5bd; display: grid; place-items: center; }
.ad-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ad-card-ico { color: #c49326; font-size: 40px; }
.ad-card-body { padding: 14px 16px 14px 0; display: flex; flex-direction: column; }
.ad-card-title { margin: 0; font-weight: 700; font-size: 1.05rem; padding-right: 36px; }
.ad-card-text { margin: 4px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.55; }
.ad-card-btn { align-self: flex-start; margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 4px; color: #9a6a0c; font-weight: 700; font-size: .9rem; }
@media (min-width: 900px) { .ads:has(.ad-card + .ad-card) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .ad-banner img { aspect-ratio: 5 / 2; }
  .ad-card { grid-template-columns: 104px 1fr; gap: 12px; }
}

.block-sub { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.block-tight { margin-top: 0; }

/* 正文：Trix 編輯器輸出的段落是 div、插圖是 figure.attachment */
.prose > div { margin: 0 0 1.1em; }
.prose strong { color: #10172b; background: linear-gradient(transparent 62%, rgba(232, 176, 75, .35) 0); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose ul li::marker { color: var(--red); }
.prose ol li::marker { color: var(--red); font-weight: 700; font-family: var(--serif); }
.prose h2 { font-size: 1.45rem; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.prose h3 { font-size: 1.15rem; color: var(--indigo); }
.prose blockquote { position: relative; padding: 12px 16px 12px 46px; font-size: .98rem; }
.prose blockquote::before { content: "!"; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; line-height: 1; }
.prose figure, .prose .attachment { margin: 1.4em 0; }
.prose figure img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow); }
.prose figcaption, .prose .attachment__caption { margin-top: 8px; text-align: center; font-size: .85rem; color: var(--muted); }
.prose .attachment__name, .prose .attachment__size { display: none; }
.prose del { color: var(--muted); }

/* 民宿即時房價 */
.stay-live { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; line-height: 1.4; }
.stay-live.is-open b { color: var(--stay); }
.stay-live.is-open span { background: #fdebe7; color: var(--red); font-weight: 700; padding: 1px 8px; border-radius: 999px; font-size: .78rem; }
.stay-live.is-full { color: var(--muted); }
