/* 潮間旅店 Tidal Inn｜編輯式版面：深海藍＋沙金（色票與參考見 DESIGN-SPEC.md） */
:root {
  --page: #f4f4f1; --paper: #f4f4f1; --paper-2: #e9eae6; --navy: #004e6f; --navy-d: #062f43; --ink: #0f2230;
  --sand: #cdb380; --stone: #5d666c; --line: #cfd3d1; --full: #aab1b5; --bad: #a3343a;
  --wm-accent: #004e6f;
  --sky-a: #d9e2e6; --sky-b: rgba(244, 244, 241, 0); --wave1: #004e6f; --wave2: #7c9cad; --wave3: #c9d3d6;
  --f-zh: 'Cactus Classical Serif', 'Noto Serif TC', 'PMingLiU', serif;
  --f-lat: 'Tenor Sans', 'Cactus Classical Serif', 'Noto Serif TC', serif;
  --max: 1320px; --gut: clamp(20px, 4.5vw, 72px); --sec: clamp(5rem, 11vw, 10rem); --hdr: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.9 var(--f-zh); letter-spacing: .04em; line-break: strict; overflow-x: hidden; animation: page-in .8s ease both; }
body[data-lang="en"] { font-family: var(--f-lat); letter-spacing: .01em; line-height: 1.75; }
@keyframes page-in { from { opacity: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--f-lat); font-weight: 400; line-height: 1.3; letter-spacing: .06em; color: var(--ink); text-wrap: balance; margin: 0 0 .7em; }
body[data-lang="en"] h1, body[data-lang="en"] h2, body[data-lang="en"] h3 { letter-spacing: -.005em; }
p { margin: 0 0 1em; }
button { font: inherit; letter-spacing: inherit; }
:focus-visible { outline: 1px solid var(--navy); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { top: 12px; }
.tiny { font-size: .82rem; color: var(--stone); }
.num, .facts dd, time, .price b, .q-total b { font-variant-numeric: tabular-nums lining-nums; }

/* 小型大寫標籤（章節編號） */
.label, .eyebrow { font: 400 .74rem/1.4 var(--f-lat); letter-spacing: .26em; text-transform: uppercase; color: var(--stone); margin: 0 0 1.6rem; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.label .no { color: var(--navy); letter-spacing: .1em; padding-right: 14px; border-right: 1px solid var(--sand); }
.label-en { color: var(--stone); opacity: .7; }
.lede { font-size: 1.12rem; color: var(--stone); max-width: 32em; }
/* 連結：底線慢慢畫出 */
.link, .nav ul a, .ftr a, .room-index a { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size .5s ease; }
.link:hover, .nav ul a:hover, .ftr a:hover, .room-index a:hover, .nav ul a[aria-current="page"] { background-size: 100% 1px; }
.link { font: 400 .78rem/1.4 var(--f-lat); letter-spacing: .2em; text-transform: uppercase; padding-bottom: 6px; background-size: 100% 1px; background-image: linear-gradient(var(--sand), var(--sand)); }
.link:hover { background-image: linear-gradient(var(--navy), var(--navy)); }

/* 按鈕：方角、少而精 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 46px; padding: 0 1.6em; border-radius: 0; font: 400 .9rem/1 var(--f-lat); letter-spacing: .16em; text-decoration: none; cursor: pointer; border: 1px solid var(--navy); transition: background .3s, color .3s; }
body[data-lang="en"] .btn { text-transform: uppercase; font-size: .76rem; letter-spacing: .2em; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-d); border-color: var(--navy-d); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-lg { min-height: 56px; padding: 0 2.4em; }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .82rem; }
.btn-block { width: 100%; min-height: 56px; }
.btn[aria-disabled="true"] { background: var(--full); border-color: var(--full); color: #fff; cursor: not-allowed; }

/* ── Header：導覽左、品牌置中、訂房右 ── */
.hdr { position: sticky; top: 0; z-index: 50; height: var(--hdr); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 var(--gut); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .4s; }
.hdr.is-scrolled { border-bottom-color: var(--line); }
.brand { grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink); }
.brand-zh { font: 400 1.25rem/1 var(--f-zh); letter-spacing: .5em; margin-right: -.5em; }
.brand-en { font: 400 .58rem/1 var(--f-lat); letter-spacing: .42em; color: var(--stone); margin-right: -.42em; }
.nav { grid-column: 1; grid-row: 1; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav li { display: flex; align-items: center; }
.nav a { color: var(--ink); font-size: .9rem; padding: 6px 0; }
body[data-lang="en"] .nav a { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; }
.hdr-end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 18px; }
.lang { font: 400 .74rem/1 var(--f-lat); letter-spacing: .2em; color: var(--ink); text-decoration: none; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.lang:hover { color: var(--navy); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center; padding: 0; grid-column: 1; grid-row: 1; justify-self: start; }
.menu-btn svg { width: 26px; height: 26px; stroke: var(--ink); stroke-width: 1.2; fill: none; }
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(15, 34, 48, .4); }
.scrim[hidden] { display: none; }
@media (max-width: 899px) {
  :root { --hdr: 64px; }
  .hdr { gap: 8px; }
  .menu-btn { display: inline-flex; }
  .brand-zh { font-size: 1.05rem; letter-spacing: .32em; margin-right: -.32em; }
  .brand-en { display: none; }
  .hdr-end { gap: 4px; }
  .hdr-book { min-height: 40px; padding: 0 .9em; letter-spacing: .1em; }
  .nav { position: fixed; top: var(--hdr); left: 0; bottom: 0; width: min(340px, 88vw); z-index: 45; padding: 28px var(--gut) 40px; background: var(--paper); border-right: 1px solid var(--line); clip-path: inset(0 100% 0 0); visibility: hidden; transition: clip-path .4s, visibility 0s .4s; overflow-y: auto; }
  .nav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .4s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; width: 100%; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; background: none; }
  body.menu-open { overflow: hidden; }
}

/* ── 動態：捲動出現、圖片慢速放大 ── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.zoom { overflow: hidden; margin: 0; }
.zoom img { transition: transform 2.4s cubic-bezier(.2, .7, .2, 1); }
.zoom:hover img, .film-item a:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { body { animation: none; } .js .reveal { opacity: 1; transform: none; transition: none; } .zoom img { transition: none; } html { scroll-behavior: auto; } }

.divider { display: block; width: 100%; height: 24px; }
.divider path { fill: none; stroke: var(--sand); stroke-width: 1; vector-effect: non-scaling-stroke; }

/* 12 欄網格 */
section { padding: var(--sec) var(--gut); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; }
.sec-head { max-width: var(--max); margin: 0 auto clamp(2.5rem, 6vw, 5rem); align-items: end; }
.sec-head .label { grid-column: 1 / span 3; }
.sec-head h2 { grid-column: 4 / span 6; font-size: clamp(1.8rem, 3.4vw, 3rem); margin: 0; }
.sec-head .link { grid-column: 11 / span 2; justify-self: end; }
@media (max-width: 899px) { .grid { display: block; } .sec-head .link { display: inline-block; margin-top: 1.2rem; } }

/* ── Hero（直書首屏：左側全景大圖、右側窄紙欄直排標題，潮汐線橫跨底部）── */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 420px); min-height: min(calc(100vh - var(--hdr)), 960px); padding: 0; overflow: hidden; isolation: isolate; background: var(--paper); color: var(--ink); transition: background 1.2s, color 1.2s; }
.hero-pic { grid-column: 1; grid-row: 1; position: relative; min-height: 560px; }
.hero-txt { grid-column: 2; grid-row: 1; position: relative; z-index: 2; display: flex; flex-direction: column; padding: clamp(1.6rem, 4vh, 3rem) var(--gut) clamp(120px, 17vh, 170px) clamp(28px, 3vw, 48px); }
.hero-txt .label { margin-bottom: 1.2rem; }
.hero h1 { writing-mode: vertical-rl; font-size: clamp(2.6rem, min(4.6vw, 7.6vh), 4.6rem); line-height: 1.45; letter-spacing: .22em; margin: 0 0 auto; align-self: flex-end; max-height: 46vh; }
body[data-lang="en"] .hero h1 { writing-mode: horizontal-tb; align-self: stretch; font-size: clamp(2.3rem, 3.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.015em; }
.hero .lede { margin: 1.4rem 0 1.2rem; font-size: 1rem; }
.hero .btn-lg { align-self: flex-start; }
.daypart { display: flex; gap: 16px; margin-top: 1rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.daypart button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--stone); cursor: pointer; font: 400 .85rem/1 var(--f-lat); letter-spacing: .16em; padding: 0; position: relative; }
.daypart button[aria-pressed="true"] { color: var(--ink); }
.daypart button[aria-pressed="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--sand); }
.hero-pic .hp { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.hero-pic .hp.is-on { opacity: 1; }
.hero-sky { position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--sky-a) 50%, transparent), transparent 45%); transition: background 1.2s; }
.tide { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; width: 100%; height: clamp(120px, 18vh, 200px); transform: translateY(calc((1 - var(--tide, .4)) * 60px)); will-change: transform; pointer-events: none; }
.tide .w3 { fill: var(--wave3); opacity: .5; }
.tide .w2 { fill: var(--wave2); opacity: .45; }
.tide .w1 { fill: var(--page); }
.tide .tideline { fill: none; stroke: var(--sand); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.gauge { position: absolute; left: var(--gut); top: 32px; z-index: 2; display: flex; align-items: center; gap: 12px; color: #fff; font: 400 .7rem/1 var(--f-lat); letter-spacing: .24em; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.gauge-bar { width: 1px; height: 110px; background: rgba(255, 255, 255, .55); position: relative; }
.gauge-fill { position: absolute; left: -1px; right: -1px; bottom: 0; height: calc(var(--tide, .4) * 100%); background: var(--sand); }
.gauge-num b { font-weight: 400; }
.hero[data-daypart="dawn"] { --sky-a: #e8d9cc; --wave2: #a8b6bd; --wave3: #e3d8cc; }
.hero[data-daypart="dusk"] { --sky-a: #c9c2cf; --wave2: #6f7f97; --wave3: #cdc4cf; }
.hero[data-daypart="night"] { --paper: #004e6f; --ink: #f4f4f1; --stone: #c3d1d7; --line: #2a6e8c; --sky-a: #004e6f; --wave2: #1d6a8c; --wave3: #0d5a7c; background: #004e6f; }
.hero[data-daypart="night"] .btn-primary { background: var(--sand); border-color: var(--sand); color: #0f2230; }
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-pic { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-txt { padding: 2rem var(--gut) clamp(110px, 16vh, 150px); }
  .hero h1, body[data-lang="en"] .hero h1 { writing-mode: horizontal-tb; align-self: stretch; max-height: none; font-size: clamp(2.3rem, 9vw, 3.2rem); line-height: 1.2; letter-spacing: .1em; }
  body[data-lang="en"] .hero h1 { letter-spacing: -.01em; line-height: 1.05; }
  .hero .lede { margin-top: 1.2rem; }
  .gauge { top: 16px; } .gauge-bar { height: 70px; }
}

/* ── Intro ── */
.intro { align-items: start; }
.intro-side { grid-column: 1 / span 3; }
.vert { writing-mode: vertical-rl; font: 400 clamp(1.4rem, 2.4vw, 2rem)/1 var(--f-zh); letter-spacing: .5em; color: var(--sand); margin: 0; }
body[data-lang="en"] .vert { font-family: var(--f-lat); font-size: 1rem; letter-spacing: .4em; }
.intro-txt { grid-column: 4 / span 8; }
.intro-txt h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.intro-txt > p { max-width: 36em; color: var(--stone); }
.facts { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(3rem, 6vw, 5rem) 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 22px 16px 0 0; }
.facts dt { font: 400 .7rem/1.4 var(--f-lat); letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }
.facts dd { margin: 6px 0 0; font: 400 clamp(1.8rem, 3vw, 2.6rem)/1.1 var(--f-lat); color: var(--navy); }
@media (max-width: 899px) { .vert { writing-mode: horizontal-tb; font-size: 1rem; letter-spacing: .3em; } .facts { grid-template-columns: 1fr 1fr; } .intro-txt { margin-top: 1.5rem; } }

/* ── 設施交錯：大圖＋窄欄、一張滿版 ── */
.highlights { padding-left: 0; padding-right: 0; }
.highlights .sec-head { padding: 0 var(--gut); }
.hl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto clamp(5rem, 11vw, 9rem); padding: 0 var(--gut); align-items: end; }
.hl img { width: 100%; object-fit: cover; }
.hl-1 figure { grid-column: 1 / span 8; } .hl-1 img { aspect-ratio: 3 / 2; }
.hl-1 .hl-txt { grid-column: 10 / span 3; }
.hl-2 { max-width: none; padding: 0; position: relative; display: block; }
.hl-2 img { aspect-ratio: 21 / 9; min-height: 360px; }
.hl-2 .hl-txt { position: absolute; left: var(--gut); bottom: 0; width: min(420px, calc(100% - var(--gut) * 2)); background: var(--paper); padding: 36px 36px 8px 0; }
.hl-3 figure { grid-column: 6 / span 7; grid-row: 1; } .hl-3 img { aspect-ratio: 4 / 3; }
.hl-3 .hl-txt { grid-column: 1 / span 4; grid-row: 1; align-self: center; }
.hl-no { font: 400 .78rem/1 var(--f-lat); letter-spacing: .2em; color: var(--navy); display: block; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--sand); width: 48px; }
.hl h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.hl p { color: var(--stone); max-width: 24em; }
@media (max-width: 899px) { .hl { display: block; } .hl .hl-txt { margin-top: 1.6rem; } .hl-2 .hl-txt { position: static; width: auto; padding: 0 var(--gut); } .hl-2 img { min-height: 0; aspect-ratio: 4 / 3; } }

/* ── 房型膠卷 ── */
.strip { padding-right: 0; background: var(--paper-2); }
.strip .sec-head { padding-right: var(--gut); }
.film { list-style: none; margin: 0; padding: 0 var(--gut) 28px 0; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 26vw, 380px); gap: clamp(16px, 2vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; margin-left: max(0px, calc((100vw - var(--max)) / 2 - var(--gut))); scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.film-item { scroll-snap-align: start; }
.film-item a { display: block; text-decoration: none; color: inherit; overflow: hidden; }
.film-item img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; transition: transform 2.4s cubic-bezier(.2, .7, .2, 1); }
.film-no { display: block; margin-top: 18px; font: 400 .72rem/1 var(--f-lat); letter-spacing: .2em; color: var(--navy); }
.film-name { display: block; margin-top: 8px; font-size: 1.2rem; color: var(--ink); }
.film-meta { font-size: .84rem; color: var(--stone); }

/* ── 消息列 ── */
.news-latest .sec-head { grid-column: 1 / span 3; display: block; margin: 0; }
.news-latest .sec-head .link { display: inline-block; }
.news-rows { grid-column: 4 / -1; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.news-rows a { display: grid; grid-template-columns: 130px 90px 1fr; gap: 20px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: color .3s; }
.news-rows a:hover { color: var(--navy); }
.news-rows time, .nitem time { font: 400 .85rem/1 var(--f-lat); letter-spacing: .1em; color: var(--stone); }
.nl-title { font-size: 1.1rem; }
.tag { justify-self: start; font: 400 .7rem/1 var(--f-lat); letter-spacing: .2em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
@media (max-width: 899px) { .news-rows { margin-top: 2rem; } }
@media (max-width: 600px) { .news-rows a { grid-template-columns: auto 1fr; } .nl-title { grid-column: 1 / -1; } }

/* ── 聯絡＋地圖 ── */
.contact { align-items: stretch; padding-top: 0; }
.contact-form { grid-column: 1 / span 4; padding-top: var(--sec); border-top: 1px solid var(--line); }
.contact-form h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.contact-map { grid-column: 6 / -1; padding-top: var(--sec); }
.contact-map iframe, .map-sec iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.85) contrast(1.05); }
form label { display: flex; flex-direction: column; gap: 4px; font: 400 .74rem/1.4 var(--f-lat); letter-spacing: .18em; text-transform: uppercase; color: var(--stone); margin-bottom: 18px; }
input, textarea { font: 400 1rem/1.5 var(--f-zh); letter-spacing: .02em; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); width: 100%; text-transform: none; }
textarea { border: 1px solid var(--line); padding: 10px 12px; }
input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 1px 0 var(--navy); }
[aria-invalid="true"] { border-color: var(--bad); }
.form-err { color: var(--bad); font-size: .9rem; }
.form-ok { color: var(--navy); font-size: .95rem; margin-top: 12px; }
@media (max-width: 899px) { .contact-map { padding-top: 2.4rem; } .contact-map iframe { min-height: 320px; } }

/* ── Footer：網站地圖 ── */
.ftr { background: var(--navy); color: #c8d3d8; padding: clamp(4rem, 8vw, 7rem) var(--gut) 32px; }
.ftr-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 40px; padding-bottom: 56px; }
.ftr-brand strong { display: block; font: 400 1.5rem/1 var(--f-zh); letter-spacing: .5em; color: #fff; }
.ftr-brand span { display: block; margin: 10px 0 24px; font: 400 .62rem/1 var(--f-lat); letter-spacing: .42em; color: var(--sand); }
.ftr-brand p { font-size: .88rem; max-width: 22em; }
.ftr .label { color: var(--sand); margin-bottom: 1rem; }
.ftr-col ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; line-height: 2.2; }
.ftr a { color: #eef0ee; }
.ftr-demo { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; font: 400 .74rem/1 var(--f-lat); letter-spacing: .16em; color: #c3d1d7; border-top: 1px solid #2a6e8c; padding-top: 24px; }
.ftr-demo a { color: #c3d1d7; padding: 12px 0; margin: -12px 0; }
@media (max-width: 899px) { .ftr-in { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }

/* ── 內頁標題（次導覽）── */
.page-head { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding-top: clamp(4rem, 9vw, 8rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); }
.page-head .eyebrow { grid-column: 1 / span 3; }
.page-head h1 { grid-column: 4 / span 9; font-size: clamp(3rem, 6.4vw, 6rem); line-height: 1.05; margin: 0 0 .4em; }
.page-head .lede { grid-column: 4 / span 6; }
.page-head-sm { padding-bottom: 1rem; }
.page-head-sm h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
@media (max-width: 899px) { .page-head { display: block; } }

/* ── 客房 ── */
.rooms-wrap { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut) var(--sec); display: grid; grid-template-columns: 220px 1fr; gap: clamp(32px, 5vw, 80px); }
.room-index { position: sticky; top: calc(var(--hdr) + 32px); align-self: start; }
.room-index ul { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: ri; }
.room-index li { counter-increment: ri; }
.room-index a { display: inline-block; padding: 8px 0; color: var(--stone); font-size: .95rem; }
.room-index a::before { content: '0' counter(ri) '  '; font: 400 .7rem/1 var(--f-lat); letter-spacing: .14em; color: var(--sand); white-space: pre; }
.room-index a.is-cur { color: var(--ink); background-size: 100% 1px; }
.room { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 4vw, 56px); padding: 0 0 clamp(4rem, 8vw, 7rem); margin-bottom: clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 24px); }
.room:nth-child(even) { grid-template-columns: 1fr 1.5fr; } .room:nth-child(even) .carousel { order: 2; }
.room h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.room-txt > p { color: var(--stone); }
.spec { margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.spec div { padding: 12px 0; border-top: 1px solid var(--line); }
.spec dt { font: 400 .68rem/1.4 var(--f-lat); letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.spec dd { margin: 2px 0 0; }
.amen { list-style: none; padding: 0; margin: 0 0 24px; columns: 2; font-size: .88rem; color: var(--stone); }
.amen li::before { content: '— '; color: var(--sand); }
.price { display: flex; gap: 36px; margin-bottom: 24px; padding-top: 16px; border-top: 1px solid var(--ink); }
.price span { display: block; font: 400 .68rem/1.4 var(--f-lat); letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.price b { font: 400 1.5rem/1.3 var(--f-lat); color: var(--navy); }
.carousel { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3; touch-action: pan-y; }
.slides { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.slide { flex: 0 0 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.cbtn { position: absolute; bottom: 0; width: 52px; height: 52px; border: 0; background: var(--paper); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.cbtn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.cprev { right: 52px; } .cnext { right: 0; border-left: 1px solid var(--line); }
.dots { position: absolute; left: 16px; bottom: 12px; display: flex; }
.dots button { width: 32px; height: 28px; border: 0; background: transparent; cursor: pointer; position: relative; }
.dots button::after { content: ''; position: absolute; left: 4px; right: 4px; top: 13px; height: 1px; background: rgba(255, 255, 255, .55); }
.dots button[aria-pressed="true"]::after { background: #fff; height: 2px; }
@media (prefers-reduced-motion: reduce) { .slides { transition: none; } }
@media (max-width: 900px) { .rooms-wrap { grid-template-columns: 1fr; gap: 0; } .room-index { position: static; margin-bottom: 32px; } .room-index ul { display: flex; flex-wrap: wrap; gap: 4px 20px; } .room, .room:nth-child(even) { grid-template-columns: 1fr; gap: 24px; } .room:nth-child(even) .carousel { order: 0; } }

/* ── 設施與周邊 ── */
.fac { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut) clamp(5rem, 10vw, 9rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); align-items: end; scroll-margin-top: calc(var(--hdr) + 16px); }
.fac figure { grid-column: 1 / span 8; margin: 0; }
.fac img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.fac-txt { grid-column: 10 / span 3; }
.fac-rev figure { grid-column: 5 / span 8; grid-row: 1; }
.fac-rev .fac-txt { grid-column: 1 / span 3; grid-row: 1; }
.fac-txt h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.fac-txt p { color: var(--stone); }
.fac-txt ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.fac-txt li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
@media (max-width: 899px) { .fac { display: block; } .fac-txt { margin-top: 1.6rem; } }
.nearby { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; }
.nearby .sec-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.nearby .sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.near-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 72px); }
.near { display: grid; grid-template-columns: 1fr; gap: 20px; }
.near:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
.near figure { margin: 0; overflow: hidden; }
.near img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.near h3 { font-size: 1.4rem; margin-bottom: .3em; }
.near p { color: var(--stone); font-size: .95rem; margin-bottom: .6em; }
.ruler { height: 10px; position: relative; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%); border-bottom: 1px solid var(--line); }
.ruler span { position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--km) / 50 * 100%); background: var(--navy); transform-origin: left; transition: transform 1.6s ease; }
.js .near:not(.is-in) .ruler span { transform: scaleX(0); }
.dist { font: 400 .76rem/1.4 var(--f-lat) !important; letter-spacing: .16em; color: var(--navy) !important; margin-top: 10px; }
@media (max-width: 800px) { .near-list { grid-template-columns: 1fr; } .near:nth-child(even) { margin-top: 0; } }
.map-sec { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding-top: 0; }
.map-sec iframe { height: 480px; }

/* ── 消息頁 ── */
.news-page { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding-top: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px); }
.news-page .chips { grid-column: 1 / span 3; flex-direction: column; align-items: flex-start; }
.news-page .nlist { grid-column: 4 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 28px; }
.chips button { min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--stone); position: relative; }
.chips button[aria-pressed="true"] { color: var(--ink); }
.chips button[aria-pressed="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--sand); }
.nlist { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--ink); }
.nitem { display: grid; grid-template-columns: 120px 90px 1fr; gap: 20px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: baseline; scroll-margin-top: calc(var(--hdr) + 16px); }
.nitem h2 { font-size: 1.35rem; margin-bottom: .3em; }
.nitem p { color: var(--stone); margin: 0; max-width: 36em; }
.nitem:target h2 { color: var(--navy); }
@media (max-width: 899px) { .news-page { display: block; } .news-page .chips { flex-direction: row; } }
@media (max-width: 600px) { .nitem { grid-template-columns: auto 1fr; } .nitem > div { grid-column: 1 / -1; } }

/* ── 訂房 ── */
.noscript { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); color: var(--bad); }
.bk { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut) var(--sec); display: grid; grid-template-columns: 1fr 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.step { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--hdr) + 12px); }
.step:first-child { border-top-color: var(--ink); }
.step h2 { font-size: 1.4rem; display: flex; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.step h2 span { font: 400 .74rem/1 var(--f-lat); letter-spacing: .16em; color: var(--navy); }
.step h2 span::before { content: '0'; }
.step-sum { color: var(--navy); font-family: var(--f-lat); letter-spacing: .06em; min-height: 1.8em; margin-bottom: 10px; }
.cal { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; position: relative; }
.cal-month h3 { font: 400 .9rem/44px var(--f-lat); letter-spacing: .14em; text-align: center; margin: 0; }
.cal-nav { position: absolute; top: 0; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; z-index: 1; }
.cal-nav svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.2; }
.cal-nav[aria-disabled="true"] { opacity: .3; cursor: not-allowed; }
.cal-prev { left: 0; } .cal-next { right: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
.cal-dow { font: 400 .68rem/1 var(--f-lat); letter-spacing: .1em; color: var(--stone); text-align: center; padding: 8px 0; }
.day { position: relative; min-height: 52px; border: 0; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink); padding: 2px; font: 400 .95rem/1.1 var(--f-lat); }
.day small { font-size: .6rem; color: var(--stone); letter-spacing: 0; }
.day.we { background: #f6f1e6; }
.day.few small { color: #7a5a1c; }
.day.full, .day.past { background: transparent; color: var(--full); cursor: not-allowed; }
.day.full small { color: var(--full); text-decoration: line-through; }
.day.past small { visibility: hidden; }
.day.in { background: #d7e3e8; }
.day.start, .day.end { background: var(--navy); color: #fff; }
.day.start small, .day.end small { color: #d9e6ec; }
.day.blank { background: transparent; cursor: default; }
.day:not(.full):not(.past):not(.blank):hover { outline: 1px solid var(--navy); outline-offset: -1px; }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .78rem; color: var(--stone); margin-top: 14px; }
.lg { width: 14px; height: 14px; display: inline-block; margin-right: -10px; }
.lg-few { background: #fff; border: 1px solid #b08a45; } .lg-full { background: var(--full); } .lg-we { background: #f6f1e6; border: 1px solid var(--line); }
.cal-msg { grid-column: 1 / -1; min-height: 1.6em; font-size: .88rem; color: var(--bad); margin: 0; }
@media (max-width: 700px) { .cal { grid-template-columns: 1fr; } .cal-month + .cal-month { display: none; } }
.rpick { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ropt { display: grid; grid-template-columns: 112px 1fr auto; gap: 20px; align-items: center; width: 100%; text-align: left; padding: 12px 12px 12px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink); position: relative; }
.ropt img { width: 112px; height: 74px; object-fit: cover; }
.ropt b { display: block; font-weight: 400; font-size: 1.08rem; }
.ropt .meta { font-size: .8rem; color: var(--stone); }
.ropt .left { font: 400 .74rem/1.3 var(--f-lat); letter-spacing: .12em; text-align: right; color: var(--navy); white-space: nowrap; }
.ropt[aria-pressed="true"] { background: #fff; padding-left: 12px; box-shadow: inset 2px 0 0 var(--navy); }
.ropt[aria-pressed="true"] b::after { content: '  ✓'; color: var(--navy); white-space: pre; }
.ropt.soldout { opacity: .55; cursor: not-allowed; }
@media (max-width: 520px) { .ropt { grid-template-columns: 80px 1fr; gap: 14px; } .ropt img { width: 80px; height: 60px; } .ropt .left { grid-column: 2; text-align: left; } }
.guests, .addons { display: grid; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--line); }
.row .lab b { font-weight: 400; display: block; }
.row .lab span { font-size: .8rem; color: var(--stone); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); background: #fff; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; color: var(--ink); }
.stepper button[aria-disabled="true"] { color: var(--full); cursor: not-allowed; }
.stepper output { min-width: 36px; text-align: center; font: 400 1rem/1 var(--f-lat); }
.switch { position: relative; width: 50px; height: 28px; border-radius: 14px; border: 0; background: var(--full); cursor: pointer; flex: none; transition: background .3s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .3s; }
.switch[aria-checked="true"] { background: var(--navy); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.seg { display: inline-flex; border: 1px solid var(--line); background: #fff; }
.seg button { min-height: 44px; padding: 0 14px; border: 0; background: transparent; cursor: pointer; font-size: .86rem; color: var(--ink); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.row.off .lab b { color: var(--stone); } .row.off .stepper { opacity: .6; }
@media (max-width: 520px) { .row { flex-wrap: wrap; padding: 10px 0; gap: 8px 16px; } .row .seg { margin-left: auto; } }
.warn { color: var(--bad); font-size: .9rem; margin: 12px 0 0; }
#bk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
#bk-form .full, #bk-form label:first-child { grid-column: 1 / -1; }
@media (max-width: 600px) { #bk-form { grid-template-columns: 1fr; } }
.bk-sum { position: sticky; top: calc(var(--hdr) + 24px); }
.sum-card { background: #fff; border-top: 2px solid var(--navy); padding: 28px; }
.sum-card h2 { font-size: 1.3rem; margin-bottom: 16px; }
.q-empty { color: var(--stone); font-size: .9rem; }
.q-head { font-size: .9rem; margin-bottom: 12px; color: var(--stone); }
.q-head b { font-weight: 400; color: var(--ink); display: block; font-size: 1.05rem; }
.q-nights { list-style: none; margin: 0 0 6px; padding: 0; max-height: 230px; overflow: auto; font-size: .84rem; }
.q-nights li, .q-line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #eceeed; font-variant-numeric: tabular-nums; }
.q-nights .we { color: var(--navy); }
.q-line { font-size: .88rem; }
.q-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 20px; padding-top: 14px; border-top: 1px solid var(--ink); }
.q-total b { font: 400 1.8rem/1 var(--f-lat); color: var(--navy); }
.sum-bar { display: none; }
@media (max-width: 960px) {
  .bk { grid-template-columns: 1fr; gap: 0; }
  .bk-sum { position: static; }
  .sum-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); background: var(--paper); border-top: 1px solid var(--ink); font: 400 1.1rem/1 var(--f-lat); color: var(--navy); }
  .sum-bar .btn { margin-right: 112px; }
  .has-bar .ftr { padding-bottom: 100px; }
}
.confirm { max-width: 820px; margin: 0 auto; padding-top: 0; }
.confirm h2 { font-size: clamp(2rem, 4vw, 3rem); }
.order-no { font: 400 1.6rem/1.2 var(--f-lat); color: var(--navy); letter-spacing: .1em; border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); padding: 16px 0; display: inline-block; margin-bottom: 28px; }
.confirm dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 20px; margin: 0 0 32px; }
.confirm dt { font: 400 .7rem/2 var(--f-lat); letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.confirm dd { margin: 0; }
.hero[data-daypart="night"] .label .no { color: var(--sand); }
/* 深藍底上的沙金文字用淺一階，對比 ≥ 4.5 */
.ftr .label, .ftr-brand span, .hero[data-daypart="night"] .label .no { color: #e3d2ad; }
.label-en { opacity: 1; }
.vert { color: #82683a; }
.page-head h1 { line-height: 1.16; } .brand-zh { line-height: 1.2; } .spec dd { overflow-wrap: anywhere; }
/* 晨日暮夜切換放在照片右上（桌機） */
@media (min-width: 900px) {
  .hero .daypart { position: absolute; top: 26px; right: calc(100% + 28px); margin: 0; padding: 4px 12px; border: 0; background: rgba(15, 34, 48, .28); backdrop-filter: blur(6px); }
  .hero .daypart button { color: rgba(255, 255, 255, .75); }
  .hero .daypart button[aria-pressed="true"] { color: #fff; }
}
@media (max-width: 899px) {
  .hero-txt { padding-bottom: 2.2rem; }
  .intro-txt h2 { font-size: clamp(1.4rem, 5.6vw, 1.8rem); }
}
