/* 모차호텔 홈페이지 — 모카 크림 팔레트, 주아체(제목·버튼만), 사진 중심 구성과 배경 그림 */
:root {
  --bg: #f7f1e8;
  --card: #fffaf2;
  --ink: #2e211a;
  --ink-2: #4f4035;
  --muted: #735f4e;       /* 크림 위 4.5:1 이상 */
  --line: #e4d8c8;
  --hd: #3a2a21;          /* 에스프레소 */
  --hd-2: #2e211a;
  --hd-ink: #f7f1e8;
  --hd-mute: #d5c4b1;
  --accent: #a9713f;
  --accent-text: #8c5a2e;
  --accent-light: #e3c39b;
  --accent-soft: #efe2d0;
  --col: 720px;
  --wide: 1080px;
  --r: 16px;
  --bar-h: 68px;
  --shade: 20, 13, 9;     /* 사진 위 그늘 색 (rgb) */
  --title-font: 'Jua', -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --focus: 0 0 0 3px rgba(169, 113, 63, .6);
  --focus-dark: 0 0 0 3px rgba(227, 195, 155, .9);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}
html.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.col { max-width: var(--col); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.wide { max-width: var(--wide); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px;
  background: var(--hd); color: var(--hd-ink); text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top)); }

h1, h2, h3, .btn, .btn-line, .btn-book, .bar-btn, .gal-title, .foot-name {
  font-family: var(--title-font); font-weight: 400;
}

/* ── 히어로 ───────────────────────────── */
.hero {
  position: relative; min-height: 94vh; min-height: 94svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--hd); color: var(--hd-ink); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 40%;
}
.hero-media picture img { animation: slowzoom 26s ease-out both; transform-origin: 42% 40%; }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-media video { opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.is-on { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--shade), .38) 0%, rgba(var(--shade), 0) 22%),
    linear-gradient(0deg, rgba(var(--shade), .9) 0%, rgba(var(--shade), .66) 34%, rgba(var(--shade), 0) 72%);
}
.hero-text { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 20px 112px; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .24em; color: var(--accent-light); }
.hero h1 { margin: 8px 0 10px; font-size: 40px; line-height: 1.18; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-sub { margin: 0; font-size: 15px; color: #eadfd2; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--hd-ink); opacity: .85;
}
.scroll-cue:focus-visible { box-shadow: var(--focus-dark); }
.scroll-cue svg { animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }

/* ── 구역 경계: 마른 붓 자국 ────────────
   구역은 곧게 나뉘고, 그 경계선 위에 크림 물감을 마른 붓으로 가로로 끌어 칠한 듯한 가장자리를 얹는다.
   .edge 는 구역 사이의 높이 0 짜리 칸(자리 차지 없음). 모양은 SVG 마스크 하나, 색은 크림 쪽 구역의 바탕.
   기본: 위 크림 구역이 아래(어두운/사진) 구역 위로 번진다. .edge-up: 아래 크림 구역이 위로 번진다(뒤집기).
   .edge-tex: 크림 쪽이 회벽 질감 구역 → 같은 질감으로 칠해 이어지게 한다 */
.edge { position: relative; z-index: 4; height: 0; pointer-events: none; --edge-h: 40px; }
.edge::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: var(--edge-h); background: var(--bg);
  -webkit-mask: url(/img/home/edge-brush.svg) 0 0 / auto var(--edge-h) repeat-x;
          mask: url(/img/home/edge-brush.svg) 0 0 / auto var(--edge-h) repeat-x;
}
.edge-up::before { top: auto; bottom: -1px; transform: scaleY(-1); }
.edge-tex::before {
  background:
    linear-gradient(rgba(247, 241, 232, .62), rgba(247, 241, 232, .62)),
    url(/img/home/bg-plaster.jpg) 0 0 / 320px 320px repeat var(--bg);
}

/* ── 섹션 공통 ─────────────────────────── */
.sec { padding: 60px 0 0; position: relative; }
.sec-eyebrow { margin: 0; font-size: 11px; letter-spacing: .22em; color: var(--accent-text); }
.sec h2, .loc h2 { margin: 4px 0 8px; font-size: 30px; line-height: 1.25; }
.lead { margin: 0 0 20px; color: var(--ink-2); font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }

/* 회벽 질감: 크림색을 덮어 은은하게. 그림은 가까워지면 붙인다(.bg-on) */
.tex { padding-bottom: 60px; }
.tex.bg-on {
  background:
    linear-gradient(rgba(247, 241, 232, .62), rgba(247, 241, 232, .62)),
    url(/img/home/bg-plaster.jpg) 0 0 / 320px 320px repeat;
}

/* ── 한눈에 보기: 사진 패널 ───────────── */
.glance { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gl {
  position: relative; margin: 0; border-radius: var(--r); overflow: hidden;
  background: var(--accent-soft); aspect-ratio: 4 / 5; color: var(--hd-ink);
}
.gl-lake { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.gl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gl::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--shade), .9) 0%, rgba(var(--shade), .8) 42%, rgba(var(--shade), 0) 76%);
}
.gl-lake::after { background: linear-gradient(0deg, rgba(var(--shade), .9) 0%, rgba(var(--shade), .72) 34%, rgba(var(--shade), 0) 64%); }
.gl-text, .room-cap, .tile-over { text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.gl-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 14px 14px 14px; }
.gl h3 { margin: 0 0 2px; font-size: 19px; line-height: 1.25; }
.gl p { margin: 0; font-size: 13.5px; line-height: 1.45; color: #efe4d6; }
.gl-lake .gl-text { padding: 18px; }
.gl-lake h3 { font-size: 24px; }
.gl-lake p { font-size: 15px; max-width: 30em; }

/* ── 객실: 사진이 가득한 카드 ─────────── */
.sec-dark { background: var(--hd-2); color: var(--hd-ink); padding-bottom: 56px; }
.sec-dark .sec-eyebrow { color: var(--accent-light); }
.sec-dark .lead { color: var(--hd-mute); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rail-nav { display: none; gap: 8px; margin-bottom: 8px; }
.round {
  appearance: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: var(--hd-ink); cursor: pointer;
}
.round:disabled { opacity: .35; cursor: default; }
.rail {
  list-style: none; margin: 0; padding: 4px 16px 8px; display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.room { position: relative; flex: 0 0 82%; max-width: 380px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; }
.room-photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: #4a3a30;
}
.room-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--shade), .9) 0%, rgba(var(--shade), .66) 26%, rgba(var(--shade), 0) 52%);
}
.room-cap { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 16px 18px 18px; }
.room h3 { margin: 0; font-size: 23px; line-height: 1.25; }
.room-spec { margin: 4px 0 0; font-size: 14px; color: var(--accent-light); font-weight: 600; }
.room-note { margin: 2px 0 0; font-size: 13px; color: #e6d9ca; }
.room-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.room-thumbs button {
  appearance: none; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  background: #4a3a30; cursor: pointer; aspect-ratio: 4 / 3;
}
.room-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.room-thumbs button:focus-visible { box-shadow: var(--focus-dark); }
.room-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-line, .btn-book {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; padding: 0 10px; border-radius: 12px; cursor: pointer; font-size: 15.5px; text-decoration: none; text-align: center;
}
.btn-line { border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: var(--hd-ink); }
.btn-line .count { font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; font-size: 12.5px; color: var(--hd-mute); }
.btn-book { border: 1px solid var(--accent-light); background: var(--accent-light); color: var(--hd-2); line-height: 1.2; }
.btn-line:focus-visible, .btn-book:focus-visible, .sec-dark .round:focus-visible { box-shadow: var(--focus-dark); }

/* ── 호텔 둘러보기: 모자이크 ──────────── */
.mosaic {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 36vw; grid-auto-flow: dense; gap: 8px;
}
.mosaic li { min-width: 0; border-radius: 12px; overflow: hidden; background: var(--accent-soft); }
.mosaic .m-tall { grid-row: span 2; }
.mosaic .m-wide { grid-column: span 2; }
.mosaic .m-arch { border-radius: 999px 999px 12px 12px; } /* 호텔의 아치를 닮은 모양 */
.mosaic button { appearance: none; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: inherit; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic button:focus-visible { box-shadow: inset 0 0 0 3px var(--accent); }

/* ── 버튼 ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: var(--r);
  font-size: 18px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--hd); color: var(--hd-ink); }
.btn-primary:active { background: #2a1e17; }
.btn-wide { width: 100%; margin-top: 16px; }
/* 예약 버튼 두 개를 나란히 */
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.btn-pair .btn { padding: 0 8px; font-size: 16px; gap: 5px; white-space: nowrap; }
.btn-pair svg { flex: none; width: 15px; height: 15px; }
.btn-outline { background: var(--card); color: var(--ink); border-color: var(--hd); }

/* ── 이용 안내: 아치 테라스 그림 위 ───── */
.info-sec { padding-bottom: 64px; overflow: hidden; isolation: isolate; }
.info-art { position: absolute; inset: 0; z-index: -1; background-color: var(--accent-soft); }
.info-sec.bg-on .info-art {
  background:
    linear-gradient(180deg, rgba(247, 241, 232, .72) 0%, rgba(247, 241, 232, .38) 45%, rgba(247, 241, 232, .8) 86%, #f7f1e8 100%), /* 아래 끝은 크림: 붓 자국과 이어진다 */
    url(/img/home/bg-arch.jpg) center 30% / cover no-repeat;
}
.info-in { max-width: var(--col); margin: 0 auto; padding: 0 16px; }
.info { margin: 8px 0 0; padding: 0 18px; background: rgba(255, 250, 242, .95); box-shadow: 0 8px 28px rgba(58, 42, 33, .12); }
.info-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info dt { color: var(--muted); font-size: 15px; }
.info dd { margin: 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.note {
  margin: 10px 0 0; padding: 8px 12px; font-size: 14px; color: var(--ink-2);
  background: rgba(255, 250, 242, .88); border-radius: 10px;
}

/* ── 머무는 동안: 호수 수채화 ──────────── */
.stay-sec { padding-bottom: 64px; }
.stay-sec.bg-on {
  background:
    linear-gradient(180deg, rgba(247, 241, 232, .15) 0%, rgba(247, 241, 232, .35) 160px, var(--bg) 420px),
    url(/img/home/bg-lake.jpg) center top / 100% auto no-repeat var(--bg);
}
.stay-sec .sec-intro { padding-bottom: 8px; }
.tiles { display: grid; gap: 12px; margin-top: 12px; }
.tile { position: relative; border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; }
.tile-photo { color: var(--hd-ink); background: var(--hd); aspect-ratio: 4 / 3; }
.tile-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--shade), .9) 0%, rgba(var(--shade), .7) 34%, rgba(var(--shade), 0) 66%);
}
.tile-link { aspect-ratio: 16 / 10; }
.tile-over { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 16px 18px 18px; }
.tile h3 { margin: 0 0 4px; font-size: 21px; }
.tile-over p { margin: 0; font-size: 14px; line-height: 1.55; color: #efe4d6; }
.tile-link:focus-visible { box-shadow: var(--focus); }
.arrow { color: var(--accent-light); }
/* 가까운 곳: 옆으로 넘기는 그림 카드 */
.near-block { margin-top: 28px; }
.near-block h3 { margin: 0 0 4px; font-size: 24px; }
.near-lead { margin: 0; font-size: 14px; color: var(--ink-2); }
.near-chips { display: flex; gap: 8px; margin: 14px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.near-chips::-webkit-scrollbar { display: none; }
.near-chip {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 99px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-size: 14px;
}
.near-chip.is-on { background: var(--hd); border-color: var(--hd); color: var(--hd-ink); }
.near-chip:focus-visible, .near-card:focus-visible { outline: none; box-shadow: var(--focus); }
.near-rail {
  list-style: none; margin: 12px -16px 0; padding: 4px 16px 8px; display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  overscroll-behavior-x: contain; scrollbar-width: none;
}
.near-rail::-webkit-scrollbar { display: none; }
.near-rail li { flex: 0 0 62%; max-width: 250px; scroll-snap-align: start; }
.near-card {
  position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden;
  background: var(--hd); color: var(--hd-ink); text-decoration: none;
}
.near-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.near-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(var(--shade), .92) 0%, rgba(var(--shade), .7) 30%, rgba(var(--shade), 0) 60%);
}
.near-time {
  position: absolute; z-index: 1; left: 10px; top: 10px; padding: 5px 10px; border-radius: 99px;
  background: rgba(255, 250, 242, .92); color: var(--ink); font-size: 12.5px; font-weight: 600;
}
.near-over { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 14px 14px 16px; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.near-over b { display: block; font-family: var(--title-font); font-weight: 400; font-size: 20px; }
.near-over span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.5; color: #efe4d6; word-break: keep-all; }
.near-note { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

/* ── 오시는 길: 호텔 항공 사진 전체 ───── */
.loc {
  position: relative; color: var(--hd-ink); background: var(--hd);
  padding: 46vh 0 40px; padding: 46svh 0 40px;
}
.loc.bg-on {
  background:
    linear-gradient(180deg, rgba(var(--shade), .1) 0%, rgba(var(--shade), .3) 25%, rgba(var(--shade), .78) 48%, rgba(var(--shade), .9) 75%, var(--hd) 100%),
    url(/img/home/loc-portrait.jpg) center top / cover no-repeat var(--hd);
}
.loc .sec-eyebrow { color: var(--accent-light); }
.loc h2 { text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.loc-lead { margin: 0 0 16px; font-size: 15px; color: #efe4d6; }
.addr {
  padding: 18px; border-radius: var(--r);
  background: rgba(var(--shade), .55); border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.addr-road { margin: 0; font-size: 18px; font-weight: 600; }
.addr-jibun { margin: 2px 0 14px; font-size: 14px; color: var(--hd-mute); }
.addr-btns { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.addr-btns .btn { font-size: 16px; min-height: 48px; padding: 0 16px; }
.btn-ghost { appearance: none; background: rgba(255, 255, 255, .08); color: var(--hd-ink); border-color: rgba(255, 255, 255, .3); }
.btn-cream { background: var(--accent-light); color: var(--hd-2); }
.addr .btn:focus-visible { box-shadow: var(--focus-dark); }
.copy-msg { margin: 8px 0 0; min-height: 1.4em; font-size: 14px; color: var(--accent-light); }
.copy-msg:empty { margin: 0; min-height: 0; }

/* ── 바닥글 ───────────────────────────── */
.foot {
  padding: 8px 0 calc(var(--bar-h) + 28px + env(safe-area-inset-bottom));
  background: var(--hd); color: var(--hd-mute); font-size: 14px; line-height: 1.6;
}
.foot .col { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 28px; }
.foot p { margin: 0 0 4px; }
.foot-eyebrow { font-size: 11px; letter-spacing: .24em; color: var(--accent-light); }
.foot-name { color: var(--hd-ink); font-size: 24px; margin: 2px 0 4px !important; }
.foot-tag { color: var(--hd-mute); }
.foot-block { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 20px; padding-top: 18px; }
.foot-h { margin: 0 0 6px; font-family: inherit; font-weight: 600; font-size: 11px; letter-spacing: .2em; color: var(--accent-light); }
.foot-nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.foot a { color: var(--hd-ink); display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot a:focus-visible { box-shadow: var(--focus-dark); }
.foot-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px !important; }
@media (hover: hover) { .foot-nav a:hover { color: var(--accent-light); } .foot-pill:hover { border-color: var(--accent-light); } }
.foot-pill { border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 0 16px; }
.foot-tel::before { content: "전화 "; white-space: pre; }
.foot-copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 20px !important; padding-top: 16px; font-size: 12.5px; color: #b9a793; }
#footPhone { margin: 0 !important; }

/* ── 하단 고정 바 ─────────────────────── */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 242, .94); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: translateY(110%); transition: transform .28s ease;
}
.bar.is-on { transform: none; }
.bar-inner { max-width: var(--col); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr 1.25fr; gap: 6px; }
.bar-inner.no-call { grid-template-columns: 1fr 1fr 1.25fr; }
.bar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 48px; border-radius: 12px; text-decoration: none; font-size: 16px; white-space: nowrap;
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
}
.bar-btn.is-primary { background: var(--hd); color: var(--hd-ink); border-color: var(--hd); }

/* ── 사진 보기 (전체 화면) ────────────── */
.gallery {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #140e0b; color: var(--hd-ink); overflow: hidden;
}
.gallery[open] { display: flex; flex-direction: column; }
.gallery::backdrop { background: #140e0b; }
.gal-top {
  display: grid; grid-template-columns: 1fr auto 44px; align-items: center; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 8px 8px 16px;
}
.gal-title { margin: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-count { margin: 0; font-size: 14px; color: var(--hd-mute); font-variant-numeric: tabular-nums; }
.gal-close {
  appearance: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08);
  color: var(--hd-ink); display: grid; place-items: center; cursor: pointer;
}
.gal-close:focus-visible, .round-dark:focus-visible, .gal-track:focus-visible { box-shadow: var(--focus-dark); }
.gal-track {
  list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; display: flex;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track li { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 0 4px; }
.gal-track img { width: 100%; height: 100%; object-fit: contain; }
.gal-nav {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 10px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
}
.gal-alt { margin: 0; text-align: center; font-size: 14px; color: var(--hd-mute); line-height: 1.4; }
.round-dark { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: var(--hd-ink); }

/* ── 스크롤 시 떠오르기 (JS가 html.motion 을 붙일 때만) ── */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .glance .reveal:nth-child(2n), .motion .mosaic .reveal:nth-child(2n) { transition-delay: .08s; }

/* ── 넓은 화면 ─────────────────────────── */
@media (min-width: 600px) {
  .hero h1 { font-size: 50px; }
  .hero-sub { font-size: 17px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
  .tile-link { aspect-ratio: auto; min-height: 280px; }
  .btn-wide { width: auto; min-width: 280px; }
  .mosaic { grid-auto-rows: 200px; }
}
@media (min-width: 720px) {
  /* 넓은 화면에서는 넘기지 않고 네 칸으로 펼친다 */
  .near-rail { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 12px 0 0; padding: 0; }
  .near-rail li { max-width: none; }
  .near-chips { margin: 14px 0 0; padding: 0; }
  .rail { padding-left: max(16px, calc((100vw - var(--col)) / 2 + 16px)); scroll-padding-left: max(16px, calc((100vw - var(--col)) / 2 + 16px)); }
  .room { flex-basis: 340px; }
  .rail-nav { display: flex; }
  .hero-text { padding-bottom: 132px; }
  .edge { --edge-h: 48px; }
  .loc { padding-top: 300px; min-height: 0; }
  .loc.bg-on {
    background:
      linear-gradient(180deg, rgba(var(--shade), .1) 0%, rgba(var(--shade), .3) 35%, rgba(var(--shade), .82) 70%, var(--hd) 100%),
      url(/img/home/loc-wide.jpg) center 35% / cover no-repeat var(--hd);
  }
  .loc-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: end; }
}
@media (min-width: 900px) {
  .sec { padding-top: 84px; }
  .tex, .info-sec, .stay-sec { padding-bottom: 84px; }
  .sec h2, .loc h2 { font-size: 34px; }
  .sec-intro { max-width: 640px; }
  /* 한눈에 보기: 4칸 — 레이크뷰가 왼쪽 2×2 */
  .glance { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 12px; }
  .gl, .gl-lake { aspect-ratio: auto; }
  .gl-lake { grid-column: 1 / 3; grid-row: 1 / 3; }
  .gl-lake h3 { font-size: 28px; }
  /* 둘러보기: 4칸 × 4줄, 빈칸 없이 */
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 12px; grid-auto-flow: row; }
  .mosaic li:nth-child(1)  { grid-area: 1 / 1 / 3 / 2; }
  .mosaic li:nth-child(4)  { grid-area: 1 / 2 / 2 / 4; }
  .mosaic li:nth-child(6)  { grid-area: 1 / 4 / 3 / 5; }
  .mosaic li:nth-child(2)  { grid-area: 2 / 2 / 3 / 3; }
  .mosaic li:nth-child(3)  { grid-area: 2 / 3 / 3 / 4; }
  .mosaic li:nth-child(9)  { grid-area: 3 / 1 / 5 / 2; }
  .mosaic li:nth-child(8)  { grid-area: 3 / 2 / 4 / 4; }
  .mosaic li:nth-child(5)  { grid-area: 3 / 4 / 4 / 5; }
  .mosaic li:nth-child(7)  { grid-area: 4 / 2 / 5 / 3; }
  .mosaic li:nth-child(10) { grid-area: 4 / 3 / 5 / 4; }
  .mosaic li:nth-child(11) { grid-area: 4 / 4 / 5 / 5; }
  /* 이용 안내: 왼쪽 글, 오른쪽 아치 모양 그림 */
  .info-sec { padding-top: 84px; }
  .info-in { max-width: var(--wide); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .info-art {
    position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1;
    aspect-ratio: 983 / 1400; max-height: 600px; justify-self: center; width: 100%; max-width: 420px;
    border-radius: 999px 999px var(--r) var(--r); box-shadow: 0 18px 40px rgba(58, 42, 33, .18);
  }
  .info-sec.bg-on .info-art { background: url(/img/home/bg-arch.jpg) center / cover no-repeat; }
  .info-content { grid-column: 1; grid-row: 1; }
}
@media (hover: hover) {
  .btn-primary:hover, .bar-btn.is-primary:hover { background: #2a1e17; }
  .btn-line:hover, .round:hover { border-color: var(--accent-light); }
  .btn-book:hover, .btn-cream:hover { background: #ecd2b0; }
  .bar-btn:not(.is-primary):hover { border-color: var(--accent); }
  .mosaic button:hover img, .room-thumbs button:hover img { transform: scale(1.04); }
  .tile-link:hover h3 { color: var(--accent-light); }
  .near-card:hover img { transform: scale(1.04); }
  .near-chip:not(.is-on):hover { border-color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion .reveal { opacity: 1; transform: none; }
}
