:root {
  --ground: #ffffff;
  --ink: #222222;
  --muted: #6a6a6a;
  --muted-strong: #484848;
  --line: #ebebeb;
  --border: #8c8c8c;
  --primary: #cf3f1b;
  --primary-dark: #a83214;
  --band: #fff3ec;
  --accent: #ffe2d3;
  --ph: #f1e4d6;
  --serif: "Gowun Batang", serif;
  --sans: "Gowun Dodum", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

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

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.display { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.eyebrow { font-size: 14px; color: var(--primary); }
.muted { color: var(--muted); }
.strong-muted { color: var(--muted-strong); }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 13px 28px; border-radius: 999px;
  border: 1px solid transparent; font: inherit; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { flex: 0 0 auto; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--accent); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 9px 22px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* 헤더 */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 20px; padding-bottom: 20px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; padding: 8px 0; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 16px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; }
.site-nav a:not(.btn):hover { color: var(--primary); }

/* 히어로 */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 96px; }
.hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.badge { align-self: flex-start; background: var(--accent); padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.hero h1 { font-size: clamp(38px, 4vw, 60px); line-height: 1.25; }
.hero-text > p { max-width: 480px; font-size: 18px; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hero-media .main { grid-column: span 3; width: 100%; height: 100%; min-height: 520px; object-fit: cover; border-radius: 28px; }
.hero-side { grid-column: span 2; display: flex; flex-direction: column; gap: 16px; }
.hero-side img { flex: 1 1 200px; min-height: 0; width: 100%; object-fit: cover; border-radius: 28px; }
.bed-card { background: var(--band); border-radius: 28px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.bed-card small { font-size: 14px; color: var(--muted); }
.bed-card strong { font-family: var(--serif); font-size: 20px; line-height: 1.4; }

/* 섹션 공통 */
.section { padding-top: 104px; padding-bottom: 104px; }
.section h2 { font-size: clamp(28px, 3.6vw, 46px); }
.band { background: var(--band); }

/* 침대 */
.bed { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.bed-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.bed-text > p { max-width: 480px; color: var(--muted-strong); }
.bed > img { flex: 1 1 460px; min-width: 0; height: 480px; object-fit: cover; border-radius: 28px; }
.spec { max-width: 480px; }
.spec > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--primary); }
.spec > div:last-child { border-bottom: 1px solid var(--primary); }
.spec dd { color: var(--muted-strong); text-align: right; }

/* 이 집의 하루 */
.day { display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.more { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 10px 0; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.cards3 article { display: flex; flex-direction: column; gap: 14px; }
.cards3 figure { margin: 0; }
.cards3 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.cards3 figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.cards3 h3 { font-family: var(--serif); font-size: 22px; line-height: 1.4; }
.cards3 p { color: var(--muted); font-size: 16px; }

/* 특전 */
.perks { display: flex; flex-wrap: wrap; align-items: stretch; gap: 28px; padding-bottom: 104px; }
.perks-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.perks-text h2 { font-size: clamp(26px, 3.2vw, 40px); }
.perk { flex: 1 1 280px; min-width: 0; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.perk svg { color: var(--primary); }
.perk h3 { font-family: var(--serif); font-size: 20px; }
.perk p { color: var(--muted); font-size: 16px; }

/* 머무는 방법 */
.how { display: flex; flex-direction: column; gap: 48px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps .num { font-family: var(--serif); font-weight: 700; font-size: 32px; line-height: 1.2; color: var(--primary); }
.steps h3 { font-size: 20px; font-weight: 400; }
.steps p { color: var(--muted); font-size: 16px; }
.notice { background: var(--ground); border-radius: 20px; padding: 24px 28px; display: flex; align-items: flex-start; gap: 16px; font-size: 16px; color: var(--muted-strong); }
.notice svg { flex: 0 0 auto; margin-top: 3px; color: var(--primary); }

/* 동네 */
.place { display: flex; flex-wrap: wrap; align-items: stretch; gap: 48px; }
.place-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows li span:last-child { color: var(--muted); text-align: right; }
.map { flex: 1 1 460px; min-width: 0; min-height: 420px; border-radius: 28px; overflow: hidden; background: var(--ph); display: flex; flex-direction: column; }
.map iframe { flex: 1 1 auto; width: 100%; min-height: 360px; border: 0; }
.map a { display: block; padding: 14px 20px; background: var(--ground); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 28px 28px; text-decoration: none; font-size: 15px; }

/* 계약 */
.cta-wrap { padding-bottom: 104px; }
.cta { background: var(--primary); color: #fff; border-radius: 32px; padding: clamp(32px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 48px; }
.cta-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta h2 { font-size: clamp(26px, 3.4vw, 42px); }
.cta p { color: var(--accent); }
.cta .btn-col { flex: 0 1 320px; display: flex; flex-direction: column; gap: 12px; }

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-top: 40px; padding-bottom: 56px; font-size: 14px; color: var(--muted); }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer .name { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink); }

/* 집 상세 */
.room-head { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 15px; text-decoration: none; padding: 10px 0; }
.room-head h1 { font-size: clamp(30px, 4vw, 52px); line-height: 1.3; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 24px; }
.gallery img { width: 100%; object-fit: cover; border-radius: 24px; }
.gallery > img { height: 460px; }
.gallery .grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery .grid4 img { height: 224px; }
.detail { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 56px; padding-top: 64px; padding-bottom: 104px; }
.detail-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.block { display: flex; flex-direction: column; gap: 18px; }
.block h2 { font-family: var(--serif); font-size: 28px; line-height: 1.4; }
.sleep { background: var(--band); border-radius: 28px; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 24px; }
.sleep-title { display: flex; align-items: center; gap: 12px; }
.sleep-title svg { color: var(--primary); }
.sleep-title h2 { font-family: var(--serif); font-size: 26px; line-height: 1.4; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 32px; }
.kv div { display: flex; flex-direction: column; gap: 4px; }
.kv dt { font-size: 14px; color: var(--muted); }
.amenities { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 40px; }
.amenities li { padding: 14px 0; border-top: 1px solid var(--line); }
.note { font-size: 15px; color: var(--muted); }
.terms > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 14px 0; border-top: 1px solid var(--line); }
.terms > div:last-child { border-bottom: 1px solid var(--line); }
.terms dd { color: var(--muted-strong); }
.aside { flex: 1 1 360px; min-width: 0; position: sticky; top: 24px; border: 1px solid var(--line); box-shadow: 0 8px 28px rgba(0, 0, 0, .08); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.price small { display: block; font-size: 15px; color: var(--muted); }
.price strong { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.3; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1 1 0; height: 1px; background: var(--line); }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { resize: vertical; }
.fine { font-size: 14px; color: var(--muted); }

/* 모바일 하단 고정 바 */
.sticky-bar { display: none; }

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .logo { font-size: 19px; }
  .site-nav a:not(.btn) { display: none; }
  .hero { gap: 20px; padding-top: 12px; padding-bottom: 56px; }
  .hero-text { gap: 20px; }
  .hero h1 { font-size: 38px; }
  .hero-text > p { font-size: 16px; }
  .btn-row { flex-direction: column; }
  .hero-media { display: flex; flex-direction: column; gap: 12px; }
  .hero-media .main { height: 400px; min-height: 0; border-radius: 24px; }
  .hero-side img { display: none; }
  .bed-card { flex-direction: row; align-items: center; justify-content: space-between; border-radius: 20px; padding: 18px 20px; }
  .bed-card strong { font-size: 16px; text-align: right; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section h2, .cta h2, .perks-text h2 { font-size: 27px; }
  .bed { gap: 20px; }
  .bed > img { height: 260px; flex-basis: 100%; border-radius: 24px; order: 2; }
  .bed-text { gap: 20px; }
  .spec { order: 3; }
  .day { gap: 32px; }
  .cards3 { gap: 36px; }
  .cards3 h3 { font-size: 20px; }
  .perks { gap: 16px; padding-bottom: 64px; }
  .perk { padding: 22px; border-radius: 20px; }
  .how { gap: 28px; }
  .steps { gap: 0; }
  .steps li { display: grid; grid-template-columns: 28px 1fr; gap: 4px 16px; padding: 18px 0; }
  .steps .num { grid-row: span 2; font-size: 26px; }
  .steps h3 { font-size: 18px; }
  .steps p { font-size: 15px; }
  .notice { padding: 18px 20px; font-size: 15px; }
  .place { gap: 24px; }
  .map { min-height: 300px; border-radius: 20px; }
  .map iframe { min-height: 240px; }
  .cta-wrap { padding-bottom: 56px; }
  .cta { border-radius: 24px; padding: 32px 24px; }
  .cta .btn-col { flex-basis: 100%; }
  .site-footer .wrap { padding-top: 28px; padding-bottom: 36px; font-size: 13px; }
  .gallery { margin-top: 16px; gap: 10px; }
  .gallery > img { height: 280px; border-radius: 20px; }
  .gallery .grid4 { gap: 10px; }
  .gallery .grid4 img { height: 130px; border-radius: 16px; }
  .detail { gap: 48px; padding-top: 48px; padding-bottom: 56px; }
  .detail-main { gap: 48px; }
  .block h2, .sleep-title h2 { font-size: 24px; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; font-size: 15px; }
  .terms > div { flex-direction: column; }
  .terms dt { font-size: 13px; color: var(--muted); }
  .terms dd { color: var(--ink); }
  .aside { position: static; padding: 24px 20px; border-radius: 24px; }
  .sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--ground); border-top: 1px solid var(--line); }
  .sticky-bar .p { display: flex; flex-direction: column; line-height: 1.35; }
  .sticky-bar small { font-size: 12px; color: var(--muted); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
