/* ==========================================================================
   暖你 · 山间有舍 — 站点主题
   Apple-inspired / 极简 · 大字号 · 大留白 · 轻玻璃质感
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #fbfbfd;
  --surface: #ffffff;
  --soft: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-strong: #b9b9c0;
  --accent: #0071e3;
  --accent-strong: #0066cc;
  --accent-soft: #e8f2ff;
  --accent-ink: #ffffff;
  --danger: #d70015;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 18px 50px -20px rgba(0, 0, 0, .22);
  --header-bg: rgba(251, 251, 253, .72);
  --header-bg-solid: rgba(251, 251, 253, .86);
  --ring: rgba(0, 113, 227, .28);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, "Segoe UI", sans-serif;
  --font-serif: var(--font-sans);
  --shell: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 48px;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 980px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #000000;
  --surface: #1d1d1f;
  --soft: #161617;
  --ink: #f5f5f7;
  --ink-soft: #d2d2d7;
  --muted: #a1a1a6;
  --line: #38383a;
  --line-strong: #48484a;
  --accent: #2997ff;
  --accent-strong: #47a9ff;
  --accent-soft: #10233a;
  --accent-ink: #ffffff;
  --danger: #ff6b6b;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md: 0 24px 60px -20px rgba(0, 0, 0, .8);
  --header-bg: rgba(0, 0, 0, .62);
  --header-bg-solid: rgba(0, 0, 0, .82);
  --ring: rgba(41, 151, 255, .4);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
figure, h1, h2, h3, h4, h5, h6, p, dl, dd, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

.skip {
  position: absolute; left: 16px; top: 8px; z-index: 200;
  padding: 10px 16px; border-radius: var(--pill);
  background: var(--ink); color: var(--paper);
  transform: translateY(-180%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------- Layout ---------- */
.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--soft { background: var(--soft); }
.section--ink { background: #000; color: #f5f5f7; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .serif {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6vw, 80px); letter-spacing: -.032em; }
h2 { font-size: clamp(30px, 3.8vw, 52px); }
h3 { font-size: clamp(21px, 1.9vw, 27px); letter-spacing: -.015em; }
h4 { font-size: 19px; }
p { text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .06em;
  color: var(--muted);
}
.eyebrow::before { display: none; }
.eyebrow--plain::before { display: none; }

.lead { color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

.text-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 15px; font-weight: 400; letter-spacing: 0;
  color: var(--accent-strong); border: 0;
  transition: color .2s;
}
.text-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.text-link .arrow { font-size: 15px; transition: transform .25s var(--ease); }
.text-link:hover .arrow { transform: translateX(3px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--pill);
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: 0;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { background: #0077ed; box-shadow: 0 6px 20px -6px rgba(0, 113, 227, .5); }
.btn:active { transform: scale(.975); }
.btn--sm { min-height: 30px; padding: 0 14px; font-size: 12px; }
.btn--ghost { background: transparent; color: var(--accent-strong); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-strong); border-color: var(--accent); box-shadow: none; }
.btn--light { background: #fff; color: #1d1d1f; border-color: #fff; }
.btn--light:hover { background: rgba(255, 255, 255, .88); color: #1d1d1f; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transition: background .3s, border-color .3s;
}
:root[data-theme="dark"] .site-header { border-bottom-color: rgba(255, 255, 255, .12); }
.site-header.is-scrolled { background: var(--header-bg-solid); }
.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: var(--header-h);
  width: min(100% - 44px, 1024px);
}.brand { display: inline-flex; align-items: baseline; gap: 9px; flex: none; }
.brand-name {
  font-family: var(--font-sans); font-size: 17px; font-weight: 600;
  letter-spacing: .01em; line-height: 1;
}
.brand-sub {
  display: flex; align-items: baseline; gap: 6px;
  padding: 0; border: 0;
  font-size: 12px; letter-spacing: .02em; color: var(--muted); line-height: 1;
}
.brand-sub b { font-weight: 400; letter-spacing: .02em; color: var(--muted); font-size: 12px; }
.brand-sub span { display: none; }

.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); margin-left: auto; }
.site-nav a {
  position: relative; padding: 4px 0;
  font-size: 12px; letter-spacing: .01em; color: rgba(29, 29, 31, .82);
  transition: color .2s, opacity .2s;
}
:root[data-theme="dark"] .site-nav a { color: rgba(245, 245, 247, .82); }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.site-nav a::after { display: none; }
.site-nav .nav-member { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; margin-left: 8px; }
.member-link { display: inline-flex; align-items: center; font-size: 12px; letter-spacing: .01em; color: rgba(29, 29, 31, .82); }
:root[data-theme="dark"] .member-link { color: rgba(245, 245, 247, .82); }
.member-link:hover { color: var(--ink); }
.member-link.is-member { font-size: 0; }
.member-avatar {
  display: grid; place-items: center; width: 26px; height: 26px;
  border: 0; border-radius: 50%;
  background: var(--soft); color: var(--ink);
  font-size: 12px; font-weight: 500;
}
.icon-btn {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--ink-soft); transition: background .2s, color .2s;
}
.icon-btn:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
:root[data-theme="dark"] .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.icon-btn svg { width: 15px; height: 15px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-toggle { display: none; }

@media (min-width: 901px) {
  .header-inner { position: relative; justify-content: space-between; }
  .site-nav { position: absolute; left: 50%; transform: translateX(-50%); margin-left: 0; }
  .header-actions { margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88svh, 820px);
  display: grid; place-items: center; overflow: hidden;
  background: #101010; text-align: center;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  filter: saturate(1.06) brightness(1.1);
  transform: scale(1.01); animation: heroIn 1.8s var(--ease) both;
}
@keyframes heroIn { from { transform: scale(1.07); opacity: .5; } to { transform: scale(1.01); opacity: 1; } }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .50) 0%, rgba(0, 0, 0, .34) 38%, rgba(0, 0, 0, .44) 70%, rgba(0, 0, 0, .68) 100%);
}
.hero-inner {
  position: relative; z-index: 1; width: min(100% - var(--gutter) * 2, 980px);
  padding-block: clamp(96px, 12vw, 150px);
  color: #f5f5f7;
}
.hero-copy { max-width: 860px; margin-inline: auto; }
.hero .eyebrow { color: rgba(245, 245, 247, .82); justify-content: center; letter-spacing: .1em; }
.hero h1 {
  margin: 20px 0 22px; color: #f5f5f7;
  font-size: clamp(46px, 7.4vw, 96px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .25);
}
.hero-sub {
  max-width: 44em; margin-inline: auto;
  color: rgba(245, 245, 247, .86);
  font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px; margin-top: 36px; }
.hero-actions .text-link { color: #f5f5f7; }
.hero-actions .text-link:hover { color: #fff; }
.hero-caption {
  position: absolute; right: var(--gutter); bottom: 26px; z-index: 2;
  writing-mode: vertical-rl; font-size: 10px; letter-spacing: .28em;
  color: rgba(255, 255, 255, .5);
}

/* facts strip under hero */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.facts-grid div { display: grid; justify-items: center; gap: 6px; padding: clamp(28px, 4vw, 46px) 16px; }
.facts-grid div + div { border-left: 1px solid var(--line); }
.facts-grid b { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.facts-grid span { font-size: 13px; letter-spacing: 0; color: var(--muted); }

/* ---------- Section head ---------- */
.section-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 14px; margin-bottom: clamp(36px, 5vw, 60px);
}
.section-head .head-copy { display: grid; justify-items: center; gap: 12px; text-align: center; }
.section-head h2 { max-width: 20em; }
.section-head p { color: var(--muted); max-width: 36em; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }
.section-head .text-link { margin-top: 4px; }

/* ---------- Home: rooms ---------- */
.room-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.room-home { display: block; position: relative; }
.room-home .thumb {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3;
  background: var(--soft); border-radius: var(--radius-lg);
}
.room-home .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.room-home:hover .thumb img { transform: scale(1.035); }
.room-home .body { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px 4px 0; }
.room-home h3 { font-size: clamp(22px, 2vw, 26px); }
.room-home .meta { margin-top: 6px; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.room-home .price { text-align: right; white-space: nowrap; }
.room-home .price b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.room-home .price span { display: block; font-size: 12px; letter-spacing: 0; color: var(--muted); }
.room-home .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; letter-spacing: 0; color: var(--accent-strong); }

/* ---------- Home: gallery ---------- */
.gallery-home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 18px); }
.gallery-home a { display: block; }
.gallery-home .thumb {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1;
  background: var(--soft); border-radius: var(--radius);
}
.gallery-home img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .4s; }
.gallery-home a:hover img { transform: scale(1.04); }
.gallery-home figcaption {
  display: flex; justify-content: space-between; gap: 10px;
  padding-top: 10px; font-size: 13px; letter-spacing: 0; color: var(--muted);
}
.gallery-home figcaption span { color: var(--muted); }

/* ---------- Home: content cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 32px); }
.card {
  display: flex; flex-direction: column; background: transparent;
  border: 0; border-radius: var(--radius); overflow: hidden;
  transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-5px); }
.card .thumb { aspect-ratio: 16 / 11; overflow: hidden; background: var(--soft); border-radius: var(--radius); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .thumb img { transform: scale(1.035); }
.card .body { display: flex; flex-direction: column; gap: 8px; padding: 18px 2px 0; flex: 1; }
.card .meta { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.card h3 { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.3; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .more { margin-top: auto; padding-top: 10px; font-size: 14px; letter-spacing: 0; color: var(--accent-strong); }

/* ---------- Home: visit ---------- */
.visit { position: relative; background: #000; color: #f5f5f7; overflow: hidden; }
.visit::after { content: none; }
.visit-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.visit .eyebrow { color: #a1a1a6; }
.visit h2 { margin: 16px 0 18px; color: #f5f5f7; font-size: clamp(32px, 4vw, 54px); }
.visit p { color: rgba(245, 245, 247, .7); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; }
.visit .btn { margin-top: 28px; }
.visit dl { display: grid; }
.visit dl div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.visit dl div:last-child { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.visit dt { font-size: 12px; letter-spacing: .04em; color: #a1a1a6; }
.visit dd { font-size: 15px; color: rgba(245, 245, 247, .92); }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 60px) 26px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-brand .brand-name { font-size: 16px; }
.footer-brand p { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; max-width: 24em; }
.footer-col .footer-title { font-size: 12px; letter-spacing: 0; color: var(--ink); margin: 0 0 10px; padding: 0; font-weight: 600; }
.footer-col a, .footer-col p { display: block; font-size: 12px; color: var(--ink-soft); padding: 4px 0; }
.footer-col a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0; color: var(--muted);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; min-height: clamp(340px, 44vw, 520px);
  display: grid; place-items: center; overflow: hidden; text-align: center;
  background: #1a1a1a center / cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .42) 50%, rgba(0, 0, 0, .66) 100%);
}
.page-hero .shell { position: relative; z-index: 1; padding-block: clamp(64px, 8vw, 96px); color: #f5f5f7; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; align-items: center; font-size: 12px; letter-spacing: .02em; color: rgba(245, 245, 247, .66); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.page-hero .eyebrow { color: rgba(245, 245, 247, .72); justify-content: center; }
.page-hero h1, .page-hero .page-title {
  margin: 14px 0 14px; font-family: var(--font-sans); font-weight: 600;
  line-height: 1.06; letter-spacing: -.03em;
  font-size: clamp(38px, 5.4vw, 72px); color: #f5f5f7;
}
.page-hero p { color: rgba(245, 245, 247, .82); font-size: clamp(15px, 1.4vw, 19px); letter-spacing: 0; max-width: 44em; margin-inline: auto; }

/* ---------- Inner page body ---------- */
.page-section { padding-block: clamp(56px, 7vw, 100px); }
.page-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.page-title-row h2 { font-size: clamp(26px, 2.6vw, 34px); }
.page-title-row p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* ---------- Rooms list ---------- */
.room-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 34px); }
.room-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 4px 20px -6px rgba(0, 0, 0, .1);
  transition: box-shadow .4s, transform .4s var(--ease);
}
.room-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.room-card .photo { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.room-card .photo canvas { display: none; }
.room-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.room-card:hover .photo img { transform: scale(1.035); }
.room-card .badge {
  position: absolute; left: 16px; top: 16px; z-index: 1;
  padding: 6px 12px; background: rgba(0, 0, 0, .55); color: #fff;
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  font-size: 11px; letter-spacing: .02em; border-radius: var(--pill);
}
.room-card .content { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.4vw, 30px); }
.room-card h3 { font-size: clamp(22px, 2vw, 26px); }
.room-card .room-meta { margin-top: 6px; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.room-card .amenities { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.room-card .amenities li { position: relative; padding-left: 14px; font-size: 13px; color: var(--ink-soft); }
.room-card .amenities li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .9; }
.room-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.room-card .rate b { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.room-card .rate span { font-size: 12px; letter-spacing: 0; color: var(--muted); }
.room-card .actions { display: flex; align-items: center; gap: 14px; }
.room-card .actions .text-link { font-size: 14px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: clamp(36px, 5vw, 56px); }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--pill);
  font-size: 13px; color: var(--ink-soft); background: var(--surface);
  transition: border-color .2s, color .2s, background .2s;
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination .is-active span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination svg { width: 8px; height: 12px; }

/* ---------- Room detail ---------- */
.room-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.room-gallery figure { overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); border-radius: var(--radius); }
.room-gallery figure:only-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; }
.room-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; margin-top: clamp(32px, 4vw, 52px); }
.room-intro h1 { font-size: clamp(32px, 3.6vw, 50px); }
.room-intro .lead { margin-top: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.feature-grid div { background: var(--surface); padding: 18px 20px; }
.feature-grid dt { font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.feature-grid dd { margin-top: 4px; font-size: 15px; color: var(--ink); }
.detail-block { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.detail-block .block-title { font-size: 21px; margin-bottom: 8px; }
.detail-block p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.booking-card {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--surface); border: 0; border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 30px);
  box-shadow: 0 6px 26px -8px rgba(0, 0, 0, .12);
}
.booking-card .label { font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.booking-card .price { display: flex; align-items: baseline; gap: 8px; margin: 8px 0 4px; }
.booking-card .price b { font-size: 42px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.booking-card .price span { font-size: 13px; letter-spacing: 0; color: var(--muted); }
.booking-card .note { margin: 18px 0 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); line-height: 1.6; }
.booking-card .btn { width: 100%; }
.booking-card .contact { display: block; margin-top: 12px; text-align: center; font-size: 13px; color: var(--accent-strong); }
.booking-card .contact:hover { text-decoration: underline; }

/* related rooms */
.related { margin-top: clamp(52px, 7vw, 88px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.related-card { display: block; }
.related-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.related-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.related-card:hover img { transform: scale(1.04); }
.related-card .related-title { margin-top: 12px; font-size: 18px; }
.related-card p { margin-top: 4px; font-size: 13px; color: var(--muted); letter-spacing: 0; }

/* ---------- Articles ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.article-list { display: grid; gap: clamp(28px, 3vw, 40px); }
.article-card {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(18px, 2.4vw, 30px);
  padding-bottom: clamp(26px, 3vw, 36px); border-bottom: 1px solid var(--line);
}
.article-card .thumb { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.article-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.article-card:hover img { transform: scale(1.04); }
.article-card .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; letter-spacing: 0; color: var(--muted); }
.article-card .article-title { margin: 8px 0 10px; font-size: clamp(20px, 2.1vw, 27px); }
.article-card .article-title a:hover { color: var(--accent-strong); }
.article-card p { color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card .more { display: inline-block; margin-top: 12px; font-size: 14px; letter-spacing: 0; color: var(--accent-strong); }

.side-card { background: var(--surface); border: 0; border-radius: var(--radius); padding: 24px; box-shadow: 0 4px 18px -8px rgba(0, 0, 0, .1); }
.side-card + .side-card { margin-top: 18px; }
.side-card .side-title { font-size: 17px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.side-rooms li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.side-rooms li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-rooms .thumb { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: var(--soft); }
.side-rooms img { width: 100%; height: 100%; object-fit: cover; }
.side-rooms .side-room-name { font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
.side-rooms span { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.side-card .side-cta { display: block; margin-top: 16px; text-align: center; }

/* ---------- Article detail ---------- */
.article-body { max-width: 760px; }
.article-body > h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 14px; }
.article-body .article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: 0; color: var(--muted); }
.detail-cover { margin: 26px 0 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--soft); }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { margin-top: 26px; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-sans); font-weight: 600; color: var(--ink); margin-top: 1.7em; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose img { width: 100%; height: auto; border-radius: var(--radius); margin-block: 1.6em; }
.prose a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: revert; }
.prose li + li { margin-top: .35em; }
.prose blockquote { border-left: 3px solid var(--line-strong); padding-left: 20px; color: var(--muted); font-size: 20px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose td, .prose th { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 16px); }
.gallery-grid figure { position: relative; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--soft); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .66), transparent);
  color: #fff; font-size: 13px; letter-spacing: 0;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.gallery-grid a:hover figcaption, .gallery-grid figure:focus-within figcaption { opacity: 1; transform: none; }
.gallery-grid figcaption small { display: block; margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .72); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 5vw; background: rgba(0, 0, 0, .94); }
.lightbox.is-open { display: grid; }
.lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; top: 22px; right: 22px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }

/* gallery detail */
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo-grid figure { overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--soft); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Booking ---------- */
.booking-section { padding-block: clamp(48px, 6vw, 84px); }
.booking-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(22px, 3vw, 36px); align-items: start; }
.panel { background: var(--surface); border: 0; border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); box-shadow: 0 4px 22px -10px rgba(0, 0, 0, .1); }
.panel h2 { font-size: 26px; margin-bottom: 4px; }
.panel .panel-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid transparent; border-radius: 12px;
  background: var(--soft); color: var(--ink); font-size: 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 76px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); background: var(--surface); }
.input::placeholder { color: var(--muted); opacity: .8; }
.hint { margin-top: 6px; font-size: 12px; color: var(--muted); }
.hint.is-error { color: var(--danger); }
.radio-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.radio-card {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font-size: 14px; cursor: pointer; transition: border-color .2s, background .2s;
}
.radio-card:has(input:checked), .radio-card.active { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input { margin: 0; accent-color: var(--accent); }
.form-submit { margin-top: 24px; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary h3 { font-size: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sum-row { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; font-size: 14px; color: var(--muted); }
.sum-row span:last-child { color: var(--ink); text-align: right; }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line-strong); }
.sum-total em { font-style: normal; font-size: 12px; letter-spacing: 0; color: var(--muted); }
.sum-total .amount { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.sum-total .amount small { font-family: var(--font-sans); font-size: 12px; color: var(--muted); }
.summary .note { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--muted); }

.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .6); }
.modal.is-open { display: flex; }
.modal-box { position: relative; width: 100%; max-width: 420px; padding: clamp(26px, 4vw, 38px); background: var(--surface); border: 0; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-md); }
.modal-box h3 { font-size: 22px; margin-bottom: 6px; }
.modal-close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; }
.modal-close:hover { background: var(--soft); }
.modal-amount { font-size: 34px; font-weight: 600; letter-spacing: -.02em; margin: 10px 0 18px; }
.qr-box { width: 196px; height: 196px; margin: 0 auto 16px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qr-box img, .qr-box canvas { width: 180px !important; height: 180px !important; display: block; }
.modal-hint { font-size: 13px; color: var(--muted); line-height: 1.6; }
.modal-order { margin-top: 12px; font-size: 11px; color: var(--muted); word-break: break-all; }
.modal-loading { padding: 40px 0; color: var(--muted); font-size: 14px; }
.modal-success .icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 22px; }
.modal-success .rows { margin-top: 18px; padding-top: 8px; border-top: 1px solid var(--line); text-align: left; }

/* ---------- Member / account ---------- */
.member-shell { width: min(100% - var(--gutter) * 2, 1000px); margin: clamp(40px, 6vw, 80px) auto; min-height: 46vh; }
.member-card { background: var(--surface); border: 0; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: 0 6px 30px -12px rgba(0, 0, 0, .12); }
.member-auth { max-width: 420px; margin-inline: auto; }
.member-auth h1 { font-size: 34px; margin-bottom: 6px; }
.member-auth > p { color: var(--muted); font-size: 15px; }
.member-auth form { display: grid; gap: 16px; margin: 26px 0 20px; }
.member-auth label, .account-form label { display: grid; gap: 6px; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.member-auth input, .account-form input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid transparent; border-radius: 12px; background: var(--soft);
  color: var(--ink); font-size: 15px; letter-spacing: 0;
}
.member-auth input:focus, .account-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); background: var(--surface); }
.member-auth .btn, .account-form .btn { width: 100%; }
.member-auth > a { font-size: 14px; color: var(--accent-strong); }
.member-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.member-heading h1, .member-heading h2 { font-size: 32px; }
.member-heading p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.account-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: start; }
.account-nav { display: grid; gap: 2px; padding: 6px; background: var(--soft); border: 0; border-radius: 14px; }
.account-nav a { padding: 9px 14px; border-radius: 10px; font-size: 14px; color: var(--ink-soft); }
.account-nav a:hover { background: rgba(0, 0, 0, .05); }
:root[data-theme="dark"] .account-nav a:hover { background: rgba(255, 255, 255, .08); }
.account-nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.account-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.account-filters a { padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--pill); font-size: 13px; color: var(--muted); }
.account-filters a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.member-order { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.member-order:last-child { border-bottom: 1px solid var(--line); }
.member-order strong { font-size: 16px; font-weight: 600; }
.member-order p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.member-order > div:last-child { font-size: 14px; text-align: right; }
.member-order:hover { color: var(--accent-strong); }
.account-form { display: grid; gap: 16px; max-width: 420px; }
.account-form .btn { justify-self: start; width: auto; }
.account-notice { color: var(--accent-strong); background: var(--accent-soft); padding: 10px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 16px; }
.member-card .member-error { color: var(--danger); font-weight: 600; margin-bottom: 12px; }
.account-detail div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.account-detail dt { color: var(--muted); }

/* ---------- Catalog ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.catalog-card { display: block; overflow: hidden; padding: 0; background: var(--surface); border-radius: var(--radius); box-shadow: 0 4px 18px -8px rgba(0, 0, 0, .1); transition: transform .35s var(--ease), box-shadow .35s; }
.catalog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.catalog-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.catalog-card h2 { font-size: 19px; padding: 16px 18px 2px; }
.catalog-card strong { display: block; padding: 0 18px 18px; font-size: 15px; font-weight: 600; color: var(--accent-strong); }
.catalog-detail { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 20px; }
.member-card > strong { font-size: 22px; font-weight: 600; color: var(--accent-strong); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px) scale(.995); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .room-layout, .booking-grid, .with-sidebar { grid-template-columns: 1fr; }
  .booking-card, .summary { position: static; }
  .with-sidebar .side-card { margin-top: 0; }
  .room-layout .booking-card { max-width: 420px; }
  .room-gallery figure:only-child { aspect-ratio: 16 / 9; }
}

@media (max-width: 900px) {
  :root { --header-h: 48px; }
  .header-inner { width: calc(100% - 32px); gap: 16px; }
  .brand-sub { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    display: grid; align-content: start; gap: 0; margin: 0; padding: 12px var(--gutter) 40px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    transform: translateY(-6px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 500; color: var(--ink); }
  .site-nav .nav-member { display: block; }
  .site-nav a::after { display: none; }
  body.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-toggle {
    display: grid; place-items: center; gap: 5px; align-content: center;
    width: 30px; height: 30px; border: 0; border-radius: 50%;
    background: transparent;
  }
  .nav-toggle span { display: block; width: 15px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  body.nav-open .nav-toggle span:first-child { transform: translateY(3.2px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-3.2px) rotate(-45deg); }
  .header-actions .member-link { display: none; }
  .hero { min-height: 74svh; }
  .hero-caption { display: none; }
  .facts-grid { grid-template-columns: 1fr; }
  .facts-grid div { padding: 22px 0; }
  .facts-grid div + div { border-left: 0; border-top: 1px solid var(--line); }
  .room-home-grid, .room-grid, .card-grid, .gallery-home, .related-grid, .gallery-grid, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card { grid-template-columns: 200px minmax(0, 1fr); }
  .visit-inner, .footer-grid { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; }
  .account-nav a { padding-inline: 4px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { min-height: 28px; padding: 0 12px; font-size: 11px; }
  .theme-toggle { display: none; }
  .hero { min-height: 86svh; }
  .hero-inner { padding-block: 90px 70px; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-sub { font-size: 16px; }
  .hero-actions { gap: 16px; }
  .hero-actions .btn { width: 100%; }
  .room-home-grid, .room-grid, .card-grid, .catalog-grid, .related-grid, .photo-grid { grid-template-columns: 1fr; }
  .gallery-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-gallery { grid-template-columns: 1fr; }
  .room-gallery figure:only-child { aspect-ratio: 4 / 3; }
  .article-card { grid-template-columns: 1fr; }
  .article-card .thumb { aspect-ratio: 3 / 2; }
  .form-row { grid-template-columns: 1fr; margin-bottom: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; text-align: left; }
  .section-head .head-copy { justify-items: start; text-align: left; }
  .visit dl div { grid-template-columns: 96px 1fr; }
  .member-order { align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  .page-hero { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
