@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Noto+Serif+KR:wght@300;400;500&display=swap");

/* ---------- 팔레트: <html data-concept="..."> ---------- */
:root, [data-concept="warm"] { --bg:#faf8f5; --surface:#efeae6; --ink:#1f1f1f; --ink-2:#6b6560; --line:#e2dcd5; --accent:#a18661; --on-accent:#fff; }
[data-concept="ocean"]  { --bg:#0f1a1c; --surface:#1f2d30; --ink:#f4f2ee; --ink-2:#9aa5a7; --line:#2a3e42; --accent:#c9b48a; --on-accent:#0f1a1c; }
[data-concept="forest"] { --bg:#f6f6f1; --surface:#e7e9e0; --ink:#1d241f; --ink-2:#5f6a61; --line:#d6dacd; --accent:#4f6b4a; --on-accent:#fff; }
[data-concept="white"]  { --bg:#fff;    --surface:#f5f5f3; --ink:#111;    --ink-2:#777;    --line:#e8e8e8; --accent:#111;    --on-accent:#fff; }
[data-concept="hanok"]  { --bg:#f8f4ec; --surface:#ece4d4; --ink:#2b2620; --ink-2:#6e6457; --line:#ddd3c2; --accent:#8c3b2a; --on-accent:#fff; }

:root {
  --serif: "Noto Serif KR", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --en: "Cormorant Garamond", serif;
  --pad: clamp(20px, 5.5vw, 80px);
  --sec: clamp(96px, 11vw, 160px);
  --ease: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.75 var(--sans); letter-spacing: -0.01em; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.35; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 20px; }
.en { font-family: var(--en); font-style: italic; letter-spacing: .02em; }
.muted { color: var(--ink-2); }
.sec { padding: var(--sec) 0; }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 28px; border: 1px solid currentColor; font: 500 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; transition: background .4s var(--ease), color .4s var(--ease); cursor: pointer; background: none; color: inherit; }
.btn:hover, .btn.fill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.more { font-size: 13px; letter-spacing: .12em; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.more::after { content: " →"; }

/* ---------- 헤더 ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); color: #fff; transition: background .4s, color .4s, height .4s; }
.hd.solid, .hd.on-light { background: var(--bg); color: var(--ink); height: 72px; box-shadow: 0 1px 0 var(--line); }
.logo { font: 500 20px/1 var(--en); letter-spacing: .25em; }
.logo small { display: block; font: 400 10px/1 var(--sans); letter-spacing: .3em; margin-top: 6px; opacity: .7; }
.gnb { display: flex; gap: 40px; font-size: 12px; letter-spacing: .22em; }
.gnb a { position: relative; padding: 6px 0; }
.gnb a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.gnb a:hover::after, .gnb a[aria-current]::after { width: 100%; }
.hd .btn { height: 40px; padding: 0 20px; }
.menu-btn { display: none; background: none; border: 0; color: inherit; width: 40px; height: 40px; }
@media (max-width: 900px) {
  .gnb, .hd .btn { display: none; }
  .menu-btn { display: block; }
  .hd.open .gnb { display: flex; flex-direction: column; position: fixed; inset: 72px 0 0; background: var(--bg); color: var(--ink); padding: 40px var(--pad); gap: 28px; font-size: 15px; }
}

/* ---------- 히어로 ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; background: #111; }
.hero-media, .hero-media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media img { opacity: 0; transform: scale(1.08); transition: opacity 1.4s ease, transform 10s ease-out; }
.hero-media img.on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.45) 100%); }
.hero-txt { position: absolute; z-index: 2; left: var(--pad); bottom: clamp(80px, 14vh, 160px); max-width: 720px; }
.hero-txt .eyebrow { color: #fff; opacity: .85; }
.hero-txt h1 { font-size: clamp(30px, 4.6vw, 60px); font-weight: 300; }
.hero-txt p { margin-top: 18px; font-size: clamp(14px, 1.3vw, 17px); opacity: .85; }
.scroll { position: absolute; z-index: 2; right: var(--pad); bottom: 40px; font-size: 11px; letter-spacing: .3em; writing-mode: vertical-rl; display: flex; align-items: center; gap: 12px; }
.scroll::after { content: ""; width: 1px; height: 64px; background: currentColor; animation: drip 2.2s infinite var(--ease); transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 소개 ---------- */
.about { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: end; }
.about h2 { font-size: clamp(28px, 3.4vw, 44px); white-space: pre-line; margin-bottom: 32px; }
.about p { color: var(--ink-2); max-width: 420px; margin-bottom: 40px; }
.about figure { grid-column: 3; margin: 0; aspect-ratio: 4/5; overflow: hidden; }
.about figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 48px; } .about figure { grid-column: 1; } }

/* ---------- 객실 ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(26px, 3vw, 40px); }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 56px); }
.room-card figure { margin: 0 0 24px; aspect-ratio: 4/5; overflow: hidden; background: var(--surface); }
.room-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.room-card:hover img { transform: scale(1.05); }
.room-card .eyebrow { margin-bottom: 10px; }
.room-card h3 { font-size: 24px; margin-bottom: 6px; }
.room-card p { color: var(--ink-2); font-size: 14px; margin-bottom: 16px; }
.spec-line { font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 문장 띠 ---------- */
.quote { position: relative; height: 80vh; min-height: 420px; display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.quote img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.quote::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.quote div { position: relative; z-index: 1; }
.quote h2 { font-size: clamp(26px, 3.6vw, 48px); font-weight: 300; }
.quote .en { display: block; margin-top: 16px; font-size: 20px; opacity: .85; }

/* ---------- 스페셜 ---------- */
.specials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.sp { position: relative; aspect-ratio: 3/4; overflow: hidden; color: #fff; }
.sp img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sp:hover img { transform: scale(1.06); }
.sp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55)); }
.sp span { position: absolute; z-index: 1; left: 24px; bottom: 24px; }
.sp b { display: block; font: 500 11px/1 var(--sans); letter-spacing: .25em; margin-bottom: 8px; opacity: .85; }
.sp strong { font: 400 20px/1.3 var(--serif); }
@media (max-width: 900px) { .specials { grid-template-columns: 1fr 1fr; } }

/* ---------- 오시는 길 ---------- */
.loc { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.loc iframe { width: 100%; aspect-ratio: 4/3; border: 0; background: var(--surface); filter: grayscale(.3); }
.loc dl { display: grid; grid-template-columns: 80px 1fr; gap: 12px 16px; font-size: 15px; margin: 32px 0; }
.loc dt { color: var(--ink-2); font-size: 13px; }
.loc dd { margin: 0; }
.map-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.map-btns a, .map-btns button { font-size: 13px; padding: 10px 16px; border: 1px solid var(--line); background: none; color: inherit; cursor: pointer; }
@media (max-width: 900px) { .loc { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { background: var(--surface); text-align: center; }
.cta h2 { font-size: clamp(24px, 2.8vw, 36px); margin-bottom: 32px; }

/* ---------- 객실 상세 ---------- */
.sub-hero { height: 62vh; min-height: 380px; position: relative; color: #fff; display: flex; align-items: end; padding: 0 var(--pad) 64px; overflow: hidden; }
.sub-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sub-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,.45)); }
.sub-hero > div { position: relative; z-index: 1; }
.sub-hero .eyebrow { color: #fff; }
.sub-hero h1 { font-size: clamp(32px, 4.5vw, 56px); font-weight: 300; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 24px 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
[id] { scroll-margin-top: 110px; }
.tabs a { white-space: nowrap; padding: 8px 18px; font-size: 14px; border: 1px solid var(--line); border-radius: 99px; }
.tabs a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--surface); }
.gallery button:first-child { grid-row: span 2; aspect-ratio: 3/2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .count { position: relative; }
.gallery .count::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-size: 15px; }
.room-info { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.spec { display: grid; grid-template-columns: 110px 1fr; margin: 0; }
.spec dt, .spec dd { padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.spec dt { color: var(--ink-2); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.chips span { font-size: 13px; padding: 8px 14px; background: var(--surface); }
@media (max-width: 900px) { .room-info { grid-template-columns: 1fr; } .gallery { grid-template-columns: 1fr 1fr; } .gallery button:first-child { grid-column: span 2; grid-row: auto; } }

/* ---------- 표(요금·이용안내·환불) ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
.tbl th, .tbl td { padding: 14px 10px; border-bottom: 1px solid var(--line); }
.tbl thead th { font-weight: 500; background: var(--surface); }
.tbl tbody th { font-weight: 500; text-align: left; }
.tbl-cards { display: none; }
@media (max-width: 760px) {
  .tbl.price { display: none; }
  .tbl-cards { display: grid; gap: 16px; }
  .tbl-cards article { border: 1px solid var(--line); padding: 20px; }
  .tbl-cards h3 { font-size: 18px; margin-bottom: 12px; }
  .tbl-cards dl { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 0 0 12px; font-size: 14px; }
  .tbl-cards dd { margin: 0; text-align: right; }
}
.guide { display: grid; grid-template-columns: 160px 1fr; margin: 0; }
.guide dt, .guide dd { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
.guide dt { font-weight: 500; }
.guide dd { color: var(--ink-2); }
.booking-frame { width: 100%; min-height: 900px; border: 0; background: var(--surface); }

/* ---------- 예시 예약 달력 ---------- */
.demo-note { font-size: 13px; padding: 12px 16px; background: var(--surface); border-left: 2px solid var(--accent); margin-bottom: 32px; }
.cal-wrap { display: grid; grid-template-columns: 1fr 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.cal-rooms { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.cal-rooms button { font: inherit; font-size: 14px; padding: 10px 20px; border: 1px solid var(--line); background: none; color: inherit; cursor: pointer; }
.cal-rooms button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cal-head { display: flex; align-items: center; justify-content: center; gap: 32px; margin-bottom: 16px; }
.cal-head strong { font: 400 24px/1 var(--en); letter-spacing: .08em; min-width: 120px; text-align: center; }
.cal-head button { width: 40px; height: 40px; border: 1px solid var(--line); background: none; color: inherit; font-size: 20px; cursor: pointer; }
.cal-head button:disabled { opacity: .25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid > b { font-size: 12px; font-weight: 500; text-align: center; padding: 8px 0; color: var(--ink-2); }
.cal-grid .sun { color: #c0392b; } .cal-grid .sat { color: #2c5aa0; }
.day { aspect-ratio: 1 / .9; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; transition: background .2s, border-color .2s; }
.day span { font-size: 15px; }
.day small { font-size: 11px; color: var(--ink-2); }
.day:hover:not(:disabled) { border-color: var(--accent); }
.day.s-mid { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.day.s-peak { background: color-mix(in srgb, var(--accent) 18%, var(--bg)); }
.day.past { opacity: .3; cursor: default; }
.day.sold { background: var(--surface); cursor: not-allowed; }
.day.sold span { text-decoration: line-through; opacity: .5; }
.day.sold small { color: #c0392b; }
.day.sel, .day.out { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day.sel small, .day.out small, .day.sel.sun, .day.sel.sat, .day.out.sun, .day.out.sat { color: var(--on-accent); }
.day.out { opacity: .75; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; font-size: 12px; color: var(--ink-2); }
.cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border: 1px solid var(--line); vertical-align: -1px; }
.lg-sel::before { background: var(--accent); } .lg-sold::before { background: var(--surface); }
.lg-off::before { background: var(--bg); } .lg-mid::before { background: color-mix(in srgb, var(--accent) 8%, var(--bg)); } .lg-peak::before { background: color-mix(in srgb, var(--accent) 18%, var(--bg)); }
.cal-sum { border: 1px solid var(--line); padding: 32px 28px; position: sticky; top: 100px; }
.cal-sum h3 { font-size: 24px; margin-bottom: 4px; }
.cal-sum dl { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.cal-sum dt { color: var(--ink-2); } .cal-sum dd { margin: 0; text-align: right; }
.cal-sum .total { display: flex; justify-content: space-between; align-items: baseline; }
.cal-sum .total strong { font: 400 26px/1 var(--serif); }
@media (max-width: 900px) { .cal-wrap { grid-template-columns: 1fr; } .cal-sum { position: static; } .day span { font-size: 13px; } .day small { font-size: 10px; } }

/* ---------- 라이트박스 ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); display: none; place-items: center; }
.lb.on { display: grid; }
.lb img { max-width: 92vw; max-height: 84vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; padding: 16px; }
.lb .x { top: 12px; right: 12px; } .lb .prev { left: 8px; } .lb .next { right: 8px; }
.lb .n { position: absolute; bottom: 24px; color: #fff; font-size: 13px; letter-spacing: .2em; }

/* ---------- 푸터 ---------- */
.ft { background: #141414; color: #a7a7a7; font-size: 13px; padding: 80px 0 120px; }
.ft .logo { color: #fff; margin-bottom: 32px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.ft b { color: #fff; font-weight: 500; }
.ft p { line-height: 2; }
.ft p span::after { content: "|"; margin: 0 10px; opacity: .3; }
.ft p span:last-child::after { content: none; }
.ft .tel { font: 300 28px/1 var(--en); color: #fff; letter-spacing: .04em; display: block; margin: 12px 0; }
.ft-links { display: flex; gap: 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #2a2a2a; }
.ft-links a:first-child { color: #fff; }
@media (max-width: 900px) { .ft-grid { grid-template-columns: 1fr; } }

/* ---------- 모바일 하단 고정바 ---------- */
.mbar { display: none; }
@media (max-width: 900px) {
  .mbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 60; inset: auto 0 0; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line); }
  .mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; }
  .mbar a svg { width: 20px; height: 20px; }
  .mbar a.book { background: var(--accent); color: var(--on-accent); }
}

/* ---------- 스크롤 등장 ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .12s; } .rv-d2 { transition-delay: .24s; } .rv-d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
