/* 2027 JW 국제대회 예약 페이지 — 시안 B 에디토리얼 (객실현황 웹 시안 B와 같은 디자인 언어) */
:root {
  --paper: #f5f2ec;
  --paper2: #efe9df;
  --ink: #2a2724;
  --muted: #8d877d;
  --muted2: #6f6a62;
  --line: #eee8df;
  --line2: #e2dace;
  --card: #fff;
  --burg: #a3243c;
  --burg-d: #8a1d31;
  --burg-soft: #f7e4e8;
  --green: #1f7a4a;
  --green-bg: #e8f5ec;
  --amber: #a86400;
  --amber-bg: #fdf1dc;
  --chip: #ebe5da;
  --shadow: 0 14px 34px -16px rgba(70, 45, 20, .35);
  --r: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', Arial, sans-serif;
  background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
a { color: inherit; }
.muted { color: var(--muted2); }
.small { font-size: 13px; }
.center { text-align: center; }
.link { color: var(--ink); font-weight: 600; font-size: 14px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.page { max-width: 1180px; margin: 0 auto; padding: 40px 28px 60px; }
.page.narrow { max-width: 620px; }

/* ---------- 상단 ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(245, 242, 236, .92); backdrop-filter: blur(8px); }
.nav-in { max-width: 1180px; margin: 0 auto; padding: 16px 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); min-width: 0; }
.logo i {
  width: 30px; height: 30px; border: 1.5px solid var(--ink); display: grid; place-items: center; flex: none;
  font-style: normal; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 15px;
}
.logo span { font-size: 12.5px; font-weight: 600; letter-spacing: .32em; white-space: nowrap; }
.nav-r { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-link { background: none; border: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted2); cursor: pointer; padding: 6px 4px; }
.nav-link:hover { color: var(--ink); }
.nav-link .lbl-short { display: none; }
.lang { display: flex; gap: 4px; }
.lang button {
  font: inherit; font-size: 13px; font-weight: 600; border: 1px solid #d9d2c6; background: #fff; color: #4a453e;
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
.lang button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 히어로 ---------- */
.hero { max-width: 1180px; margin: 0 auto; padding: 26px 28px 8px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.eyebrow { font-size: 12.5px; letter-spacing: .14em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.headline { font-weight: 200; font-size: 46px; letter-spacing: -.04em; line-height: 1.16; margin: 12px 0 16px; }
.headline span { display: block; }
.headline b { font-weight: 700; display: block; }
.hero-sub { font-size: 14.5px; color: var(--muted2); margin-bottom: 24px; }
.note { border-radius: 12px; padding: 11px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 16px; }
.note-admin { background: #e8f0fe; color: #1d4ed8; }
.note-closed { background: var(--amber-bg); color: var(--amber); font-size: 14.5px; }
.only { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.only b { color: var(--ink); }

/* 검색창 */
.search { position: relative; display: flex; background: #fff; border-radius: 999px; box-shadow: var(--shadow); padding: 7px; align-items: stretch; }
.sf { flex: 1; min-width: 0; text-align: left; background: none; border: none; border-right: 1px solid var(--line); padding: 8px 20px; cursor: pointer; font: inherit; border-radius: 999px 0 0 999px; }
.sf + .sf { border-radius: 0; }
.sf:hover { background: #faf8f4; }
.sf.on { background: #f7f3ec; }
.sf-l { display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
.sf-v { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-v.ph { color: #b8b1a5; font-weight: 600; }
#sf-guest { border-right: none; }
.go { background: var(--burg); color: #fff; border: none; border-radius: 999px; padding: 0 28px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; }
.go:hover { background: var(--burg-d); }
.chips { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.chips span { font-size: 12.5px; border-radius: 999px; padding: 6px 12px; background: var(--chip); color: #5b554c; font-weight: 600; }

/* 팝오버 (날짜·인원) */
.pop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 30; background: #fff; border-radius: 22px;
  box-shadow: 0 22px 50px -18px rgba(40, 25, 10, .45); padding: 18px 20px 16px; width: min(460px, 100%);
}
.pop-guest { left: auto; right: 0; width: 360px; }
.pop-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-size: 16px; }
.pop-h .x { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--muted); padding: 4px; }
.pop-hint { font-size: 12.5px; color: var(--muted2); margin-bottom: 8px; }
.pop-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; font-weight: 700; }
.stp { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stp b { display: block; font-size: 15px; }
.stp small { display: block; font-size: 12px; color: var(--muted); }
.cnt { display: flex; align-items: center; gap: 12px; }
.cnt button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #d9d2c6; background: #fff; font-size: 18px; cursor: pointer; color: var(--ink); }
.cnt button:disabled { opacity: .35; cursor: default; }
.cnt span { min-width: 18px; text-align: center; font-weight: 700; font-size: 16px; }
.pop .check-line { margin-top: 12px; }

/* 달력 */
.cal-month { margin-top: 6px; }
.cal-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-wd { text-align: center; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 3px 0; }
.cal-wd:first-child { color: #c23a3a; }
.cal-wd:last-child { color: #2750b0; }
.cal-day {
  height: 46px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; font-weight: 700; font-size: 14px; user-select: none; position: relative;
}
.cal-day:hover:not(.disabled):not(.empty) { background: var(--paper2); }
.cal-day.empty { cursor: default; }
.cal-day.disabled { color: #cfc8bb; cursor: default; }
.cal-day.in-window:not(.disabled):not(.can-ci):not(.can-co) { background: #faf7f1; }
.cal-day.sun .cal-num { color: #c23a3a; }
.cal-day.sat .cal-num { color: #2750b0; }
.cal-day.disabled .cal-num { color: #cfc8bb; }
.cal-day.in-range { background: var(--paper2); border-radius: 0; }
/* 체크인 가능 = 버건디, 체크아웃 가능 = 초록 */
.cal-day.can-ci { background: var(--burg-soft); box-shadow: inset 0 0 0 1px #edc6ce; }
.cal-day.can-ci .cal-num { color: var(--burg) !important; }
.cal-day.can-co { background: var(--green-bg); box-shadow: inset 0 0 0 1px #bfe0cb; }
.cal-day.can-co .cal-num, .cal-day.can-co .cal-sub { color: var(--green) !important; }
.cal-day.can-ci:hover { background: #f1d3da !important; }
.cal-day.can-co:hover { background: #d5ecdd !important; }
.cal-day.sel-start { background: var(--burg) !important; box-shadow: none; }
.cal-day.sel-end { background: var(--green) !important; box-shadow: none; }
.phase-co .cal-day.sel-start { cursor: pointer; }
.cal-anim { animation: calIn .22s ease; }
@keyframes calIn { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* 단계 탭 (1 체크인 → 2 체크아웃) */
.cal-steps { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 8px 0 10px; }
.cs { text-align: left; border: 1.5px solid var(--line2); background: #fff; border-radius: 14px; padding: 8px 12px; cursor: pointer; font: inherit; color: var(--ink); }
.cs small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.cs small i { font-style: normal; width: 17px; height: 17px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; background: var(--chip); color: var(--muted2); }
.cs b { display: block; font-size: 14.5px; margin-top: 1px; }
.cs b.ph { color: #b9b1a4; font-weight: 600; }
.cs-ci.on { border-color: var(--burg); background: #fdf6f7; }
.cs-ci.on small, .cs-ci.on b:not(.ph) { color: var(--burg); }
.cs-ci.on small i { background: var(--burg); color: #fff; }
.cs-co.on { border-color: var(--green); background: #f5fbf7; }
.cs-co.on small, .cs-co.on b:not(.ph) { color: var(--green); }
.cs-co.on small i { background: var(--green); color: #fff; }
.cs-arrow { color: var(--muted); font-weight: 700; }
.cal-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted2); font-weight: 600; margin: -2px 0 4px; }
.cal-legend span:before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }
.cal-legend .lg-ci:before { background: var(--burg-soft); box-shadow: inset 0 0 0 1px #edc6ce; }
.cal-legend .lg-co:before { background: var(--green-bg); box-shadow: inset 0 0 0 1px #bfe0cb; }
.pop-date:not(.phase-co) .lg-co, .pop-date.phase-co .lg-ci { opacity: .45; }
.cal-day.sel-start .cal-num, .cal-day.sel-end .cal-num, .cal-day.sel-start .cal-sub, .cal-day.sel-end .cal-sub { color: #fff !important; }
.cal-sub { font-size: 9.5px; line-height: 1.1; color: var(--burg); font-weight: 700; }
.cal-sub:empty { display: none; }

/* 히어로 사진 */
.hero-photo { height: 400px; border-radius: 26px; position: relative; overflow: hidden; background: var(--paper2); }
.hp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s ease; }
.hp-img.on { opacity: 1; }
.hero-photo:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 62%, rgba(0,0,0,.45)); pointer-events: none; }
.hp-cap { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.hp-venue { position: absolute; left: 16px; top: 16px; z-index: 2; background: rgba(255,255,255,.94); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 700; }
.hp-thumbs { position: absolute; right: 14px; bottom: 14px; z-index: 2; display: flex; gap: 6px; }
.hp-thumbs button { width: 60px; height: 42px; border-radius: 9px; border: 2px solid rgba(255,255,255,.7); background: #ddd center/cover; cursor: pointer; padding: 0; opacity: .8; }
.hp-thumbs button.on { border-color: #fff; opacity: 1; box-shadow: 0 0 0 2px rgba(0,0,0,.15); }

/* ---------- 객실 ---------- */
#booking-form { padding-top: 26px; }
.edit-banner { scroll-margin-top: 80px; margin: 0 0 16px; padding: 14px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; background: #fdf1dc; color: #7c4a03; }
.edit-banner a { color: #7c4a03; margin-left: 6px; white-space: nowrap; }
.res-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px 14px; font-size: 14px; color: var(--muted2); scroll-margin-top: 80px; flex-wrap: wrap; }
.res-sum b { color: var(--ink); }
.res-sum .muted { font-size: 12.5px; }
.room-list { display: grid; gap: 16px; }
.room {
  display: grid; grid-template-columns: 280px 1fr 230px; background: #fff; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 1px 0 rgba(0,0,0,.03); transition: box-shadow .15s;
}
.room.on { box-shadow: 0 0 0 2px var(--burg); }
.room.off .r-ph, .room.off .r-mid { opacity: .55; }
.r-ph { min-height: 190px; background: var(--paper2) center/cover; position: relative; }
.r-ph.none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: repeating-linear-gradient(135deg, #f3efe7 0 8px, #ece6db 8px 16px); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.r-ph.none i { width: 40px; height: 40px; border: 1.5px solid #bdb4a5; color: #a79d8c; display: grid; place-items: center; font-style: normal; font-family: Georgia, serif; font-weight: 700; font-size: 18px; }
.r-mid { padding: 20px 26px; }
.r-mid h3 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.r-spec { font-size: 13px; color: var(--muted); margin: 3px 0 12px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags span { font-size: 12px; border: 1px solid #e6dfd3; border-radius: 999px; padding: 3px 10px; color: #5b554c; }
.tags span.g { border-color: #bfe0cb; color: var(--green); background: #f1faf4; }
.r-st { margin-top: 14px; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.r-st:before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.r-st.ok { color: var(--green); }
.r-st.lo { color: var(--amber); }
.r-st.no { color: var(--burg); }
.r-st.na { color: var(--muted); }
.nts { display: flex; gap: 3px; }
.nts i { width: 18px; height: 5px; border-radius: 3px; background: #bfe0cb; }
.nts i.l { background: #f1cf8c; }
.nts i.x { background: var(--burg); }
.r-side { padding: 20px 22px; border-left: 1px solid #f1ede6; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.r-price { font-size: 12.5px; color: var(--muted); }
.r-price b { display: block; font-size: 30px; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); }
.r-price b.sm { font-size: 22px; }

/* ---------- 버튼 · 입력 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 12px;
  padding: 13px 20px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-s { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-burg { background: var(--burg); color: #fff; }
.btn-burg:hover { background: var(--burg-d); }
.btn-light { background: var(--paper2); color: #5b554c; }
.btn-light:hover { background: #e6dfd2; }
.btn-outline { background: #fff; color: var(--burg); border: 1px solid var(--burg); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.panel { background: #fff; border-radius: var(--r); padding: 26px 28px; }
.ptitle { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.ptitle .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; display: grid; place-items: center; flex: none; }
.ptitle.plain { margin-bottom: 14px; }
.title-l { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 14px; }
.span2 { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted2); }
.fld input, .fld textarea, .fld select {
  width: 100%; border: 1px solid var(--line2); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 15.5px;
  font-weight: 600; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.fld textarea { resize: vertical; font-weight: 500; }
.fld input:focus, .fld textarea:focus { border-color: var(--burg); box-shadow: 0 0 0 3px rgba(163, 36, 60, .12); }
.fld input::placeholder, .fld textarea::placeholder { color: #bdb6aa; font-weight: 500; }
.card-in { position: relative; display: block; }
.card-in input { padding-right: 104px; letter-spacing: .04em; }
.card-in em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11.5px; font-weight: 800; background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 8px; }
.card-in em:empty { display: none; }
.warn { margin-top: 10px; background: var(--amber-bg); color: var(--amber); border-radius: 10px; padding: 9px 12px; font-size: 13px; font-weight: 600; }
.secure { margin-top: 12px; }
.card-current { background: #faf8f4; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 12px 0 4px; font-size: 14px; font-weight: 700; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; cursor: pointer; line-height: 1.55; color: var(--ink); font-weight: 500; }
.check-line input { width: 19px; height: 19px; margin-top: 2px; flex: none; accent-color: var(--burg); }
.privacy { font-size: 12.5px; color: var(--muted2); margin: 0 0 6px 29px; }
.privacy summary { cursor: pointer; }
.privacy p { margin-top: 6px; line-height: 1.7; }
.keypol { list-style: none; margin: 10px 0 12px; border-radius: 14px; background: #faf8f4; padding: 4px 16px; }
.keypol li { display: grid; grid-template-columns: 104px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.keypol li:last-child { border-bottom: none; }
.keypol b { font-weight: 700; }
.keypol b:before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--burg); margin-right: 8px; vertical-align: 2px; }
.error-msg { color: var(--burg); font-size: 13.5px; font-weight: 600; margin: 10px 0; min-height: 20px; text-align: center; white-space: pre-line; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row .btn { flex: 1; }

/* ---------- 예약 정보 입력 + 요약 ---------- */
.book { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; padding-top: 26px; scroll-margin-top: 70px; }
.book-main { display: grid; gap: 16px; }
.summary { position: sticky; top: 84px; background: #fff; border-radius: var(--r); overflow: hidden; }
.sum-ph { height: 150px; background: var(--paper2) center/cover; position: relative; }
.sum-ph span { position: absolute; left: 16px; bottom: 12px; color: #fff; font-weight: 700; font-size: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.sum-ph:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.5)); }
.sum-ph span { z-index: 1; }
.sum-b { padding: 18px 22px 22px; }
.sum-b h3 { font-size: 13px; letter-spacing: .12em; color: var(--muted); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.sr { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1ede6; font-size: 13.5px; }
.sr span { color: var(--muted2); }
.sr b { font-weight: 700; text-align: right; }
.sr a { font-size: 12px; font-weight: 600; color: var(--muted2); margin-left: 6px; }
.brk { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted2); padding: 3px 0; }
.brk:first-of-type { margin-top: 10px; }
.tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line2); }
.tot span { font-weight: 700; }
.tot b { font-size: 30px; font-weight: 300; letter-spacing: -.03em; }
.payb { background: #faf8f4; border-radius: 12px; padding: 11px 14px; font-size: 12.5px; margin: 12px 0 14px; display: grid; gap: 3px; }
.payb div { display: flex; justify-content: space-between; gap: 10px; }
.payb b { font-weight: 700; }
.payb .r b { color: var(--burg); }
.sum-n { font-size: 12px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

/* ---------- 안내 · 오시는 길 ---------- */
.info { display: grid; gap: 16px; padding-top: 30px; padding-bottom: 20px; }
.pol { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; counter-reset: pol; }
.pol li { counter-increment: pol; display: grid; grid-template-columns: 28px 112px 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid #f1ede6; font-size: 13.5px; line-height: 1.6; }
.pol li:before { content: counter(pol, decimal-leading-zero); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.pol li b { font-weight: 700; }
.pol li.imp b:after { content: '중요'; display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--burg); border-radius: 4px; padding: 0 5px; vertical-align: 1px; }
html[lang='en'] .pol li.imp b:after { content: 'Key'; }
.loc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: start; }
.map { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc-name { font-size: 18px; font-weight: 700; }
.loc-lines { list-style: none; margin-top: 12px; }
.loc-lines li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f1ede6; font-size: 13.5px; }
.loc-lines li b { font-weight: 700; }
.loc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#location { scroll-margin-top: 80px; }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; line-height: 1.9; padding: 30px 20px 50px; }
.foot b { color: var(--ink); }

/* ---------- 완료 · 조회 · 내역 · 모달 ---------- */
.done-mark { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 14px; background: var(--green-bg); color: var(--green); font-size: 30px; display: grid; place-items: center; }
.dbox { background: #faf8f4; border-radius: 16px; padding: 18px 20px; margin-top: 16px; }
.dbox .ref { font-size: 24px; font-weight: 700; letter-spacing: .04em; text-align: center; margin-bottom: 4px; }
.dbox dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; margin-top: 10px; }
.dbox dt { color: var(--muted2); }
.dbox dd { font-weight: 600; text-align: right; }
.dbox .before { margin-top: 12px; font-size: 12.5px; color: var(--muted2); background: #fff; border-radius: 10px; padding: 8px 12px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { background: var(--green-bg); color: var(--green); }
.badge.amber { background: var(--amber-bg); color: var(--amber); }
.badge.off { background: var(--burg-soft); color: var(--burg); }
.next { margin-top: 16px; font-size: 13.5px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.next ol { margin: 8px 0 0 18px; line-height: 1.8; color: var(--muted2); }
.stack { display: grid; gap: 14px; margin-top: 18px; }
.modal-back { position: fixed; inset: 0; background: rgba(42, 39, 36, .5); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 24px; padding: 24px 26px; width: 100%; max-width: 520px; }
.modal-h { font-size: 20px; margin-bottom: 4px; }
.modal .muted.small { margin-top: 12px; }

/* ---------- 알림 · 오류 표시 ---------- */
.fld input.invalid, .check-line input.invalid { border-color: var(--burg); box-shadow: 0 0 0 3px rgba(163, 36, 60, .15); outline: 2px solid transparent; }
.check-line input.invalid { outline: 2px solid var(--burg); outline-offset: 2px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 80; max-width: calc(100% - 32px);
  background: var(--burg); color: #fff; font-size: 14px; font-weight: 600; border-radius: 12px; padding: 12px 18px;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 모바일 하단 바 ---------- */
.mbar { display: none; }

/* ---------- 반응형 ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .hero-r { order: -1; }
  .hero-photo { height: 300px; }
  .room { grid-template-columns: 220px 1fr; }
  .r-side { grid-column: 1 / -1; border-left: none; border-top: 1px solid #f1ede6; flex-direction: row; align-items: center; }
  .book { grid-template-columns: 1fr; }
  .summary { position: static; }
  .pol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap, .page { padding-left: 16px; padding-right: 16px; }
  .nav-in { padding: 12px 16px; }
  .logo span { font-size: 10.5px; letter-spacing: .22em; }
  .logo i { width: 26px; height: 26px; font-size: 13px; }
  .nav-link .lbl-full { display: none; }
  .nav-link .lbl-short { display: inline; }
  .lang button { padding: 5px 10px; font-size: 12px; }
  .hero { padding: 10px 16px 0; }
  .hero-photo { height: 230px; border-radius: 20px; }
  .hp-thumbs button { width: 46px; height: 32px; }
  .headline { font-size: 30px; margin: 8px 0 10px; }
  .hero-sub { font-size: 13.5px; margin-bottom: 16px; }
  .search { flex-direction: column; border-radius: 22px; padding: 6px 14px 14px; }
  .sf { border-right: none; border-bottom: 1px solid var(--line); border-radius: 0 !important; padding: 12px 4px; display: flex; justify-content: space-between; align-items: center; }
  .sf-l { font-size: 13px; }
  .sf-v { font-size: 15px; }
  .go { padding: 14px; margin-top: 10px; border-radius: 14px; }
  body.pop-open:before { content: ''; position: fixed; inset: 0; background: rgba(42, 39, 36, .45); z-index: 65; }
  body.has-mbar .toast { bottom: 96px; }
  .pop, .pop-guest { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; border-radius: 22px 22px 0 0; max-height: 86vh; overflow-y: auto; padding-bottom: 26px; z-index: 70; }
  .room { grid-template-columns: 1fr; }
  .r-ph { min-height: 170px; }
  .r-mid { padding: 16px 18px 6px; }
  .r-side { padding: 12px 18px 18px; }
  .r-price b { font-size: 24px; }
  .panel { padding: 20px 18px; border-radius: 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .keypol li { grid-template-columns: 1fr; gap: 2px; }
  .pol li { grid-template-columns: 24px 1fr; }
  .pol li span { grid-column: 2; }
  .loc { grid-template-columns: 1fr; }
  .loc-lines li { grid-template-columns: 1fr; gap: 0; }
  .btn-row { flex-direction: column; }
  body.has-mbar { padding-bottom: 86px; }
  .mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--ink); color: #fff;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); justify-content: space-between; align-items: center; gap: 12px;
  }
  .mbar.hidden { display: none !important; }
  .mbar-t { font-size: 12px; color: #cfc8bc; line-height: 1.35; min-width: 0; }
  .mbar-t b { display: block; font-size: 19px; color: #fff; font-weight: 700; }
  .mbar .btn { padding: 12px 16px; flex: none; }
}
@media (max-width: 420px) {
  .logo span { white-space: normal; line-height: 1.25; letter-spacing: .2em; font-size: 9.5px; max-width: 96px; }
}

/* 조식 추가 인원 선택 (예약 폼 첫 패널) */
.bf-seg { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 10px; }
.bf-seg button { flex: 1 1 0; min-width: 110px; border: 1.5px solid var(--line2); background: #fff; border-radius: 14px; padding: 12px 14px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 800; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bf-seg button small { font-size: 12px; font-weight: 700; color: var(--muted2); }
.bf-seg button:hover { border-color: var(--ink); }
.bf-seg button.on { border-color: var(--burg); background: #fdf6f7; color: var(--burg); }
.bf-seg button.on small { color: var(--burg); }
