/* ============================================================
   ilayo.ai — 愛拉遊旅宿平台 設計系統
   天藍 × 珊瑚 × 琥珀｜比 OTA 更輕、更亮、更好看
   ============================================================ */

:root {
  --blue-deep: #0B3D63;
  --blue: #1B76B8;
  --blue-bright: #2492E0;
  --sky: #55B0E8;
  --sky-soft: #E9F4FC;
  --sky-mist: #F4F9FD;
  --coral: #F0594E;
  --coral-deep: #D8433A;
  --amber: #F6C445;
  --ink: #16232E;
  --ink-soft: #5B7285;
  --line: #E1EAF1;
  --bg: #F5F8FA;
  --white: #FFFFFF;
  --ok: #2E9E6B;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 4px 18px rgba(11, 61, 99, .08);
  --shadow-lift: 0 14px 34px rgba(11, 61, 99, .16);
  --maxw: 1200px;
  --header-h: 66px;

  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: clip; /* sticky 殺手是 hidden，用 clip */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select { font-family: inherit; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: 22px;
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.brand-name { font-weight: 900; font-size: 1.16rem; letter-spacing: .02em; color: var(--blue-deep); line-height: 1.15; display: flex; flex-direction: column; }
.brand-name small { font-size: .6rem; font-weight: 700; letter-spacing: .22em; color: var(--sky); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-header .lang-toggle { order: 99; }
.main-nav > a {
  padding: 8px 13px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  transition: .18s;
}
.main-nav > a:hover { background: var(--sky-soft); color: var(--blue); }
.main-nav > a.nav-owner {
  border: 1.5px solid var(--line); color: var(--blue); font-weight: 700; margin-left: 6px;
}
.main-nav > a.nav-owner:hover { border-color: var(--sky); background: var(--sky-soft); }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: none; background: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2.5px; background: var(--blue-deep); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

body.nav-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(85,176,232,.35), transparent 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(36,146,224,.28), transparent 55%),
    linear-gradient(155deg, #0B3D63 0%, #14567F 45%, #1B76B8 100%);
  color: #fff;
  overflow: clip;
}
.hero-inner { position: relative; padding: 64px 0 92px; z-index: 2; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  color: var(--amber); margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 900; letter-spacing: .04em; line-height: 1.28;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.hero h1 .accent { color: var(--amber); }
.hero-sub { margin-top: 14px; font-size: clamp(.98rem, 1.6vw, 1.12rem); color: #D8EAF7; max-width: 640px; }
.hero-sub strong { color: #fff; }

/* 搜尋列 */
.searchbar {
  margin-top: 30px;
  background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-lift);
  display: grid; grid-template-columns: 220px 1fr 150px;
  overflow: visible; padding: 8px; gap: 8px;
  max-width: 780px; position: relative;
}
.searchbar .sfield { display: flex; flex-direction: column; justify-content: center; padding: 6px 14px; border-radius: 12px; background: var(--sky-mist); }
.searchbar label { font-size: .72rem; font-weight: 700; color: var(--ink-soft); letter-spacing: .06em; }
.searchbar select, .searchbar input {
  border: none; background: none; outline: none;
  font-size: 1rem; font-weight: 700; color: var(--ink); width: 100%;
  padding: 2px 0;
}
.search-btn {
  border: none; border-radius: 14px;
  background: linear-gradient(135deg, var(--coral) 0%, #F2745C 100%);
  color: #fff; font-size: 1.05rem; font-weight: 900; letter-spacing: .12em;
  transition: .2s; box-shadow: 0 6px 16px rgba(240,89,78,.35);
}
.search-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }

.search-suggest {
  position: absolute; left: 8px; right: 8px; top: calc(100% + 6px);
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lift);
  max-height: 340px; overflow: auto; display: none; z-index: 50; color: var(--ink);
}
.search-suggest.open { display: block; }
.search-suggest a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: .93rem; border-bottom: 1px solid var(--sky-mist); }
.search-suggest a:hover { background: var(--sky-soft); }
.search-suggest .s-city { margin-left: auto; font-size: .78rem; color: var(--ink-soft); flex-shrink: 0; }
.search-suggest .s-type { font-size: .72rem; color: var(--blue); background: var(--sky-soft); border-radius: 6px; padding: 1px 7px; flex-shrink: 0; }

.hero-chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-chips .hc-label { font-size: .85rem; color: #BFDCF0; }
.hero-chips a {
  font-size: .85rem; font-weight: 500; color: #fff;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  padding: 5px 14px; border-radius: var(--radius-pill); transition: .18s;
}
.hero-chips a:hover { background: rgba(255,255,255,.28); }

/* hero 照片拼貼 */
.hero-mosaic {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%) rotate(4deg);
  display: grid; grid-template-columns: repeat(2, 190px); gap: 14px;
  opacity: .95; z-index: 1;
}
.hero-mosaic img {
  width: 190px; height: 132px; object-fit: cover; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,.30);
}
.hero-mosaic img:nth-child(odd) { transform: translateY(22px); }

/* 數字帶 */
.stats-strip { background: #fff; border-bottom: 1px solid var(--line); }
.stats-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 18px 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 900; color: var(--blue); letter-spacing: .01em; }
.stat span { font-size: .82rem; color: var(--ink-soft); }

/* ---------- 區塊 ---------- */
.section { padding: 54px 0 30px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.section-title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 900; letter-spacing: .02em; }
.section-title .en { font-size: .78rem; font-weight: 700; letter-spacing: .2em; color: var(--sky); display: block; margin-bottom: 4px; }
.section-more { margin-left: auto; font-size: .9rem; font-weight: 700; color: var(--blue); }
.section-more:hover { text-decoration: underline; }

/* 目的地卡 */
.dest-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.dest-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow); transition: .22s;
}
.dest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.dest-card img { width: 100%; height: 100%; object-fit: cover; }
.dest-card .dc-cover {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,34,54,.82) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
  color: #fff;
}
.dest-card .dc-name { font-size: 1.12rem; font-weight: 900; letter-spacing: .06em; }
.dest-card .dc-count { font-size: .78rem; color: #CBE4F5; }

/* 橫向捲動列 */
.rail-wrap { position: relative; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 258px;
  gap: 16px; overflow-x: auto; padding: 6px 4px 18px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* 住宿卡 */
.stay-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: .22s; display: flex; flex-direction: column;
}
.stay-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.stay-card .sc-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky-soft); }
.stay-card .sc-photo img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.stay-card:hover .sc-photo img { transform: scale(1.05); }
.sc-type {
  position: absolute; left: 10px; top: 10px;
  background: rgba(255,255,255,.94); color: var(--blue-deep);
  font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill);
}
.sc-body { padding: 13px 15px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sc-name {
  font-size: .99rem; font-weight: 700; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.9em;
}
.sc-loc { font-size: .8rem; color: var(--ink-soft); display: flex; align-items: center; gap: 4px; }
.sc-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 6px; }
.sc-rate {
  background: var(--blue); color: #fff; font-weight: 900; font-size: .86rem;
  border-radius: 8px 8px 8px 2px; padding: 2px 8px;
}
.sc-rate.hot { background: var(--coral); }
.sc-rlabel { font-size: .8rem; font-weight: 700; color: var(--blue-deep); }
.sc-reviews { font-size: .74rem; color: var(--ink-soft); }
.sc-cta { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--coral); }
.sc-stars { color: var(--amber); font-size: .78rem; letter-spacing: .06em; }

/* ---------- 民宿主 band ---------- */
.owner-band {
  margin: 44px 0;
  background:
    radial-gradient(700px 300px at 90% 20%, rgba(246,196,69,.22), transparent 60%),
    linear-gradient(135deg, #0B3D63, #17618F);
  border-radius: 24px; color: #fff;
  padding: 44px 46px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center;
  box-shadow: var(--shadow-lift);
  overflow: clip; position: relative;
}
.owner-band h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 900; letter-spacing: .03em; line-height: 1.4; }
.owner-band h2 .accent { color: var(--amber); }
.owner-band p { margin-top: 12px; color: #CFE5F4; font-size: .98rem; max-width: 560px; }
.owner-points { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.owner-points span {
  font-size: .84rem; font-weight: 700;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2);
  padding: 5px 14px; border-radius: var(--radius-pill);
}
.owner-cta { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
/* 合成圖預留：.owner-band 右欄之後可放品牌插畫 <img class="owner-art"> */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 14px; padding: 14px 26px;
  font-size: 1rem; font-weight: 900; letter-spacing: .06em; transition: .2s;
}
.btn-coral { background: linear-gradient(135deg, var(--coral), #F2745C); color: #fff; box-shadow: 0 6px 18px rgba(240,89,78,.35); }
.btn-coral:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,.24); }
.btn-blue { background: var(--blue-bright); color: #fff; box-shadow: 0 6px 18px rgba(36,146,224,.3); }
.btn-blue:hover { filter: brightness(1.06); }

/* ---------- 信任區 ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card { background: #fff; border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); }
.trust-card .tc-icon { font-size: 1.7rem; margin-bottom: 10px; }
.trust-card h3 { font-size: 1.02rem; font-weight: 900; margin-bottom: 6px; }
.trust-card p { font-size: .86rem; color: var(--ink-soft); }

/* ---------- 城市列表頁 ---------- */
.page-head {
  background:
    radial-gradient(800px 300px at 85% -20%, rgba(85,176,232,.3), transparent 60%),
    linear-gradient(150deg, #0B3D63, #1B76B8);
  color: #fff; padding: 38px 0 34px;
}
.breadcrumb { font-size: .8rem; color: #A9CFE8; margin-bottom: 10px; }
.breadcrumb a:hover { text-decoration: underline; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: .04em; }
.page-head .ph-sub { margin-top: 6px; color: #CFE5F4; font-size: .95rem; }

.filter-bar {
  position: sticky; top: var(--header-h); z-index: 60;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.filter-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 10px 22px;
  display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar { display: none; }
.f-chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  font-size: .87rem; font-weight: 700; padding: 6px 16px; border-radius: var(--radius-pill);
  white-space: nowrap; transition: .18s;
}
.f-chip:hover { border-color: var(--sky); color: var(--blue); }
.f-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.f-select {
  margin-left: auto; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  padding: 6px 12px; font-size: .85rem; font-weight: 700; color: var(--ink); background: #fff;
  flex-shrink: 0;
}

.city-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 26px 0 10px;
}
.load-wrap { text-align: center; padding: 22px 0 48px; }
.load-more {
  border: 2px solid var(--blue); color: var(--blue); background: #fff;
  font-size: .95rem; font-weight: 900; letter-spacing: .08em;
  padding: 12px 42px; border-radius: var(--radius-pill); transition: .2s;
}
.load-more:hover { background: var(--blue); color: #fff; }
.load-note { margin-top: 10px; font-size: .8rem; color: var(--ink-soft); }
.empty-note { padding: 40px 0 60px; text-align: center; color: var(--ink-soft); }

/* ---------- 詳細頁 ---------- */
.detail-head { padding: 26px 0 8px; }
.detail-head h1 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 900; line-height: 1.4; letter-spacing: .02em; }
.detail-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; font-size: .88rem; color: var(--ink-soft); }
.detail-sub .d-type { background: var(--sky-soft); color: var(--blue); font-weight: 700; font-size: .78rem; padding: 2px 10px; border-radius: var(--radius-pill); }
.detail-sub .d-en { color: var(--ink-soft); }
.detail-sub a.d-map { color: var(--blue); font-weight: 700; }
.detail-sub a.d-map:hover { text-decoration: underline; }

.gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 190px 190px;
  gap: 10px; border-radius: 20px; overflow: hidden; margin-top: 16px;
}
.gallery a { position: relative; overflow: hidden; background: var(--sky-soft); }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery .g-more {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(8,34,54,.5); color: #fff; font-weight: 900; font-size: .95rem;
}

.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; padding: 26px 0 40px; align-items: start; }
.detail-grid > * { min-width: 0; } /* rail 在 grid 欄內不撐版 */

.fact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.fact-card h2 { font-size: 1.1rem; font-weight: 900; margin-bottom: 14px; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact { background: var(--sky-mist); border-radius: var(--radius-sm); padding: 12px 14px; }
.fact b { display: block; font-size: .98rem; font-weight: 900; color: var(--blue-deep); }
.fact span { font-size: .76rem; color: var(--ink-soft); }
.fact-note { margin-top: 14px; font-size: .8rem; color: var(--ink-soft); }

.book-card {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lift);
  padding: 24px; border-top: 4px solid var(--coral);
}
.book-card .bc-rate { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.book-card .bc-rate .sc-rate { font-size: 1.05rem; padding: 4px 10px; }
.book-card .bc-note { font-size: .82rem; color: var(--ink-soft); margin: 10px 0 16px; }
.book-card .btn { width: 100%; }
.book-card .btn + .btn { margin-top: 10px; }
.bc-partner-note { margin-top: 14px; font-size: .72rem; color: var(--ink-soft); line-height: 1.6; }

.claim-strip {
  margin-top: 16px; background: linear-gradient(135deg, #0B3D63, #17618F);
  border-radius: var(--radius); color: #fff; padding: 18px 20px;
}
.claim-strip b { display: block; font-size: .95rem; font-weight: 900; }
.claim-strip p { font-size: .8rem; color: #CFE5F4; margin: 6px 0 10px; }
.claim-strip a { font-size: .84rem; font-weight: 900; color: var(--amber); }
.claim-strip a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: #082A44; color: #B9D2E4; margin-top: 40px; }
.footer-grid {
  max-width: var(--maxw); margin-inline: auto; padding: 48px 22px 30px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px;
}
.footer-brand img { height: 44px; width: auto; margin-bottom: 12px; }
.footer-brand p { font-size: .86rem; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: .92rem; font-weight: 900; margin-bottom: 12px; letter-spacing: .08em; }
.footer-col a { display: block; font-size: .85rem; padding: 3px 0; transition: .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: var(--maxw); margin-inline: auto; padding: 18px 22px 26px;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: .76rem; color: #7FA3BD;
}
.footer-disclosure {
  max-width: var(--maxw); margin-inline: auto; padding: 0 22px 8px;
  font-size: .74rem; color: #6E93AE; line-height: 1.8;
}

/* ---------- 進場動畫 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.js .reveal { will-change: opacity, transform; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- RWD ---------- */
@media (max-width: 1100px) {
  .hero-mosaic { display: none; }
  .dest-grid { grid-template-columns: repeat(4, 1fr); }
  .city-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .book-card { position: static; }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 80;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 18px 18px;
    box-shadow: 0 18px 30px rgba(11,61,99,.14);
    transform: translateY(-130%); transition: transform .28s ease;
  }
  .main-nav.open { transform: none; }
  .main-nav > a { padding: 13px 10px; border-radius: 10px; font-size: 1rem; }
  .main-nav > a.nav-owner { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 768px) {
  .hero-inner { padding: 44px 0 60px; }
  .hero h1 { font-size: 1.75rem; }
  .hero-sub { font-size: .95rem; }
  .searchbar { grid-template-columns: 1fr; }
  .search-btn { padding: 13px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat b { font-size: 1.2rem; }
  .section { padding: 40px 0 20px; }
  .section-title { font-size: 1.28rem; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rail { grid-auto-columns: 218px; }
  .city-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sc-name { font-size: .9rem; }
  .owner-band { grid-template-columns: 1fr; padding: 30px 24px; }
  /* LINE/IG 內建瀏覽器 vw 計算不準，clamp 必須有 px 覆寫（招商標題爆字＝第一印象毀掉） */
  .owner-band h2 { font-size: 1.34rem; }
  .owner-band p { font-size: .93rem; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: 130px 130px; }
  .gallery a:nth-child(4), .gallery a:nth-child(5) { display: none; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 36px 22px 20px; gap: 22px; }
  .detail-head h1 { font-size: 1.35rem; }
  .page-head h1 { font-size: 1.45rem; }
}

@media (max-width: 480px) {
  .city-grid { grid-template-columns: 1fr; }
  .dest-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   雙語：中英並陳 + 語言切換
   ============================================================ */

/* 住宿卡的英文副名 */
.sc-alt {
  display: block;
  font-size: .76rem;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-top: -2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[lang="en"] .sc-alt { display: none; }   /* 英文模式下主名已是英文，不重複 */

/* 詳細頁 h1 下方的英文名 */
.d-alt {
  font-size: .92rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: .01em;
}
html[lang="en"] .d-alt { display: none; }

/* 語言切換鈕 */
.lang-toggle {
  margin-left: auto;
  min-width: 46px; height: 32px;
  border: 1.5px solid var(--line);
  background: #fff; color: var(--blue);
  border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 900; letter-spacing: .04em;
  display: inline-flex; align-items: center; justify-content: center;
  transition: .18s; flex-shrink: 0;
}
.lang-toggle:hover { border-color: var(--sky); background: var(--sky-soft); }
.lang-toggle::before {
  content: "🌐"; font-size: .82rem; margin-right: 4px; filter: grayscale(.2);
}

@media (max-width: 960px) {
  /* 手機：語言鈕在漢堡左邊，兩顆都常駐 */
  .lang-toggle { margin-left: auto; margin-right: 2px; }
  .nav-toggle { margin-left: 0; }
}

/* ============================================================
   厚圖相簿（Hotels.com 素材）＋ 燈箱
   ============================================================ */
.photo-gallery { padding: 30px 0 6px; }
.photo-gallery .section-head { margin-bottom: 14px; align-items: center; }
.pg-note { margin-left: auto; font-size: .76rem; color: var(--ink-soft); }

.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.pg-cell {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--sky-soft); cursor: zoom-in;
}
.pg-cell img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.pg-cell:hover img { transform: scale(1.05); }

.gallery a.gx { cursor: zoom-in; }

/* 燈箱 */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 18, 28, .94);
  display: none; align-items: center; justify-content: center;
}
.lb.open { display: flex; }
body.lb-locked { overflow: hidden; }
.lb-img {
  max-width: 92vw; max-height: 86vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.14); color: #fff;
  font-size: 1.6rem; line-height: 1; display: flex;
  align-items: center; justify-content: center; transition: .18s;
}
.lb-btn:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-close {
  position: absolute; top: 16px; right: 18px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.14); color: #fff;
  font-size: 1.5rem; line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,.3); }
.lb-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: .85rem; font-weight: 700;
  background: rgba(0,0,0,.45); padding: 5px 14px; border-radius: var(--radius-pill);
}

@media (max-width: 768px) {
  .pg-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 7px; }
  .pg-note { display: none; }
  .lb-btn { width: 42px; height: 42px; font-size: 1.3rem; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
}

/* ============================================================
   單店長文：段落穿插照片帶
   ============================================================ */
.stay-story { padding: 26px 0 4px; max-width: 860px; }
.story-lede {
  font-size: 1.06rem; line-height: 2; color: var(--ink);
  padding: 18px 22px; background: var(--sky-mist);
  border-left: 4px solid var(--sky); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 30px;
}
.ss { margin-bottom: 34px; }
.ss-h {
  font-size: 1.16rem; font-weight: 900; letter-spacing: .02em;
  color: var(--blue-deep); margin-bottom: 10px;
  padding-left: 13px; border-left: 4px solid var(--coral);
}
.ss-p { font-size: .99rem; line-height: 2.05; color: var(--ink); }
.ss-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px; margin-top: 15px;
}
.ss-shot {
  aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--sky-soft); cursor: zoom-in;
}
.ss-shot img { width: 100%; height: 100%; object-fit: cover; transition: .3s; }
.ss-shot:hover img { transform: scale(1.06); }

@media (max-width: 768px) {
  .story-lede { font-size: .98rem; line-height: 1.95; padding: 15px 16px; margin-bottom: 24px; }
  .ss-h { font-size: 1.06rem; }
  .ss-p { font-size: .94rem; line-height: 1.95; }
  .ss-strip { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* ============================================================
   FAQ 手風琴（單店頁）
   ============================================================ */
.faq-wrap { max-width: 860px; padding: 4px 0 10px; }
.faq-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}
.faq-item + .faq-item { border-top: 1px solid var(--line); }

.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 17px 20px;
  border: none; background: none;
  font-size: 1rem; font-weight: 700; line-height: 1.6;
  color: var(--ink); transition: background .16s;
}
.faq-q:hover { background: var(--sky-mist); }
.faq-item.open .faq-q { color: var(--blue); background: var(--sky-mist); }

.faq-q::before {
  content: "Q";
  flex-shrink: 0;
  width: 24px; height: 24px; margin-top: 1px;
  border-radius: 7px;
  background: var(--sky-soft); color: var(--blue);
  font-size: .78rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.faq-item.open .faq-q::before { background: var(--blue); color: #fff; }

.faq-arrow {
  margin-left: auto; flex-shrink: 0;
  color: var(--ink-soft); font-size: .9rem;
  transition: transform .25s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--blue); }

.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner {
  padding: 0 20px 18px 56px;
  font-size: .95rem; line-height: 1.95; color: var(--ink-soft);
}

@media (max-width: 768px) {
  .faq-q { padding: 15px 15px; font-size: .95rem; gap: 10px; }
  .faq-q::before { width: 22px; height: 22px; font-size: .72rem; }
  .faq-a-inner { padding: 0 15px 16px 47px; font-size: .91rem; line-height: 1.9; }
}
