/* 경주 메모리즈 풀빌라 — STANDARD 샘플 (CLAUDE_STANDARD_v1)
   색은 건물에서 가져왔다: 회청색 사이딩, 벽돌색 지붕, 수영장 물빛, 안개 낀 흰 담장. */
:root {
  --paper: #f2f4f2;
  --paper-2: #e3e8e6;
  --ink: #1b2428;
  --ink-soft: #46545a;
  --slate: #566b76;
  --brick: #a5452c;
  --aqua: #bfe0e2;
  --line: rgba(27, 36, 40, 0.14);
  --font-display: "Hahmlet", "Noto Serif KR", serif;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --cut: clamp(14px, 2vw, 28px); /* 팔각 지붕에서 온 모서리 깎기 */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }

/* ── 글자 ── */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.22;
  text-wrap: balance;
}
h1.display { font-size: clamp(32px, 4.3vw, 62px); }
h2.display { font-size: clamp(28px, 3.6vw, 48px); }
h3.display { font-size: clamp(21px, 2vw, 26px); letter-spacing: -0.02em; }
.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--slate);
}
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-soft); max-width: 34em; }
.note { font-size: 14px; color: var(--ink-soft); }
.num { font-family: var(--font-display); font-feature-settings: "tnum"; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--brick); border-color: var(--brick); }
.btn--line { background: transparent; color: var(--ink); clip-path: none; border-color: var(--line); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { color: var(--brick); }

/* ── 헤더 ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand b { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: 0.16em; }
.brand span { font-size: 13px; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.nav a { text-decoration: none; font-size: 15.5px; font-weight: 500; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; border-bottom: 1px solid var(--ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); min-height: 44px; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); }

/* ── 사진: 모서리를 깎은 틀 ── */
.frame {
  overflow: hidden; background: var(--paper-2);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--plain { clip-path: none; }
figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

/* ── 홈: 첫 화면 ── */
.hero { padding: clamp(28px, 5vw, 64px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.hero-copy { padding-bottom: clamp(8px, 3vw, 40px); }
.hero-copy .label { display: block; margin-bottom: 22px; }
.hero-copy .lead { margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-photo { aspect-ratio: 4 / 3; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--ink); }
.facts div { padding: 22px 20px 26px 0; border-right: 1px solid var(--line); padding-left: 20px; }
.facts div:first-child { padding-left: 0; }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 13.5px; color: var(--ink-soft); }
.facts dd { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; margin-top: 4px; }

/* ── 구역 공통 ── */
.section { padding: clamp(72px, 10vw, 148px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .label { display: block; margin-bottom: 16px; }
.band-dark { background: var(--ink); color: var(--paper); }
.band-dark .label { color: var(--aqua); }
.band-dark .lead, .band-dark figcaption, .band-dark .note { color: #b8c4c6; }
.band-soft { background: var(--paper-2); }

/* ── 하룻밤의 순서 (가로 레일) ── */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 380px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 28px; scroll-padding-left: var(--gutter); scrollbar-width: thin; scrollbar-color: var(--slate) transparent; }
.rail > li { scroll-snap-align: start; }
.rail .frame { aspect-ratio: 4 / 5; }
.rail time { display: block; margin-top: 18px; font-family: var(--font-display); font-size: 30px; letter-spacing: -0.03em; }
.rail h3 { font-size: 19px; font-weight: 700; margin-top: 2px; }
.rail p { font-size: 15.5px; color: var(--ink-soft); margin-top: 6px; }
.rail-tools { display: flex; gap: 8px; justify-content: flex-end; }
.rail-tools button { width: 48px; height: 48px; border: 1px solid var(--line); background: transparent; font-size: 18px; color: var(--ink); cursor: pointer; }
.rail-tools button:hover { background: var(--ink); color: var(--paper); }

/* ── 좌우 교차 ── */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--flip .split-media { order: 2; }
.split-media .frame { aspect-ratio: 16 / 10; }
.split-body .label { display: block; margin-bottom: 16px; }
.split-body p { margin-top: 20px; color: var(--ink-soft); }
.band-dark .split-body p { color: #b8c4c6; }
.split-body .link-arrow { display: inline-block; margin-top: 28px; }
.pair { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-top: 16px; }
.pair .frame { aspect-ratio: auto; height: clamp(180px, 22vw, 300px); }
blockquote { margin: 28px 0 0; padding-left: 20px; border-left: 2px solid var(--brick); font-family: var(--font-display); font-size: 19px; line-height: 1.6; }
blockquote cite { display: block; margin-top: 8px; font-family: var(--font-body); font-style: normal; font-size: 14px; color: var(--ink-soft); }
.band-dark blockquote cite { color: #b8c4c6; }

/* ── 넓은 사진 ── */
.wide .frame { aspect-ratio: 21 / 9; }
.wide-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 4vw, 64px); margin-top: clamp(28px, 4vw, 48px); }

/* ── 후기 ── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.quotes li { padding: 32px 28px 36px 0; border-right: 1px solid var(--line); padding-left: 28px; }
.quotes li:first-child { padding-left: 0; }
.quotes li:last-child { border-right: 0; }
.quotes p { font-family: var(--font-display); font-size: 19px; line-height: 1.65; }
.quotes small { display: block; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.review-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.review-filter button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.review-filter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.review-list { columns: 3 300px; column-gap: 24px; }
.review-list li { break-inside: avoid; margin-bottom: 24px; padding: 28px; background: #fff; border: 1px solid var(--line); }
.review-list li[hidden] { display: none; }
.review-list .label { display: block; margin-bottom: 12px; color: var(--brick); }
.review-list p { font-size: 16.5px; }
.review-list small { display: block; margin-top: 16px; font-size: 14px; color: var(--ink-soft); }

/* ── 카드 격자 ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.card .frame { aspect-ratio: 4 / 3; }
.card--tall .frame { aspect-ratio: 3 / 4; }
.card h3 { font-size: 19px; font-weight: 700; margin-top: 18px; }
.card p { font-size: 15.5px; color: var(--ink-soft); margin-top: 6px; }
.band-dark .card p { color: #b8c4c6; }

/* ── 안내 표 ── */
.info { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.info > div { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.info dt { font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; color: var(--slate); }
.info dd { margin-top: 10px; }
.info dd b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -0.03em; line-height: 1.3; }
.info dd span { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.checklist li { position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 27px; width: 9px; height: 9px; background: var(--brick); clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); font-family: var(--font-display); font-size: 26px; color: var(--slate); }
.steps b { display: block; font-size: 18px; }
.steps span { color: var(--ink-soft); font-size: 15.5px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 22px 36px 22px 0; font-weight: 600; font-size: 17.5px; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 18px; font-size: 24px; font-weight: 400; color: var(--slate); }
details[open] summary::after { content: "–"; }
details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 44em; }

/* ── 페이지 머리 ── */
.page-head { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.page-head .label { display: block; margin-bottom: 18px; }
.page-head .lead { margin-top: 22px; }

/* ── 예약 띠 ── */
.cta { background: var(--slate); color: #fff; padding: clamp(56px, 8vw, 104px) 0; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.cta p { margin-top: 14px; color: #dbe4e6; max-width: 30em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.cta .btn--line { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta .btn--line:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ── 푸터 ── */
.site-footer { background: var(--ink); color: #b8c4c6; padding: 64px 0 96px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer b { color: var(--paper); }
.site-footer .brand b { font-size: 24px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-top: 8px; }
.site-footer .sample { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 13.5px; }

/* ── 모바일 하단 예약 바 ── */
.book-bar { display: none; }

/* ── 등장 ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── 태블릿 ── */
@media (max-width: 1024px) {
  .hero-grid, .section-head, .split, .split--flip, .wide-text, .cta .wrap { grid-template-columns: 1fr; }
  .split--flip .split-media { order: 0; }
  .hero-grid { align-items: start; }
  .cta-actions { justify-content: flex-start; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .info { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .quotes li, .quotes li:first-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}

/* ── 모바일 ── */
@media (max-width: 720px) {
  body { font-size: 16.5px; padding-bottom: 68px; }
  .brand span { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; justify-content: center; min-height: 52px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div { padding: 18px 12px 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .hero-photo { aspect-ratio: 4 / 3; }
  .wide .frame { aspect-ratio: 4 / 3; }
  .split-media .frame { aspect-ratio: 4 / 3; }
  .grid-3, .grid-2, .info { grid-template-columns: 1fr; }
  .pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .steps li { grid-template-columns: 48px 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .rail-tools { display: none; }
  .book-bar { display: grid; grid-template-columns: 1fr 1.4fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); }
  .book-bar a { display: flex; align-items: center; justify-content: center; min-height: 60px; color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; }
  .book-bar a:last-child { background: var(--brick); }
}

.pos-right img { object-position: 88% 50%; }
.grid-3 > *, .grid-2 > *, .pair > *, .split > *, .hero-grid > * { min-width: 0; }
.split-media .pair .frame { aspect-ratio: auto; width: 100%; }

/* ── 후기 카드 (주제마다 색이 다르다) ── */
.rcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 30px); }
.rcard { --tint: #f6efe6; --accent: #8a4b2a; background: var(--tint); border-radius: 26px; padding: 14px; box-shadow: 0 1px 0 rgba(27, 36, 40, 0.06), 0 18px 40px -28px rgba(27, 36, 40, 0.45); }
.rcard-photo { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.rcard-photo img { width: 100%; height: 100%; object-fit: cover; }
.rcard-no { position: absolute; left: 12px; top: 12px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 20px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7); }
.rcard-body { padding: 20px 12px 14px; }
.rcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rcard-head h3 { font-size: clamp(20px, 1.8vw, 25px); font-weight: 600; color: var(--accent); letter-spacing: -0.03em; line-height: 1.35; }
.rcard-head svg { flex: none; width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.rcard-body p { margin-top: 12px; font-size: 16px; color: #3d4649; }
.rcard-body small { display: inline-block; margin-top: 16px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--accent); background: rgba(255, 255, 255, 0.7); }
.rcard--space { --tint: #f6efe6; --accent: #8a4b2a; }
.rcard--pool { --tint: #e3f2f3; --accent: #1f6f7a; }
.rcard--living { --tint: #e9edf0; --accent: #3f5563; }
.rcard--yard { --tint: #eaf1e2; --accent: #4c6a2c; }
.rcard--bed { --tint: #f1ecf3; --accent: #6a5078; }
.rcard--bbq { --tint: #f8e9e0; --accent: #a5452c; }
.rcard--kitchen { --tint: #f6f0d9; --accent: #86691a; }
.rcard--care { --tint: #f7e8ea; --accent: #9a4257; }
@media (max-width: 1024px) { .rcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .rcards { grid-template-columns: minmax(0, 1fr); } }
.rcard[hidden] { display: none; }
