/* 방 등록 · 광고·연락 설정 시안 (/m/listing/) */
:root { --b: #2F6BF6; --b-d: #1F4FD1; --b-l: #EAF1FF; --ink: #111827; --text: #4B5563; --muted: #8B95A1; --line: #E8EBF0; --bg: #F5F6F8; --gray: #6B7684;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--ink); background: #EEF1F6; -webkit-font-smoothing: antialiased; word-break: keep-all; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p { margin: 0; }

.ls { max-width: 1080px; margin: 0 auto; padding: 36px 20px 80px; }
.ls-head { text-align: center; }
.ls-logo img { height: 28px; width: auto; }
.ls-badge { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 6px; background: #FFF1D6; color: #9A5B00; font-size: 12px; font-weight: 800; vertical-align: 6px; }
.ls-head h1 { margin-top: 14px; font-size: 34px; font-weight: 800; letter-spacing: -.04em; }
.ls-head h1 em { font-style: normal; color: var(--b); }
.ls-head p { margin-top: 10px; font-size: 16px; color: var(--text); }

.ls-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; align-items: start; }
.ls-col-t { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; font-size: 17px; font-weight: 800; }
.ls-col-t span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; }

/* 휴대폰 틀 */
.ls-phone { width: 100%; max-width: 380px; margin: 0 auto; padding: 10px; border-radius: 44px; background: #111827; box-shadow: 0 40px 80px -30px rgba(17,24,39,.45); }
.ls-screen { position: relative; display: flex; flex-direction: column; height: 760px; overflow: hidden; border-radius: 35px; background: #fff; }

/* 왼쪽 화면 */
.ls-bar { display: grid; grid-template-columns: 40px 1fr 56px; align-items: center; height: 56px; padding: 0 10px; border-bottom: 1px solid var(--line); text-align: center; font-size: 16px; }
.ls-back { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; }
.ls-step { font-size: 13px; font-weight: 700; color: var(--b); }
.ls-prog { height: 3px; background: var(--line); }
.ls-prog i { display: block; height: 100%; background: var(--b); }
.ls-scroll { flex: 1; overflow-y: auto; padding: 14px 14px 18px; scrollbar-width: thin; }
.ls-room { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--bg); }
.ls-room img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.ls-room small { display: block; font-size: 11.5px; color: var(--muted); }
.ls-room b { display: block; font-size: 15px; }
.ls-room span { font-size: 12.5px; color: var(--text); }
.ls-h { margin: 18px 2px 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.ls-h small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); }

.ls-set { padding: 14px; margin-top: 10px; border: 1px solid var(--line); border-radius: 16px; transition: opacity .2s; }
.ls-set.is-dim { opacity: .45; }
.ls-set-h { display: flex; align-items: center; gap: 8px; }
.ls-set-h b { flex: 1; font-size: 15px; line-height: 1.35; }
.ls-no { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--b-l); color: var(--b); font-size: 12px; font-weight: 800; }
.ls-price, .ls-free { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 800; }
.ls-price { background: #FFF4D1; color: #9A5B00; } .ls-free { background: #DDF6EA; color: #08734F; }
.ls-desc { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--text); }
.ls-note { margin-top: 8px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.ls-warn { margin-top: 8px; padding: 7px 10px; border-radius: 8px; background: #FFF4E5; color: #9A5B00; font-size: 12px; font-weight: 700; }

/* 버튼 모양 */
.ls-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 10px; padding: 4px; border-radius: 12px; background: var(--bg); }
.ls-seg input, .ls-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ls-seg label { position: relative; }
.ls-seg span { display: block; padding: 9px 0; border-radius: 9px; text-align: center; font-size: 14px; font-weight: 700; color: var(--gray); cursor: pointer; transition: background .15s, color .15s; }
.ls-seg input:checked + span { background: #fff; color: var(--b); box-shadow: 0 1px 4px rgba(17,24,39,.12); }
.ls-seg input:focus-visible + span { outline: 2px solid var(--b); outline-offset: 1px; }
.ls-opts { display: grid; gap: 6px; margin-top: 10px; }
.ls-opts.is-row { grid-template-columns: repeat(3, 1fr); }
.ls-opt { position: relative; display: block; }
.ls-opt > span { display: block; height: 100%; padding: 10px 12px 10px 36px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.ls-opt > span::before { content: ""; position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #C5CCD6; background: #fff; box-sizing: border-box; }
.ls-opt input:checked + span { border-color: var(--b); background: #F5F8FF; }
.ls-opt input:checked + span::before { border: 5px solid var(--b); }
.ls-opt input:focus-visible + span { outline: 2px solid var(--b); outline-offset: 1px; }
.ls-opt input:disabled + span { cursor: not-allowed; }
.ls-opt b { display: block; font-size: 14px; }
.ls-opt b em { margin-left: 4px; padding: 1px 6px; border-radius: 5px; background: var(--b); color: #fff; font-style: normal; font-size: 10.5px; vertical-align: 1px; }
.ls-opt small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.ls-opts.is-row .ls-opt > span { padding: 30px 6px 9px; text-align: center; }
.ls-opts.is-row .ls-opt > span::before { left: 50%; top: 9px; margin-left: -8px; }
.ls-opts.is-row .ls-opt b { font-size: 13px; } .ls-opts.is-row .ls-opt small { font-size: 11px; }

/* 스위치 */
.ls-sw { position: relative; flex: none; width: 44px; height: 26px; }
.ls-sw input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.ls-sw i { position: absolute; inset: 0; border-radius: 99px; background: #CDD3DC; transition: background .2s; }
.ls-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.ls-sw input:checked + i { background: var(--b); }
.ls-sw input:checked + i::after { transform: translateX(18px); }
.ls-sw input:focus-visible + i { outline: 2px solid var(--b); outline-offset: 2px; }
.ls-sw input:disabled { cursor: not-allowed; }

.ls-sum { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: #111827; color: #E5E7EB; }
.ls-sum b { font-size: 13px; color: #93B4FF; }
.ls-sum ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12.5px; line-height: 1.5; }
.ls-sum li::before { content: "✓ "; color: #6EE7B7; }
.ls-sum li.is-off::before { content: "– "; color: #9CA3AF; }
.ls-foot { padding: 10px 14px 16px; border-top: 1px solid var(--line); background: #fff; }
.ls-save { width: 100%; height: 50px; border: 0; border-radius: 14px; background: var(--b); color: #fff; font-size: 16px; font-weight: 800; }
.ls-save:hover { background: var(--b-d); }

/* 오른쪽 지도 화면 */
.ls-mtop { position: absolute; left: 0; right: 0; top: 0; z-index: 3; padding: 12px 12px 8px; background: linear-gradient(#fff 70%, rgba(255,255,255,0)); }
.ls-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(17,24,39,.12); font-size: 14px; font-weight: 700; color: #374151; }
.ls-search svg { width: 18px; height: 18px; color: var(--muted); }
.ls-chips { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.ls-chip { flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 13px; font-weight: 700; color: #374151; }
.ls-chip b { margin-left: 2px; color: var(--b); }
.ls-chip.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.ls-chip.is-on b { color: #93B4FF; }
.ls-chip.is-static { display: inline-flex; align-items: center; cursor: default; color: var(--gray); }
.ls-map { position: absolute; inset: 0; background: #EEF3F7; overflow: hidden; }
.ls-map .rd { position: absolute; background: #FFE09A; border-radius: 4px; }
.ls-map .rv { position: absolute; background: #BBD9F5; }
.ls-map .gr { position: absolute; border-radius: 14px; background: #D3EDD5; }
.ls-pin { position: absolute; z-index: 1; transform: translate(-50%, -100%); padding: 5px 9px; border-radius: 10px; background: var(--b); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; box-shadow: 0 4px 10px rgba(17,24,39,.2); transition: opacity .2s, transform .2s; }
.ls-pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: inherit; border-bottom: 0; }
.ls-pin.is-direct { background: var(--b); border-top-color: var(--b); }
.ls-pin.is-agent { background: #8B95A1; border-top-color: #8B95A1; }
.ls-pin.is-agent::before { content: "중개 "; font-weight: 700; opacity: .85; }
.ls-pin.is-mine { z-index: 2; padding: 6px 11px; font-size: 13px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(47,107,246,.35), 0 8px 18px rgba(17,24,39,.25); animation: lsPop .5s; }
.ls-pin.is-mine.is-agent { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(139,149,161,.4), 0 8px 18px rgba(17,24,39,.25); }
.ls-pin.is-hide { opacity: 0; transform: translate(-50%, -90%) scale(.8); pointer-events: none; }
@keyframes lsPop { 0% { transform: translate(-50%, -100%) scale(.6); } 70% { transform: translate(-50%, -100%) scale(1.12); } }
.ls-legend { position: absolute; right: 10px; top: 104px; z-index: 3; display: grid; gap: 4px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(17,24,39,.1); font-size: 11.5px; font-weight: 700; color: #374151; }
.ls-legend span { display: flex; align-items: center; gap: 6px; }
.ls-legend i { width: 12px; height: 12px; border-radius: 4px; }
.ls-legend i.is-direct { background: var(--b); } .ls-legend i.is-agent { background: #8B95A1; } .ls-legend i.is-mine { background: #fff; box-shadow: 0 0 0 2px var(--b); }

.ls-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 8px 14px 16px; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -10px 30px rgba(17,24,39,.12); }
.ls-grab { width: 40px; height: 4px; margin: 0 auto 10px; border-radius: 4px; background: #D6DBE2; }
.ls-card { display: flex; gap: 12px; }
.ls-card img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
.ls-card-b { flex: 1; min-width: 0; }
.ls-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ls-tag { padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.ls-tag.is-direct { background: var(--b-l); color: var(--b); }
.ls-tag.is-agent { background: #EEF0F3; color: #4E5968; }
.ls-tag.is-ok { background: #DDF6EA; color: #08734F; }
.ls-card-b b { display: block; margin-top: 4px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.ls-card-b small { display: block; margin-top: 2px; font-size: 12px; color: var(--text); }
.ls-fee { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--b); }
.ls-fee.is-agent { color: #4E5968; }
.ls-cta { display: grid; gap: 6px; margin-top: 12px; }
.ls-cta.is-2 { grid-template-columns: 1fr 1fr; }
.ls-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border: 0; border-radius: 12px; background: var(--b); color: #fff; font-size: 14.5px; font-weight: 800; }
.ls-btn.is-line { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.ls-btn.is-gray { background: #4E5968; }
.ls-btn svg { width: 18px; height: 18px; }
.ls-who { margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.ls-off { position: absolute; inset: auto 14px 18px; z-index: 4; display: grid; gap: 2px; padding: 16px; border-radius: 16px; background: #111827; color: #fff; text-align: center; font-size: 13px; }
.ls-off b { font-size: 15px; }
.ls-off[hidden] { display: none; }

.ls-rules { max-width: 820px; margin: 48px auto 0; padding: 26px 28px; border-radius: 20px; background: #fff; }
.ls-rules h2 { font-size: 20px; font-weight: 800; }
.ls-rules ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 8px; font-size: 15px; line-height: 1.65; color: var(--text); }
.ls-rules ul b { color: var(--ink); }
.ls-legal { margin-top: 14px; font-size: 13px; color: var(--muted); }
.ls-toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translate(-50%, 10px); padding: 10px 16px; border-radius: 99px; background: rgba(17,24,39,.92); color: #fff; font-size: 13.5px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; }
.ls-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

button:focus-visible, a:focus-visible { outline: 2px solid var(--b); outline-offset: 2px; }
@media (max-width: 860px) {
  .ls { padding-top: 24px; }
  .ls-head h1 { font-size: 26px; }
  .ls-head p { font-size: 14.5px; }
  .ls-stage { grid-template-columns: 1fr; gap: 36px; }
  .ls-rules { padding: 20px; } .ls-rules ul { font-size: 14px; }
}
@media (max-width: 380px) { .ls { padding-left: 12px; padding-right: 12px; } .ls-phone { padding: 7px; border-radius: 38px; } .ls-screen { border-radius: 31px; } .ls-opts.is-row .ls-opt small { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.ls-hidden-note { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #FFF4E5; color: #9A5B00; font-size: 12px; text-align: center; }
.ls-mo { display: none; }
@media (max-width: 860px) { .ls-pc { display: none; } .ls-mo { display: inline; } }
