/* 하프앤하프 — 디자인 토큰
   컨셉: "건물 단면도" — 층·호실이 쌓인 단면으로 입점 현황을 보여주고, 지원받는 몫은 노란 사선(반값)으로 표시 */
@font-face { font-family: 'Pretendard Variable'; font-weight: 45 920; font-style: normal; font-display: swap; src: url('font/PretendardVariable.woff2') format('woff2-variations'); }
:root {
  --ink: #14233A; --ink-2: #4A5B70; --ink-3: #7D8B9C;
  --paper: #FFFFFF; --mist: #F3F6F8; --line: #DCE3EA; --line-2: #C3CDD8;
  --blue: #0E7FC0; --blue-d: #0A5F91; --blue-t: #E6F2FA;
  --half: #FFCF3F; --half-t: #FFF4CC;
  --occ: #8FA3B8; --neg: #F2A33A; --block: #D6453D; --ok: #1F9D6B;
  --r-s: 6px; --r-m: 10px; --r-l: 16px;
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --hatch: repeating-linear-gradient(135deg, var(--half) 0 6px, var(--half-t) 6px 12px);
  --tab-h: 64px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ── 상단 바 (PC: GNB / 모바일: 앱 바) ── */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1200px; margin: 0 auto; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(90deg, var(--blue) 50%, var(--half) 50%); box-shadow: inset 0 0 0 2px var(--ink); }
.logo small { font-weight: 500; font-size: 12px; color: var(--ink-3); margin-left: 2px; }
.gnb { display: flex; gap: 22px; flex: 1; }
.gnb a { color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 20px 0; border-bottom: 2px solid transparent; }
.gnb a.on, .gnb a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.top-act { display: flex; gap: 8px; align-items: center; }
.icon-btn { position: relative; width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--mist); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--block); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: var(--r-s); border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #22364F; }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.btn.blue:hover { background: var(--blue-d); }
.btn.line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--ink); }
.btn.half { background: var(--half); border-color: var(--half); color: var(--ink); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--blue); font-weight: 600; cursor: pointer; padding: 0; }

/* ── 레이아웃 ── */
main { min-height: calc(100vh - 64px); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sec { padding: 56px 0; }
.sec.mist { background: var(--mist); }
.h1 { font-size: 44px; line-height: 1.22; letter-spacing: -.035em; font-weight: 800; margin: 0; }
.h2 { font-size: 28px; line-height: 1.3; letter-spacing: -.025em; font-weight: 800; margin: 0 0 8px; }
.h3 { font-size: 19px; line-height: 1.4; letter-spacing: -.015em; font-weight: 700; margin: 0 0 6px; }
.lead { color: var(--ink-2); font-size: 17px; margin: 0; max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.sec-head p { margin: 0; color: var(--ink-2); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.page-title { padding: 36px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.page-title .h1 { font-size: 34px; }
.crumb { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }

/* ── 히어로: 건물 단면도 ── */
.hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--mist) 100%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero .h1 { font-size: 52px; }
.hero .h1 { position: relative; z-index: 0; }
.hero .h1 .cut { display: inline-block; position: relative; z-index: 0; }
.hero .h1 .cut::after { content: ''; position: absolute; left: 50%; right: -4px; bottom: .08em; height: .36em; background: var(--hatch); z-index: -1; }
.hero .lead { margin-top: 18px; }
.hero-cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-who { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.who { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; cursor: pointer; }
.who:hover, .who.on { border-color: var(--ink); color: var(--ink); }
.who b { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-t); color: var(--blue-d); display: grid; place-items: center; font-size: 11px; }

.section-dwg { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 18px 18px 14px; box-shadow: 0 20px 40px -24px rgba(20,35,58,.35); }
.dwg-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; gap: 8px; }
.dwg-head b { font-size: 15px; }
.dwg-head span { font-size: 12px; color: var(--ink-3); }
.floors { display: flex; flex-direction: column; gap: 4px; }
.floor { display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: stretch; }
.floor > em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-3); display: grid; place-items: center; border-right: 2px solid var(--ink); }
.units { display: flex; gap: 4px; }
.unit { flex: 1 1 0; min-width: 0; min-height: 44px; border-radius: 4px; padding: 5px 7px; font-size: 11.5px; line-height: 1.3; border: 1px solid var(--line-2); background: #fff; display: flex; flex-direction: column; justify-content: center; cursor: default; overflow: hidden; }
.unit b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit span { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit.occupied { background: #E9EEF3; border-color: #D0D9E2; }
.unit.occupied b { color: var(--ink-2); }
.unit.negotiating { background: #FFF3E0; border-color: #F6CB8A; }
.unit.vacant { border: 1.5px dashed var(--blue); background: var(--blue-t); cursor: pointer; }
.unit.vacant b { color: var(--blue-d); }
.unit.vacant:hover { background: #D4E9F7; }
.unit.vacant.blocked { border-color: var(--line-2); background: #fff; cursor: not-allowed; }
.unit.vacant.blocked b { color: var(--ink-3); }
.unit.mine { outline: 2px solid var(--half); outline-offset: 1px; }
.ground { height: 8px; margin: 6px 0 0 40px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 8px); opacity: .5; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--line-2); }
.legend .v { border: 1.5px dashed var(--blue); background: var(--blue-t); }
.legend .o { background: #E9EEF3; }
.legend .n { background: #FFF3E0; border-color: #F6CB8A; }

/* ── 반값 막대 (일반 vs 하프앤하프) ── */
.halfbar { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.hb-row { display: grid; grid-template-columns: 74px 1fr 92px; gap: 8px; align-items: center; font-size: 12.5px; margin-top: 6px; }
.hb-row > span:first-child { color: var(--ink-2); font-weight: 600; }
.hb-row > span:last-child { text-align: right; font-weight: 700; }
.hb { height: 14px; border-radius: 3px; background: var(--ink); position: relative; overflow: hidden; }
.hb.h { background: var(--line); }
.hb.h > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); }
.hb.h > s { position: absolute; top: 0; bottom: 0; background: var(--hatch); }

/* ── 패널/카드 (용도별로 다르게) ── */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; }
.panel.flat { border: 0; background: var(--mist); }
.panel h4 { margin: 0 0 8px; font-size: 16px; }
.lot { display: grid; grid-template-columns: 112px 1fr; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: #fff; cursor: pointer; transition: border-color .15s; text-align: left; padding: 0; width: 100%; }
.lot:hover { border-color: var(--ink); }
.lot-pic { background: var(--mist); position: relative; min-height: 120px; }
.lot-pic img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.lot-body { padding: 14px 16px; min-width: 0; }
.lot-body h5 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.lot-meta { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.lot-perk { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.chip.half { background: var(--half-t); color: #7A5A00; }
.chip.blue { background: var(--blue-t); color: var(--blue-d); }
.chip.ok { background: #E3F5EC; color: #146B49; }
.chip.warn { background: #FFF1DC; color: #8A5300; }
.chip.no { background: #FBE7E5; color: #A2302A; }
.chip.ink { background: var(--ink); color: #fff; }
.score { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 800; color: var(--blue-d); font-size: 18px; }
.score small { font-size: 11px; font-weight: 600; color: var(--ink-3); }
.mini-section { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; position: absolute; left: 12px; right: 12px; top: 30px; bottom: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 3px; }
.mini-section i { display: flex; gap: 2px; flex: 0 1 12px; min-height: 5px; }
.mini-section i u { flex: 1; border-radius: 1.5px; background: #D0D9E2; text-decoration: none; }
.mini-section i u.v { background: var(--blue); }
.mini-section i u.n { background: var(--neg); }
.sample-tag { position: absolute; top: 8px; left: 8px; background: rgba(20,35,58,.8); color: #fff; font-size: 10.5px; padding: 1px 7px; border-radius: 4px; }

/* ── 프로세스 (순서가 있는 내용에만 번호) ── */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; border-top: 2px solid var(--ink); }
.step { padding: 18px 16px 4px 0; position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); font-weight: 800; font-size: 14px; position: absolute; top: -16px; left: 0; }
.step h5 { margin: 12px 0 4px; font-size: 16px; }
.step p { margin: 0; font-size: 13.5px; color: var(--ink-2); }

/* ── 지원 항목 (개원비 / 운영비 두 묶음) ── */
.two-halves { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: var(--r-l); overflow: hidden; }
.half-col { padding: 28px; }
.half-col + .half-col { border-left: 1px solid var(--line-2); background: var(--mist); }
.half-col h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.half-col > p { margin: 0 0 16px; color: var(--ink-2); }
.perk { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.perk:first-of-type { border-top: 0; }
.perk i { width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: linear-gradient(90deg, var(--blue) 50%, var(--half) 50%); }
.perk b { display: block; font-size: 15px; }
.perk span { font-size: 13.5px; color: var(--ink-2); }

/* ── 폼 ── */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.field > span em { color: var(--block); font-style: normal; margin-left: 2px; }
.input, select.input, textarea.input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); background: #fff; }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-t); }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.err { color: var(--block); font-size: 13px; margin-top: 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.ck { position: relative; }
.ck input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ck span { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: #fff; }
.ck input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.ck input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.ck input:disabled + span { opacity: .45; text-decoration: line-through; }
.tile-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile-pick label { position: relative; }
.tile-pick input { position: absolute; opacity: 0; }
.tile-pick span { display: block; padding: 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-m); cursor: pointer; height: 100%; background: #fff; }
.tile-pick span b { display: block; font-size: 16px; }
.tile-pick span small { color: var(--ink-3); font-size: 12.5px; }
.tile-pick input:checked + span { border-color: var(--blue); background: var(--blue-t); }
.tile-pick input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-card { max-width: 640px; margin: 0 auto; }
.wizard-steps { display: flex; gap: 6px; margin-bottom: 22px; }
.wizard-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.wizard-steps i.on { background: var(--ink); }

/* ── 표 ── */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 700; color: var(--ink-2); font-size: 12.5px; padding: 10px 10px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl tr.dim td { color: var(--ink-3); }
.tbl-wrap { overflow-x: auto; }

/* ── 지도 ── */
.map-page { display: grid; grid-template-columns: 400px 1fr; height: calc(100vh - 64px); }
.map-side { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: #fff; }
.map-filter { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.map-filter .row { gap: 6px; }
.map-filter select { height: 36px; font-size: 13px; padding: 0 8px; width: auto; flex: 1 1 30%; }
.map-list { overflow-y: auto; padding: 12px 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.map-list > * { flex-shrink: 0; }
#map { width: 100%; height: 100%; background: #EAF0F4; }
.pin { background: var(--ink); color: #fff; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.25); position: relative; font-family: var(--font); }
.pin::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
.pin.feat { background: var(--blue); }
.pin.feat::after { border-top-color: var(--blue); }
.pin s { text-decoration: none; color: var(--half); margin-left: 4px; }
.pin.dim { background: #9AA8B6; }
.pin.dim::after { border-top-color: #9AA8B6; }
.leaflet-div-icon { background: none; border: 0; }
.map-fallback { display: grid; place-items: center; height: 100%; color: var(--ink-3); font-size: 14px; text-align: center; padding: 20px; }

/* ── 상세 ── */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.sticky { position: sticky; top: 84px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 320px; border-radius: var(--r-l); overflow: hidden; margin-bottom: 24px; }
.gallery > div { background: var(--mist); position: relative; overflow: hidden; }
.gallery > div:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .ph { display: grid; place-items: center; height: 100%; color: var(--ink-3); font-size: 13px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 14px; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 600; }
.taken { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── 시뮬레이터 ── */
.sim { display: grid; grid-template-columns: 380px 1fr; gap: 28px; align-items: start; }
.sim-out .big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.sim-bars { margin: 18px 0; }
.sim-bars .hb-row { grid-template-columns: 110px 1fr 120px; font-size: 14px; margin-top: 10px; }
.sim-bars .hb { height: 24px; }
.breakdown { width: 100%; border-collapse: collapse; font-size: 14px; }
.breakdown td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.breakdown td:last-child { text-align: right; font-weight: 700; }
.breakdown tr.sum td { border-top: 1.5px solid var(--ink); border-bottom: 0; font-size: 16px; }
.note { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }

/* ── 진행 단계 ── */
.track { display: flex; gap: 0; margin: 14px 0; }
.track > div { flex: 1; text-align: center; font-size: 12px; color: var(--ink-3); position: relative; padding-top: 22px; }
.track > div::before { content: ''; position: absolute; top: 7px; left: 0; right: 0; height: 3px; background: var(--line); }
.track > div::after { content: ''; position: absolute; top: 2px; left: 50%; margin-left: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); }
.track > div.done { color: var(--ink); }
.track > div.done::before { background: var(--ink); }
.track > div.done::after { background: var(--ink); border-color: var(--ink); }
.track > div.now { color: var(--blue-d); font-weight: 700; }
.track > div.now::after { background: var(--half); border-color: var(--ink); width: 18px; height: 18px; top: 0; margin-left: -9px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; font-size: 13.5px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }

/* ── 탭 ── */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 14px; font-weight: 700; color: var(--ink-3); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }

/* ── 모달/토스트 ── */
.modal-bg { position: fixed; inset: 0; background: rgba(20,35,58,.45); z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal { background: #fff; border-radius: var(--r-l); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; padding: 24px; }
.modal h3 { margin: 0 0 12px; font-size: 20px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--r-s); z-index: 300; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r-m); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }

/* ── 사진 블록 (청담메디컬센터) ── */
.photo-band { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; height: 300px; border-radius: var(--r-l); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.net { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.net > div { background: #fff; padding: 16px; }
.net b { display: block; }
.net span { font-size: 13px; color: var(--ink-2); }

/* ── 푸터 ── */
footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--ink-3); background: #fff; }
footer b { color: var(--ink); }

/* ── 하단 탭 (모바일 앱) ── */
.tabbar { display: none; }

@media (max-width: 960px) {
  .gnb { display: none; }
  .hero-in, .detail, .sim { grid-template-columns: 1fr; }
  .hero .h1 { font-size: 36px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--ink); margin-left: 15px; }
  .step { padding: 4px 0 18px 28px; }
  .step::before { left: -16px; top: 2px; }
  .step h5 { margin-top: 0; }
  .map-page { grid-template-columns: 1fr; grid-template-rows: 46vh 1fr; height: calc(100vh - 56px - var(--tab-h)); }
  .map-side { order: 2; border-right: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; margin-top: -14px; z-index: 5; box-shadow: 0 -8px 20px rgba(0,0,0,.08); }
  .map-side::before { content: ''; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 0; }
  .sticky { position: static; }
}
@media (max-width: 720px) {
  html, body { font-size: 14.5px; }
  .top-in { height: 56px; gap: 10px; padding: 0 14px; }
  .logo small { display: none; }
  .wrap { padding: 0 16px; }
  .sec { padding: 36px 0; }
  .h1 { font-size: 30px; }
  .hero { padding: 28px 0 28px; }
  .hero .h1 { font-size: 31px; }
  .h2 { font-size: 22px; }
  .page-title { padding: 22px 0 14px; margin-bottom: 18px; }
  .page-title .h1 { font-size: 25px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .two-halves { grid-template-columns: 1fr; }
  .half-col { padding: 20px; }
  .half-col + .half-col { border-left: 0; border-top: 1px solid var(--line-2); }
  .tile-pick { grid-template-columns: 1fr; }
  .gallery { height: 220px; }
  .photo-band { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 110px; height: auto; }
  .photo-band img:first-child { grid-column: 1 / 3; }
  .net { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .lot { grid-template-columns: 92px 1fr; }
  .unit { font-size: 10.5px; padding: 4px 5px; min-height: 40px; }
  .unit b { font-size: 11.5px; }
  .floor { grid-template-columns: 26px 1fr; }
  .ground { margin-left: 32px; }
  main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  footer { padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--ink-3); }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on svg { stroke: var(--blue); }
  .map-page { height: calc(100vh - 56px - var(--tab-h)); }
  .toast { bottom: calc(var(--tab-h) + 20px); }
  .sim-out .big { font-size: 32px; }
}

/* ════════════════════════════════════════════════════════════
   디자인 v2 (2026-10-18) — "야간 도면": 진한 남색 도면 위에 건물 단면 · 입면
   ════════════════════════════════════════════════════════════ */
:root { --night: #0F1E33; --night-2: #16294A; --night-line: rgba(255,255,255,.07); --r-m: 12px; --r-l: 18px; --shadow: 0 1px 2px rgba(20,35,58,.06), 0 8px 24px -12px rgba(20,35,58,.18); }
body { background: #FAFBFC; }
.btn { border-radius: 8px; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn.lg { height: 52px; padding: 0 24px; font-size: 16px; }
.btn.half:hover { background: #FFD966; border-color: #FFD966; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn.ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.logo-mark.sm { width: 16px; height: 16px; box-shadow: inset 0 0 0 1.5px #fff; display: inline-block; vertical-align: -3px; margin-right: 8px; }
.top { background: rgba(255,255,255,.92); }

/* 히어로 */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 85% 10%, #1D3A63 0%, var(--night) 55%, #0B1728 100%); color: #fff; padding: 72px 0 0; border-bottom: 0; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; mask-image: linear-gradient(180deg, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); pointer-events: none; }
.hero-in { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 56px; }
.hero .h1 { font-size: 60px; line-height: 1.12; letter-spacing: -.045em; color: #fff; }
.hero .lead { color: #B9C6D6; font-size: 18px; margin-top: 22px; }
.hero-kicker { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--half); margin: 0 0 18px; letter-spacing: -.01em; }
.hero-cta { margin-top: 32px; gap: 12px; }
.hero-who { margin-top: 30px; align-items: center; gap: 6px; }
.hero-who-label { font-size: 12.5px; color: #8EA1B8; margin-right: 6px; }
.hero .who { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #DCE5EF; padding: 6px 14px; }
.hero .who:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .who.on { background: var(--half); border-color: var(--half); color: var(--ink); }
.hero-dwg .section-dwg { border: 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); border-radius: 16px; padding: 22px 22px 18px; }
.hero-dwg { animation: dwg-in .7s cubic-bezier(.2,.7,.2,1) both .1s; }
.hero-dwg .floor { animation: floor-in .5s cubic-bezier(.2,.7,.2,1) both; }
.hero-dwg .floor:nth-last-child(1) { animation-delay: .25s; } .hero-dwg .floor:nth-last-child(2) { animation-delay: .33s; } .hero-dwg .floor:nth-last-child(3) { animation-delay: .41s; } .hero-dwg .floor:nth-last-child(4) { animation-delay: .49s; } .hero-dwg .floor:nth-last-child(5) { animation-delay: .57s; } .hero-dwg .floor:nth-last-child(6) { animation-delay: .65s; } .hero-dwg .floor:nth-last-child(7) { animation-delay: .73s; } .hero-dwg .floor:nth-last-child(8) { animation-delay: .81s; }
@keyframes dwg-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floor-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-facts { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border-top: 1px solid rgba(255,255,255,.12); }
.hero-facts > div { padding: 22px 0 26px; border-right: 1px solid rgba(255,255,255,.08); padding-left: 22px; }
.hero-facts > div:first-child { padding-left: 0; }
.hero-facts > div:last-child { border-right: 0; }
.hero-facts dt { font-size: 12.5px; color: #8EA1B8; }
.hero-facts dd { margin: 6px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.hero-facts dd small { font-size: 13px; font-weight: 600; color: #B9C6D6; margin-left: 3px; letter-spacing: 0; }

/* 섹션 머리 */
.sec { padding: 80px 0; }
.sec-head { margin-bottom: 30px; }
.h2 { font-size: 32px; letter-spacing: -.035em; }

/* 매물 카드 (세로) */
.lot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lot { display: flex; flex-direction: column; grid-template-columns: none; border-radius: 16px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.lot:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,35,58,.06), 0 18px 36px -16px rgba(20,35,58,.28); border-color: var(--line-2); }
.lot-pic { position: relative; aspect-ratio: 16 / 10; min-height: 0; background: #E6EEF5; overflow: hidden; }
.lot-pic img, .lot-pic .facade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.tag-feat, .tag-sample { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.tag-feat { background: var(--half); color: var(--ink); }
.tag-sample { background: rgba(15,30,51,.78); color: #fff; }
.lot-score { position: absolute; right: 12px; bottom: 12px; background: #fff; color: var(--ink-2); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.lot-score b { color: var(--blue-d); font-size: 16px; margin-right: 1px; }
.lot-score.no { background: var(--block); color: #fff; }
.lot-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.lot-region { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.lot-body h5 { font-size: 18px; margin: 2px 0 12px; letter-spacing: -.02em; }
.lot-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 12px; }
.lot-facts span { display: flex; flex-direction: column; padding-left: 10px; border-left: 1px solid var(--line); }
.lot-facts span:first-child { padding-left: 0; border-left: 0; }
.lot-facts em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.lot-facts b { font-size: 15px; letter-spacing: -.01em; }
.lot-perk { margin-top: auto; }
/* 지도 옆 목록용 가로 카드 */
.lot.lot-row { flex-direction: row; border-radius: 12px; box-shadow: none; }
.lot.lot-row:hover { transform: none; }
.lot-row .lot-pic { aspect-ratio: auto; width: 116px; flex: none; }
.lot-row .lot-body { padding: 12px 14px; }
.lot-row .lot-body h5 { font-size: 15.5px; margin-bottom: 8px; }
.lot-row .lot-facts { padding: 6px 0; margin-bottom: 8px; }
.lot-row .lot-facts b { font-size: 13.5px; }
.lot-row .lot-perk .chip:nth-child(n+2) { display: none; }
.lot-row .lot-score { right: 6px; bottom: 6px; font-size: 10.5px; padding: 2px 7px; }
.lot-row .lot-score b { font-size: 13px; }

/* 반값 두 가지 */
.halves-sec { background: #fff; }
.halves-head { display: flex; gap: 36px; align-items: center; margin-bottom: 36px; }
.half-disc { position: relative; width: 168px; height: 168px; flex: none; border-radius: 50%; background: linear-gradient(90deg, var(--blue) 50%, var(--half) 50%); box-shadow: inset 0 0 0 6px #fff, 0 0 0 2px var(--ink); display: grid; grid-template-columns: 1fr 1fr; align-items: center; font-weight: 800; font-size: 15px; }
.half-disc span:first-child { color: #fff; text-align: center; }
.half-disc span:last-child { color: var(--ink); text-align: center; }
.two-halves { border: 0; gap: 20px; overflow: visible; }
.half-col { border-radius: 18px; padding: 32px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.half-col::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: var(--blue); }
.half-col + .half-col { border-left: 1px solid var(--line); background: #fff; }
.half-col + .half-col::before { background: var(--half); }
.half-col h3 small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 6px; }
.perk i { background: none; border: 2px solid var(--blue); }
.half-col + .half-col .perk i { border-color: #E0A800; }

/* 프로세스 */
.steps { border-top-width: 3px; }
.step::before { width: 34px; height: 34px; top: -18px; background: var(--ink); color: #fff; border-color: var(--ink); }
.step:last-child::before { background: var(--half); color: var(--ink); }
.step h5 { font-size: 17px; margin-top: 18px; }

/* 청담 사진 띠 */
.center-band { position: relative; min-height: 440px; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--night); }
.center-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.center-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,23,40,.94) 0%, rgba(11,23,40,.82) 38%, rgba(11,23,40,.15) 75%); }
.center-band .wrap { position: relative; z-index: 1; width: 100%; }
.center-copy { max-width: 480px; padding: 64px 0; }
.center-copy .h2 { color: #fff; }
.center-copy p { color: #C5D1DE; font-size: 16.5px; }

/* 개원 사례 */
.case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.case { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.case-pic { position: relative; aspect-ratio: 16 / 9; background: #E6EEF5; }
.case-pic img, .case-pic .facade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 16px 18px 20px; }
.case-body h4 { margin: 4px 0 10px; font-size: 17px; }
.case-saved { display: flex; flex-direction: column; padding: 2px 0 2px 12px; border-left: 4px solid var(--half); }
.case-saved b { font-size: 22px; letter-spacing: -.03em; white-space: nowrap; line-height: 1.25; }
.case-saved span { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.case-body p { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }

/* 건물주 · 상담 */
.cta-sec { background: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.cta-owner { position: relative; background: var(--night); color: #fff; border-radius: 20px; padding: 40px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; }
.cta-owner .h2 { color: #fff; font-size: 28px; }
.cta-owner p { color: #B9C6D6; margin: 8px 0 0; max-width: 42ch; }
.cta-facade { margin: 28px -40px -40px; align-self: stretch; height: 200px; position: relative; opacity: .95; }
.cta-facade .facade { position: absolute; inset: 0; width: 100%; height: 100%; }
.cta-form { border: 1px solid var(--line); border-radius: 20px; padding: 32px; background: #FAFBFC; }
.cta-form .panel { border: 0; padding: 0; background: transparent; margin-top: 18px !important; }

/* 상세 갤러리 (입면 그림) */
.gallery { border-radius: 18px; }
.g-facade { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: none; height: 340px; gap: 8px; }
.gf-main { position: relative; border-radius: 18px 0 0 18px; overflow: hidden; background: #E6EEF5; }
.gf-main .facade { position: absolute; inset: 0; width: 100%; height: 100%; }
.gf-legend { position: absolute; left: 14px; bottom: 12px; background: rgba(255,255,255,.92); border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.gf-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.gf-legend i.v { background: #8FD0F5; } .gf-legend i.n { background: #F7C77E; margin-left: 6px; } .gf-legend i.o { background: #A8B8C9; margin-left: 6px; }
.gf-side { display: grid; gap: 8px; border-radius: 0 18px 18px 0; overflow: hidden; }
.gf-side img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.gf-facts { grid-template-rows: repeat(4, 1fr); background: var(--night); color: #fff; padding: 0 22px; gap: 0; }
.gf-facts div { display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid rgba(255,255,255,.1); }
.gf-facts div:last-child { border-bottom: 0; }
.gf-facts em { font-style: normal; font-size: 12px; color: #8EA1B8; }
.gf-facts b { font-size: 22px; letter-spacing: -.02em; }

/* 페이지 머리 · 패널 */
.page-title { border-bottom: 0; padding-top: 44px; }
.panel { border-radius: 14px; }
.detail aside .panel { box-shadow: var(--shadow); border-color: var(--line); }
.section-dwg { border-radius: 16px; }

/* 푸터 */
footer { background: var(--night); color: #8EA1B8; border-top: 0; padding-top: 56px; }
footer a { color: #C5D1DE; }
footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.foot-grid h6 { margin: 0 0 12px; font-size: 13px; color: #fff; }
.foot-grid > div > a:not(.logo) { display: block; font-size: 13.5px; padding: 3px 0; }
.foot-grid p { margin: 0; font-size: 13px; line-height: 1.7; }
.foot-logo { color: #fff; margin-bottom: 12px; }
.foot-logo .logo-mark { box-shadow: inset 0 0 0 2px #fff; }
.foot-copy { color: #B9C6D6 !important; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 18px; font-size: 12.5px; }
.foot-bottom span:last-child a { margin-left: 16px; }

@media (max-width: 1100px) {
  .lot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero { padding-top: 44px; }
  .hero .h1 { font-size: 44px; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-facts > div:nth-child(2) { border-right: 0; }
  .hero-facts > div:nth-child(3) { padding-left: 0; }
  .hero-facts > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
  .cta-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hero { padding-top: 32px; }
  .hero .h1 { font-size: 34px; }
  .hero .lead { font-size: 15.5px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-in { gap: 32px; }
  .hero-facts { margin-top: 32px; }
  .hero-facts dd { font-size: 22px; }
  .sec { padding: 52px 0; }
  .h2 { font-size: 24px; }
  .lot-grid, .case-grid { grid-template-columns: 1fr; }
  .halves-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .half-disc { width: 120px; height: 120px; font-size: 13px; }
  .half-col { padding: 24px 20px; }
  .center-band { min-height: 0; }
  .center-band::after { background: linear-gradient(180deg, rgba(11,23,40,.55) 0%, rgba(11,23,40,.94) 55%); }
  .center-copy { padding: 180px 0 40px; }
  .cta-owner, .cta-form { padding: 26px 20px; border-radius: 16px; }
  .cta-facade { margin: 22px -20px -26px; height: 150px; }
  .g-facade { grid-template-columns: 1fr; height: auto; }
  .gf-main { height: 230px; border-radius: 16px 16px 0 0; }
  .gf-side { border-radius: 0 0 16px 16px; }
  .gf-facts { grid-template-columns: 1fr 1fr; grid-template-rows: none; padding: 6px 16px; }
  .gf-facts div { padding: 10px 0; border-bottom: 0; }
  .gf-side:not(.gf-facts) { grid-template-columns: repeat(3, 1fr); height: 90px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .lot-row .lot-pic { width: 96px; }
}
@media (prefers-reduced-motion: reduce) { .hero-dwg, .hero-dwg .floor { animation: none; } .lot, .lot:hover { transition: none; transform: none; } }

/* v2 보정 */
.hero .section-dwg { color: var(--ink); }
.g-facade > div { background: transparent; }
.g-facade > div:first-child { grid-row: auto; }
.g-facade .gf-main { background: #E6EEF5; }
.g-facade .gf-facts { background: var(--night); color: #fff; }
.lot-row .facade { width: 260%; left: -80%; }
@media (max-width: 960px) { .hero-in { grid-template-columns: minmax(0, 1fr); } .hero-who-label { flex-basis: 100%; } }
@media (max-width: 720px) { .hero-kicker { font-size: 12px; } .hero-dwg .section-dwg { padding: 16px 12px 12px; } }
.floor { grid-template-columns: 34px minmax(0, 1fr); }
.section-dwg { min-width: 0; overflow: hidden; }
.detail > div { min-width: 0; }
@media (max-width: 720px) {
  .floor { grid-template-columns: 26px minmax(0, 1fr); }
  .g-facade .gf-main { height: auto; aspect-ratio: 320 / 230; }
  .units { gap: 3px; }
}
/* 하위 페이지 머리: 야간 도면 띠 */
html, body { overflow-x: hidden; }
.page-title { position: relative; z-index: 0; color: #fff; padding: 48px 0 36px; margin-bottom: 36px; }
.page-title::before { content: ''; position: absolute; top: 0; bottom: 0; left: -100vw; right: -100vw; z-index: -1; background-color: var(--night); background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 48px 48px; }
.page-title .h1 { color: #fff; }
.page-title .lead { color: #B9C6D6; }
.page-title .crumb, .page-title .crumb a { color: #8EA1B8; }
.page-title .chip { background: rgba(255,255,255,.12); color: #DCE5EF; }
.page-title .chip.ok { background: rgba(31,157,107,.25); color: #A6EBCB; }
.page-title .chip.warn { background: rgba(242,163,58,.22); color: #FFD39A; }
.page-title .btn.line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.page-title .btn.line:hover { border-color: #fff; }
.page-title .lead b { color: #fff; }
@media (max-width: 720px) { .page-title { padding: 28px 0 24px; margin-bottom: 22px; } }

/* ── 앱 설치 (PWA) ── */
.is-app [data-install], .is-app .app-promo { display: none !important; }
.app-dl svg { margin-right: 2px; }
.top .app-dl { height: 36px; padding: 0 12px; }
.app-promo { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--night); color: #fff; margin-bottom: 28px; }
.app-promo img { border-radius: 12px; flex: none; }
.app-promo div { flex: 1; min-width: 0; }
.app-promo b { display: block; font-size: 15.5px; }
.app-promo span { font-size: 13px; color: #B9C6D6; }
.ins-bg { position: fixed; inset: 0; z-index: 400; background: rgba(8,16,28,.55); display: flex; align-items: flex-end; justify-content: center; animation: ins-fade .2s ease both; }
.ins-bg.desktop { align-items: center; padding: 20px; }
.ins-sheet { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 22px 22px 0 0; padding: 26px 22px calc(26px + env(safe-area-inset-bottom)); animation: ins-up .28s cubic-bezier(.2,.8,.2,1) both; }
.desktop .ins-sheet { border-radius: 20px; max-width: 520px; padding: 28px; }
.ios.arrow-top .ins-bg, .ins-bg.arrow-top { align-items: flex-start; }
.ins-bg.arrow-top .ins-sheet { border-radius: 0 0 22px 22px; padding-top: calc(30px + env(safe-area-inset-top)); animation-name: ins-down; }
.ins-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: var(--mist); border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.ins-bg.arrow-top .ins-x { top: calc(14px + env(safe-area-inset-top)); }
.ins-app { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.ins-app img { border-radius: 14px; box-shadow: 0 4px 12px rgba(15,30,51,.25); }
.ins-app b { display: block; font-size: 18px; letter-spacing: -.02em; }
.ins-app span { font-size: 13px; color: var(--ink-3); }
.ins-lead { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); }
.ins-steps { list-style: none; margin: 0 0 12px; padding: 0; }
.ins-steps li { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.ins-steps li:first-child { border-top: 0; }
.ins-n { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.ins-ico { width: 24px; height: 24px; vertical-align: -6px; color: var(--blue); background: var(--blue-t); border-radius: 6px; padding: 2px; }
.ins-note { font-size: 12.5px; color: var(--ink-3); margin: 6px 0 0; }
.ins-arrow { position: fixed; left: 50%; width: 0; height: 0; margin-left: -14px; border: 14px solid transparent; animation: ins-bob 1s ease-in-out infinite; }
.ins-arrow.bottom { bottom: calc(6px + env(safe-area-inset-bottom)); border-top-color: var(--half); border-bottom: 0; }
.ins-arrow.top { top: calc(4px + env(safe-area-inset-top)); left: auto; right: 22px; border-bottom-color: var(--half); border-top: 0; }
.ins-bg.ios.arrow-bottom .ins-sheet { margin-bottom: 52px; border-radius: 22px; width: calc(100% - 20px); }
.ins-qr { display: flex; gap: 20px; align-items: center; }
.ins-qr-img { width: 168px; height: 168px; flex: none; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ins-qr-img svg { width: 100%; height: 100%; display: block; }
@keyframes ins-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ins-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ins-down { from { transform: translateY(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ins-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.ins-arrow.top { animation-name: ins-bob-up; }
@keyframes ins-bob-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 720px) {
  .hide-m { display: none; }
  .top .app-dl { height: 32px; padding: 0 10px; font-size: 12.5px; }
  .top-act { gap: 4px; }
  .ins-qr { flex-direction: column; text-align: center; }
  .app-promo { flex-wrap: wrap; }
  .app-promo .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .ins-bg, .ins-sheet, .ins-arrow { animation: none; } }

/* v3: 모바일 지도 — 끌어 올리는 목록 시트 (peek · half · full) */
.sheet-grip, .sheet-mapbtn { display: none; }
@media (max-width: 960px) {
  .map-page { position: relative; display: block; height: calc(100vh - 56px - var(--tab-h)); height: calc(100dvh - 56px - var(--tab-h) - env(safe-area-inset-bottom)); overflow: hidden; }
  .map-page #map { position: absolute; inset: 0; height: auto; }
  .map-side { position: absolute; left: 0; right: 0; bottom: 0; margin-top: 0; height: 56%; z-index: 1100; transition: height .28s cubic-bezier(.2,.8,.2,1); will-change: height; }
  .map-side.dragging { transition: none; }
  .map-side::before { display: none; }
  .map-page[data-sheet="peek"] .map-side { height: 132px; }
  .map-page[data-sheet="half"] .map-side { height: 56%; }
  .map-page[data-sheet="full"] .map-side { height: 100%; border-radius: 0; }
  .sheet-grip { display: flex; justify-content: center; align-items: center; width: 100%; height: 22px; border: 0; background: none; padding: 0; cursor: grab; touch-action: none; flex-shrink: 0; }
  .sheet-grip i { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2, #C9D2DD); }
  .map-filter { padding: 2px 14px 10px; touch-action: none; }
  .map-filter form.row { flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .map-filter form.row::-webkit-scrollbar { display: none; }
  .map-filter select, .map-filter select.input { flex: 0 0 auto; width: auto; min-width: 84px; height: 36px; font-size: 13px; padding: 0 26px 0 10px; border-radius: 18px; }
  .map-filter .small { margin-top: 6px !important; }
  .map-list { overscroll-behavior: contain; padding-bottom: 18px; }
  .map-page[data-sheet="peek"] .map-list { overflow: hidden; }
  .sheet-mapbtn { position: absolute; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 1200; border: 0; border-radius: 22px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; padding: 11px 18px; box-shadow: 0 8px 20px rgba(15,30,51,.3); }
  .map-page[data-sheet="full"] .sheet-mapbtn { display: block; }
  .map-page .leaflet-top { top: 0; }
}
/* v3: 공유 */
.app-promo.share-promo { background: #fff; color: var(--ink); border: 1px solid var(--line); margin-top: -14px; }
.app-promo.share-promo > div { flex: 1; }
.app-promo.share-promo span { color: var(--ink-3); }
.is-app .app-promo.share-promo { display: flex !important; }
/* v4: 문서 페이지 */
.doc-text p { margin: 0 0 14px; line-height: 1.8; }
.seo-fallback { padding: 28px 0 60px; font-size: 15px; line-height: 1.7; } .seo-fallback h1 { font-size: 26px; } .seo-fallback a { color: var(--blue); }
