/* ==========================================================================
   Hotel Template — style.css
   색상은 content.js 의 config.theme 에서 덮어씁니다.
   ========================================================================== */

/* ---------- 1. 토큰 ---------- */
:root {
  --c-dark: #16181a;
  --c-accent: #a8865a;
  --c-light: #f3f1ec;
  --c-paper: #ffffff;
  --c-text: #1d1f21;
  --c-mute: #6e6a63;
  --c-line: #dcd8cf;
  --c-accent-soft: color-mix(in srgb, var(--c-accent) 65%, #fff);

  --ph-bg: #e6e2da;
  --ph-fg: #8c877e;

  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --font-display: var(--font-sans);

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(88px, 11vw, 168px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-paper);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* 콘텐츠를 채우기 전 placeholder 가 잠깐 보이는 것 방지 */
html.is-loading body { opacity: 0; }
body { transition: opacity .3s; }

/* content.js 의 "\n" 을 줄바꿈으로 표시 */
[data-t] { white-space: pre-line; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  padding: 10px 16px; background: var(--c-accent); color: #fff;
}
.skip:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

/* ---------- 3. 타이포그래피 ---------- */
.eyebrow {
  margin-bottom: 20px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--c-accent);
}
.eyebrow--on-dark { color: var(--c-accent-soft); }

.h-section {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3rem);
  font-weight: 250;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.85;
  color: var(--c-mute);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

/* ---------- 4. 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border: 1px solid transparent;
  background: transparent;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn--sm { min-height: 42px; padding: 0 20px; font-size: .875rem; }

.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: color-mix(in srgb, var(--c-accent) 82%, #000); }

.btn--line { border-color: currentColor; color: var(--c-text); }
.btn--line:hover { background: var(--c-text); border-color: var(--c-text); color: var(--c-paper); }

.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--c-dark); }

.btn--light { background: #fff; color: var(--c-dark); }
.btn--light:hover { background: var(--c-accent); color: #fff; }

/* ---------- 5. 이미지 & placeholder ---------- */
.media {
  position: relative;
  overflow: hidden;
  background-color: var(--ph-bg);
}
.media > img,
.media > iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
}
.media.is-ph {
  background-image: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(0, 0, 0, .045) 18px 19px);
}
.media--dark { --ph-bg: #26292c; --ph-fg: rgba(255, 255, 255, .5); }
.media--dark.is-ph {
  background-image: repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255, 255, 255, .035) 18px 19px);
}
.media__ph {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 16px;
  color: var(--ph-fg);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
}
.media__ph small { font-size: .75rem; font-weight: 400; font-variant-numeric: tabular-nums; opacity: .85; }
/* 큰 배경 이미지는 라벨을 오른쪽 위로 (본문 글자와 겹치지 않게) */
.media--corner .media__ph {
  align-items: flex-end;
  justify-content: flex-start;
  padding: var(--ph-top, 28px) var(--gutter);
}

/* ---------- 6. 헤더 ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: #fff;
  transition: background-color .35s var(--ease);
}
.header::before {
  content: "";
  position: absolute; inset: 0 0 -48px;
  background: linear-gradient(rgba(0, 0, 0, .45), transparent);
  pointer-events: none;
  transition: opacity .35s;
}
.header.is-solid,
.header.is-open { background: var(--c-dark); }
.header.is-solid::before,
.header.is-open::before { opacity: 0; }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: #fff;
}
.logo img { width: auto; height: var(--logo-h, 32px); }
.footer .logo img { height: calc(var(--logo-h, 32px) * 1.25); }

.gnb { align-self: stretch; margin-left: auto; }
.gnb > ul { display: flex; gap: clamp(20px, 2.6vw, 44px); height: 100%; }
.gnb > ul > li { position: relative; display: flex; align-items: center; }
.gnb a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: .9375rem;
  letter-spacing: .02em;
  opacity: .85;
  transition: opacity .2s;
}
.gnb a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.gnb a:hover { opacity: 1; }
.gnb a:hover::after { transform: scaleX(1); }

/* 하위 메뉴가 있는 항목: 작은 화살표 + 마우스를 올리면 드롭다운 */
.gnb .has-sub > a { padding-right: 15px; }
.gnb .has-sub > a::after { right: 15px; }
.gnb .has-sub > a::before {
  content: "";
  position: absolute; right: 1px; top: 50%;
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-75%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.gnb .has-sub:hover > a::before,
.gnb .has-sub:focus-within > a::before { transform: translateY(-25%) rotate(-135deg); }

.gnb .gnb__sub {
  position: absolute; top: 100%; left: -24px;
  min-width: 220px;
  padding: 12px 0;
  background: var(--c-dark);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.gnb .has-sub:hover > .gnb__sub,
.gnb .has-sub:focus-within > .gnb__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
}
.gnb .gnb__sub a {
  padding: 11px 24px;
  font-size: .875rem;
  white-space: nowrap;
  opacity: .72;
}
.gnb .gnb__sub a::after { display: none; }
.gnb .gnb__sub a:hover,
.gnb .gnb__sub a[aria-current="page"] { opacity: 1; background: rgba(255, 255, 255, .06); }

.header__util { display: flex; align-items: center; gap: 20px; }
.header__tel { font-size: .875rem; letter-spacing: .02em; opacity: .85; font-variant-numeric: tabular-nums; }
.header__tel:hover { opacity: 1; }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: var(--header-h) 0 0;
  display: flex;
  flex-direction: column;
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--c-dark);
  color: #fff;
}
.mnav__list > ul > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mnav__list a {
  display: block;
  padding: 16px 0;
  font-size: 1.5rem;
  font-weight: 300;
}
.mnav__list .gnb__sub { margin-top: -6px; padding-bottom: 14px; }
.mnav__list .gnb__sub a { padding: 7px 0 7px 2px; font-size: 1rem; color: rgba(255, 255, 255, .65); }
.mnav__foot {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
  padding-top: 32px;
}
.mnav__tel { font-size: 1.125rem; font-variant-numeric: tabular-nums; }

body.menu-open { overflow: hidden; }

/* ---------- 7. 메인 슬라이드 ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  max-height: 1100px;
  overflow: hidden;
  background: var(--c-dark);
  color: #fff;
}

.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s var(--ease), visibility 0s 1.2s;
}
.hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.2s var(--ease), visibility 0s;
}
/* 사진 밝기와 상관없이 글자가 읽히도록: 위(메뉴) · 왼쪽(본문) · 아래(진행 표시)를 어둡게 */
.hero__slide::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .22) 45%, rgba(0, 0, 0, 0) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, .1) 55%, rgba(0, 0, 0, .6) 100%);
  pointer-events: none;
}

.hero__media { position: absolute; inset: 0; --ph-top: calc(var(--header-h) + 24px); }
.hero__media > img { transform: scale(1.06); transition: transform 8s linear; }
.hero__slide.is-active .hero__media > img { transform: scale(1); }

.hero__content {
  position: absolute; left: 0; right: 0;
  bottom: 128px;
  z-index: 2;
}
.hero__text { max-width: 800px; }
.hero__eyebrow {
  margin-bottom: 24px;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .85);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.25rem);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.hero__desc {
  margin-top: 24px;
  max-width: 36em;
  font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, .82);
}

/* 슬라이드가 바뀔 때 글자가 순서대로 올라오는 단 하나의 등장 효과 */
.hero__text > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero__slide.is-active .hero__text > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__text > :nth-child(1) { transition-delay: .3s; }
.hero__slide.is-active .hero__text > :nth-child(2) { transition-delay: .45s; }
.hero__slide.is-active .hero__text > :nth-child(3) { transition-delay: .6s; }
.hero__slide.is-active .hero__text > :nth-child(4) { transition-delay: .75s; }

.hero__ui {
  position: absolute; left: 0; right: 0;
  bottom: 44px;
  z-index: 3;
}
.hero__ui-inner { display: flex; align-items: center; gap: 24px; }
.hero__count {
  display: flex;
  gap: 8px;
  font-size: .8125rem;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, .6);
}
.hero__cur { color: #fff; }
.hero__bars { flex: 1; display: flex; gap: 6px; }
.hero__bar {
  position: relative;
  flex: 1;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero__bar::before,
.hero__bar span {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
}
.hero__bar::before { background: rgba(255, 255, 255, .28); }
.hero__bar span { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__bar.is-done span { transform: scaleX(1); }
.hero__bar.is-current span { animation: heroProgress var(--dur, 6000ms) linear forwards; }
.hero.is-paused .hero__bar.is-current span { animation-play-state: paused; }
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero__btns { display: flex; gap: 6px; }
.hero__btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.hero__btn:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); }
.hero__btn .i-play { display: none; }
.hero.is-paused .hero__btn .i-play { display: block; }
.hero.is-paused .hero__btn .i-pause { display: none; }
.hero.is-single .hero__ui { display: none; }

/* 메인 슬라이드를 끈 경우 고정 헤더 높이만큼 띄움 */
.no-hero main { padding-top: var(--header-h); }

/* ---------- 9. 소개 ---------- */
.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
}
.intro__media { position: relative; padding-bottom: 14%; }
.intro__media:not(:has(.intro__img-sub)) { padding-bottom: 0; }
.intro__img-main { width: 76%; margin-left: auto; aspect-ratio: 4 / 5; }
.intro__img-sub {
  position: absolute; left: 0; bottom: 0;
  width: 42%;
  aspect-ratio: 1;
  box-shadow: 0 0 0 10px var(--c-paper);
}

/* ---------- 10. 섹션 제목 (객실·부대시설 공통) ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head__desc { margin-top: 20px; max-width: 36em; color: var(--c-mute); }

/* ---------- 11. 객실 ---------- */
.rooms { background: var(--c-light); }
.rooms__list {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.room__link { display: block; height: 100%; }
.room__img { aspect-ratio: 4 / 5; }
.room__img > img { transition: transform .8s var(--ease); }
.room__link:hover .room__img > img { transform: scale(1.04); }
.room__body { padding-top: 22px; }
.room__name { font-size: 1.1875rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.4; }
.room__desc { margin-top: 8px; font-size: .9375rem; line-height: 1.65; color: var(--c-mute); }
.room__price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-line);
  font-size: .9375rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.room__more {
  flex-shrink: 0;
  padding-bottom: 1px;
  border-bottom: 1px solid currentColor;
  font-size: .8125rem;
  font-weight: 400;
  color: var(--c-mute);
  transition: color .2s;
}
.room__link:hover .room__more { color: var(--c-accent); }

/* ---------- 11-1. 객실 상세 (room.html) ---------- */
.room-top { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(32px, 4vw, 48px); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: clamp(28px, 4vw, 48px);
  font-size: .875rem;
  color: var(--c-mute);
  transition: color .2s;
}
.back-link:hover { color: var(--c-text); }
.room-top__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.room-top__summary { margin-top: 20px; color: var(--c-mute); }

/* 갤러리: 큰 사진(2×2) + 작은 사진 4장이 한 화면, 6번째부터는 오른쪽으로 이어져 가로 스크롤 */
.gallery__grid {
  --gal-h: clamp(320px, 44vw, 620px);
  --gal-col: calc((100% - 24px) / 4);
  display: grid;
  grid-template-columns: repeat(4, var(--gal-col));
  grid-template-rows: repeat(2, calc((var(--gal-h) - 8px) / 2));
  grid-auto-flow: column;
  grid-auto-columns: var(--gal-col);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.gallery__grid[data-scroll] { padding-bottom: 6px; }
/* 스크롤바 항상 표시 (Chrome · Safari · Edge) */
.gallery__grid::-webkit-scrollbar { height: 8px; }
.gallery__grid::-webkit-scrollbar-track { background: color-mix(in srgb, var(--c-text) 8%, transparent); border-radius: 4px; }
.gallery__grid::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--c-text) 38%, transparent); border-radius: 4px; }
.gallery__grid::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--c-text) 55%, transparent); }
@supports not selector(::-webkit-scrollbar) {
  .gallery__grid { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--c-text) 38%, transparent) transparent; }
}
.gallery__item--main { grid-column: span 2; grid-row: span 2; }
.gallery__item[role="button"] { cursor: zoom-in; }
.gallery__item[role="button"]:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* 객실 사진 크게 보기 (라이트박스) */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1100;
  display: grid; place-items: center;
  background: rgba(12, 13, 14, .94);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
/* 사진과 번호를 한 묶음으로 가운데 정렬 (사진 크기는 main.js 가 화면에 맞춰 계산) */
.lightbox__stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 72px 96px 32px;
  box-sizing: border-box;
}
.lightbox__img { display: block; max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none; }
.lightbox__count { margin: 0; color: rgba(255, 255, 255, .78); font-size: .875rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.lightbox__btn {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .16); }
.lightbox__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__close { top: 14px; right: 16px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }
.lightbox.is-single .lightbox__prev,
.lightbox.is-single .lightbox__next,
.lightbox.is-single .lightbox__count { display: none; }
@media (max-width: 767px) {
  .lightbox__stage { padding: 64px 0 96px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}
@media (prefers-reduced-motion: reduce) { .lightbox { transition: none; } }
/* 사진 칸을 숨겨 개수가 줄었을 때 (main.js 가 data-count 표시) */
.gallery__grid[data-count="1"] .gallery__item--main { grid-column: 1 / -1; }
.gallery__grid[data-count="2"] .gallery__item:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.gallery__grid[data-count="3"] .gallery__item:not(.gallery__item--main) { grid-column: span 2; }
.gallery__grid[data-count="4"] .gallery__item:nth-child(4) { grid-row: span 2; }

.room-info { padding-top: clamp(56px, 7vw, 104px); }
.room-info__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
}
.room-info__intro { max-width: 38em; font-size: clamp(1rem, .95rem + .25vw, 1.125rem); line-height: 1.9; }
.room-info .info-list { margin-top: 48px; }
.room-info__h { margin-top: 56px; font-size: 1.125rem; font-weight: 600; }
.amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin-top: 20px;
}
.amenities li { position: relative; padding-left: 18px; font-size: .9375rem; color: var(--c-mute); }
.amenities li::before {
  content: "";
  position: absolute; left: 0; top: .8em;
  width: 8px; height: 1px;
  background: var(--c-accent);
}

.book-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--c-light);
}
.book-card__name { font-size: 1.0625rem; font-weight: 500; }
.book-card__price {
  margin-bottom: 18px;
  font-size: 1.625rem;
  font-weight: 300;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.book-card .btn { width: 100%; }

/* ---------- 12. 프로모션 배너 ---------- */
.promo {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 74vh, 780px);
  padding-block: 96px;
  overflow: hidden;
  background: var(--c-dark);
  color: #fff;
}
.promo__media { position: absolute; inset: 0; }
.promo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .3) 48%, rgba(0, 0, 0, 0) 78%);
  pointer-events: none;
}
.promo__inner { position: relative; z-index: 1; }
.promo__box { max-width: 540px; }
.promo__period {
  margin-top: 20px;
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
  color: var(--c-accent-soft);
}
.promo__desc { margin-top: 16px; line-height: 1.8; color: rgba(255, 255, 255, .85); }

/* ---------- 13. 부대시설 ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 104px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(72px, 9vw, 140px); }
.feature:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature:nth-child(even) .feature__media { order: 2; }
.feature__media { aspect-ratio: 3 / 2; }
.feature__label { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; color: var(--c-accent); }
.feature__title {
  margin-top: 16px;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -.02em;
}
.feature__desc { margin-top: 20px; max-width: 30em; line-height: 1.85; color: var(--c-mute); }

/* ---------- 14. 오시는 길 ---------- */
.location { background: var(--c-light); }
.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.location__map { aspect-ratio: 4 / 3; }
.info-list { margin-top: 40px; border-top: 1px solid var(--c-text); }
.info-list__row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
}
.info-list dt { font-size: .875rem; font-weight: 600; }
.info-list dd { font-size: .9375rem; line-height: 1.7; color: var(--c-mute); }

/* ---------- 15. 하단 문의 배너 ---------- */
.cta {
  position: relative;
  padding-block: clamp(112px, 14vw, 200px);
  overflow: hidden;
  background: var(--c-dark);
  color: #fff;
  text-align: center;
}
.cta__media { position: absolute; inset: 0; }
.cta::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .55);
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.75rem);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.cta__desc { max-width: 34em; margin: 24px auto 0; color: rgba(255, 255, 255, .8); }
.cta .actions { justify-content: center; }

/* ---------- 16. 푸터 ---------- */
.footer {
  padding: 72px 0 calc(48px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: var(--c-dark);
  color: rgba(255, 255, 255, .62);
  font-size: .875rem;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer__right { display: flex; align-items: center; gap: 32px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a:hover { color: #fff; }
.footer__links .is-strong { color: #fff; font-weight: 500; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  transition: border-color .2s, background-color .2s;
}
.footer__social a:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.footer__info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-top: 32px;
  line-height: 1.7;
}
.footer__info li > span:first-child { margin-right: 8px; color: rgba(255, 255, 255, .38); }
.footer__copy { margin-top: 28px; font-size: .8125rem; color: rgba(255, 255, 255, .38); }

/* ---------- 17. 플로팅 예약 / 모바일 하단 바 ---------- */
.fab {
  position: fixed; right: 32px; bottom: 32px; z-index: 90;
  box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .25s;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.mbar { display: none; }

/* ---------- 18. ?keys 모드: 각 요소의 키 이름 표시 ---------- */
.show-keys [data-t],
.show-keys [data-img],
.show-keys [data-list] { outline: 1px dashed var(--c-accent); outline-offset: 2px; }
.show-keys [data-t]:not(.fab),
.show-keys [data-list] { position: relative; }
.show-keys [data-t]::after,
.show-keys [data-img]::after,
.show-keys [data-list]::after {
  content: attr(data-t);
  position: absolute; left: 0; top: -18px; z-index: 50;
  padding: 3px 5px;
  background: var(--c-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transform: none;
  pointer-events: none;
}
.show-keys [data-t][data-link]::after { content: attr(data-t) " → " attr(data-link); }
.show-keys [data-img]::after { content: attr(data-img); left: 8px; top: 8px; }
.show-keys [data-list]::after { content: attr(data-list); }

/* ---------- 19. 반응형 ---------- */
@media (max-width: 1023px) {
  .gnb, .header__tel { display: none; }
  .header__util { margin-left: auto; }
  .menu-toggle { display: block; }

  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { max-width: 640px; }

  .rooms__list { --cols: 2 !important; }

  .location__grid { grid-template-columns: 1fr; }

  .room-info__grid { grid-template-columns: 1fr; }
  .book-card { position: static; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }

  .header__book { display: none; }
  .header .logo img { height: calc(var(--logo-h, 32px) * .85); }

  .hero { min-height: 560px; max-height: 820px; height: 88svh; }
  .hero__content { bottom: 104px; }
  .hero__ui { bottom: 28px; }
  .hero__ui-inner { gap: 16px; }
  .hero__btn[data-hero="prev"],
  .hero__btn[data-hero="next"] { display: none; }

  .section-head { flex-direction: column; align-items: flex-start; }

  .rooms__list {
    display: flex;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .rooms__list::-webkit-scrollbar { display: none; }
  .room { flex: 0 0 78%; scroll-snap-align: start; }

  .promo { min-height: 520px; }
  .promo::after { background: linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .25) 100%); }
  .promo { align-items: flex-end; }

  .feature,
  .feature:nth-child(even) { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__media { order: 0; }

  .info-list__row { grid-template-columns: 88px minmax(0, 1fr); }

  .gallery__grid {
    display: flex;
    gap: 8px;
    height: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
  }
  .gallery__item { flex: 0 0 86%; aspect-ratio: 4 / 3; scroll-snap-align: start; }
  .amenities { grid-template-columns: 1fr; }

  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__right { flex-direction: column; align-items: flex-start; gap: 20px; }

  .fab { display: none; }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--c-dark);
  }
  .mbar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    font-size: .9375rem;
    font-weight: 500;
    color: #fff;
  }
  .mbar a[data-link] { background: var(--c-accent); }
  .mbar > a:only-child { grid-column: 1 / -1; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  body.no-mbar { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero__bar.is-current span { animation: none; transform: scaleX(1); }
  .hero__btn[data-hero="pause"] { display: none; }
}
