/* Off Season Stay — 브랜드 CI 안 A 「낮은 해」 적용 (2026-11-09). 값의 원본은 brand/tokens.css
   ★ --warm(#c4683f) 은 바탕 대비 3.5:1 → 로고·장식·큰 글자만. 작은 글자·흰 글자 바탕은 --warm-ink(5.5:1) */
:root {
  --bg: #f6f1ea; --paper: #fffdf9; --night: #12292b; --ink: #1d2a2f; --muted: #5c6870; --line: #e4dccf;
  --accent: #1f5c5a; --accent-hover: #174745; --accent-soft: #dfeae6; --on-accent: #fff;
  --warm: #c4683f; --warm-ink: #9a4a27; --warm-soft: #f0a974; --warn-bg: #fbe9df;
  --radius: 14px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(29,42,47,.06), 0 8px 24px rgba(29,42,47,.06);
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", "AppleMyungjo", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  --tagline: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --script: "Italianno", "Snell Roundhand", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--sans); word-break: keep-all; -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); }
h3 { font-size: 1.12rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 머리·바닥 */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 40px); background: rgba(246,241,234,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 12px; line-height: 1; }
.brand-logo { height: 32px; width: auto; min-width: 140px; }
.brand-sub { font: italic 500 1.05rem/1 var(--tagline); color: var(--muted); letter-spacing: .01em; }
@media (max-width: 640px) { .brand-sub { display: none; } .brand-logo { height: 28px; } }
.top-nav a { margin-left: 18px; text-decoration: none; color: var(--ink); font-weight: 600; }
.foot { padding: 48px 20px 64px; text-align: center; color: #c9d3d1; font-size: .88rem; background: var(--night); margin-top: 72px; }
.foot p { margin: 4px 0; }
.foot a { color: #fff; }
.foot-logo { height: 35px; width: auto; margin: 0 auto 6px; }
.foot-tag { font: italic 500 1.1rem/1.2 var(--tagline); color: var(--warm-soft); margin-bottom: 14px !important; }
.foot-by { margin-top: 18px !important; }
.foot-by a { text-decoration: none; color: #c9d3d1; }
.iai-script { font: 400 1.7rem/1 var(--script); color: #fff; vertical-align: -4px; }

main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(36px, 6vw, 64px) 0 0; }
.section.narrow { max-width: 680px; margin: 0 auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.loading, .empty { padding: 60px 0; text-align: center; color: var(--muted); }
.note { color: var(--muted); font-size: .86rem; margin: .4em 0; }
.lead { font-size: 1.08rem; color: #3b4950; max-width: 40em; }
.eyebrow { color: var(--warm-ink); font-weight: 700; letter-spacing: .08em; font-size: .85rem; margin: 0 0 .6em; }
.pre { white-space: pre-line; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.wide { width: 100%; }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; padding: 4px; }
.link.danger { color: #b33a2b; }
.btn:focus-visible, .chip-btn:focus-visible, .card:focus-visible, .link:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }

/* 첫 화면 */
.hero { padding: clamp(48px, 10vw, 110px) 0 clamp(24px, 4vw, 40px); }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); }

/* 필터·칩 */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 20px; }
.chip-btn { border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .92rem; cursor: pointer; min-height: 40px; }
.chip-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 10px 0 0; }
.chips li { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: #efe8dd; color: #4b5960; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.badge-few { background: var(--warn-bg); color: var(--warm-ink); }
.badge-out { background: #eceae6; color: var(--muted); }

/* 카드 */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(29,42,47,.08); }
.card-out { opacity: .72; }
.card-photo { aspect-ratio: 4/3; background: #e8e0d4; display: grid; place-items: center; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { color: var(--muted); font-size: .85rem; }
.no-photo.big { aspect-ratio: 16/9; display: grid; place-items: center; background: #e8e0d4; border-radius: var(--radius); }
.card-body { padding: 16px 18px 20px; }
.card-area { margin: 0 0 2px; font-size: .82rem; color: var(--warm-ink); font-weight: 700; }
.card-price { margin: 6px 0 10px; }
.card-price strong { font-size: 1.25rem; font-family: var(--serif); }
.card-price span { color: var(--muted); font-size: .88rem; }

/* 비교표 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .93rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--serif); font-size: .95rem; }
.compare tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.compare .ours { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* 결제 단계 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps strong { font-family: var(--serif); font-size: 1.08rem; display: block; }
.steps p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px; }
.cta { text-align: center; }
.cta p { color: var(--muted); }

/* 상세 */
.detail { padding-top: 20px; }
.back { display: inline-block; margin-bottom: 14px; text-decoration: none; }
.gallery-main { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }
.thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.thumb { border: 0; padding: 0; background: none; cursor: pointer; flex: 0 0 92px; }
.thumb img { width: 92px; height: 66px; object-fit: cover; border-radius: 8px; }
.video-file { width: 100%; margin-top: 10px; border-radius: var(--radius); }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 28px; align-items: start; }
.detail-block { margin-top: 28px; }
.plain { padding-left: 1.1em; margin: 0; }
.video { aspect-ratio: 16/9; }
.video iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.price-box { position: sticky; top: 90px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 10px; }
@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; }
  .price-box { position: static; order: -1; }
}

/* 로그인 자리·상담 */
.login-buttons { display: grid; gap: 10px; margin: 20px 0; }
.dev-login { display: grid; gap: 10px; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); margin-top: 16px; }
.dev-login label, .field { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
input, textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.chat-log { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; height: min(60vh, 560px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-log.readonly { height: auto; max-height: 70vh; margin: 14px 0; }
.msg { max-width: 85%; }
.msg p { margin: 0; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; }
.msg-user { align-self: flex-end; }
.msg-user p { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg-assistant p { background: #efe8dd; border-bottom-left-radius: 4px; }
.msg-error p { background: #fde4e1; color: #8a2a1e; }
.typing p { color: var(--muted); font-style: italic; }
.chat-status { min-height: 1.4em; color: var(--warm-ink); font-size: .9rem; font-weight: 600; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; }
.chat-form textarea { resize: none; }

/* 관리 */
.admin-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.admin-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.admin-row.clickable { cursor: pointer; }
.admin-row > img, .admin-row > .no-photo { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; display: grid; place-items: center; background: #e8e0d4; font-size: .7rem; }
.admin-row-main { flex: 1 1 180px; display: grid; min-width: 0; }
.admin-row-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-row-rooms { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.mini { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; cursor: pointer; }
.admin-form { display: grid; gap: 14px; max-width: 720px; }
.admin-form .field small { color: var(--muted); font-weight: 400; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.admin-photo { position: relative; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #e8e0d4; }
.admin-photo img, .admin-photo video { width: 100%; height: 100%; object-fit: cover; }
.admin-photo-tools { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.admin-photo-tools button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
.cover { position: absolute; left: 4px; bottom: 4px; background: var(--accent); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: 20px; height: 20px; }
.form-msg { min-height: 1.3em; color: var(--accent); font-weight: 600; margin: 0; }
.form-msg.bad { color: #b33a2b; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* 2차: 예약 문의 · 휴대폰 하단 바 · 비교 카드 · 예약 관리 (2026-11-08) */
select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.booking-form { display: grid; gap: 12px; max-width: 640px; margin-top: 40px; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 90px; }
.booking-form h2 { margin: 0; }
.total { font-weight: 700; color: var(--accent); font-size: .95rem; }
.notice { background: var(--accent-soft); color: var(--accent); padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.mobile-bar { display: none; }
.compare-cards { display: none; }
@media (max-width: 640px) {
  .table-wrap:has(.compare) { display: none; }
  .stay-stats .table-wrap { display: block; }
  .compare-cards { display: grid; gap: 12px; }
  .compare-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
  .compare-card.ours { border: 2px solid var(--accent); background: var(--accent-soft); }
  .compare-card.ours h3 { color: var(--accent); }
  .compare-card dl { display: grid; grid-template-columns: 5.5em 1fr; gap: 6px 10px; margin: 8px 0 0; font-size: .93rem; }
  .compare-card dt { color: var(--muted); }
  .compare-card dd { margin: 0; }
  .detail { padding-bottom: 90px; }
  .price-box { display: none; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(29,42,47,.08); }
  .mobile-bar strong { font-family: var(--serif); font-size: 1.15rem; }
  .mobile-bar small { color: var(--muted); }
  .top-nav a { margin-left: 12px; font-size: .92rem; }
  .row2 { grid-template-columns: 1fr; }
}
.stepper { list-style: none; display: flex; gap: 4px; padding: 0; margin: 12px 0; font-size: .76rem; }
.stepper li { flex: 1; text-align: center; padding-top: 10px; border-top: 4px solid var(--line); color: var(--muted); }
.stepper li.done { border-color: #9cc3b6; color: var(--ink); }
.stepper li.now { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.my-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.my-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; }
.stat strong { font-size: 1.6rem; font-family: var(--serif); }
.stat span { color: var(--muted); font-size: .82rem; }
.stat.warn { border-color: var(--warm); background: var(--warn-bg); }
.stat.warn strong { color: var(--warm-ink); }
.admin-row.stale { border-color: var(--warm); background: #fff6f1; }
.hotel-flags { display: flex; gap: 4px; }
.hotel-flags span { font-size: .72rem; padding: 2px 7px; border-radius: 6px; background: #eceae6; color: #a09a92; }
.hotel-flags span.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.booking-detail { display: grid; gap: 10px; max-width: 760px; }
.booking-detail h3 { margin: 18px 0 0; font-size: 1rem; }
.info { display: grid; grid-template-columns: 5em 1fr; gap: 6px 12px; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }
.checks { display: grid; gap: 8px; }
.moves { display: grid; gap: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.timeline small { color: var(--muted); }
.stay-stats { margin-top: 24px; }
.stay-stats summary { cursor: pointer; font-weight: 700; padding: 8px 0; }

/* 3차: 업체 화면 (2026-11-08) */
body.partner-mode .top-nav { display: none; }
.partner-new { border: 2px solid var(--warm); }
.partner-note { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 8px 12px; border-radius: 6px; margin: 8px 0; font-size: .93rem; }
.partner-answer { display: grid; gap: 8px; margin-top: 8px; }
.partner-answer .btn { flex: 1; }
.partner .stats { grid-template-columns: repeat(3, 1fr); }
/* 4차: 자주 묻는 질문 단추 (2026-11-08) */
.suggest { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 10px; }
.suggest .chip-btn { font-size: .86rem; padding: 6px 12px; min-height: 36px; text-align: left; }
/* 5차: 질문 답 항목 · 미리 보기 (2026-11-08) */
.facts-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; background: var(--paper); }
.facts-box legend { font-weight: 700; padding: 0 6px; }
.facts { display: grid; gap: 10px; }
.fact-row { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.fact-row .link { justify-self: end; }
.tester { display: grid; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin: 0 0 18px; }
.tester h3 { margin: 0; font-size: 1rem; }
.tester-out { display: grid; gap: 6px; }
.msg .via { display: block; margin-top: 2px; font-size: .72rem; }
/* 6차: 지도 (텔비 지도 자료) (2026-11-08) */
.map-box { height: 300px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e8e0d4; margin: 8px 0 12px; z-index: 0; }
.map-list { height: min(65vh, 560px); }
.map-pick { height: 260px; }
.map-pin { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; background: var(--accent); color: #fff; font: 700 .78rem/1 var(--sans); padding: 6px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.25); position: relative; }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--accent); border-bottom: 0; }
.map-pin.pin-out { background: #8b8579; }
.map-pin.pin-out::after { border-top-color: #8b8579; }
.map-pin.pin-main { background: var(--warm-ink); }
.map-pin.pin-main::after { border-top-color: var(--warm-ink); }
.map-pop { font: .9rem/1.5 var(--sans); }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.list-tools .filters { margin: 12px 0; }
.view-toggle { display: flex; gap: 6px; }
[hidden] { display: none !important; }
.map-still { display: block; position: relative; cursor: pointer; text-decoration: none; }
.map-hint { position: absolute; right: 8px; top: 8px; z-index: 500; background: rgba(255,255,255,.92); color: var(--ink); font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
/* 7차: AI 로 숙소 채우기 (2026-11-08) */
.onb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.onb-log { height: 260px; }
.onb-q { margin: 10px 0; }
.onb-question { font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
.onb-btns { display: flex; flex-direction: column; gap: 6px; }
.onb-paste { margin: 12px 0; display: grid; gap: 8px; }
.onb-paste summary { cursor: pointer; font-weight: 700; }
.onb-preview { position: sticky; top: 80px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; max-height: calc(100vh - 100px); overflow: auto; }
.pv dl { display: grid; gap: 6px; margin: 0; }
.pv-row { display: grid; grid-template-columns: 6em 1fr; gap: 8px; font-size: .92rem; }
.pv-row dt { color: var(--muted); }
.pv-row dd { margin: 0; white-space: pre-line; }
.pv h4 { margin: 14px 0 6px; font-size: .95rem; }
.pv-rooms { min-width: 0; font-size: .85rem; }
.ai-tag { display: inline-block; margin-left: 4px; font-size: .65rem; font-weight: 700; color: #fff; background: #7a5af8; border-radius: 4px; padding: 1px 5px; vertical-align: middle; }
@media (max-width: 820px) { .onb-grid { grid-template-columns: 1fr; } .onb-preview { position: static; max-height: none; } }

/* 방 종류 (2026-11-08) */
.room-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.room-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.room-card img, .room-card .no-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; background: #eee7dc; }
.room-card-body { padding: 14px; display: grid; gap: 6px; align-content: start; }
.room-card-body h3 { margin: 0; font-size: 1.05rem; }
.room-card-body .card-price { margin: 0; }
.room-card .btn { justify-self: start; margin-top: 4px; }
.room-card.card-out img { filter: grayscale(.6); }
.room-pick { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; display: grid; gap: 8px; margin: 0; }
.room-pick legend { font-weight: 700; padding: 0 6px; }
.room-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; min-height: 44px; }
.room-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.room-option input { width: auto; margin: 0; }
.room-option small { color: var(--muted); }
.rooms-box .room-rows { display: grid; gap: 12px; }
.room-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; display: grid; gap: 8px; }
.room-row.room-off { opacity: .6; }
.room-row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.room-row-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr 1fr; } }
.room-derived { display: block; color: var(--warm-ink); font-size: .82rem; margin: -6px 0 4px; }
.room-controls { display: grid; gap: 4px; }
.room-controls .admin-row-rooms small { min-width: 9em; color: var(--muted); }
.room-off { opacity: .6; }
input:disabled { background: #f1ede6; color: var(--muted); }
.room-card-body .badge { justify-self: start; }
/* 9차: 브랜드 요소 (2026-11-09) */
.hero { position: relative; }
.hero > *:not(.hero-art) { position: relative; z-index: 1; }
.hero-art { position: absolute; right: -10px; top: 50%; transform: translateY(-46%); width: min(34vw, 360px); height: auto; opacity: .92; pointer-events: none; }
@media (max-width: 820px) { .hero-art { position: static; width: 64px; transform: none; opacity: 1; margin: 0 0 14px; } } /* 휴대폰: 제목과 겹치지 않게 제목 위에 작게 */
.partner-badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 5px 12px 5px 6px; margin: 0 0 10px; }
.partner-badge img { width: 22px; height: 22px; background: var(--paper); border-radius: 50%; padding: 2px; }
.card, .steps li, .booking-form, .price-box, .my-item { box-shadow: var(--shadow); }
/* 6차: 조건 칸 · 붙여넣기 먼저 (2026-11-09) */
.cond-editor { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; background: var(--paper); }
.cond-editor legend { font-weight: 700; padding: 0 6px; }
.cond-dep { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.cond-dep input[type=number] { width: 9em; }
.onb-step { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; background: var(--paper); }
.onb-step h2 { font-size: 1.2rem; margin: 0 0 6px; }
.onb-step-no { margin: 0 0 2px; font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.onb-paste { border-width: 2px; border-color: var(--accent); display: grid; gap: 10px; }
.onb-paste textarea { min-height: 220px; font-size: 1rem; }
.onb-hint { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.onb-hint li { font-size: .85rem; padding: 3px 10px; border-radius: 999px; background: var(--bg, #f4f1ec); border: 1px solid var(--line); }
.onb-paste-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.onb-qa .onb-log { height: 200px; }
.new-stay { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cond-radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.cond-radio input { width: 20px; height: 20px; }
/* 10차: 국기 언어 단추 — 오른쪽 위 (2026-11-09) */
.lang-pick { position: relative; margin-left: 12px; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 10px; font: 600 .78rem/1 var(--sans); color: var(--ink); cursor: pointer; min-height: 36px; }
.lang-btn img, .lang-item img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 1200; list-style: none; margin: 0; padding: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 168px; }
.lang-item { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font: 500 .92rem/1.2 var(--sans); color: var(--ink); cursor: pointer; text-align: left; }
.lang-item:hover, .lang-item:focus-visible { background: var(--accent-soft); outline: none; }
.lang-item.on { font-weight: 700; color: var(--accent); }
@media (max-width: 640px) { .lang-pick { margin-left: auto; margin-right: 8px; } .lang-code { display: none; } }

/* i18n partner (2026-11-09): 영어·태국어 이름은 한국어보다 길다 — 미리 보기 이름 칸을 넓힌다 (줄마다 같은 너비라야 칸이 맞는다) */
html:not([lang="ko"]) .pv-row { grid-template-columns: 8.5em 1fr; }
.stat span { overflow-wrap: anywhere; }
/* 11차: 줄바꿈은 언어별 (2026-11-09) — keep-all 은 한국어 낱말을 지키려는 것. 띄어쓰기 없는 태국어는 이것 때문에 휴대폰에서 넘친다 */
/* 일본어: 한국어 글꼴로 한자를 그리면 자형이 달라 일본어 글꼴을 먼저 (2026-11-09) */
html[lang="ja"] { --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; }
html:not([lang="ko"]) body { word-break: normal; overflow-wrap: break-word; }

/* 오른쪽 위 로그인 단추 (2026-11-10) — 국기 단추와 같은 알약 모양 */
.auth-pick { margin-left: 12px; flex: none; }
body.partner-mode .auth-pick { display: none; } /* 업체 화면은 링크로 들어온다 */
.auth-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: 999px; padding: 6px 14px; font: 600 .8rem/1 var(--sans); cursor: pointer; min-height: 36px; text-decoration: none; white-space: nowrap; }
.auth-btn.on { background: var(--paper); color: var(--ink); border-color: var(--line); padding: 4px 12px 4px 4px; }
.auth-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid; place-items: center; font-size: .8rem; }
.auth-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) { header.top { justify-content: flex-start; gap: 6px; } /* marketing.css 의 .top gap 24px 보다 늦게·세게 */ .auth-pick { margin-left: auto; } .auth-pick + .lang-pick { margin-left: 8px; } .auth-btn { padding: 6px 11px; } .auth-btn.on { padding: 4px; } .auth-name { display: none; } }

/* stay 로그인 화면 (2026-11-10) */
.login-page { text-align: center; padding-top: clamp(32px, 8vh, 72px); }
.login-page .login-mark { display: block; margin: 0 auto 18px; }
.login-page .lead { max-width: 30em; margin-inline: auto; }
.login-page .login-buttons { max-width: 360px; margin: 26px auto 12px; }
.btn-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; min-height: 50px; }
.btn-google:hover { background: #f8f9fa; border-color: #c6c9cc; }
.login-page .login-or { max-width: 360px; margin: 18px auto; text-align: left; }

/* 동의·약관 (2026-11-11) */
.bk-agree { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.5; color: var(--muted, #5b6b70); margin: 4px 0 2px; cursor: pointer; }
.bk-agree input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.chat-ai-note { font-size: .8rem; margin-top: 8px; }
.login-legal { font-size: .8rem; }
.foot-legal { font-size: .85rem; }
.foot-legal a { color: inherit; }
.foot-legal a[data-legal="privacy"] { font-weight: 700; } /* 개인정보처리방침은 눈에 띄게 (표준) */
