@font-face { font-family: "SungSans"; src: url("/static/fonts/SungSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SungSans"; src: url("/static/fonts/SungSans-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f4f3f0;
  --surface: #ffffff;
  --ink: #1c1c20;
  --ink-2: #44444b;
  --muted: #74747c;
  --line: #e7e5e0;
  --line-2: #d9d6cf;
  --primary: #155e57;
  --primary-ink: #ffffff;
  --primary-soft: #e6f0ee;
  --warn: #b45309;
  --warn-soft: #fff6e5;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --sun: #c2410c;
  --sat: #2754c5;
  --r: 10px;
  --r-sm: 8px;
  --shadow: 0 1px 3px rgba(20, 20, 30, .06);
  /* everything below has a demo default; a theme file (public/css/theme-<name>.css) overrides only variables */
  --surface-2: #f7f6f3;
  --chip-bg: #efeeea;
  --primary-press: #0f4a44;
  --primary-disabled: #a8bdb9;
  --focus: rgba(21, 94, 87, .14);
  --topbar: #ffffff;
  --admin-top: #1f2326;
  --admin-top-ink: #ffffff;
  --strip: #2b2b31;
  --stay-bg: #e8ecfb; --stay-ink: #2a47a8;
  --day-bg: #fdf0e4; --day-ink: #a24a08;
  --font: "SungSans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --font-display: var(--font);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font);
  font-size: 15px; line-height: 1.5; word-break: keep-all;
}
body.noscroll { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
em { font-style: normal; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn.primary { background: var(--primary); color: var(--primary-ink); }
.btn.primary:active { background: var(--primary-press); }
.btn.primary:disabled { background: var(--primary-disabled); cursor: default; }
.btn.ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:active { background: var(--chip-bg); }
.btn.disabled { background: #ecebe7; color: #9a9aa0; cursor: default; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 52px; font-size: 16px; }
.btn.block { display: flex; width: 100%; }
.icon-btn { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; }

/* ------------------------------------------------------------ guest layout */
.strip { background: var(--strip); color: #f3f1ea; font-size: 12px; text-align: center; padding: 6px 12px; }
.guest { max-width: 520px; margin: 0 auto; background: var(--surface); min-height: 100vh; }
@media (min-width: 560px) { html { background: var(--bg); } .guest { box-shadow: 0 0 0 1px var(--line); } }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 8px 0 16px; background: var(--topbar); border-bottom: 1px solid var(--line);
}
.topbar .brand { font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -0.2px; }
.topbar .title { font-weight: 700; font-size: 16px; }
.has-bar .topbar, .done ~ .topbar { padding-left: 8px; }
.wrap { padding: 0 0 32px; }
.wrap.narrow { padding: 12px 16px 120px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); min-height: calc(100vh - 86px); }

.hero { aspect-ratio: 16 / 9; overflow: hidden; background: #2e3450; }
.room-art { display: block; width: 100%; height: 100%; }
.intro { padding: 18px 16px 6px; }
.intro h1 { font-size: 24px; letter-spacing: -0.3px; }
.tags { margin: 4px 0 14px; color: var(--ink-2); font-size: 14px; }
.addr { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r); }
.addr-line { font-size: 14px; }

.search {
  position: sticky; top: 56px; z-index: 15; background: var(--surface); padding: 12px 16px; display: flex; flex-direction: column; gap: 10px;
  border-bottom: 1px solid var(--line); margin-top: 14px;
}
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--chip-bg); border-radius: var(--r-sm); padding: 3px; }
.seg button { height: 40px; border: 0; background: none; border-radius: 6px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.date-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); background: var(--surface); cursor: pointer; text-align: left; font-weight: 700; font-size: 15px;
}
.date-btn svg { color: var(--primary); flex: none; }
.date-btn span:first-of-type { flex: 1; }
.date-btn .chev { font-size: 13px; color: var(--primary); font-weight: 700; }
.slots-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface);
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
}
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }

.rooms { padding: 18px 16px 4px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2, .guide h2 { font-size: 18px; }
.room-list { display: flex; flex-direction: column; gap: 14px; transition: opacity .15s ease; }
.room-list.loading { opacity: .5; }
.room { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.room-img { aspect-ratio: 16 / 8; overflow: hidden; }
.room.soldout .room-img { filter: grayscale(.7); opacity: .75; }
.room-body { padding: 14px; }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.room-top h3 { font-size: 18px; }
.left { font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.left.low { color: var(--warn); background: var(--warn-soft); }
.left.none { color: var(--muted); background: var(--chip-bg); }
.room-sum { margin: 6px 0 2px; color: var(--ink-2); font-size: 14px; }
.room-meta { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.amen { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; list-style: none; }
.amen li { font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; }
.room-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.price { display: flex; flex-direction: column; }
.price strong { font-size: 20px; letter-spacing: -0.3px; }

.guide { margin: 18px 16px 0; padding: 16px; background: var(--surface-2); border-radius: var(--r); }
.guide dl { display: grid; grid-template-columns: 72px 1fr; gap: 8px 10px; margin: 12px 0 0; font-size: 14px; }
.guide dt { color: var(--muted); }
.guide dd { margin: 0; }
.foot { padding: 24px 16px 40px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.admin-link { font-weight: 700; color: var(--primary); text-decoration: none; }

/* ------------------------------------------------------------ calendar sheet */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(15, 15, 20, .45); }
.sheet-panel {
  position: relative; width: 100%; max-width: 520px; max-height: 90vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 12px 12px 0 0; overflow: hidden;
}
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 12px 8px 16px; }
.sheet-head h3 { font-size: 18px; }
.sheet-head p { margin: 2px 0 0; }
.dow { display: grid; grid-template-columns: repeat(7, 1fr); padding: 6px 10px; font-size: 12px; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.dow span:first-child { color: var(--sun); }
.dow span:last-child { color: var(--sat); }
.cal-body { overflow-y: auto; padding: 0 10px 8px; flex: 1; }
.month-title { font-weight: 700; padding: 14px 4px 6px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cell {
  position: relative; height: 58px; border: 0; background: none; padding: 5px 0 0; display: flex; flex-direction: column; align-items: center;
  gap: 1px; cursor: pointer; border-radius: 0;
}
.cell b { font-size: 15px; font-weight: 700; width: 30px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.cell i { font-style: normal; font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.cell i.cnt { color: var(--primary); }
.cell i.cnt.low { color: var(--warn); }
.cell i.full { color: var(--danger); }
.cell.sun b { color: var(--sun); }
.cell.sat b { color: var(--sat); }
.cell.off { cursor: default; }
.cell.off b { color: #c8c6c0; }
.cell.empty { cursor: default; }
.cell.today b { text-decoration: underline; text-underline-offset: 3px; }
.cell.mid { background: var(--primary-soft); }
.cell.start, .cell.end { background: var(--primary-soft); }
.cell.start { border-radius: 8px 0 0 8px; }
.cell.end { border-radius: 0 8px 8px 0; }
.cell.start:not(.mid):last-child, .cell.start + .cell:not(.mid):not(.end) { }
.cell.start b, .cell.end b { background: var(--primary); color: var(--primary-ink); }
.cell.start i, .cell.end i { color: var(--primary); font-weight: 700; }
.sheet-foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cal-left { display: flex; flex-wrap: wrap; gap: 4px 12px; min-height: 18px; }
.cal-left .lbl { color: var(--muted); }
.cal-left span:not(.lbl) { font-weight: 700; color: var(--primary); }
.cal-left span.z { color: var(--danger); }

/* ------------------------------------------------------------ booking / pay / done */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.soft { background: var(--surface-2); }
.card.center { text-align: center; display: flex; flex-direction: column; gap: 10px; }
.card-title { font-size: 15px; margin-bottom: 12px; }
.summary { display: flex; gap: 12px; padding: 12px; align-items: center; }
.sum-img { width: 96px; height: 64px; border-radius: var(--r-sm); overflow: hidden; flex: none; }
.sum-title { display: flex; align-items: center; gap: 6px; }
.sum-title h2 { font-size: 18px; }
.kind { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.kind.stay { background: var(--stay-bg); color: var(--stay-ink); }
.kind.day { background: var(--day-bg); color: var(--day-ink); }
.sched { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.sched > div:not(.sched-mid) { display: flex; flex-direction: column; }
.sched > div:last-child { text-align: right; }
.sched strong { font-size: 16px; }
.sched-mid { font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 6px; }
.avail { margin: 12px 0 0; font-size: 13px; font-weight: 700; color: var(--primary); }
.avail.low { color: var(--warn); }
.avail.none { color: var(--danger); }
.lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.lines li { display: flex; justify-content: space-between; gap: 12px; }
.lines li > span:first-child { color: var(--muted); flex: none; }
.lines li > span:last-child { text-align: right; }
.lines .total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; align-items: baseline; }
.lines .total span { color: var(--ink) !important; font-weight: 700; }
.lines .total strong { font-size: 19px; }
.wk { font-size: 11px; color: var(--sun); border: 1px solid #f3c7b0; padding: 0 5px; border-radius: 5px; margin-left: 2px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; }
.field small { font-size: 12px; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  font: inherit; font-size: 16px; width: 100%; padding: 0 12px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); outline: none; transition: border-color .15s ease;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--focus); }
.small-seg label { position: relative; display: flex; }
.small-seg input { position: absolute; opacity: 0; pointer-events: none; }
.small-seg b { flex: 1; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: var(--muted); cursor: pointer; }
.small-seg input:checked + b { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.agree input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.err { margin: 0; color: var(--danger); background: var(--danger-soft); padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; }

.bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
}
.bar-price { display: flex; flex-direction: column; }
.bar-price strong { font-size: 19px; }
.bar .btn { flex: 0 0 52%; }

.hold { display: flex; align-items: center; background: var(--warn-soft); border-color: #f4dfb8; }
.hold strong { font-size: 15px; }
.hold #timer { color: var(--warn); font-variant-numeric: tabular-nums; }
.methods { display: flex; flex-direction: column; gap: 8px; }
.method { position: relative; display: flex; cursor: pointer; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.m-body {
  flex: 1; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px 10px 42px; border: 1px solid var(--line-2);
  border-radius: var(--r-sm); position: relative; transition: border-color .15s ease, background-color .15s ease;
}
.m-body::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  border: 2px solid var(--line-2); background: #fff;
}
.method input:checked + .m-body { border-color: var(--primary); background: var(--primary-soft); }
.method input:checked + .m-body::before { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 0 4px, #fff 5px); }
.method input:focus-visible + .m-body { box-shadow: 0 0 0 3px rgba(21, 94, 87, .2); }
.m-body small { margin-left: auto; font-size: 12px; text-align: right; }
.method-group { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px; background: var(--surface-2); }
.mg-title { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; }
.mg-title small { font-size: 12px; }
.mg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.method.sub .m-body { padding-left: 38px; min-height: 48px; background: #fff; gap: 6px; }
.method.sub .m-body::before { left: 12px; }
.method.sub b { font-size: 14px; }
.pay-mark { display: inline-flex; align-items: center; justify-content: center; height: 20px; min-width: 20px; padding: 0 4px; border-radius: 5px; font-size: 11px; font-weight: 700; }
.pay-mark.kakao { background: #ffe94a; color: #1c1c1c; }
.pay-mark.naver { background: #1fb15a; color: #fff; }
.notice { margin-top: 14px; padding: 12px 14px; background: var(--warn-soft); border: 1px solid #f4dfb8; border-radius: var(--r-sm); font-size: 13px; }
.notice b { color: var(--warn); }
.notice p { margin: 4px 0 0; color: var(--ink-2); }

.sheet-panel.pg { padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); gap: 14px; }
.pg-head { display: flex; align-items: center; gap: 8px; }
.pg-badge { font-weight: 700; font-size: 13px; color: var(--warn); background: var(--warn-soft); border: 1px solid #f4dfb8; padding: 3px 8px; border-radius: 6px; }
.pg-body { text-align: center; padding: 8px 0; }
.pg-method { font-weight: 700; color: var(--ink-2); }
.pg-amount { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; margin: 4px 0; }
.pg-note { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; margin: 12px 0 0; text-align: left; }
.pg-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; }
.pg-actions .btn { height: 52px; }
.pg-wait { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; font-weight: 700; color: var(--primary); }
.spin { width: 18px; height: 18px; border: 2px solid var(--primary-soft); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.done { text-align: center; padding: 20px 0 6px; }
.done .check { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: flex; align-items: center; justify-content: center; }
.done h1 { font-size: 22px; }
.done p { margin: 6px 0 12px; }
.done .code { display: inline-block; background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: var(--r-sm); font-size: 14px; }
.done .code b { letter-spacing: 1px; margin-left: 4px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.msg { margin-top: 40px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); width: max-content;
  background: #26262c; color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-size: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}

/* ------------------------------------------------------------ admin */
body.admin { background: var(--bg); min-height: 100vh; }
.a-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 56px; padding: 0 12px 0 16px; background: var(--admin-top); color: var(--admin-top-ink); }
.a-brand b { font-size: 16px; }
.a-brand span { margin-left: 8px; font-size: 12px; color: #b9c0c4; border: 1px solid #4b5357; border-radius: 5px; padding: 1px 6px; }
.a-actions { display: flex; gap: 6px; }
.a-actions form { margin: 0; }
.a-top .btn.ghost { background: transparent; color: #e6e9eb; border-color: #4b5357; }
.a-nav { display: flex; gap: 2px; overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--line); padding: 0 8px; position: sticky; top: 0; z-index: 10; scrollbar-width: none; }
.a-nav a { flex: none; padding: 14px 12px 12px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; font-size: 15px; }
.a-nav a.on { color: var(--ink); border-bottom-color: var(--primary); }
.count { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; background: var(--danger); color: #fff; border-radius: 10px; font-size: 12px; }
.a-sample { max-width: 760px; margin: 12px auto 0; padding: 0 16px; font-size: 12.5px; color: var(--muted); }
.a-wrap { max-width: 760px; margin: 0 auto; padding: 12px 16px 48px; display: flex; flex-direction: column; gap: 12px; }
.a-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.a-lead { margin: 0; font-size: 14px; color: var(--ink-2); }
.a-h3 { font-size: 15px; margin: 8px 0 0; }
.a-h3.first { margin-top: 0; }
.flash { background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: var(--r-sm); }
.flash a { color: var(--primary); }
.alert-new { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--warn-soft); border: 1px solid #f4dfb8; padding: 12px 14px; border-radius: var(--r); }
.alert-new[hidden] { display: none; }
.alert-new b { color: var(--warn); }
.sms { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sms p { margin: 2px 0 0; }
.switch { position: relative; flex: none; width: 48px; height: 28px; display: inline-block; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #cfcdc7; border-radius: 14px; transition: background-color .15s ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s ease; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { left: 23px; }
.switch-l { display: flex; align-items: center; gap: 8px; }
.today-line { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; font-size: 14px; }
.today-line b { font-size: 15px; }
.tonight { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; align-items: baseline; }
.tn b { color: var(--primary); }
.tn.z b { color: var(--danger); }
.filters { display: flex; gap: 6px; overflow-x: auto; align-items: center; scrollbar-width: none; }
.filters form { margin: 0; }
.ml-auto { margin-left: auto !important; }
.empty { text-align: center; padding: 24px 0; }
.blist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bk { display: flex; gap: 10px; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.bk.new { background: #fffaf0; border-color: #f0cf91; box-shadow: inset 3px 0 0 #e09a1a; }
.bk.cancelled { opacity: .62; }
.bk-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bk-l1 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bk-amt { margin-left: auto; font-weight: 700; }
.bk-l2 { font-size: 14px; }
.bk-l3 { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13px; }
.bk-l3 a { color: var(--primary); text-decoration: none; }
.bk-memo { font-size: 13px; color: var(--ink-2); background: var(--surface-2); padding: 4px 8px; border-radius: 6px; margin-top: 2px; }
.bk-act { display: flex; flex-direction: column; gap: 6px; flex: none; }
.bk-act form { margin: 0; }
.bk-act .btn { width: 56px; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.badge.new { background: #e09a1a; color: #fff; }
.badge.cancel { background: #ecebe7; color: var(--muted); }
.badge.wait { background: #e8ecfb; color: #2a47a8; }
.room-edit { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 60px; }
.room-edit.saved { border-color: #9cc4bd; }
.re-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.re-head b { font-size: 17px; margin-right: 8px; }
.re-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 640px) { .room-edit .re-grid { grid-template-columns: repeat(3, 1fr); } }
.stepper { display: grid; grid-template-columns: 44px 1fr 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.stepper button { border: 0; background: var(--chip-bg); font-size: 20px; font-weight: 700; cursor: pointer; height: 44px; }
.stepper input { border: 0 !important; border-radius: 0 !important; text-align: center; height: 44px !important; font-weight: 700; box-shadow: none !important; }
.money { position: relative; }
.money input:not([type=checkbox]) { padding-right: 36px; text-align: right; font-weight: 700; }
.money em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.blocks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.blk { display: flex; justify-content: space-between; align-items: center; }
.blk > div { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.blk form { margin: 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-between p { margin: 2px 0 0; }
.danger { display: flex; flex-direction: column; gap: 8px; }
.danger p { margin: 0; }
.danger form { margin: 0; }

.login-page { display: flex; justify-content: center; }
.login { width: 100%; max-width: 400px; padding: 48px 20px; display: flex; flex-direction: column; gap: 16px; }
.login-brand { text-align: center; }
.login-brand b { font-size: 22px; display: block; }
.login-brand span { color: var(--muted); font-size: 14px; }
.demo-cred { background: var(--warn-soft); border: 1px solid #f4dfb8; border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.dc-title { font-weight: 700; color: var(--warn); font-size: 14px; }
.dc-row { display: flex; justify-content: space-between; font-size: 14px; }
.dc-row code { font-family: inherit; font-weight: 700; font-size: 15px; }
.demo-cred .btn { margin-top: 4px; }
.login .form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; }
.login .back { text-align: center; }

/* ============================================================ live site (body.lv): photo-led, full width on desktop */
.guest.lv { max-width: none; background: var(--bg); box-shadow: none; }
.lv .topbar { padding: 0 8px 0 12px; gap: 6px; }
.lv-brand { display: flex; align-items: center; gap: 8px; min-width: 0; text-decoration: none; flex: 1; }
.lv-mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--primary); color: var(--primary-ink); font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .5px;
}
.lv-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-ptitle { display: none; }
.lv-acts { display: flex; gap: 2px; }
.lv-show-lg { display: none; }
.lv-narrow { max-width: 560px; margin: 0 auto; }

/* hero gallery: swipe on phones, grid on desktop */
.lv-gallery { position: relative; background: var(--ink); }
.lv-gal-track, .lv-car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.lv-gal-track::-webkit-scrollbar, .lv-car-track::-webkit-scrollbar { display: none; }
.lv-gal-item, .lv-car-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 4 / 3; overflow: hidden; }
.lv-gal-item img, .lv-car-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-gal-count {
  position: absolute; right: 12px; bottom: 12px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55);
  padding: 4px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; pointer-events: none;
}
.lv-gal-all { display: none; }

.lv-layout { display: flex; flex-direction: column; }
.lv-intro { padding: 18px 16px 8px; background: var(--surface); }
.lv-intro h1, .lv-rinfo h1 { font-family: var(--font-display); font-size: 25px; letter-spacing: -0.3px; }
.lv-tag { margin: 6px 0 14px; color: var(--ink-2); font-size: 14.5px; }
.lv-addr { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r); flex-wrap: wrap; }
.lv-addr-line { font-size: 14px; }
.lv-tel { font-size: 14px; font-weight: 700; color: var(--primary); text-decoration: none; }
.lv-map-btns { display: flex; gap: 6px; }

.lv-search { margin-top: 0; }
.lv-rooms { background: var(--surface); padding-bottom: 18px; }
.lv-card { display: flex; flex-direction: column; box-shadow: var(--shadow); }
.lv-cover { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface-2); }
.lv-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.lv-card:hover .lv-cover img { transform: scale(1.03); }
.lv-pcount { position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .5); padding: 3px 8px; border-radius: 999px; }
.lv-card h3 a { text-decoration: none; }
.lv-room-btns { display: flex; gap: 6px; }
.lv-room-btns .btn { padding: 0 14px; }
.lv-hidden-note { margin: 4px 2px 0; }

.lv-info { padding: 8px 16px 8px; display: flex; flex-direction: column; gap: 12px; }
.lv-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.lv-block h2 { font-size: 17px; margin-bottom: 10px; }
.lv-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
.lv-dl { display: grid; grid-template-columns: 52px 1fr; gap: 10px; margin: 0; font-size: 14px; }
.lv-dl dt { color: var(--muted); font-weight: 700; }
.lv-dl dd { margin: 0; }

.lv-foot { margin-top: 24px; background: var(--admin-top); color: var(--admin-top-ink); }
.lv-foot-in { max-width: 1180px; margin: 0 auto; padding: 26px 16px calc(30px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.lv-foot-brand { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.lv-biz { list-style: none; margin: 0; padding: 0; font-size: 12.5px; line-height: 1.7; opacity: .78; }
.lv-biz a { color: inherit; }
.lv-foot-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lv-foot .btn.ghost { background: transparent; color: inherit; border-color: rgba(255, 255, 255, .3); }
.lv-foot .muted { color: inherit; opacity: .6; }
.lv-ios { padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); gap: 10px; }
.lv-ios ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

.lv-viewer { position: fixed; inset: 0; z-index: 60; background: rgba(12, 10, 9, .94); overflow-y: auto; padding: 56px 8px 24px; }
.lv-viewer[hidden] { display: none; }
.lv-viewer-x { position: fixed; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; z-index: 1; }
.lv-viewer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.lv-viewer-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; cursor: zoom-in; display: block; }

/* room detail */
.lv-car { position: relative; background: var(--ink); }
.lv-car-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .85); color: var(--ink); display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow);
}
.lv-car-btn.prev { left: 12px; }
.lv-car-btn.next { right: 12px; }
.lv-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: var(--surface); scrollbar-width: none; }
.lv-thumbs::-webkit-scrollbar { display: none; }
.lv-thumbs button { flex: none; width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; opacity: .6; transition: opacity .15s ease, border-color .15s ease; }
.lv-thumbs button.on { border-color: var(--primary); opacity: 1; }
.lv-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-rinfo { padding: 18px 16px; background: var(--surface); }
.lv-rinfo .lv-tag { margin-bottom: 4px; }
.lv-desc { margin: 12px 0 4px; font-size: 14.5px; color: var(--ink-2); }
.lv-desc p { margin: 0 0 6px; }
.lv-h2 { font-size: 16px; margin: 18px 0 10px; }
.lv-amen li { font-size: 13px; padding: 4px 9px; }
.lv-rates { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 8px; }
.lv-rates th, .lv-rates td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.lv-rates th { color: var(--muted); width: 38%; }
.lv-rates td:last-child { text-align: right; font-weight: 700; }
.lv-rates tr.sub td { color: var(--muted); font-weight: 400; font-size: 12.5px; text-align: left; padding: 6px 0 12px; }
.lv-book-panel { position: static; border-top: 1px solid var(--line); }
.lv-one-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.lv-one-card .room-foot { border-top: 0; padding-top: 0; }
.lv-one-card .btn { min-width: 46%; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.lv-jump { position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 25; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: opacity .2s ease, transform .2s ease; }
.lv-jump.gone { opacity: 0; transform: translateY(20px); pointer-events: none; }
.lv-book-panel .lv-h2 { margin-top: 0; }
.lv-search { scroll-margin-top: 64px; }

/* booking / pay / done */
.sum-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv-terms { font-size: 13px; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; }
.lv-terms summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.lv-terms b { display: block; margin-top: 10px; }
.lv-terms p { margin: 4px 0 0; }
.lv-testpay { font-size: 13px; line-height: 1.5; background: var(--warn-soft); border: 1px solid var(--warn); color: var(--ink); border-radius: var(--r-sm); padding: 10px 12px; }
.lv-testpay b { color: var(--warn); margin-right: 4px; }
.lv-paybox { padding: 16px 8px; }
.lv-paybox .card-title { padding: 0 8px; }
.lv-paybox #payLoading { padding: 0 8px; }
.lv-receipt { margin-top: 12px; }

/* admin additions */
.a-testpay { max-width: 760px; margin: 12px auto 0; padding: 10px 14px; font-size: 13px; background: var(--warn-soft); border: 1px solid var(--warn); border-radius: var(--r-sm); }
.a-testpay b { color: var(--warn); margin-right: 4px; }
.a-testpay a { color: var(--primary); font-weight: 700; }
.a-float { max-width: 760px; margin: 12px auto 0; position: sticky; top: 52px; z-index: 12; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.a-top .btn.ghost.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.badge.test { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); }
.re-switches { display: flex; gap: 18px; flex-wrap: wrap; }
.re-sub { margin: 4px 0 -4px; font-size: 14px; color: var(--muted); }
.kv { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; }
.kv > div > span { color: var(--muted); flex: none; }
.kv code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; text-align: right; }
.kv .warn { color: var(--warn); }
.kv .okc { color: var(--primary); }
.a-h3 em { font-weight: 400; }

@media (max-width: 420px) {
  .lv-hide-sm { display: none; }
  .a-top .a-brand span { display: none; }
  .a-top .btn.sm { padding: 0 9px; }
}

/* desktop: hero grid, content + sticky booking panel */
@media (min-width: 960px) {
  .lv .topbar { height: 64px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); }
  .lv-name { font-size: 19px; }
  .lv-ptitle { display: block; margin-right: auto; color: var(--muted); font-weight: 400; }
  .lv-show-lg { display: block; }
  .lv-gallery { max-width: 1180px; margin: 20px auto 0; background: none; border-radius: 14px; overflow: hidden; }
  .lv-gal-track { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 6px; overflow: hidden; scroll-snap-type: none; }
  .lv-gal-item { aspect-ratio: auto; }
  .lv-gal-item.first { grid-row: span 2; }
  .lv-gal-item:nth-child(n+6) { display: none; }
  .lv-gal-count { display: none; }
  .lv-gal-all { display: inline-flex; position: absolute; right: 14px; bottom: 14px; height: 38px; padding: 0 14px; align-items: center; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .94); color: var(--ink); font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
  .lv-layout {
    max-width: 1180px; margin: 0 auto; padding: 24px 24px 0; display: grid; gap: 20px 32px; align-items: start;
    grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "intro search" "rooms search" "info search";
  }
  .lv-intro { grid-area: intro; padding: 0; background: none; }
  .lv-intro h1, .lv-rinfo h1 { font-size: 32px; }
  .lv-search { grid-area: search; position: sticky; top: 84px; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .06); }
  .lv-search-note { margin: 4px 0 0; line-height: 1.6; }
  .lv-rooms { grid-area: rooms; padding: 0; background: none; }
  .lv-room-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .lv-card { flex-direction: column; }
  .lv-info { grid-area: info; padding: 0 0 8px; display: grid; grid-template-columns: 1fr 1fr; }
  .lv-info .lv-block:first-child { grid-column: 1 / -1; }
  .lv-foot-in { padding-left: 24px; padding-right: 24px; flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
  .lv-foot-brand { width: 100%; }

  .lv-room .lv-car { max-width: 1180px; margin: 20px auto 0; border-radius: 14px; overflow: hidden; }
  .lv-car-track figure { aspect-ratio: 16 / 8; }
  .lv-car-btn { display: inline-flex; }
  .lv-thumbs { max-width: 1180px; margin: 0 auto; background: none; padding: 10px 0; }
  .lv-thumbs button { width: 84px; height: 60px; }
  .lv-room-layout { grid-template-areas: "rinfo search"; padding-top: 12px; }
  .lv-rinfo { grid-area: rinfo; padding: 0; background: none; }
  .lv-book-panel { border-top: 1px solid var(--line); }
  .lv-one-card .room-foot { flex-direction: column; align-items: stretch; }
  .lv-one-card .btn { width: 100%; }
  .lv-jump { display: none; }

  .lv-narrow { padding-top: 24px; }
  .lv .bar { max-width: 560px; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; }
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 14px; max-height: 86vh; }
}
@media (min-width: 1240px) {
  .lv-room-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
