:root {
  --wash: #F4F5F2;      /* lime-washed wall */
  --white: #FFFFFF;
  --basalt: #2E3236;    /* volcanic stone */
  --stone: #676D6B;
  --line: #D9DCD6;
  --cobalt: #2B44AE;    /* the blue door */
  --mustard: #E4B43F;   /* the yellow bench */
  --kakao: #FEE500;
  --wa: #1F8F55;
  --serif: "Gowun Batang", "Apple SD Gothic Neo", serif;
  --sans: "IBM Plex Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--wash); color: var(--basalt); font: 400 16px/1.7 var(--sans); word-break: keep-all; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.3; margin: 0; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter); }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: clamp(10px, 2.5vw, 28px); font-size: .95rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang { border: 1px solid var(--basalt); background: transparent; border-radius: 999px; padding: 4px 14px; font-size: .85rem; }
.lang:hover { background: var(--basalt); color: var(--white); }
@media (max-width: 640px) { .site-header nav a { display: none; } }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* hero */
.hero { padding: clamp(32px, 8vw, 96px) 0 clamp(32px, 6vw, 64px); max-width: 30em; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: -.01em; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--stone); margin: 20px 0 0; max-width: 34em; }

/* village of houses */
.village { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(20px, 3vw, 40px); }
.region h2 { font-family: var(--sans); font-size: .95rem; font-weight: 600; padding: 0 0 12px; margin-bottom: 24px; border-bottom: 2px solid var(--basalt); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.region h2 span { font-weight: 400; color: var(--stone); }
.region-east .cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.house-card { display: block; text-decoration: none; }
.gable { position: relative; clip-path: polygon(0 16%, 50% 0, 100% 16%, 100% 100%, 0 100%); aspect-ratio: 4 / 5; background: var(--line); overflow: hidden; }
.gable img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.house-card:hover .gable img { transform: scale(1.04); }
.house-card h3 { font-size: 1.5rem; margin-top: 18px; }
.house-card .lead { margin: 6px 0 10px; }
.house-card .facts { color: var(--stone); font-size: .92rem; margin: 0 0 12px; }
.house-card .link { font-weight: 600; color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) {
  .village { grid-template-columns: 1fr; }
  .gable { aspect-ratio: 4 / 4.2; }
}
@media (max-width: 520px) { .region-east .cards { grid-template-columns: 1fr; } }

/* how */
.how { margin-top: clamp(64px, 10vw, 120px); padding-top: 40px; border-top: 1px solid var(--line); }
.how h2, .contact h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.how ol { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.how li { counter-increment: step; }
.how li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mustard); font-weight: 600; margin-bottom: 14px; }
.how h3 { font-size: 1.15rem; }
.how p { margin: 6px 0 0; color: var(--stone); }
@media (max-width: 760px) { .how ol { grid-template-columns: 1fr; gap: 24px; } }

/* contact */
.contact { margin: clamp(64px, 10vw, 120px) 0; padding: clamp(28px, 5vw, 56px); background: var(--cobalt); color: var(--white); border-radius: 4px; }
.contact p { margin: 10px 0 24px; opacity: .9; max-width: 34em; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font-weight: 600; text-decoration: none; }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-kakao { background: var(--kakao); color: #191600; }
.btn:hover { filter: brightness(.94); }

/* footer */
.site-footer { background: var(--basalt); color: #E8EAE6; padding: 40px var(--gutter) 56px; font-size: .92rem; }
.site-footer > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.jump-book { display: none; }
@media (max-width: 900px) {
  .jump-book { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 5; background: var(--cobalt); color: var(--white); box-shadow: 0 4px 14px rgba(46,50,54,.3); }
  .house ~ .site-footer { padding-bottom: 96px; }
}
.site-footer p { margin: 6px auto; color: #B9BEB9; }
.site-footer ul { list-style: none; padding: 0; margin: 20px auto 16px; }
.site-footer li { margin: 4px 0; }
.site-footer li a { color: var(--white); font-weight: 600; margin-right: 8px; }
.site-footer li span { color: #B9BEB9; }

/* house page */
.back { display: inline-block; margin: 8px 0 20px; font-size: .92rem; color: var(--stone); }
.house-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 20px; }
.house-head h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.house-head p { margin: 0; color: var(--stone); }

.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(280px, 48vw, 540px); }
.gallery button { padding: 0; border: 0; background: var(--line); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-main { grid-row: 1 / 3; }
.g-all { position: absolute; right: 14px; bottom: 14px; background: var(--white) !important; padding: 8px 16px !important; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: 0 1px 4px rgba(46,50,54,.25); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 420px; }
  .g-main { grid-row: auto; grid-column: 1 / 3; }
  .g-tile:nth-of-type(n+4) { display: none; }
}

.house-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 72px); margin: clamp(32px, 5vw, 56px) 0 clamp(64px, 9vw, 112px); align-items: start; }
.house-info { max-width: 36em; }
.house-info p { margin: 0 0 1em; }
.lead.big { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.5; margin-bottom: 1.2em; }
.facts-dl { margin: 40px 0 0; border-top: 2px solid var(--basalt); }
.facts-dl > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts-dl dt { font-weight: 600; }
.facts-dl dd { margin: 0; }
.facts-dl ul { margin: 0; padding-left: 1.1em; }
.facts-dl dd p { margin: 0 0 8px; }
.maps { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; }
.linkish { background: none; border: 0; padding: 0; text-decoration: underline; font-size: .92rem; }
@media (max-width: 520px) { .facts-dl > div { grid-template-columns: 1fr; gap: 4px; } }

.sibling { display: flex; gap: 18px; align-items: center; margin-top: 40px; padding: 16px; background: var(--white); text-decoration: none; border-radius: 4px; }
.gable.small { width: 96px; flex: none; aspect-ratio: 4 / 5; }
.sibling div:last-child { display: flex; flex-direction: column; }
.sib-label { font-size: .85rem; color: var(--stone); }
.sibling strong { font-family: var(--serif); font-size: 1.3rem; }
.sibling span:last-child { font-size: .9rem; color: var(--stone); }

/* booking */
.booking { position: sticky; top: 16px; background: var(--white); padding: 24px; border-radius: 4px; border-top: 6px solid var(--mustard); }
.booking h2 { font-size: 1.3rem; margin-bottom: 12px; }
.cal-nav { display: flex; justify-content: space-between; margin-bottom: -30px; position: relative; z-index: 1; }
.cal-nav button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.1rem; line-height: 1; }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.months { display: grid; gap: 20px; }
.m-title { text-align: center; font-weight: 600; height: 32px; line-height: 32px; margin-bottom: 6px; }
.month + .month .m-title { margin-top: 0; }
.wk, .grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.wk span { font-size: .75rem; color: var(--stone); padding-bottom: 4px; }
.day { aspect-ratio: 1; border: 0; background: none; font-size: .92rem; border-radius: 50%; position: relative; }
.day:not(:disabled):hover { background: var(--wash); }
.day.today { font-weight: 700; }
.day.past { color: #BFC3BE; cursor: default; }
.day.booked { color: #A9AEA9; text-decoration: line-through; cursor: default; background: repeating-linear-gradient(135deg, transparent 0 4px, #ECEDEA 4px 6px); border-radius: 0; }
.day.booked:not(:disabled) { cursor: pointer; }
.day.range { background: #DDE3F6; border-radius: 0; }
.day.sel { background: var(--cobalt) !important; color: var(--white); text-decoration: none; }
.legend { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--stone); margin-top: 8px; }
.key.booked { width: 16px; height: 16px; background: repeating-linear-gradient(135deg, var(--white) 0 3px, #D5D8D3 3px 5px); border: 1px solid var(--line); }
.cal-status { font-size: .85rem; background: var(--wash); padding: 10px 12px; margin: 12px 0 0; border-radius: 4px; }
.summary { margin: 16px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.summary .hint { margin: 0; color: var(--stone); }
.dates { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.dates span { display: block; font-size: .78rem; color: var(--stone); }
.dates strong { font-weight: 600; }
.guests-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--basalt); background: none; font-size: 1.1rem; line-height: 1; }
.stepper output { min-width: 3em; text-align: center; font-weight: 600; }
.booking .btns { flex-direction: column; }
.booking .btn { width: 100%; }
.note { font-size: .82rem; color: var(--stone); margin: 14px 0 0; }
@media (min-width: 1101px) { .months { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .house-body { grid-template-columns: 1fr; }
  .booking { position: static; }
}
@media (min-width: 560px) and (max-width: 900px) { .months { grid-template-columns: 1fr 1fr; } }

/* lightbox */
#lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20,22,24,.94); color: var(--white); }
#lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
#lightbox figure { margin: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 0 16px; }
#lb-img { max-height: calc(100vh - 96px); max-width: 100%; object-fit: contain; }
#lb-cap { margin-top: 10px; font-size: .85rem; opacity: .8; }
#lightbox button { background: none; border: 0; color: var(--white); font-size: 2.4rem; height: 100%; }
.lb-close { position: absolute; top: 8px; right: 16px; height: auto !important; font-size: 2rem !important; }
@media (max-width: 600px) { #lightbox[open] { grid-template-columns: 36px 1fr 36px; } }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--basalt); color: var(--white); padding: 12px 18px; border-radius: 6px; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); z-index: 10; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* highlight tag (e.g. 예래집 자쿠지) */
.tag { display: inline-block; background: var(--mustard); color: var(--basalt); font-weight: 600; font-size: .9rem; padding: 6px 14px; border-radius: 999px; }
.gable .tag { position: absolute; left: 14px; bottom: 14px; box-shadow: 0 2px 8px rgba(46,50,54,.25); }
.house-head .tag { align-self: center; }
.site-footer .insta a { color: var(--white); font-weight: 600; margin-left: 6px; }
.site-footer .insta span { margin-right: 10px; }
