/* =====================================================================
   東豐棧 site.css — 自家設計系統（不使用 Bootstrap）
   設計概念：取自 logo 的「紅色橢圓」與明體字，搭配米色紙感底，
            呈現台南老字號旅宿的溫度與質感。
   易讀原則：內文 18px 起、對比符合 WCAG AA、可點擊區域至少 48px。
   ===================================================================== */

/* ---------- 1. 設計變數 ---------- */
:root {
	--red: #E72E0D;          /* logo 品牌紅：大面積、裝飾用 */
	--red-ink: #B4230A;      /* 按鈕、文字用（白字對比 6.2:1） */
	--red-deep: #8A1A07;
	--red-tint: #FCEBE6;
	--ink: #231C18;          /* 暖調近黑 */
	--ink-2: #463C36;
	--muted: #675C55;        /* 米色底上對比 5.6:1 */
	--paper: #FBF7F1;        /* 米色紙感底 */
	--paper-2: #F3EBDF;
	--line: #E5D9C9;
	--card: #FFFFFF;
	--green: #047A33;        /* LINE（加深以符合對比） */
	--gold: #A97A2C;         /* 裝飾細節 */
	--serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC", "PMingLiU", serif;
	--sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", sans-serif;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow-sm: 0 1px 2px rgba(35, 28, 24, .06), 0 2px 8px rgba(35, 28, 24, .05);
	--shadow: 0 1px 2px rgba(35, 28, 24, .06), 0 10px 30px rgba(35, 28, 24, .09);
	--shadow-lg: 0 20px 50px rgba(35, 28, 24, .16);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 76px;
}

/* ---------- 2. 基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html.bnb-large { font-size: 22px; }
body {
	margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.8; color: var(--ink);
	background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; border: 0; }
a { color: var(--red-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.35; color: var(--ink); margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #F2A900; outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -.2em; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100001; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 10px; }
.skip:focus { left: 12px; color: #fff; }

/* ---------- 3. 按鈕 ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 52px; padding: .55em 1.3em; border: 2px solid transparent; border-radius: var(--radius-sm);
	font-weight: 700; font-size: 1rem; line-height: 1.3; text-align: center; text-decoration: none !important;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
	-webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 60px; font-size: 1.08rem; padding: .6em 1.6em; }
.btn-block { display: flex; width: 100%; }
.btn-red { background: var(--red-ink); color: #fff !important; box-shadow: 0 6px 16px rgba(180, 35, 10, .22); }
.btn-red:hover { background: var(--red-deep); }
.btn-ink { background: var(--ink); color: #fff !important; }
.btn-ink:hover { background: #000; }
.btn-line { background: var(--green); color: #fff !important; }
.btn-line:hover { background: #035d27; }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--ink) !important; }
.btn-ghost:hover { background: rgba(35, 28, 24, .05); }
.btn-light { background: #fff; color: var(--red-ink) !important; }
.btn[disabled] { opacity: .6; cursor: wait; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-width: 48px; min-height: 48px; padding: 0 10px; border: 0; border-radius: 12px;
	background: transparent; color: var(--ink); font-weight: 700; font-size: .9rem;
}
.icon-btn:hover { background: var(--paper-2); }
.icon-btn .ic { width: 24px; height: 24px; }

/* ---------- 4. 開場動畫（logo） ---------- */
.loader {
	position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
	background:
		radial-gradient(ellipse 60% 45% at 50% 48%, #fff 0%, rgba(255, 255, 255, 0) 70%),
		var(--paper);
	transition: background-color .5s ease, opacity .45s ease .15s;
	animation: loader-failsafe 0s linear 4.5s forwards;   /* 萬一程式沒跑，4.5 秒後自動消失 */
	cursor: pointer;
}
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader-mark { width: min(56vw, 260px); height: auto; transform-origin: center; transition: transform .6s cubic-bezier(.7, 0, .2, 1); will-change: transform; }
.loader-line { display: block; width: 120px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.loader-line::after { content: ""; position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); animation: loader-bar 1.5s var(--ease) forwards; }
.loader.is-leaving { background: transparent; opacity: 0; pointer-events: none; }
.loader.is-leaving .loader-line { opacity: 0; transition: opacity .2s; }
html.bnb-flying .site-logo img { opacity: 0; }
.site-logo img { transition: opacity .35s ease .45s; }
@keyframes loader-bar { to { transform: scaleX(1); } }
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* 換頁進度條 */
.nav-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100002; pointer-events: none; }
.nav-progress::before { content: ""; display: block; height: 100%; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; opacity: 0; }
html.is-navigating .nav-progress::before { opacity: 1; animation: nav-progress 8s cubic-bezier(.1, .7, .1, 1) forwards; }
@keyframes nav-progress { 0% { transform: scaleX(0); } 20% { transform: scaleX(.45); } 100% { transform: scaleX(.92); } }

/* ---------- 5. 頂部聯絡列 ---------- */
.topbar { background: var(--ink); color: #F3EBDF; font-size: .86rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; min-height: 46px; padding-top: 3px; padding-bottom: 3px; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 0 18px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: #FBF7F1; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-line { color: #9BE3B4 !important; }
.fontsize { display: inline-flex; align-items: center; gap: 6px; }
.fontsize-label { display: inline-flex; align-items: center; gap: 4px; opacity: .85; }
.fontsize button {
	min-height: 36px; min-width: 54px; padding: 2px 10px; border-radius: 8px; font-size: .85rem; font-weight: 700;
	background: transparent; color: #FBF7F1; border: 1.5px solid rgba(251, 247, 241, .45);
}
.fontsize button[aria-pressed="true"] { background: #FBF7F1; color: var(--ink); border-color: #FBF7F1; }

/* ---------- 6. 頁首 ---------- */
.site-header {
	position: sticky; top: 0; z-index: 900;
	border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
/* 毛玻璃效果放在偽元素上：若直接加在 header，手機選單（position:fixed）會被困在 header 裡 */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251, 247, 241, .94);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(35, 28, 24, .06); }
.header-in { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.site-logo { display: block; flex: 0 0 auto; line-height: 0; }
.site-logo img { width: 78px; height: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-cta { display: none; }
.icon-btn-label { display: none; }

/* 主選單：手機為右側抽屜 */
.nav {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 1000; width: min(88vw, 380px);
	display: flex; flex-direction: column; background: var(--paper);
	transform: translateX(105%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg);
	overflow-y: auto; -webkit-overflow-scrolling: touch; visibility: hidden;
}
html.nav-open .nav { transform: none; visibility: visible; }
.nav-backdrop { position: fixed; inset: 0; z-index: 999; background: rgba(35, 28, 24, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
html.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
html.nav-open .site-header { z-index: 1001; }   /* 選單在 header 的圖層裡，開啟時整個 header 要高於遮罩 */
html.nav-open, html.lb-open { overflow: hidden; }
.nav-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 1.15rem; }
.nav-list { list-style: none; margin: 0; padding: 8px 0; }
.nav-link {
	display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 8px 22px;
	background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left;
	font-size: 1.08rem; font-weight: 700; color: var(--ink); text-decoration: none;
}
.nav-link:hover { background: var(--paper-2); color: var(--red-ink); }
.nav-caret { margin-left: auto; transition: transform .25s; }
.nav-item.is-open > .nav-toggle .nav-caret { transform: rotate(180deg); }
.nav-sub { list-style: none; margin: 0; padding: 0; background: #fff; display: none; }
.nav-item.is-open > .nav-sub { display: block; }
.nav-sub a { display: flex; align-items: center; min-height: 54px; padding: 8px 22px 8px 40px; border-bottom: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 1rem; }
.nav-sub a:hover { color: var(--red-ink); background: var(--red-tint); }
.nav-lang { padding: 16px 22px; }
select.input { appearance: auto; -webkit-appearance: menulist; }
/* 中文／EN 切換（自家翻譯，不用 Google 翻譯） */
.lang-switch { display: inline-flex; align-items: stretch; border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; text-decoration: none !important; font-weight: 700; letter-spacing: .02em; }
.lang-switch a[aria-current] { pointer-events: none; }
.topbar .lang-switch { border: 1.5px solid rgba(251, 247, 241, .5); margin-left: auto; }
.topbar .lang-switch a { min-height: 34px; padding: 0 11px; color: #FBF7F1; font-size: .84rem; gap: 0; }
.topbar .lang-switch a:hover { background: rgba(251, 247, 241, .14); }
.topbar .lang-switch a[aria-current] { background: #FBF7F1; color: var(--ink); }
.nav-lang-label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: .95rem; font-weight: 700; }
.lang-switch-lg { display: flex; width: 100%; border: 2px solid var(--line); background: #fff; }
.lang-switch-lg a { flex: 1 1 50%; min-height: 50px; color: var(--ink); font-size: 1.05rem; }
.lang-switch-lg a + a { border-left: 2px solid var(--line); }
.lang-switch-lg a[aria-current] { background: var(--red); color: #fff; }
/* 英文版：部分後台內容尚未翻譯的提醒 */
.i18n-note { background: #FFF6D8; border-bottom: 1px solid #EBD9A0; color: #5A4300; font-size: .95rem; }
.i18n-note .wrap { display: flex; align-items: flex-start; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.i18n-note .ic { flex: 0 0 auto; margin-top: 3px; }
.i18n-note p { margin: 0; }
.nav-drawer-foot { margin-top: auto; padding: 16px 22px 28px; display: grid; gap: 10px; }

/* 搜尋面板 */
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 16px 0; box-shadow: 0 10px 20px rgba(35, 28, 24, .06); }
.search-panel-in { display: flex; gap: 10px; }
.search-panel-in .input { flex: 1 1 auto; }

/* 文字不換行：避免選單項目、按鈕被擠成一字一行 */
.nav-link, .nav-sub a, .header-cta, .icon-btn, .crumbs a { white-space: nowrap; }

@media (min-width: 640px) {
	.icon-btn-label { display: inline; }
	.header-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
	:root { --header-h: 88px; }
	.site-logo img { width: 92px; }
}
/* 橫向主選單：電腦版（1024px 以上）橫排；手機、平板用「選單」抽屜 */
@media (min-width: 1024px) {
	/* 電腦版：主選單一律橫排顯示；放不下（分類多、字體放大）時 site.js 加上 .nav-overflow，選單移到第二行 */
	.header-in { gap: 10px; }
	.menu-btn { display: none; }
	.nav-home, .nav-lang { display: none !important; }   /* 首頁用 logo 即可回去；語言移到最上方聯絡列 */
	.search-toggle .icon-btn-label { display: none; }
	.nav {
		position: static; transform: none; visibility: visible; width: auto; background: none; box-shadow: none;
		overflow: visible; flex-direction: row; margin-left: 4px;
	}
	.nav-drawer-head, .nav-drawer-foot, .nav-backdrop { display: none; }
	.nav-list { display: flex; align-items: center; gap: 2px; padding: 0; }
	.nav-item { position: relative; }
	.nav-link {
		min-height: 48px; padding: 6px 9px; border: 0; border-radius: 10px; font-size: 16px; font-weight: 700;
		position: relative;
	}
	.nav-link .ic:not(.nav-caret) { display: none; }
	.nav-link::after {   /* 品牌紅細線，滑過時展開 */
		content: ""; position: absolute; left: 9px; right: 9px; bottom: 6px; height: 2px; background: var(--red);
		transform: scaleX(0); transition: transform .25s var(--ease);
	}
	.nav-link:hover { background: transparent; }
	.nav-link:hover::after, .nav-item.is-open > .nav-link::after { transform: scaleX(1); }
	.nav-caret { margin-left: 1px; width: 14px; height: 14px; }
	.nav-sub {
		position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; padding: 8px;
		border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow);
		display: block; opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .2s, transform .2s var(--ease), visibility .2s;
	}
	.nav-item.has-sub:hover > .nav-sub, .nav-item.has-sub:focus-within > .nav-sub, .nav-item.is-open > .nav-sub { opacity: 1; visibility: visible; transform: none; }
	.nav-item.has-sub:hover > .nav-toggle .nav-caret { transform: rotate(180deg); }
	.nav-sub a { min-height: 46px; padding: 8px 14px; border: 0; border-radius: 10px; font-size: 16px; }
}
/* 選單放不下：logo＋按鈕在第一行，主選單整排移到第二行（不再收進抽屜） */
@media (min-width: 1024px) {
	html.nav-overflow { --header-h: 128px; }
	html.nav-overflow .header-in { flex-wrap: wrap; gap: 0 10px; min-height: 0; padding-top: 8px; }
	html.nav-overflow .site-logo img { width: 72px; }
	html.nav-overflow .nav { order: 5; flex: 1 0 100%; margin: 6px 0 0; padding: 2px 0; border-top: 1px solid var(--line); }
	html.nav-overflow .nav-list { flex-wrap: wrap; justify-content: center; width: 100%; }
	html.nav-overflow .search-toggle .icon-btn-label { display: inline; }
}

/* ---------- 7. 區塊與標題 ---------- */
.sec { padding: 64px 0; }
.sec-tight { padding: 40px 0; }
.sec-alt { background: var(--paper-2); }
.sec-white { background: #fff; }
.sec-head { margin-bottom: 30px; }
.sec-head.center { text-align: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px; margin-bottom: 8px;
	font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 15px; border-radius: 50%; background: var(--red); flex: 0 0 auto; }   /* logo 的紅色橢圓 */
.sec-title { margin: 0; }
.sec-lead { color: var(--muted); max-width: 40em; margin: 10px 0 0; }
.sec-head.center .sec-lead { margin-left: auto; margin-right: auto; }
.reveal { opacity: 1; }
/* 只有 site.js 確實啟動後（加上 js-reveal）才隱藏，程式沒載入時內容照常顯示 */
html.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 8. 首頁主視覺輪播 ---------- */
.hero { position: relative; background: var(--ink); }
.car { position: relative; }
.car-track {
	display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain;
}
.car-track::-webkit-scrollbar { display: none; }
.car-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.hero .car-slide { aspect-ratio: 4 / 3; max-height: 78vh; background: #2c2420; }
.hero .car-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 10, .15) 0%, rgba(20, 14, 10, 0) 35%, rgba(20, 14, 10, .65) 100%); pointer-events: none; z-index: 1; }
.hero-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; color: #fff; padding: 0 20px 64px; pointer-events: none; }
.hero-caption h2 { color: #fff; font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); margin: 0 0 6px; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.hero-caption p { margin: 0; font-size: 1.05rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .4); }
.yt { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
	position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 28px 0 14px;
	border: 0; border-radius: 40px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 1.1rem; font-weight: 700;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s var(--ease);
}
.yt-play:hover { transform: scale(1.04); }
.yt-play .ic { width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--red); color: #fff; }
.yt[data-playing] .yt-play { display: none; }
.car-btn {
	position: absolute; top: 50%; z-index: 4; transform: translateY(-50%);
	width: 56px; height: 56px; border-radius: 50%; border: 0; display: none; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .2); transition: opacity .2s, transform .2s;
}
.car-btn .ic { width: 28px; height: 28px; }
.car-btn:disabled { opacity: 0; pointer-events: none; }
.car-prev { left: 16px; } .car-next { right: 16px; }
.car-count {
	position: absolute; z-index: 4; right: 16px; bottom: 16px; padding: 4px 14px; border-radius: 20px;
	background: rgba(20, 14, 10, .6); color: #fff; font-size: .9rem; font-weight: 700; letter-spacing: .05em;
}
.car.is-single .car-btn, .car.is-single .car-count { display: none !important; }
.hero .car-count { top: 16px; bottom: auto; }
@media (max-width: 767px) {
	.hero .yt { align-items: flex-start; justify-content: flex-start; padding: 14px; }   /* 手機：播放鈕移到左上，不擋標題 */
	.hero .yt-play { min-height: 52px; font-size: 1rem; padding: 0 20px 0 8px; }
	.hero .yt-play .ic { width: 38px; height: 38px; padding: 10px; }
}
@media (min-width: 768px) {
	.hero .car-slide { aspect-ratio: 21 / 9; min-height: 460px; }
	.car-btn { display: flex; }
	.hero-caption { padding: 0 40px 72px; }
}

/* 主視覺下方的快速訂房卡（壓在輪播上） */
.quick { position: relative; z-index: 5; margin-top: -36px; }
.quick-card {
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px;
	display: grid; gap: 18px; border-top: 4px solid var(--red);
}
.quick-intro h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.5rem); line-height: 1.25; margin: 0 0 4px; letter-spacing: .08em; }
.quick-intro h1 small { font-size: .5em; letter-spacing: .1em; color: var(--red-ink); font-weight: 700; }
.quick-sub { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--ink-2); margin: 0 0 6px !important; letter-spacing: .04em; }
.quick-intro p { margin: 0; color: var(--muted); }
.quick-actions { display: grid; gap: 10px; }
@media (min-width: 900px) {
	.quick { margin-top: -56px; }
	.quick-card { grid-template-columns: 1.1fr 1.6fr; align-items: center; padding: 28px 32px; }
	.quick-actions { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* ---------- 9. 條件找房 ---------- */
.finder { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.finder fieldset, .form fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.finder legend, .form legend { padding: 0; margin-bottom: 12px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.finder legend small, .form legend small { font-weight: 400; color: var(--muted); font-size: .85em; }
.finder-row { display: flex; flex-wrap: wrap; gap: 10px; }
.finder-row .input { flex: 1 1 260px; }
.finder-row .btn { flex: 1 1 100%; }
@media (min-width: 640px) { .finder-row .btn { flex: 0 0 auto; } }

/* 勾選膠囊：整塊可點 */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
	display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px; margin: 0;
	background: var(--paper); border: 2px solid var(--line); border-radius: 999px; cursor: pointer; user-select: none;
	font-weight: 700; color: var(--ink-2); transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: #CDBCA6; }
.chip input { width: 22px; height: 22px; margin: 0; accent-color: var(--red-ink); flex: 0 0 auto; }
.chip.is-on { background: var(--red-tint); border-color: var(--red-ink); color: var(--red-deep); }
.chip-hint { color: var(--red-ink); font-weight: 700; margin: 10px 0 0; }

/* ---------- 10. 房間卡片 ---------- */
.room-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .room-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.room {
	position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
	transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.room:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.room-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.room-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.room:hover .room-img img { transform: scale(1.05); }
.room-tag {
	position: absolute; left: 14px; top: 14px; padding: 3px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .94); color: var(--red-ink); font-size: .8rem; font-weight: 700;
}
.room-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1 1 auto; }
.room-title { font-family: var(--serif); font-size: 1.22rem; font-weight: 700; line-height: 1.4; color: var(--ink); text-decoration: none; }
.room-title::after { content: ""; position: absolute; inset: 0; }   /* 整張卡片都可以點 */
.room-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red-ink); }
.room:hover .room-more .ic { transform: translateX(4px); }
.room-more .ic { transition: transform .25s var(--ease); }
.room-dates { background: var(--paper); border-radius: 12px; padding: 10px 14px; font-size: .95rem; }
.room-dates strong { display: flex; align-items: center; gap: 6px; color: var(--red-ink); }
.room-dates span { display: block; font-weight: 700; color: var(--ink); }
.room .btn { position: relative; z-index: 2; }

/* ---------- 11. 關於我們 ---------- */
.about-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; } }
.about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 28px; }
.about-stats > div {
	display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: start;
	align-content: start; padding: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
}
@media (max-width: 639px) {   /* 手機：圖示放上面，文字有完整寬度 */
	.about-stats { gap: 10px; }
	.about-stats > div { grid-template-columns: minmax(0, 1fr); padding: 14px; }
	.about-stats .ic { grid-row: auto; margin: 0 0 4px; }
	.about-stats strong { font-size: 1.25rem; }
	.about-stats dd span { font-size: .88rem; }
}
.about-stats .ic { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--red); margin-top: 2px; }
.about-stats dt { font-size: .88rem; font-weight: 700; color: var(--muted); }
.about-stats dd { margin: 0; }
.about-stats strong { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; color: var(--ink); }
.about-stats dd span { display: block; font-size: .92rem; color: var(--ink-2); line-height: 1.5; margin-top: 2px; }
@media (max-width: 380px) { .about-stats { grid-template-columns: minmax(0, 1fr); } }
/* 後台介紹文字：統一字級與行距；太長時先顯示一部分 */
.about-text { font-size: 1.05rem; line-height: 1.85; color: var(--ink-2); }
.about-text p { margin: 0 0 .7em; }
.about-text p:empty { display: none; }
.about-text.is-clamped { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.about-more {
	display: inline-flex; align-items: center; gap: 6px; min-height: 48px; margin-top: 6px; padding: 6px 18px;
	border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.about-more:hover { border-color: var(--ink); }
.about-more[aria-expanded="true"] .ic { transform: rotate(180deg); }
.keywords-box { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.keywords-title { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--muted); margin: 0 0 10px; }
.keywords { display: flex; flex-wrap: wrap; gap: 8px; }
.keywords a, .kw-more { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.keywords a:hover { border-color: var(--red-ink); color: var(--red-ink); }
.keywords .kw-extra { display: none; }
.keywords.is-open .kw-extra { display: inline-flex; }
.kw-more { font: inherit; font-size: .92rem; font-weight: 700; color: var(--red-ink); border-style: dashed; cursor: pointer; }
.keywords.is-open .kw-more { display: none; }
.seal-card {
	position: relative; background: #fff; border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow);
	border: 1px solid var(--line); overflow: hidden;
}
.seal-since { display: inline-block; font-family: var(--serif); color: var(--gold); letter-spacing: .25em; font-size: .85rem; margin-bottom: 4px; }
.seal-card h3 { font-size: 1.35rem; margin: 0; }
.contact-list li { font-size: 1.05rem; }
.line-box { display: flex; align-items: center; gap: 16px; margin: 18px 0; padding: 14px; background: var(--paper); border-radius: 14px; }
.line-box img { width: 104px; height: 104px; border-radius: 10px; background: #fff; flex: 0 0 auto; }
.line-box p { margin: 0 0 10px; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.contact-list .ic { color: var(--red); margin-top: .35em; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--red-ink); text-decoration: underline; }

/* ---------- 12. 訂房專線色帶 ---------- */
.hotline {
	position: relative; overflow: hidden; color: #fff; text-align: center; padding: 56px 0;
	background: var(--red-ink);
	background-image: radial-gradient(ellipse 50% 80% at 85% 20%, rgba(255, 255, 255, .12), transparent 60%),
	                  radial-gradient(ellipse 40% 70% at 10% 90%, rgba(0, 0, 0, .15), transparent 60%);
}
.hotline h2 { color: #fff; margin-bottom: 6px; }
.hotline p { opacity: .92; margin-bottom: 22px; }
.hotline-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; z-index: 1; }
.hotline .btn-light { min-width: 230px; font-size: 1.15rem; }
.hotline .btn-line { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }

/* ---------- 13. 內頁標題 ---------- */
.page-head { position: relative; overflow: hidden; padding: 40px 0 34px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; position: relative; z-index: 1; text-wrap: balance; }
.page-head-slim { padding: 14px 0 12px; }
.page-head-slim .crumbs { margin: 0; }
.crumbs li[aria-current] { min-width: 0; }
.crumbs li[aria-current] span { display: block; max-width: min(56vw, 34em); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 10px; font-size: .9rem; color: var(--muted); position: relative; z-index: 1; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: "/"; margin: 0 6px 0 2px; opacity: .5; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.crumbs a:hover { color: var(--red-ink); text-decoration: underline; }

/* ---------- 14. 內頁版面 ---------- */
.layout { display: grid; gap: 32px; }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; } .layout-side { position: sticky; top: calc(var(--header-h) + 20px); } }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 24px; }
.card + .card { margin-top: 20px; }
.card-title { font-size: 1.2rem; margin-bottom: 12px; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.side-list a:hover { color: var(--red-ink); }
.side-list .ic { color: var(--muted); }
.hotline-card .btn { margin-top: 10px; }
.meta { color: var(--muted); font-size: .9rem; }
.empty { text-align: center; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px 20px; }
.empty .btn { margin-top: 8px; }
.result-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 36px 0 20px; }
.result-head h2 { margin: 0; }
.result-cond { color: var(--muted); }

/* 後台文章內容 */
.prose { font-size: 1.02rem; line-height: 1.9; color: var(--ink-2); word-break: break-word; }
.prose [style*="font-size"], .prose font[size], .prose small { font-size: inherit !important; line-height: inherit !important; }
.prose p { margin: 0 0 .9em; }
.prose img { border-radius: 12px; margin: 12px 0; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; margin: 1em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
/* 舊後台內容可能用到的 Bootstrap 類別：保留最基本的相容 */
.prose .row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.prose [class*="col-"] { width: 100%; padding: 0 10px; }
@media (min-width: 768px) {
	.prose .col-sm-6, .prose .col-md-6 { width: 50%; } .prose .col-md-4, .prose .col-sm-4 { width: 33.333%; }
	.prose .col-md-3, .prose .col-sm-3 { width: 25%; } .prose .col-md-8 { width: 66.666%; } .prose .col-md-9 { width: 75%; }
}
.prose .img-responsive { max-width: 100%; height: auto; }
.prose .text-center { text-align: center; } .prose .pull-left { float: left; margin: 0 16px 10px 0; } .prose .pull-right { float: right; margin: 0 0 10px 16px; }
.prose .btn { min-height: 48px; background: var(--red-ink); color: #fff; }

/* ---------- 15. 房間明細 ---------- */
.pd-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .pd-grid { grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: start; } }
.pd-gallery .car { border-radius: var(--radius); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.pd-gallery .car-slide { aspect-ratio: 4 / 3; }
.pd-gallery .car-slide a { display: block; height: 100%; position: relative; }
.pd-gallery .car-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-gallery .car-btn { display: flex; width: 50px; height: 50px; }
.zoom-hint { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; background: rgba(20, 14, 10, .6); color: #fff; font-size: .85rem; font-weight: 700; }
.thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: thin; }
.thumbs button { flex: 0 0 auto; width: 84px; height: 64px; padding: 0; border: 3px solid transparent; border-radius: 10px; overflow: hidden; background: var(--paper-2); opacity: .7; transition: opacity .2s, border-color .2s; }
.thumbs button[aria-current="true"] { border-color: var(--red-ink); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-cat { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--red-tint); color: var(--red-deep); font-weight: 700; font-size: .85rem; margin-bottom: 10px; text-decoration: none; }
.pd-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); line-height: 1.45; margin-bottom: 16px; text-wrap: balance; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: #FFF8EC; border: 1px solid #F1D29A; color: #6B4A10; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; }
.notice .ic { margin-top: .3em; color: var(--gold); }
.price-card { padding: 16px 20px; background: var(--red-tint); border: 1px solid #F4C7BC; border-radius: 14px; margin-bottom: 16px; }
.price-label { display: inline-block; margin-right: 10px; padding: 1px 10px; border-radius: 6px; background: var(--red-ink); color: #fff; font-size: .8rem; font-weight: 700; vertical-align: .35em; }
.price-main { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; color: var(--red-deep); line-height: 1.3; }
.price-note { display: block; margin-top: 4px; color: var(--ink-2); font-size: .92rem; }
/* 重點資訊卡：押金、坪數、樓層、車位、電費、地址 */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.fact-wide { grid-column: 1 / -1; }
.fact dt { display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: var(--muted); }
.fact dt .ic { color: var(--red); width: 1em; height: 1em; }
.fact dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); line-height: 1.5; word-break: break-word; }
.fact dd a { color: var(--ink); }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.pd-actions .pd-book { grid-column: 1 / -1; }
@media (max-width: 380px) { .pd-actions { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } }
.pd-detail .layout-wide-side { align-items: start; }
@media (min-width: 1024px) { .layout-wide-side { grid-template-columns: minmax(0, 1fr) 420px; } }
.embed { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.share { margin: 0 0 16px; min-height: 28px; }

/* 燈箱 */
.lightbox { position: fixed; inset: 0; z-index: 100000; background: rgba(15, 10, 8, .94); display: flex; align-items: center; justify-content: center; padding: 70px 12px 30px; }
.lb-figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 10px; display: block; margin: 0 auto; }
.lb-figure figcaption { color: #F3EBDF; margin-top: 12px; font-size: 1rem; }
.lb-btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; border-radius: 999px; font-weight: 700; }
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 14px; right: 14px; min-height: 52px; padding: 0 18px; font-size: 1rem; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-btn .ic { width: 26px; height: 26px; }

/* ---------- 16. 表單 ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--red); }
.form-card h2 { font-size: 1.45rem; margin-bottom: 6px; }
.form-note { color: var(--muted); font-size: .95rem; }
.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.input { min-width: 0; max-width: 100%; }
input[type=date].input { min-width: 0; max-width: 100%; padding-right: 10px; }
.form label:not(.chip) { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--red-ink); }
.input {
	display: block; width: 100%; min-height: 56px; padding: 12px 16px; font-size: 1rem; line-height: 1.5;
	color: var(--ink); background: #fff; border: 2px solid #B9AC9B; border-radius: 12px;
	transition: border-color .15s, box-shadow .15s; -webkit-appearance: none;
}
select.input { -webkit-appearance: menulist; appearance: auto; }
.input::placeholder { color: #8A7E75; }
.input:hover { border-color: #8F8172; }
.input:focus { outline: none; border-color: var(--red-ink); box-shadow: 0 0 0 4px rgba(180, 35, 10, .15); }
textarea.input { min-height: 130px; resize: vertical; }
input[type=date].input { min-height: 56px; }
.form-error { display: flex; gap: 8px; background: #FDEDEA; border: 2px solid #F0A898; color: #7A1D0C; border-radius: 12px; padding: 12px 16px; font-weight: 700; }
.form .g-recaptcha { margin: 6px 0 18px; min-height: 78px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 17. 訊息頁 ---------- */
.msg-card { max-width: 640px; margin: 0 auto; text-align: center; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 44px 26px; border: 1px solid var(--line); }
.msg-icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.msg-icon .ic { width: 40px; height: 40px; }
.msg-card.is-ok .msg-icon { background: #E3F4E8; color: #17723A; }
.msg-card.is-warn .msg-icon { background: #FFF2DC; color: #9A5B00; }
.msg-text { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; line-height: 1.6; color: var(--ink); }
.msg-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

/* ---------- 18. 頁尾 ---------- */
.site-footer { background: #1E1714; color: #E9DFD2; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.1fr 1fr .9fr 1.1fr; } }
.footer-logo { width: 120px; height: auto; display: block; margin-bottom: 14px; }
.footer-tagline { color: #CFC3B4; line-height: 1.8; }
.footer-seal { margin-top: 8px; opacity: .9; }
.footer-title { font-size: 1.1rem; color: #fff; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer-title::before { content: ""; width: 16px; height: 11px; border-radius: 50%; background: var(--red); }
.footer-contact, .footer-links { list-style: none; padding: 0; margin: 0; }
.footer-contact a, .footer-links a, .footer-fb-link { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; color: #F3EBDF; text-decoration: none; }
.footer-contact a { font-weight: 700; font-size: 1.05rem; }
.footer-contact a:hover, .footer-links a:hover, .footer-fb-link:hover { color: #fff; text-decoration: underline; }
.footer-contact .ic { color: #FF8A70; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; color: #B8AB9B; font-size: .85rem; }

/* ---------- 19. 手機底部按鈕列 + 回到頁首 ---------- */
.actionbar { display: none; }
.totop {
	position: fixed; right: 20px; bottom: 28px; z-index: 950; width: 64px; height: 64px; padding: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; line-height: 1;
	border-radius: 50%; border: 0; background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(35, 28, 24, .3);
	opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9);
	transition: opacity .25s, transform .3s var(--ease), visibility .25s, background-color .2s;
}
.totop .ic { width: 22px; height: 22px; }
.totop span { font-size: 13px; font-weight: 700; margin-top: 2px; }
.totop.is-show { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--red-ink); }
html.bnb-large .totop { width: 72px; height: 72px; }
html.bnb-large .totop span { font-size: 15px; }
@media (max-width: 1023px) {
	body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
	.actionbar {
		display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 940;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
		box-shadow: 0 -4px 18px rgba(35, 28, 24, .14); border-top: 1px solid var(--line);
	}
	.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 62px; border-radius: 14px; color: #fff !important; text-decoration: none; font-weight: 700; font-size: .85rem; line-height: 1.2; }
	html.bnb-large .act { font-size: .72rem; }
	.act .ic { width: 24px; height: 24px; }
	.act-tel { background: var(--ink); }
	.act-line { background: var(--green); }
	.act-book { background: var(--red-ink); }
	.totop { right: 12px; bottom: calc(100px + env(safe-area-inset-bottom)); width: 58px; height: 58px; }
}

/* ---------- 20. 小螢幕微調 ---------- */
@media (max-width: 639px) {
	.wrap { padding: 0 16px; }
	.sec { padding: 44px 0; }
	.topbar { font-size: .82rem; }
	.topbar-contact a:nth-child(1), .topbar-line { display: none !important; }   /* 手機只留一支電話，避免擠成兩行；LINE 在底部按鈕列 */
	.topbar-in { flex-wrap: nowrap; gap: 8px; }
	.topbar-contact a { white-space: nowrap; }
	.topbar .lang-switch a { padding: 0 9px; }
	.fontsize { gap: 4px; }
	.fontsize button { min-width: 0; padding: 2px 8px; }
	.fontsize-label { display: none; }
	.line-box { flex-direction: column; text-align: center; }
	.msg-actions .btn { flex: 1 1 100%; }
	.hotline .btn-light { min-width: 0; flex: 1 1 100%; }
	.page-head { padding: 28px 0 24px; }
}

@media (max-width: 374px) {   /* 小手機：最上方一排放得下電話、中文／EN、字體 */
	.topbar-contact .ic { display: none; }
	.topbar-in { gap: 6px; }
}

/* ---------- 21. 減少動態效果 ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	html.js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- 22. 列印 ---------- */
@media print {
	.topbar, .site-header, .actionbar, .totop, .site-footer, .loader, .hotline, .form-card { display: none !important; }
	body { background: #fff; padding: 0; }
}

/* ---------- 找房條件：太多時先顯示前幾個 ---------- */
.chip-toggle { display: none; }
html.js .chips:not(.show-all) .chip-extra { display: none; }
html.js .chip-toggle {
	display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 8px 18px; border-radius: 999px;
	border: 2px dashed #CDBCA6; background: transparent; color: var(--ink-2); font-weight: 700;
}
html.js .chip-toggle:hover { border-color: var(--red-ink); color: var(--red-ink); }
.chip-toggle .ic { transition: transform .2s; }
.chips.show-all .chip-toggle .ic { transform: rotate(180deg); }

/* ---------- 首頁背景影片：鋪滿畫面、裁掉 YouTube 標題列 ---------- */
/* 影片完整顯示、不裁切（影片內建字幕不會被切掉），兩側用同一支影片縮圖的模糊畫面當背景 */
.yt iframe.is-fit { inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
.car-slide.is-playing > img { filter: blur(26px) brightness(.55) saturate(1.2); transform: scale(1.2); transition: filter .6s ease; }
.car-slide.is-playing .hero-shade { background: linear-gradient(180deg, rgba(20, 14, 10, .2), rgba(20, 14, 10, .35)); }

/* ---------- 分享卡（LINE、短網址） ---------- */
.share-card { margin-top: 18px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.share-title { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; margin: 0 0 12px; }
.share-title .ic { color: var(--green); }
.share-url { margin-top: 14px; }
.share-url label { display: block; font-weight: 700; font-size: .92rem; color: var(--ink-2); margin-bottom: 6px; }
.share-url-row { display: flex; gap: 8px; }
.share-url-row .input { flex: 1 1 auto; min-height: 52px; padding-left: 14px; padding-right: 12px; font-size: 1rem; font-weight: 700; background: var(--paper); }
.share-url-row .btn { flex: 0 0 auto; }
.btn .copy-ok { display: none; }
.btn.is-copied { background: var(--green) !important; border-color: var(--green) !important; color: #fff !important; }
.btn.is-copied .copy-ok { display: inline-block; }
.share-text { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.share-text summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--red-ink); list-style: none; }
.share-text summary::-webkit-details-marker { display: none; }
.share-text summary::before { content: "＋"; margin-right: 6px; }
.share-text[open] summary::before { content: "－"; }
.share-text textarea { font-size: .92rem; line-height: 1.7; background: var(--paper); margin: 6px 0 10px; min-height: 160px; }
.share-more { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.share-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink-2); font-weight: 700; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }
.share-link:hover { color: var(--red-ink); }
/* 手機：網址單獨一行、按鈕在下方，完整網址看得到 */
@media (max-width: 639px) {
	.share-url-row { flex-direction: column; }
	.share-url-row .btn { width: 100%; }
}

/* 提示訊息（例如：已複製網址） */
.toast {
	position: fixed; left: 50%; bottom: 32px; z-index: 100003; transform: translate(-50%, 20px);
	max-width: calc(100% - 32px); padding: 14px 22px; border-radius: 14px; background: var(--ink); color: #fff;
	font-weight: 700; font-size: 1rem; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .25s, transform .25s var(--ease), visibility .25s; text-align: center;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (max-width: 1023px) { .toast { bottom: calc(100px + env(safe-area-inset-bottom)); } }

/* ---------- SEO / AI 摘要用的可見內容 ---------- */
.pd-summary-text { font-size: 1.02rem; line-height: 1.85; color: var(--ink-2); margin: -4px 0 8px; }
.pd-updated { display: flex; align-items: center; gap: 6px; margin: 0 0 16px; }
.facts-home { display: grid; gap: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.facts-home > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts-home dt { font-weight: 700; color: var(--muted); }
.facts-home dd { margin: 0; color: var(--ink); font-weight: 600; }
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-item summary {
	display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 20px; cursor: pointer; list-style: none;
	font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; flex: 0 0 auto; width: 34px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--sans); font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.faq-item summary .ic { margin-left: auto; transition: transform .25s; color: var(--muted); }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-answer { padding: 0 20px 18px 68px; color: var(--ink-2); line-height: 1.9; }
@media (max-width: 639px) { .faq-answer { padding-left: 20px; } .facts-home > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- 語音輸入（用說的） ---------- */
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.label-row label { margin-bottom: 0 !important; }
.mic-btn {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 14px; flex: 0 0 auto;
	border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--red-ink); font-weight: 700; font-size: .9rem;
	transition: background-color .2s, border-color .2s, color .2s;
}
.mic-btn:hover { border-color: var(--red-ink); }
.mic-btn .ic { width: 20px; height: 20px; }
.mic-btn.is-listening { background: var(--red-ink); border-color: var(--red-ink); color: #fff; animation: mic-pulse 1.2s ease-in-out infinite; }
@keyframes mic-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 35, 10, .45); } 50% { box-shadow: 0 0 0 10px rgba(180, 35, 10, 0); } }
.input-mic { position: relative; flex: 1 1 260px; }
.input-mic .input { padding-right: 64px; }
.mic-inline { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-width: 44px; padding: 0; justify-content: center; border: 0; background: transparent; }
.mic-inline.is-listening { transform: translateY(-50%); }
.voice-tip { display: flex; align-items: center; gap: 8px; background: var(--paper); border-radius: 12px; padding: 10px 14px; color: var(--ink-2); font-size: .92rem; }
.voice-tip .ic { color: var(--red-ink); }
.privacy-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---------- 語音朗讀（唸給我聽） ---------- */
.speak-btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 18px; margin: 0 0 14px;
	border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: .95rem;
}
.speak-btn:hover { border-color: var(--ink); }
.speak-btn .ic { width: 22px; height: 22px; color: var(--red-ink); }
.speak-btn .speak-off { display: none; }
.speak-btn.is-speaking { background: var(--ink); border-color: var(--ink); color: #fff; }
.speak-btn.is-speaking .speak-on { display: none; }
.speak-btn.is-speaking .speak-off { display: inline-block; color: #fff; width: 18px; height: 18px; }
.speak-sm { min-height: 44px; padding: 4px 14px; font-size: .88rem; margin: 4px 0 0; }

/* YouTube 縮圖：預設用 1280×720 高畫質（無黑邊）；影片沒有高畫質縮圖時改用 640×480（上下有黑邊，放大裁掉） */
.hero .car-slide > img.yt-thumb.yt-lb { transform: scale(1.34); }
.hero .car-slide.is-playing > img.yt-thumb { transform: scale(1.5); }

/* ---------- 房間卡片：房號、租金、坪數 ---------- */
.room-code { display: block; font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--red-ink); margin-bottom: 2px; }
.room-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.room-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 10px; margin-top: 2px; border-top: 1px dashed var(--line); }
.room-price { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--red-deep); }
.room-size { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.room-size .ic { width: 1em; height: 1em; color: var(--muted); }

/* ---------- 首頁地區篩選 ---------- */
.room-filter { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: -6px 0 18px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.room-filter button {
	flex: 0 0 auto; min-height: 48px; padding: 6px 18px; border-radius: 999px; border: 2px solid var(--line);
	background: #fff; color: var(--ink-2); font-weight: 700; font-size: .95rem; white-space: nowrap;
}
.room-filter button:hover { border-color: var(--ink); }
.room-filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.room-filter button small { font-weight: 600; opacity: .7; margin-left: 4px; }
.room[hidden] { display: none !important; }

/* 電腦版選單細節：箭頭與文字的間距縮小；最右邊幾個項目的下拉選單改為靠右展開，不會超出畫面 */
@media (min-width: 1024px) {
	.nav-link { gap: 3px; }
	.nav-list > .nav-item:nth-last-child(-n+3) > .nav-sub { left: auto; right: 0; }
	html.nav-overflow .nav-link { padding-left: 8px; padding-right: 8px; }
}
@media (min-width: 1024px) and (max-width: 1099px) {
	html.nav-overflow .nav-link { font-size: 15px; padding-left: 6px; padding-right: 6px; }
}

.quick-sub span { white-space: nowrap; display: inline-block; }   /* 詞組不從中間斷開 */

/* =====================================================================
   防跑版：後台內容（房間說明、文章）不論怎麼寫，都不會把頁面撐寬
   ===================================================================== */
/* 1. 版面欄位：內容再長也不撐開欄位（格線項目預設最小寬度是內容寬度，這裡改為 0） */
.layout, .pd-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
.layout > *, .pd-grid > *, .about-grid > *, .footer-grid > *, .quick-card > *, .room-grid > *, .field-row > *, .facts > * { min-width: 0; }
@media (min-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } }
@media (min-width: 1024px) {
	.layout { grid-template-columns: minmax(0, 1fr) 340px; }
	.layout-wide-side { grid-template-columns: minmax(0, 1fr) 420px; }
	.pd-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}

/* 2. 後台內容：寫死的寬度、表格、不換行文字、長網址，一律縮到螢幕內 */
.prose { max-width: 100%; overflow-wrap: anywhere; word-break: normal; }
.prose * { max-width: 100% !important; }
.prose [style*="width"], .prose [width] { width: auto !important; }
.prose img { height: auto !important; }
.prose table, .prose table[width], .prose table[style*="width"] { width: 100% !important; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose td, .prose th { overflow-wrap: anywhere; }
.prose [style*="white-space"], .prose pre, .prose nobr { white-space: normal !important; }
.prose pre { white-space: pre-wrap !important; }
.prose [style*="position"] { position: static !important; }
.prose [style*="float"] { float: none !important; }
@media (max-width: 639px) {
	/* 手機：後台用來縮排的大段左邊距、首行縮排拿掉，文字不會被擠成一小條 */
	.prose [style*="margin-left"], .prose [style*="padding-left"] { margin-left: 0 !important; padding-left: 0 !important; }
	.prose [style*="text-indent"] { text-indent: 0 !important; }
	.prose blockquote { margin-left: 0; margin-right: 0; padding-left: 12px; border-left: 3px solid var(--line); }
}


.share-pc-tip { display: none; margin: 6px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
html.is-pc .share-pc-tip { display: block; }

/* =====================================================================
   AI 智慧找房（首頁重點）
   ===================================================================== */
.smart-card { display: block; padding: 0; overflow: hidden; }
.smart-top {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px;
	padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.smart-brand h1 { display: flex; align-items: baseline; gap: 10px; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); letter-spacing: .08em; margin: 0; line-height: 1.3; }
.smart-brand h1 small { font-size: .55em; color: var(--red-ink); letter-spacing: .1em; }
.smart-brand .quick-sub { margin: 2px 0 0 !important; font-size: .98rem; }
.smart-since { color: var(--gold); font-family: var(--serif); letter-spacing: .12em; }
.smart-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.smart-quick .btn { min-height: 46px; padding: 6px 14px; font-size: .92rem; border-width: 1.5px; border-color: var(--line); background: #fff; }
.smart-quick .btn:hover { border-color: var(--ink); }
.smart-quick-line { color: var(--green) !important; }

.smart-main { padding: 26px 22px 24px; position: relative; }
.smart-eyebrow { gap: 6px; }
.smart-eyebrow::before { display: none; }
.smart-eyebrow .ic { width: 18px; height: 18px; color: var(--red); }
.smart-title { font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.1rem); margin: 4px 0 6px; }
.smart-lead { color: var(--muted); margin: 0 0 18px; }
.smart-form { display: grid; gap: 12px; position: relative; z-index: 1; }
.smart-label { font-weight: 700; color: var(--ink); }
.smart-input { position: relative; }
.smart-input .input {
	min-height: 66px; padding: 14px 64px 14px 52px; font-size: 1.12rem; border-width: 2px; border-color: var(--red-ink);
	border-radius: 16px; box-shadow: 0 6px 20px rgba(180, 35, 10, .08);
}
.smart-input .input:focus { box-shadow: 0 0 0 5px rgba(180, 35, 10, .15); }
.smart-input-ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; color: var(--red); pointer-events: none; }
.smart-input .mic-inline { right: 10px; }
.smart-submit { min-height: 62px; font-size: 1.15rem; border-radius: 16px; }
.smart-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.smart-examples-label { color: var(--muted); font-size: .92rem; font-weight: 700; }
.smart-example {
	min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1.5px dashed #CDBCA6; background: var(--paper);
	color: var(--ink-2); font-size: .92rem; font-weight: 600; text-align: left;
}
.smart-example:hover { border-style: solid; border-color: var(--red-ink); color: var(--red-ink); }
@media (min-width: 768px) {
	.smart-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
	.smart-label, .smart-examples { grid-column: 1 / -1; }
	.smart-submit { padding: 0 30px; }
	.smart-main { padding: 30px 32px 28px; }
	.smart-top { padding: 18px 32px; }
}
.smart-card-page { margin-bottom: 8px; }

/* 結果 */
.smart-results:empty { display: none; }
.smart-results { margin-top: 26px; scroll-margin-top: calc(var(--header-h) + 16px); }
.smart-summary {
	display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; margin-bottom: 20px;
	background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 16px; box-shadow: var(--shadow-sm);
}
.smart-summary > .ic { flex: 0 0 auto; width: 28px; height: 28px; color: var(--red); margin-top: 2px; }
.smart-summary strong { display: inline-block; margin-right: 8px; color: var(--red-deep); font-size: 1.05rem; }
.smart-q { color: var(--muted); font-size: .95rem; }
.smart-summary p { margin: 4px 0 0; color: var(--ink); line-height: 1.8; }
.smart-warn { border-left-color: var(--gold); }
.room-reason {
	display: flex; gap: 6px; align-items: flex-start; margin: 2px 0 0; padding: 8px 12px; border-radius: 10px;
	background: var(--red-tint); color: var(--red-deep); font-size: .92rem; font-weight: 600; line-height: 1.6;
}
.room-reason .ic { flex: 0 0 auto; width: 16px; height: 16px; margin-top: .25em; }
.smart-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; padding: 18px 20px; background: var(--paper-2); border-radius: 16px; }
.smart-foot p { margin: 0 8px 0 0; font-weight: 700; flex: 1 1 100%; }
@media (min-width: 768px) { .smart-foot p { flex: 0 1 auto; } }

/* 找房中：跳動的點、骨架卡片 */
.smart-loading { border-left-color: var(--gold); }
.smart-dots { display: inline-flex; gap: 5px; padding-top: 10px; flex: 0 0 auto; }
.smart-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: smart-dot 1.2s ease-in-out infinite; }
.smart-dots i:nth-child(2) { animation-delay: .15s; } .smart-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes smart-dot { 0%, 80%, 100% { transform: scale(.6); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.room-skeleton .room-img, .room-skeleton .room-body span { background: linear-gradient(90deg, #F1E9DD 0%, #FAF5EE 50%, #F1E9DD 100%); background-size: 200% 100%; animation: smart-shimmer 1.4s linear infinite; }
.room-skeleton .room-body span { display: block; height: 16px; border-radius: 8px; margin: 6px 0; }
.room-skeleton .room-body span:nth-child(2) { width: 70%; } .room-skeleton .room-body span:nth-child(3) { width: 45%; }
@keyframes smart-shimmer { to { background-position: -200% 0; } }
.smart-spin { width: 18px; height: 18px; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: smart-rot .8s linear infinite; }
@keyframes smart-rot { to { transform: rotate(360deg); } }
.finder-intro { font-weight: 700; color: var(--ink-2); margin: 0 0 10px; }
@media (max-width: 1023px) {
	.smart-quick { display: none; }   /* 手機已有底部固定按鈕，這裡不重複，讓智慧找房更靠近畫面上方 */
	.smart-top { padding: 14px 20px; }
}

/* ---------- 即時訂房：空房數、沒空房的提醒 ---------- */
.book-count, .act-count {
	display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: 4px;
	border-radius: 999px; background: #fff; color: var(--red-ink); font-size: .8rem; font-weight: 800; line-height: 1;
}
.btn-ghost .book-count { background: var(--red-ink); color: #fff; }
.act-count { min-width: 18px; height: 18px; font-size: .72rem; margin-left: 2px; }
.btn.is-full, .act.is-full { background: var(--ink-2) !important; color: #fff !important; box-shadow: none; }   /* 沒空房：改為沉穩的深色「詢問空房」 */
.btn-ghost.is-full { background: #fff !important; color: var(--ink) !important; }
.avail-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 24px; }
.avail-head p { margin: 0; color: var(--ink-2); flex: 1 1 320px; }
.avail-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #E3F4E8; color: #17723A; font-weight: 800; }
.avail-dot { width: 10px; height: 10px; border-radius: 50%; background: #1E9E4A; box-shadow: 0 0 0 0 rgba(30, 158, 74, .5); animation: avail-pulse 1.8s infinite; }
@keyframes avail-pulse { 70% { box-shadow: 0 0 0 10px rgba(30, 158, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 158, 74, 0); } }
.full-card { max-width: 760px; margin: 0 auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 40px 24px; }
.full-icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #FFF2DC; color: #9A5B00; }
.full-icon .ic { width: 40px; height: 40px; }
.full-card h2 { margin-bottom: 10px; }
.full-lead { color: var(--ink-2); font-size: 1.05rem; line-height: 1.9; }
.full-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 18px; }
.full-more { color: var(--muted); margin: 0; }
@media (max-width: 639px) { .full-actions .btn { flex: 1 1 100%; } .full-lead br { display: none; } }

/* =====================================================================
   頁尾（第二版）
   ===================================================================== */
/* 地址：中文在前、英文小字在下 */
.addr { display: inline-flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; }
.addr-zh { font-weight: 700; }
.addr-en { font-size: .82em; opacity: .75; font-weight: 400; line-height: 1.5; }
.addr:hover .addr-zh { text-decoration: underline; }
.contact-addr { display: flex; gap: 8px; align-items: flex-start; }
.contact-addr .ic { margin-top: .35em; color: var(--red); flex: 0 0 auto; }

/* 內頁最下方的引導色帶 */
.footer-cta { background: var(--red-ink); color: #fff; position: relative; overflow: hidden; }
.footer-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 30px; padding-bottom: 30px; position: relative; z-index: 1; }
.footer-cta h2 { color: #fff; font-size: 1.45rem; margin: 0 0 4px; }
.footer-cta p { margin: 0; opacity: .92; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-outline-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: #fff !important; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.footer-cta .btn-line { box-shadow: 0 0 0 2px rgba(255, 255, 255, .45); }
@media (max-width: 639px) { .footer-cta-actions .btn { flex: 1 1 100%; } }

/* 主區 */
.site-footer { font-size: .95rem; }
.footer-grid { gap: 36px 40px; padding-top: 52px; padding-bottom: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1.1fr); } }
.footer-logo { width: 116px; margin-bottom: 12px; }
.footer-tagline { color: #CFC3B4; line-height: 1.85; margin-bottom: 14px; }
.footer-addr { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.footer-addr > .ic { color: #FF8A70; margin-top: .3em; flex: 0 0 auto; }
.footer-addr-link { color: #F3EBDF !important; }
.footer-addr-link .addr-zh { font-size: 1.02rem; }
.footer-seal { opacity: .85; border-radius: 6px; }

.footer-title { font-size: 1.08rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-contact li { margin: 0; }
.footer-contact a { min-height: 44px; font-size: 1rem; }
.footer-contact a.footer-tel { font-size: 1.22rem; font-weight: 800; letter-spacing: .02em; color: #fff !important; }
.footer-contact a.footer-mail { font-weight: 500; font-size: .92rem; color: #D9CDBE !important; word-break: break-all; }
.footer-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #E9DFD2; font-size: .9rem; }
.footer-note .ic { color: #FFB199; flex: 0 0 auto; }

.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.footer-links a { min-height: 42px; font-size: .95rem; line-height: 1.4; padding: 4px 0; }
.footer-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #1E9E4A; color: #fff; font-size: .72rem; font-weight: 700; vertical-align: 1px; }

.footer-line-card {
	display: flex; align-items: center; gap: 14px; padding: 12px; margin-bottom: 14px; border-radius: 14px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #E9DFD2 !important; text-decoration: none !important;
	font-size: .86rem; line-height: 1.6; transition: background-color .2s;
}
.footer-line-card:hover { background: rgba(255, 255, 255, .1); }
.footer-line-card img { width: 88px; height: 88px; border-radius: 10px; background: #fff; padding: 4px; flex: 0 0 auto; }
.footer-line-card strong { display: block; color: #9BE3B4; font-size: 1rem; margin-bottom: 2px; }
.footer-fb-card { border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.footer-fb-card .fb-page { display: block; background: #fff; min-height: 0; }
.footer-fb-card .fb-page:empty { display: none; }
.footer-fb-link { display: flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 14px; font-weight: 700; color: #F3EBDF !important; }
.footer-fb-link .ic { color: #8AB4FF; }
@media (max-width: 767px) { .footer-fb-card .fb-page { display: none !important; } }   /* 手機不載入 FB 外掛，只留按鈕 */

.footer-bottom-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a { color: #B8AB9B; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.footer-bottom-links a:hover { color: #fff; text-decoration: underline; }

.footer-links a { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.footer-badge { white-space: nowrap; margin-left: 0; }
.footer-tagline span { white-space: nowrap; }

/* ---------- 網站導覽 ---------- */
.smap-sec { padding-top: 36px; }
.smap-h { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; margin: 0 0 14px; }
.smap-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 40px; }
.smap-quick a {
	position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 18px;
	background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 8px rgba(35, 28, 24, .04);
	color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.08rem; transition: border-color .2s, transform .2s;
}
.smap-quick a:hover { border-color: var(--red); transform: translateY(-2px); }
.smap-quick .ic { flex: 0 0 auto; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--red-tint); color: var(--red-ink); }
.smap-quick span { white-space: nowrap; }
.smap-quick .book-count { margin-left: auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--red); color: #fff; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
/* 各分類：瀑布流排列，長短不一也不會留下大片空白 */
.smap { columns: 3 300px; column-gap: 20px; }
.smap-card {
	break-inside: avoid; -webkit-column-break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 20px;
	padding: 20px 20px 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
}
.smap-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-size: 1.15rem; }
.smap-title small { font-family: var(--sans); font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--paper-2); border-radius: 999px; padding: 2px 9px; }
.smap-list { list-style: none; padding: 0; margin: 0; }
.smap-list li + li { border-top: 1px solid var(--line); }
.smap-list a {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 10px 2px;
	color: var(--ink-2); text-decoration: none; font-size: .98rem; line-height: 1.55;
}
.smap-list a:hover { color: var(--red-ink); }
.smap-list a span { min-width: 0; overflow-wrap: anywhere; }
.smap-list .ic { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); }
.smap-list em { flex: 0 0 auto; font-style: normal; font-size: .82rem; font-weight: 700; color: var(--muted); min-width: 28px; text-align: center; padding: 1px 8px; border-radius: 999px; background: var(--paper); }
@media (max-width: 639px) { .smap-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .smap-quick a:last-child:nth-child(odd) { grid-column: 1 / -1; } .smap-quick a { font-size: 1rem; padding: 10px 12px; gap: 10px; } .smap-quick .ic { width: 36px; height: 36px; padding: 8px; } }

/* ---------- 房間比較 ---------- */
.room-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.room-foot .room-more { margin-top: 0; }
.cmp-btn {
	position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px 14px;
	border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-2); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
}
.cmp-btn:hover { border-color: var(--ink); color: var(--ink); }
.cmp-btn .cmp-on { display: none; width: 16px; height: 16px; }
.cmp-btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cmp-btn.is-on .cmp-on { display: inline-block; }
.cmp-btn.is-on .cmp-plus { display: none; }
.pd-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.pd-tool { min-height: 48px; padding: 6px 18px; font-size: 1rem; }
a.pd-tool { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; }
a.pd-tool:hover { border-color: var(--ink); }
a.pd-tool .ic { width: 20px; height: 20px; color: var(--red-ink); }

/* 底部比較列 */
.cmp-bar { position: fixed; left: 50%; bottom: 20px; z-index: 945; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); }
.cmp-bar[hidden] { display: none; }
.cmp-bar-in {
	display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px;
	background: var(--ink); color: #fff; box-shadow: 0 12px 34px rgba(35, 28, 24, .35);
}
.cmp-bar-ic .ic { width: 26px; height: 26px; color: #F5B7A6; }
.cmp-bar-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.cmp-bar-txt strong { font-size: .95rem; }
.cmp-bar-txt span { font-size: .88rem; color: #E6DCCF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-clear { flex: 0 0 auto; min-height: 44px; padding: 4px 12px; border: 0; background: transparent; color: #E6DCCF; font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.cmp-go { flex: 0 0 auto; min-height: 48px; }
.cmp-go b { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 999px; background: #fff; color: var(--red-ink); font-size: .85rem; }
.cmp-go.is-wait { opacity: .75; }
html.has-cmp .totop { bottom: 104px; }
@media (max-width: 1023px) {
	.cmp-bar { bottom: calc(92px + env(safe-area-inset-bottom)); }
	html.has-cmp .totop { bottom: calc(176px + env(safe-area-inset-bottom)); }
	html.has-cmp body { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
	.cmp-bar-ic { display: none; }
	.cmp-bar-in { gap: 6px; padding: 8px 8px 8px 14px; }
	.cmp-go { padding: 6px 12px; }
}

/* 比較頁 */
.cmp-sec { padding-top: 28px; }
.cmp-intro { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); margin: 0 0 18px; }
.cmp-intro .ic { flex: 0 0 auto; margin-top: .3em; color: var(--muted); }
.cmp-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 160px repeat(var(--n), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cmp-row:first-child { border-top: 0; }
.cmp-row:nth-child(even):not(.cmp-rooms):not(.cmp-actions) { background: #FDFBF8; }
.cmp-label { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-weight: 700; color: var(--muted); background: var(--paper); }
.cmp-label .ic { width: 18px; height: 18px; color: var(--red-ink); flex: 0 0 auto; }
.cmp-cell { padding: 14px 16px; border-left: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; color: var(--ink); line-height: 1.6; }
.cmp-cell small { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.cmp-price { font-family: var(--serif); font-size: 1.2rem; color: var(--red-deep); }
.cmp-tag { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: #E6F6EC; color: #0B6B33; font-size: .8rem; font-weight: 700; vertical-align: middle; }
.cmp-na { color: #B8AB9B; }
.cmp-yes { display: inline-flex; align-items: center; gap: 4px; color: #0B6B33; font-weight: 700; }
.cmp-yes .ic { width: 18px; height: 18px; }
.cmp-no { color: var(--red-ink); font-weight: 700; }
.cmp-rooms .cmp-cell { display: flex; flex-direction: column; gap: 6px; }
.cmp-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--paper-2); }
.cmp-name { color: var(--ink); font-weight: 700; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cmp-name:hover { color: var(--red-ink); text-decoration: underline; }
.cmp-remove { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 4px 12px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; }
.cmp-remove .ic { width: 16px; height: 16px; }
.cmp-remove:hover { border-color: var(--red-ink); color: var(--red-ink); }
.cmp-actions .cmp-cell { display: grid; gap: 8px; }
.cmp-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.cmp-empty { text-align: center; max-width: 720px; margin: 0 auto; padding: 36px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-empty .full-icon { background: var(--red-tint); color: var(--red-ink); }
.cmp-empty .full-icon .ic { width: 38px; height: 38px; }
.cmp-empty .full-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 18px 0 0; }
.cmp-one { max-width: 360px; margin: 28px auto 0; text-align: left; }
/* 手機：每一項的名稱放在上面，房間並排在下面（不用左右滑） */
@media (max-width: 760px) {
	.cmp-row { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
	.cmp-label { grid-column: 1 / -1; padding: 8px 12px; font-size: .9rem; }
	.cmp-cell { padding: 10px 12px; font-size: .95rem; }
	.cmp-cell:nth-child(2) { border-left: 0; }
	.cmp-rooms .cmp-label, .cmp-actions .cmp-label { display: none; }
	.cmp-price { font-size: 1.05rem; }
	.cmp-tag { margin: 4px 0 0; }
	.cmp-actions .btn { min-height: 48px; padding: 6px 6px; font-size: .88rem; }
	.cmp-actions .btn .ic { display: none; }
	.cmp-name { -webkit-line-clamp: 3; font-size: .92rem; }
	.cmp-rooms .room-code { font-size: .78rem; }
	.cmp-remove { min-height: 38px; padding: 2px 10px; font-size: .82rem; }
}

/* ---------- 月租費用試算 ---------- */
.cost-sec { padding: 0 0 48px; }
.cost-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.cost-head .meta { margin: 4px 0 0; }
.cost-grid { display: grid; gap: 24px; margin-top: 20px; }
@media (min-width: 900px) { .cost-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; } }
.cost-inputs fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.cost-inputs legend { font-weight: 700; margin-bottom: 10px; font-size: 1.05rem; }
.cost-inputs .chip small { color: var(--muted); font-size: .85rem; margin-left: 2px; }
.cost-result { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.cost-big { display: flex; flex-direction: column; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.cost-big span { font-weight: 700; color: var(--muted); }
.cost-big strong { font-family: var(--serif); font-size: 2.1rem; line-height: 1.25; color: var(--red-deep); }
.cost-big small { color: var(--ink-2); font-size: .92rem; }
.cost-lines { margin: 8px 0 0; }
.cost-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cost-lines dt { color: var(--ink-2); }
.cost-lines dd { margin: 0; font-weight: 700; text-align: right; }
.cost-lines .cost-sum dd { font-size: 1.15rem; color: var(--ink); }
.cost-notes { margin: 14px 0 0; padding-left: 1.2em; color: var(--muted); font-size: .9rem; line-height: 1.7; }
/* 比較列出現時，提示訊息往上移，不會蓋住 */
html.has-cmp .toast { bottom: 104px; }
@media (max-width: 1023px) { html.has-cmp .toast { bottom: calc(172px + env(safe-area-inset-bottom)); } }
