:root {
  --ink: #1b1b1a;
  --ink-2: #4a4a47;
  --muted: #8a8a85;
  --line: #e7e6e2;
  --line-2: #d6d5d0;
  --bg: #ffffff;
  --soft: #f6f5f2;
  --accent: #2f6f5e;
  --blue: #3b82d6;
  --warm-bg: #fdf1e1;
  --warm-ink: #c56a1c;
  --red: #c8423b;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 15px/1.6 Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -0.01em;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.won { font-variant-numeric: tabular-nums; }

/* header / footer */
.bk-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 20px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bk-logo { font-weight: 800; letter-spacing: .28em; font-size: 15px; text-decoration: none; text-transform: uppercase; }
.bk-link { border: 0; background: none; font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px 4px; }
.bk-main { max-width: 1120px; margin: 0 auto; padding: 0 20px 80px; }
.bk-loading { padding: 80px 0; text-align: center; color: var(--muted); }
.bk-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 28px 20px 40px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.bk-footer > div { max-width: 1120px; margin: 0 auto; }
.bk-footer b { color: var(--ink-2); }

/* hero */
.hero { padding: 48px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.hero p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.hero .addr { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* home layout */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.sec-h { font-size: 19px; font-weight: 800; margin-bottom: 16px; }
.room-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; cursor: pointer; transition: border-color .15s, box-shadow .15s; background: var(--bg); }
.room-card:hover { border-color: var(--line-2); }
.room-card.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 16 / 8; background: var(--soft); }
.gallery.one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery.two { grid-template-rows: 1fr; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery img:first-child { grid-row: 1 / -1; }
.ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 8; background: linear-gradient(135deg, #ece9e2, #d9d6cd); color: #9b978c; font-weight: 800; letter-spacing: .2em; font-size: 22px; }
.room-info { padding: 18px 20px 20px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: end; }
.room-info h3 { font-size: 20px; font-weight: 800; }
.room-sub { color: var(--muted); font-size: 14px; }
.room-desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 14px; white-space: pre-line; margin-top: 4px; }
.room-price { text-align: right; }
.strike { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.off { color: var(--blue); font-weight: 800; }
.price-big { font-size: 20px; font-weight: 800; }
.per { color: var(--muted); font-size: 13px; font-weight: 400; }

/* booking widget */
.widget { position: sticky; top: 80px; border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--bg); box-shadow: 0 8px 30px rgba(0,0,0,.05); }
.pick-bar { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.pick-bar button { border: 0; background: var(--bg); padding: 13px 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 600; font-size: 15px; }
.pick-bar button + button { border-left: 1px solid var(--line); }
.pick-bar button:hover { background: var(--soft); }
.pick-bar svg { width: 18px; height: 18px; flex-shrink: 0; }
.w-room { display: flex; gap: 14px; align-items: center; margin: 18px 0 14px; position: relative; }
.w-room .thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--soft); flex-shrink: 0; }
.w-room .thumb.ph { aspect-ratio: auto; font-size: 13px; letter-spacing: .1em; }
.w-room b { font-size: 18px; display: block; }
.w-room select { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.w-room .chev { margin-left: auto; color: var(--ink-2); }
.banner { background: var(--warm-bg); color: var(--warm-ink); font-weight: 700; font-size: 14px; text-align: center; padding: 9px 10px; border-radius: 6px; margin-bottom: 12px; }
.w-price { margin-bottom: 14px; }
.sumbox { background: var(--soft); border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; font-size: 14px; }
.sumbox .ln { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-2); padding: 3px 0; }
.sumbox .ln.total { border-top: 1px solid var(--line-2); margin-top: 8px; padding-top: 12px; color: var(--ink); font-weight: 800; font-size: 17px; }
.sumbox .minus { color: var(--blue); }
.btn-dark { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-dark:hover { background: #000; }
.btn-dark:disabled { background: #b8b7b2; cursor: not-allowed; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); font-weight: 600; cursor: pointer; }
.w-err { color: var(--red); font-size: 13.5px; margin-bottom: 10px; }

/* info sections */
.info-sec { margin-top: 40px; }
.info-sec h2 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.kv-list { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; font-size: 14.5px; }
.kv-list dt { color: var(--muted); }
.kv-list dd { margin: 0; }
.rules { list-style: none; padding: 0; margin: 0; }
.rules li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rules li b { display: block; margin-bottom: 2px; }
.rules li span { color: var(--ink-2); }
table.refund { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.refund th, .refund td { border: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.refund th { background: var(--soft); font-weight: 600; }

/* calendar sheet */
.bk-sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; padding: 20px; }
.bk-sheet { background: var(--bg); border-radius: 20px; width: min(500px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 22px 22px 20px; }
.sheet-head { display: flex; align-items: center; justify-content: center; position: relative; margin-bottom: 18px; }
.sheet-head h2 { font-size: 19px; font-weight: 800; }
.sheet-x { position: absolute; right: -4px; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; padding: 6px; }
.pick-bar .on { background: var(--soft); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 10px; }
.cal-head strong { font-size: 20px; font-weight: 800; }
.cal-nav { display: flex; gap: 4px; align-items: center; }
.cal-nav button { border: 1px solid var(--line); background: var(--bg); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 16px; }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.legend-dot { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; }
.legend-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); display: inline-block; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.cal-dow { text-align: center; font-size: 13.5px; padding: 8px 0; color: var(--ink-2); }
.cal-dow.sun { color: #b3261e; } .cal-dow.sat { color: #2a5ba8; }
.cday { position: relative; border: 0; background: none; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; font-size: 16px; font-weight: 600; padding: 0; }
.cday small { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.cday.sun, .cday.hol { color: #b3261e; } .cday.sat { color: #2a5ba8; }
.cday.dis { color: #c9c8c3; cursor: default; background: #fafaf8; }
.cday.dis.sold span { text-decoration: line-through; }
.cday.dis small { visibility: hidden; }
.cday .dot { position: absolute; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.cday.in-range { background: #efeeea; }
.cday.start, .cday.end { background: var(--ink); color: #fff; border-radius: 10px; }
.cday.start small, .cday.end small { color: #ddd; }
.cday.start .dot, .cday.end .dot { background: #8fbaf0; }
.cday:not(.dis):not(.start):not(.end):hover { background: var(--soft); border-radius: 10px; }
.sheet-sum { margin-top: 14px; padding: 12px 14px; background: var(--soft); border-radius: 10px; font-size: 14px; text-align: center; color: var(--ink-2); }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.sheet-foot .reset { border: 0; background: none; text-decoration: underline; color: var(--ink-2); font-weight: 600; cursor: pointer; font-size: 15px; }
.sheet-foot .btn-dark { width: 60%; }
.ppl-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ppl-row b { font-size: 16px; display: block; }
.ppl-row span { font-size: 13px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); font-size: 18px; cursor: pointer; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; font-size: 16px; }

/* checkout */
.co-title { display: flex; align-items: center; gap: 10px; padding: 28px 0 20px; font-size: 22px; font-weight: 800; }
.co-title button { border: 0; background: none; font-size: 22px; cursor: pointer; padding: 0 6px 0 0; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.co-main { border: 1px solid var(--line); border-radius: var(--radius); }
.co-sec { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.co-sec:last-child { border-bottom: 0; }
.co-sec h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.co-sec h3 .chg { border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.co-sec .hint { font-size: 13px; color: var(--muted); margin: -6px 0 12px; }
.dates-box { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; background: var(--soft); border-radius: 10px; padding: 14px 10px; }
.dates-box small { display: block; color: var(--muted); font-size: 12.5px; }
.dates-box b { font-size: 15px; }
.dates-box .n { font-size: 12.5px; color: var(--ink-2); font-weight: 700; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; background: var(--bg); }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.fld label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fld input, .fld select, .fld textarea { height: 48px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; background: var(--bg); font-size: 15px; width: 100%; }
.fld textarea { height: 110px; padding: 12px 14px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: 2px solid #cfe1da; border-color: var(--accent); }
.fld .err { font-size: 12.5px; color: var(--red); }
.opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 14px; margin-bottom: 8px; cursor: pointer; }
.opt.on { border-color: var(--ink); background: #fbfbf9; }
.opt .t { flex: 1; min-width: 0; }
.opt .t b { display: block; font-size: 14.5px; }
.opt .t span { font-size: 13px; color: var(--muted); }
.opt .ck { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: transparent; font-size: 13px; }
.opt.on .ck { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt select { height: 34px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 6px; background: var(--bg); }
.fee .ln { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.fee .ln.sub { font-size: 12.5px; color: var(--muted); padding: 1px 0 1px 10px; }
.fee .ln .minus { color: var(--blue); }
.fee .ln.total { border-top: 1.5px solid var(--ink); margin-top: 12px; padding-top: 14px; font-weight: 800; font-size: 17px; }
.pay { border: 1.5px solid var(--ink); border-radius: 10px; padding: 14px 16px; }
.pay > b { display: flex; align-items: center; gap: 8px; }
.pay > b::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 5px solid var(--ink); box-sizing: border-box; }
.pay p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.agree-all { display: flex; align-items: center; gap: 10px; background: var(--soft); border-radius: 8px; padding: 13px 14px; font-weight: 700; cursor: pointer; }
.agree-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.agree-row label, .agree-all { cursor: pointer; }
.agree-row label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; }
.agree-row .more { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 13px; text-decoration: underline; }
input[type=checkbox].ck2 { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; flex-shrink: 0; }
.agree-body { margin: 0 14px 10px; background: var(--soft); border-radius: 8px; padding: 14px; font-size: 13px; color: var(--ink-2); }
.agree-body p + p { margin-top: 8px; }
.notice { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.side-card { position: sticky; top: 80px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-card .ph, .side-card img.cover { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; }
.side-card img.cover { object-fit: cover; display: block; }
.side-card .ph { font-size: 16px; }
.side-card h4 { margin: 14px 0 2px; font-size: 18px; font-weight: 800; }
.side-card .s { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.mbar { display: none; }

/* done */
.done { max-width: 560px; margin: 0 auto; padding: 48px 0; text-align: center; }
.done .check { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 30px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.done h1 { font-size: 24px; font-weight: 800; }
.done > p { color: var(--ink-2); margin-top: 8px; }
.bank-card { margin: 26px 0 14px; border: 1.5px solid var(--ink); border-radius: 14px; padding: 22px; text-align: left; }
.bank-card .amt { font-size: 28px; font-weight: 800; margin: 2px 0 14px; }
.bank-card dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0; font-size: 14.5px; }
.bank-card dt { color: var(--muted); }
.bank-card dd { margin: 0; font-weight: 600; }
.res-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; text-align: left; font-size: 14.5px; }
.res-card dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0; }
.res-card dt { color: var(--muted); }
.res-card dd { margin: 0; }
.done .row { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.st { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--soft); }
.st.w { background: var(--warm-bg); color: var(--warm-ink); }
.st.ok { background: #e3f0ea; color: var(--accent); }

.bk-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 90; font-size: 14px; max-width: 90vw; text-align: center; }
.bk-toast.err { background: var(--red); }

@media (max-width: 900px) {
  .home-grid, .co-grid { grid-template-columns: 1fr; gap: 24px; }
  .widget { position: static; order: -1; }
  .side-card { display: none; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .mbar .t { flex: 1; font-size: 13px; color: var(--muted); }
  .mbar .t b { display: block; font-size: 18px; color: var(--ink); }
  .mbar .btn-dark { width: auto; flex: 1.2; height: 50px; }
  .co-page { padding-bottom: 90px; }
  .hero { padding: 32px 0 24px; margin-bottom: 24px; }
}
@media (max-width: 560px) {
  .bk-main { padding: 0 16px 60px; }
  .bk-header { padding: 0 16px; }
  .co-sec { padding: 20px 16px; }
  .bk-sheet-wrap { align-items: flex-end; padding: 0; }
  .bk-sheet { border-radius: 20px 20px 0 0; max-height: 92vh; width: 100%; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cday { height: 52px; font-size: 15px; }
  .room-info { grid-template-columns: 1fr; }
  .room-price { text-align: left; }
  .kv-list { grid-template-columns: 90px 1fr; }
}
.dname { font-style: normal; font-weight: 700; color: #e2506b; font-size: .92em; }

/* 객실별 예약 가능 여부 · 2박↑ · 연박 할인 · 예약 취소 */
.avail { grid-column: 1 / -1; font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.avail:empty { display: none; }
.avail small { color: var(--muted); font-size: 12.5px; }
.av { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.av.ok { background: #e8f3ec; color: #2f7a4b; }
.av.no { background: #fbeceb; color: var(--red); }
.cday .minn { position: absolute; bottom: 1px; font-style: normal; font-size: 9px; font-weight: 700; color: #7c3aed; line-height: 1; }
.banner.ls { background: #eef3fb; color: #2d5ea8; }
.cancel-btn { width: 100%; margin-top: 12px; color: var(--red); }
.cx-form { margin-top: 14px; }
.cx-calc { background: var(--soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.cx-calc .ln { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.cx-calc .ln.total { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 8px; font-weight: 800; }

/* 예약 질문 */
.co-sec h3 .req { font-size: 11.5px; font-weight: 700; color: var(--red); margin-left: 6px; margin-right: auto; }
.q-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.q-opt { position: relative; cursor: pointer; }
.q-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-opt span { display: block; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 16px; font-size: 14.5px; background: var(--bg); }
.q-opt input:checked + span { border-color: var(--ink); background: #fbfbf9; font-weight: 700; box-shadow: inset 0 0 0 1px var(--ink); }
.q-opt input:focus-visible + span { outline: 2px solid #cfe1da; }
.co-sec.miss { box-shadow: inset 3px 0 0 var(--red); }

/* 옵션 사진 · 설명 */
.opt-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; cursor: zoom-in; }
.opt .t small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.ph-view { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.ph-box { background: #fff; border-radius: 14px; padding: 14px; max-width: 720px; width: 100%; position: relative; }
.ph-box p { margin: 10px 2px 2px; font-size: 14px; }
.ph-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.ph-strip img { width: 100%; max-height: 70vh; object-fit: contain; flex-shrink: 0; scroll-snap-align: center; border-radius: 8px; background: #f3f3f1; }
.ph-x { position: absolute; top: 8px; right: 8px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 20px; cursor: pointer; }

.fld label em { font-style: normal; font-weight: 600; font-size: 12px; margin-left: 2px; }
.fld label em.lbl-req { color: #d1453b; }
.fld label em.lbl-opt { color: var(--ink-3, #8a8a8a); }

.pay p strong { font-weight: 700; color: var(--ink); }
