/* ===== 지도보기 페이지 ===== */
/* 화면 구성: 위 메뉴 → 검색·필터 줄 → [왼쪽 목록 | 오른쪽 지도]가 화면 아래까지 꽉 차요 */
.zs-page .site-footer { display: none; }             /* 지도 페이지는 아래 회사 정보를 숨겨요 */
.zs { --zs-bar: 64px; padding: 0; max-width: none; }
.zs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- 검색·필터 줄 --- */
.zs-bar { display: flex; align-items: center; gap: 10px; height: var(--zs-bar); padding: 0 20px; border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 20; }
.zs-search { display: flex; width: 450px; max-width: 40vw; height: 46px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.zs-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; font: inherit; font-size: 15px; outline: none; }
.zs-search button { width: 54px; border: 0; background: var(--primary); cursor: pointer; display: grid; place-items: center; }
.zs-search svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }

.zs-drop { position: relative; }
.zs-drop summary { list-style: none; display: flex; align-items: center; gap: 18px; height: 46px; padding: 0 18px 0 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font-size: 15px; cursor: pointer; white-space: nowrap; user-select: none; }
.zs-drop summary::-webkit-details-marker { display: none; }
.zs-drop summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #9aa3ae; border-bottom: 2px solid #9aa3ae; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.zs-drop[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.zs-drop.is-on summary { border-color: var(--primary); color: var(--primary); font-weight: 700; }
.zs-pop { position: absolute; top: calc(100% + 8px); left: 0; width: 440px; padding: 22px 24px; background: #fff; border-radius: 16px; box-shadow: 0 12px 36px rgba(0, 0, 0, .14); }
.zs-pop h4 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--ink); }
.zs-pop-sub { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.zs-pop-label { display: block; margin: 0 0 4px; font-size: 16px; color: var(--ink); }
.zs-pop hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.zs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; margin-top: 12px; }
.zs-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* 체크박스(☑ 여러 개)와 동그라미(○ 하나만) 꾸미기 */
.zs-ck, .zs-rd { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 16px; color: var(--ink); cursor: pointer; user-select: none; }
.zs-ck input, .zs-rd input { position: absolute; opacity: 0; pointer-events: none; }
.zs-ck i, .zs-rd i { flex: none; width: 22px; height: 22px; border: 1.5px solid #d5dbe1; background: #fff; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.zs-ck i { border-radius: 5px; }
.zs-ck i::after { content: ""; width: 10px; height: 6px; border-left: 2px solid #c8ced5; border-bottom: 2px solid #c8ced5; transform: translateY(-1px) rotate(-45deg); }
.zs-ck input:checked + i { background: var(--primary); border-color: var(--primary); }
.zs-ck input:checked + i::after { border-color: #fff; }
.zs-rd i { border-radius: 50%; }
.zs-rd input:checked + i { border: 7px solid var(--primary); }
.zs-ck input:focus-visible + i, .zs-rd input:focus-visible + i { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 조건 설정: 슬라이더 */
.zs-pop-cond { width: 460px; max-height: calc(100vh - 160px); overflow-y: auto; }
.zs-range-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: var(--ink); }
.zs-range-val { font-size: 15px; }
.zs-range-track { position: relative; height: 28px; margin: 8px 10px 0; }
.zs-range-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--line); }
.zs-range-fill { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--primary); }
.zs-range-track input { position: absolute; left: -10px; width: calc(100% + 20px); top: 0; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.zs-range-track input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--primary); cursor: pointer; }
.zs-range-track input::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 5px solid var(--primary); cursor: pointer; }
.zs-range-track input::-webkit-slider-runnable-track { background: none; }
.zs-range-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.zs-pop-foot { display: flex; justify-content: flex-end; }
.zs-cond-clear { height: 40px; padding: 0 18px; border: 0; border-radius: var(--pill); background: var(--mint); color: var(--primary-ink); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.zs-reset { height: 46px; padding: 0 14px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; }

/* --- 목록 + 지도 --- */
.zs-body { display: grid; grid-template-columns: 370px 1fr; height: calc(100vh - var(--zs-header, 72px) - var(--zs-bar)); }
.zs-list-wrap { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #fff; }
.zs-list-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.zs-pill { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: var(--pill); background: #1C2433; color: #fff; font-size: 15px; font-weight: 800; }
.zs-count { font-size: 14px; color: var(--muted); }
.zs-count b { color: var(--primary); }
.zs-list { list-style: none; margin: 0; padding: 0 20px 20px; overflow-y: auto; flex: 1; }
.zs-empty { padding: 60px 10px; text-align: center; color: var(--muted); line-height: 1.7; }

/* 다방 스타일 가로 카드: [사진] [가격·정보] */
.zs-card { display: grid; grid-template-columns: 164px 1fr; gap: 18px; padding: 18px 8px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px; }
.zs-card:hover { background: #F7F9FC; }
.zs-card.is-active { background: var(--mint-2); box-shadow: inset 0 0 0 2px var(--primary); }
.zs-thumb { position: relative; width: 164px; height: 164px; }
.zs-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; background: var(--line); }
.zs-heart { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.zs-heart svg { width: 28px; height: 28px; fill: rgba(0, 0, 0, .25); stroke: #fff; stroke-width: 1.8; }
.zs-heart[aria-pressed="true"] svg { fill: #FF4D5E; stroke: #FF4D5E; }
.zs-info { min-width: 0; }
.zs-info h3 { margin: 4px 0 6px; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.zs-type { font-size: 15px; color: var(--text); }
.zs-detail { margin-top: 6px; font-size: 15px; color: var(--text); }
.zs-desc { margin-top: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zs-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.zs-tags span { font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 4px; background: var(--mint); color: var(--primary-ink); }
.zs-tags span.is-gray { background: #F1F3F5; color: var(--muted); font-weight: 600; }

.zs-map-wrap { position: relative; background: var(--mint-2); min-height: 0; }
#zs-map { width: 100%; height: 100%; }
.zs-map-notice { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--text); }
.zs-map-notice[hidden] { display: none; }
.zs-map-notice strong { color: var(--ink); font-size: 18px; }
.zs-map-notice code { background: #fff; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); }

/* 지도 위 표시: 지점 아이콘 / 묶음(숫자 동그라미) */
.zs-pin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); display: grid; place-items: center; transform: translate(-50%, -50%); cursor: pointer; }
.zs-pin svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; }
.zs-pin.is-zb { background: var(--primary); }
.zs-pin.is-active { transform: translate(-50%, -50%) scale(1.25); box-shadow: 0 0 0 4px rgba(47, 107, 246, .35), 0 3px 10px rgba(0, 0, 0, .25); }
.zs-cluster { border-radius: 50%; background: rgba(47, 107, 246, .55); border: 2px solid rgba(47, 107, 246, .25); color: #fff; font: 800 18px/1 var(--font); display: grid; place-items: center; transform: translate(-50%, -50%); cursor: pointer; box-shadow: 0 0 0 6px rgba(47, 107, 246, .15); }

/* --- 휴대폰 --- */
@media (max-width: 900px) {
  .zs-bar { height: auto; flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .zs-search { width: 100%; max-width: none; }
  .zs-drop summary { height: 40px; padding: 0 12px; gap: 10px; font-size: 14px; }
  .zs-pop, .zs-pop-cond { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 70vh; overflow-y: auto; }
  .zs-grid { grid-template-columns: repeat(2, 1fr); }
  .zs-body { grid-template-columns: 1fr; height: auto; }
  .zs-map-wrap { order: -1; height: 55vh; min-height: 320px; }
  .zs-list { overflow: visible; }
}

/* 조건 설정 창은 오른쪽 끝에 맞춰서 화면 밖으로 안 나가게 */
@media (min-width: 901px) { .zs-drop[data-filter="cond"] .zs-pop { left: auto; right: 0; } }

/* ===== 지도보기 페이지 머리글: 로고를 검색칸과 같은 왼쪽 끝에 ===== */
@media (min-width: 1024px) {
  /* 머리글은 다른 페이지와 똑같이 둬요 (2026-11-27 대표님 요청) */
}

/* ===== 목록 카드를 작게: 한 화면에 5개 정도 ===== */
.zs-list-head { padding: 12px 16px 6px; }
.zs-pill { height: 32px; padding: 0 14px; font-size: 14px; }
.zs-list { padding: 0 12px 16px; }
.zs-card { grid-template-columns: 100px 1fr; gap: 14px; padding: 10px 6px; align-items: center; }
.zs-thumb { width: 100px; height: 100px; }
.zs-heart { top: 4px; right: 4px; width: 28px; height: 28px; }
.zs-heart svg { width: 22px; height: 22px; }
.zs-info h3 { margin: 0 0 3px; font-size: 18px; }
.zs-type, .zs-detail { font-size: 13px; margin-top: 2px; }
.zs-desc { font-size: 13px; margin-top: 2px; }
.zs-tags { flex-wrap: nowrap; overflow: hidden; gap: 4px; margin-top: 6px; }
.zs-tags span { flex: none; font-size: 12px; padding: 2px 6px; }

@media (max-width: 900px) {
  .zs-card { grid-template-columns: 96px 1fr; gap: 12px; }
  .zs-thumb { width: 96px; height: 96px; }
  .zs-info h3 { font-size: 17px; }
}
.zs-info { line-height: 1.35; }
.zs-info h3 { line-height: 1.3; }

/* 방 정보 오른쪽 위: 집주인(직거래) / 부동산(중개거래) 표시 */
.zs-card { position: relative; }
.zs-who { position: absolute; top: 10px; right: 6px; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 800; line-height: 1.4; }
.zs-who.is-owner { background: #2F6BF6; color: #fff; }
.zs-who.is-agent { background: #FFF1D6; color: #9A5B00; border: 1px solid #F5C77A; }
.zs-info h3 { padding-right: 58px; }
.zs-info h3 { padding-right: 0; }
.zs-who { top: 38px; }
.zs-type { padding-right: 56px; }
/* 집주인/부동산 표시: 1/3 작게, 맨 위로 */
.zs-who { top: 12px; right: 4px; padding: 1px 6px; border-radius: 4px; font-size: 9px; }
.zs-type { padding-right: 0; }
.zs-info h3 { padding-right: 40px; white-space: nowrap; letter-spacing: -0.03em; }
.zs-info h3 { font-size: 16.5px; padding-right: 36px; }

/* ===== 왼쪽 세로 메뉴 (다방처럼) ===== */
.zs-body { grid-template-columns: 84px 370px 1fr; }
.zs-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-right: 1px solid var(--line); background: #fff; overflow-y: auto; }
.zs-rail-btn { width: 72px; padding: 10px 2px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1px solid transparent; border-radius: 10px; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; line-height: 1.25; word-break: keep-all; text-align: center; }
.zs-rail-btn svg { width: 30px; height: 30px; }
.zs-rail-btn:hover { background: #F3F6FC; }
.zs-rail-btn[aria-pressed="true"] { border-color: var(--primary); background: #EEF3FE; color: var(--primary); font-weight: 800; }
.zs-rail hr { width: 48px; border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
@media (max-width: 900px) {
  .zs-body { grid-template-columns: 1fr; }
  .zs-rail { order: -2; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; }
  .zs-rail hr { width: 1px; height: 40px; border-top: 0; border-left: 1px solid var(--line); margin: 0 4px; }
  .zs-rail-btn { flex: none; width: 66px; font-size: 12px; }
}

/* 사용승인일: 알약 모양 버튼 (하나만 선택) */
.zs-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.zs-pills label { cursor: pointer; }
.zs-pills input { position: absolute; opacity: 0; pointer-events: none; }
.zs-pills span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: #F1F3F6; color: #8A96A3; font-size: 15px; font-weight: 700; }
.zs-pills input:checked + span { background: var(--primary); color: #fff; }
.zs-pills input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
/* 펼침 창 위치: 조건 설정은 왼쪽 정렬, 맨 끝(거래 형태)은 오른쪽 정렬 */
@media (min-width: 901px) {
  .zs-drop[data-filter="cond"] .zs-pop { left: 0; right: auto; }
  .zs-drop[data-filter="trade"] .zs-pop { left: auto; right: 0; }
}

/* ===== 우리동네 패널 (목록 자리에 열려요) ===== */
.zs-town { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #fff; }
.zs-town[hidden], .zs-list-wrap[hidden] { display: none; }
.zs-town-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 10px; }
.zs-town-place { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 20px; font-weight: 800; color: var(--primary); }
.zs-town-place svg { width: 22px; height: 22px; fill: var(--primary); }
.zs-town-close { width: 32px; height: 32px; border: 0; border-radius: 8px; background: #F1F3F6; color: var(--muted); cursor: pointer; }
.zs-town-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.zs-town-tabs button { height: 46px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: 15px; font-weight: 700; color: #9AA4B2; cursor: pointer; }
.zs-town-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.zs-town-body { flex: 1; overflow-y: auto; padding: 18px; }
.zs-town-sub { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--text); }
.zs-town-sub small { font-weight: 400; color: var(--muted); }
.zs-town-total { margin: 0 0 16px; font-size: 30px; font-weight: 900; color: var(--ink); }
.zs-town-total b { color: var(--primary); }
.zs-town-chart { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.zs-donut { width: 140px; height: 140px; flex: none; }
.zs-legend { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 8px; }
.zs-legend li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.zs-legend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.zs-legend b { margin-left: auto; }
.zs-town-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zs-town-stats div { padding: 14px; border-radius: 12px; background: #F5F7FA; }
.zs-town-stats small { display: block; font-size: 13px; color: var(--muted); }
.zs-town-stats b { font-size: 20px; color: var(--ink); }
.zs-town-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.zs-town-cat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; cursor: pointer; }
.zs-town-cat span { font-size: 13px; color: var(--muted); }
.zs-town-cat b { font-size: 20px; color: var(--ink); }
.zs-town-cat.is-on { border-color: var(--primary); background: #EEF3FE; }
.zs-town-cat.is-on b { color: var(--primary); }
.zs-town-list { list-style: none; margin: 0; padding: 0; }
.zs-town-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.zs-town-list b { font-size: 15px; color: var(--ink); }
.zs-town-list span { font-size: 13px; font-weight: 700; color: var(--primary); }
.zs-town-list small { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.zs-town-empty { padding: 30px 6px; text-align: center; color: var(--muted); font-size: 14px; }
.zs-town-notice { margin-top: 12px; padding: 22px 18px; border-radius: 12px; background: #F5F7FA; font-size: 14px; line-height: 1.7; color: var(--text); }
.zs-town-notice code { background: #fff; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); }
.zs-town-credit { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: right; }
.zs-poi { padding: 4px 9px; border-radius: 999px; background: #12357D; color: #fff; font: 700 12px/1.3 var(--font); white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); transform: translate(-50%, -50%); }
.zs-rail-btn[data-rail-town][aria-pressed="true"] { border-color: var(--primary); background: #EEF3FE; color: var(--primary); font-weight: 800; }
/* 미인증 표시 (회색) */
.zs-who.is-none { background: #F1F3F6; color: #8A96A3; border: 1px solid #DDE2E8; }
.zs-info h3 { padding-right: 46px; }

/* 우리동네 탭 8개 (2줄) + 준비 중 */
.zs-town-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.zs-town-tabs button { height: 42px; font-size: 14px; white-space: nowrap; letter-spacing: -0.3px; }
.zs-town-tabs button i { font-style: normal; font-size: 9.5px; font-weight: 700; color: #9AA4B2; background: #EEF1F5; border-radius: 4px; padding: 0 3px; margin-left: 2px; vertical-align: 2px; }
.zs-town-tabs button[aria-selected="true"] i { color: var(--blue, #2F6BF6); background: #E8F0FE; }
.zs-town-soon { margin-top: 14px; padding: 34px 20px; border-radius: 12px; background: #F5F7FA; text-align: center; }
.zs-town-soon span { display: block; font-size: 34px; margin-bottom: 8px; }
.zs-town-soon b { display: block; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.zs-town-soon p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); word-break: keep-all; }

/* ===== 방 상세 화면 (목록 오른쪽에 열려요) ===== */
.zs-body.has-room { grid-template-columns: 84px 370px 440px 1fr; }
.zs-room { position: relative; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: #fff; z-index: 5; }
.zs-room[hidden] { display: none; }
.zr-close { position: absolute; top: 14px; right: -58px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.15); font-size: 18px; color: #333; cursor: pointer; }
.zr-close:hover { background: #F3F5F8; }
.zr-head { display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 18px 0 22px; border-bottom: 1px solid var(--line); flex: none; }
.zr-head h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink, #191F28); }
.zr-acts { display: flex; gap: 4px; }
.zr-icon { width: 40px; height: 40px; border: 0; background: none; border-radius: 8px; cursor: pointer; color: #333; display: grid; place-items: center; }
.zr-icon:hover { background: #F3F5F8; }
.zr-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zr-heart[aria-pressed="true"] svg { fill: #FF4D6A; stroke: #FF4D6A; }
.zr-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; }
.zr-gal { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 120px 120px; gap: 2px; background: #fff; }
.zr-gal.is-one { display: block; height: 242px; }
.zr-gal img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zr-ph { position: relative; overflow: hidden; background: #EEF1F5; }
.zr-ph.is-main { grid-row: 1 / 3; }
.zr-ph span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 800; font-size: 17px; }
.zr-gal.zr-n2 { grid-template-columns: 1fr 1fr; }
.zr-gal.zr-n3 { grid-template-columns: 2fr 1fr; }
.zr-gal.zr-n4 .zr-ph:last-child { grid-column: span 2; }
.zr-nobar { display: flex; align-items: center; gap: 6px; padding: 12px 22px; background: #1B2D6B; color: #fff; font-size: 15px; font-weight: 700; }
.zr-nobar button { width: 26px; height: 26px; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; opacity: .85; }
.zr-nobar button:hover { opacity: 1; }
.zr-nobar svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.zr-sum { padding: 20px 22px 22px; border-bottom: 8px solid #F3F5F8; }
.zr-who { display: inline-block; margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.zr-who.is-owner { color: #2F6BF6; }
.zr-who.is-none { color: #8B95A1; }
.zr-price { margin: 0; font-size: 27px; font-weight: 800; color: #191F28; letter-spacing: -0.5px; }
.zr-desc { margin: 8px 0 18px; font-size: 15.5px; line-height: 1.55; color: #333D4B; }
.zr-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0 0 16px; padding: 0; }
.zr-facts li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #333D4B; }
.zr-facts svg { width: 21px; height: 21px; fill: none; stroke: #4E5968; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.zr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.zr-tags span { padding: 6px 11px; border-radius: 6px; background: #F2F4F6; font-size: 13px; font-weight: 700; color: #4E5968; }
.zr-tabs { position: sticky; top: 0; z-index: 2; display: flex; background: #fff; border-bottom: 1px solid var(--line); }
.zr-tabs button { flex: 1; height: 48px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: 15px; font-weight: 700; color: #9AA4B2; cursor: pointer; }
.zr-tabs button.is-on { color: #191F28; border-bottom-color: #191F28; }
.zr-sec { padding: 24px 22px 18px; border-bottom: 8px solid #F3F5F8; }
.zr-sec:last-child { border-bottom: 0; padding-bottom: 30px; }
.zr-sec h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: #191F28; }
.zr-sec dl { margin: 0; }
.zr-row { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 15px 0; border-bottom: 1px solid #F0F2F5; font-size: 15px; }
.zr-row:last-child { border-bottom: 0; }
.zr-row dt { font-weight: 700; color: #333D4B; line-height: 1.4; }
.zr-row dd { margin: 0; color: #333D4B; line-height: 1.4; }
.zr-row dd small { display: block; color: #8B95A1; font-size: 12.5px; font-weight: 500; margin-top: 3px; }
.zr-row dd.zr-strong { color: #2F6BF6; font-weight: 800; }
.zr-none { color: #B0B8C1; }
.zr-unit { margin-left: 6px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.zr-opts { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 0; padding: 0; }
.zr-opts li { padding: 10px 4px; border-radius: 8px; background: #F5F7FA; text-align: center; font-size: 13.5px; font-weight: 600; color: #333D4B; }
.zr-empty, .zr-note { margin: 10px 0 0; color: #8B95A1; font-size: 14px; }
.zr-addr { margin: 10px 0 0; font-size: 16px; font-weight: 700; color: #191F28; }
.zr-town { margin-top: 14px; width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.zr-town:hover { background: #F5F7FA; }
.zr-bar { position: relative; display: grid; grid-template-columns: 56px 56px 1fr; gap: 8px; padding: 12px 18px 14px; border-top: 1px solid var(--line); background: #fff; flex: none; }
.zr-bar button, .zr-chat { height: 54px; border-radius: 8px; display: grid; place-items: center; }
.zr-off { border: 1px solid #E5E8EB; background: #F7F8FA; color: #C4CAD1; cursor: not-allowed; }
.zr-off svg { width: 22px; height: 22px; fill: currentColor; }
.zr-chat { background: #2F6BF6; color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; }
.zr-chat:hover { background: #1F58DE; }
.zr-tip { animation: zrTip 6s forwards; position: absolute; right: 22px; bottom: 76px; padding: 7px 12px; border-radius: 8px; background: #191F28; color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.zr-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #191F28; }
.zr-toast { position: absolute; left: 50%; bottom: 96px; transform: translate(-50%, 10px); margin: 0; padding: 10px 16px; border-radius: 10px; background: rgba(25,31,40,.92); color: #fff; font-size: 14px; white-space: nowrap; opacity: 0; transition: .2s; pointer-events: none; z-index: 4; }
.zr-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 901px) and (max-width: 1280px) { .zs-body.has-room { grid-template-columns: 84px 420px 1fr; } .zs-body.has-room .zs-list-wrap, .zs-body.has-room .zs-town { display: none; } }
@media (max-width: 900px) {
  .zs-body.has-room { grid-template-columns: 1fr; }
  .zs-room { position: fixed; inset: 0; z-index: 1000; }
  .zr-close { top: 9px; right: 12px; left: auto; box-shadow: none; }
  .zr-head { padding-right: 64px; }
}
@keyframes zrTip { 0%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* 왼쪽 세로 메뉴 조금 작게 (84px → 68px) */
@media (min-width: 901px) {
  .zs-body { grid-template-columns: 68px 370px 1fr; }
  .zs-body.has-room { grid-template-columns: 68px 370px 440px 1fr; }
  .zs-rail { gap: 2px; padding: 10px 4px; }
  .zs-rail-btn { width: 58px; padding: 7px 1px; gap: 4px; font-size: 11.5px; border-radius: 9px; }
  .zs-rail-btn svg { width: 23px; height: 23px; }
  .zs-rail hr { width: 38px; margin: 4px 0; }
}
@media (min-width: 901px) and (max-width: 1280px) { .zs-body.has-room { grid-template-columns: 68px 420px 1fr; } }

/* ① 채팅문의 위 안전 안내 */
.zr-safe { flex: none; padding: 10px 18px 8px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; }
.zr-safe p { margin: 0; }
.zr-safe.is-none { background: #FFF6E5; color: #7A4E00; }
.zr-safe.is-owner { background: #EEF4FF; color: #23407A; }
.zr-safe-sub { margin-top: 4px !important; font-size: 11.5px; color: #8B95A1; }
.zr-safe-sub a { color: #2F6BF6; font-weight: 700; white-space: nowrap; }
.zr-tip { bottom: auto; top: -38px; }
/* ② 안전 수칙 확인 창 */
.zr-modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(17, 24, 39, .55); }
.zr-modal-box { position: relative; width: 100%; max-width: 400px; max-height: 100%; overflow-y: auto; padding: 24px 22px 20px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.zr-modal-box h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: #191F28; }
.zr-modal-lead { margin: 0 0 10px; font-size: 14px; line-height: 1.6; color: #4E5968; }
.zr-modal-box ol { margin: 0 0 14px; padding-left: 20px; font-size: 14px; line-height: 1.65; color: #333D4B; }
.zr-modal-box li { margin: 5px 0; }
.zr-modal-ck { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #F5F7FA; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.zr-modal-ck input { width: 18px; height: 18px; accent-color: #2F6BF6; }
.zr-modal-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 12px; }
.zr-modal-btns a, .zr-modal-btns button { height: 48px; border-radius: 10px; display: grid; place-items: center; font: inherit; font-size: 15px; font-weight: 800; text-decoration: none; }
.zr-modal-btns a { border: 1px solid var(--line); color: #333D4B; background: #fff; }
.zr-modal-btns .is-go { border: 0; background: #2F6BF6; color: #fff; cursor: pointer; }
.zr-modal-btns .is-go:disabled { background: #B9C6E4; cursor: not-allowed; }
.zr-modal-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; background: none; font-size: 16px; color: #6B7684; cursor: pointer; }

/* 방 상세 칸 양옆 구분: 연한 선 + 바깥으로 은은하게 퍼지는 그림자(그라데이션) */
.zs-room { border-left: 1px solid #E3E7ED; border-right: 1px solid #E3E7ED; box-shadow: -10px 0 16px -12px rgba(23, 37, 84, .28), 10px 0 16px -12px rgba(23, 37, 84, .28); z-index: 6; }
@media (max-width: 900px) { .zs-room { box-shadow: none; border: 0; } }
.zs-who.is-resident { background: #E6F4EA; color: #1E7B3C; border: 1px solid #A9D8B8; }
.zr-who.is-resident { color: #1E7B3C; }
.zr-safe.is-resident { border-color: #A9D8B8; background: #F1FAF4; }

/* 필터 줄 개편: 가격 · 필터 · 바로 켜기 */
.zs-pop-more { width: 520px; max-height: calc(100vh - 160px); overflow-y: auto; }
.zs-pop-label small, .zs-ck small { margin-left: 4px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.zs-pop-more .zs-pills { margin-top: 10px; gap: 8px; }
.zs-pop-more .zs-pills span { height: 36px; padding: 0 14px; font-size: 14.5px; }
.zs-quick { display: flex; gap: 6px; padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line); }
.zs-quick button { height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 14.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.zs-quick button:hover { border-color: #A9BCDD; }
.zs-quick button[aria-pressed="true"] { border-color: var(--primary); background: #EEF3FE; color: var(--primary); }
@media (min-width: 901px) { .zs-drop[data-filter="more"] .zs-pop { left: 0; right: auto; } }
@media (max-width: 900px) {
  .zs-quick { order: 5; width: 100%; padding: 0; margin: 0; border-left: 0; overflow-x: auto; scrollbar-width: none; }
  .zs-quick::-webkit-scrollbar { display: none; }
  .zs-quick button { height: 34px; font-size: 13.5px; padding: 0 12px; flex: none; }
  .zs-pop-more { width: auto; }
}
/* 허위매물·신분 위장 신고 */
.zr-report { margin: 0; padding: 4px 18px 10px; text-align: right; background: #fff; }
.zr-report button { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 12.5px; color: #8B95A1; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.zr-report button:hover { color: #D93A3F; }
.zr-rep-opts { display: grid; gap: 8px; margin: 6px 0 12px; font-size: 14px; color: #333D4B; }
.zr-rep-opts label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.zr-rep-opts input { margin-top: 3px; }
.zr-rep-msg, .zr-rep-tel { width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #DDE3EA; border-radius: 8px; font: inherit; font-size: 14px; box-sizing: border-box; }
.zr-rep-cancel { border: 1px solid var(--line); color: #333D4B; background: #fff; cursor: pointer; }
.zr-rep-out { margin: 10px 0 0; font-size: 13.5px; font-weight: 700; color: #1E7B3C; min-height: 1em; }
/* 분양 중·회사매물 체크 시 안내 */
.zs-bn-note { display: block; margin: 0 16px 10px; padding: 12px 14px; border-radius: 12px; background: #FFF4EC; color: #B6420A; font-size: 14px; text-decoration: none; }
.zs-bn-note b { font-weight: 800; }
.zs-bn-note[hidden] { display: none; }
/* 필터 창 확장 (지역·방 구조·층·보안·난방) */
.zs-region { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zs-region select { height: 44px; padding: 0 12px; border: 1px solid #D5DBE5; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: #1C2433; }
.zs-region select:disabled { background: #F3F5F8; color: #A0A9B6; }
.zs-pop-hint { margin: 10px 0 0; font-size: 12.5px; color: #8B95A1; }
.zs-pop-more { max-height: min(76vh, 760px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 0; }
.zs-pop-foot2 { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin: 12px -24px 0; padding: 12px 24px 16px; background: #fff; border-top: 1px solid #E8EBF0; }
.zs-pop-foot2 .zs-cond-clear { height: 46px; }
.zs-apply { height: 46px; border: 0; border-radius: 10px; background: #2F6BF6; color: #fff; font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.zs-apply:hover { background: #1F58DE; }
body:has(.zs-drop[open]) .kakao-float { display: none; }

/* PC: 필터 창은 지도 대신 왼쪽 목록 칸 위에 열어요 (직방 방식 · 2026-11-26 직방 실측: 폭 358px, 목록 칸 위, 아래 초기화/매물보기 고정) */
@media (min-width: 901px) {
  .zs-page .zs-drop .zs-pop.is-docked { position: fixed; top: var(--dock-top); left: var(--dock-left); right: auto; width: var(--dock-w); max-height: none; height: var(--dock-h); padding: 20px 22px 0; border-radius: 0; box-shadow: 8px 0 24px -12px rgba(16,24,40,.25); border-right: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; z-index: 40; }
  .zs-page .zs-pop.is-docked .zs-grid { grid-template-columns: 1fr 1fr; }
  .zs-page .zs-pop.is-docked .zs-pop-foot { position: sticky; bottom: 0; margin: 14px -22px 0; padding: 12px 22px 16px; background: #fff; border-top: 1px solid var(--line); }
  .zs-page .zs-pop-cond.is-docked .zs-pop-foot { justify-content: stretch; }
  .zs-page .zs-pop-cond.is-docked .zs-pop-foot .zs-cond-clear { width: 100%; height: 46px; }
}
/* 필터 창 머리(제목 + 닫기) · 아래 버튼 — 가격·필터 똑같이 */
.zs-pop-top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 8px; }
.zs-pop-top h4 { margin: 0; }
.zs-pop-x { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: #6B7684; font-size: 16px; cursor: pointer; }
.zs-pop-x:hover { background: #F2F4F6; color: #1C2433; }
.zs-pop-cond .zs-pop-foot2 { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; }
@media (min-width: 901px) {
  .zs-page .zs-drop .zs-pop.is-docked { height: auto; bottom: 0; }
  .zs-page .zs-pop.is-docked .zs-pop-top { position: sticky; top: -20px; z-index: 2; margin: -20px -22px 8px; padding: 16px 22px 10px; background: #fff; border-bottom: 1px solid var(--line); }
  .zs-page .zs-pop.is-docked .zs-pop-foot2 { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-left: -22px; margin-right: -22px; padding-left: 22px; padding-right: 22px; }
  .zs-page .zs-pop-cond.is-docked .zs-pop-foot .zs-cond-clear { width: auto; }
}

/* PC 드롭박스: 버튼 바로 아래, 좁게(360px) · 화면 안에서만 · 위 제목/아래 버튼 고정 */
@media (min-width: 901px) {
  .zs-page .zs-drop .zs-pop, .zs-page .zs-drop[data-filter="cond"] .zs-pop { left: 0; right: auto; width: 360px; max-height: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain; padding: 0 20px; border-radius: 14px; }
  .zs-page .zs-pop .zs-grid { grid-template-columns: 1fr 1fr; }
  .zs-page .zs-pop .zs-pop-top { position: sticky; top: 0; z-index: 2; margin: 0 -20px 8px; padding: 14px 20px 10px; background: #fff; border-bottom: 1px solid var(--line); }
  .zs-page .zs-pop .zs-pop-foot2 { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin: 12px -20px 0; padding: 10px 20px 14px; background: #fff; border-top: 1px solid var(--line); }
  .zs-page .zs-pop .zs-pop-foot2 .zs-cond-clear, .zs-page .zs-pop .zs-apply { height: 44px; width: auto; }
}

/* ===== PC 드롭박스: 스크롤 없이 한눈에 (항목 이름 왼쪽 · 작은 칩 오른쪽) ===== */
@media (min-width: 901px) {
  .zs-page .zs-drop .zs-pop, .zs-page .zs-drop[data-filter="cond"] .zs-pop {
    display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: start; gap: 7px 10px;
    width: 600px; max-height: none; overflow: visible; padding: 0 18px;
  }
  .zs-page .zs-drop[data-filter="cond"] .zs-pop { width: 460px; }
  .zs-page .zs-pop > hr { display: none; }
  .zs-page .zs-pop > .zs-pop-top, .zs-page .zs-pop > .zs-pop-foot2, .zs-page .zs-pop > .zs-pop-hint, .zs-page .zs-pop > .zs-range { grid-column: 1 / -1; }
  .zs-page .zs-pop .zs-pop-top { position: static; margin: 0 -18px 2px; padding: 10px 18px 8px; }
  .zs-page .zs-pop .zs-pop-top h4 { font-size: 16px; }
  .zs-page .zs-pop .zs-pop-x { width: 28px; height: 28px; }
  .zs-page .zs-pop > .zs-pop-label { margin: 0; padding-top: 5px; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
  .zs-page .zs-pop > .zs-pop-label small { display: none; }
  .zs-page .zs-pop .zs-grid, .zs-page .zs-pop .zs-pills { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
  .zs-page .zs-pop .zs-ck { position: relative; padding: 0; font-size: 13px; }
  .zs-page .zs-pop .zs-ck i { position: absolute; width: 0; height: 0; border: 0; overflow: hidden; }
  .zs-page .zs-pop .zs-ck { height: 28px; padding: 0 10px; border: 1px solid #D5DBE5; border-radius: 99px; background: #fff; color: #333D4B; }
  .zs-page .zs-pop .zs-ck:has(input:checked) { border-color: var(--primary); background: #EEF4FF; color: var(--primary); font-weight: 700; }
  .zs-page .zs-pop .zs-ck:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 1px; }
  .zs-page .zs-pop .zs-pills label span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; font-size: 13px; }
  .zs-page .zs-pop .zs-region { gap: 6px; } .zs-page .zs-pop .zs-region select { height: 30px; font-size: 13px; padding: 0 8px; }
  .zs-page .zs-pop #zs-gender-sec:not([hidden]) { display: contents; }
  .zs-page .zs-pop #zs-gender-sec > hr { display: none; }
  .zs-page .zs-pop #zs-gender-sec > .zs-pop-label { margin: 0; padding-top: 5px; font-size: 13.5px; font-weight: 800; }
  .zs-page .zs-pop #zs-gender-sec > .zs-pop-label small { display: none; }
  .zs-page .zs-pop .zs-range { display: grid; grid-template-columns: 76px 1fr 120px; align-items: center; gap: 0 10px; }
  .zs-page .zs-pop .zs-range-head { display: contents; font-size: 13.5px; }
  .zs-page .zs-pop .zs-range-head b { grid-column: 1; font-weight: 800; }
  .zs-page .zs-pop .zs-range-val { grid-column: 3; grid-row: 1; font-size: 12.5px; text-align: right; color: var(--muted); }
  .zs-page .zs-pop .zs-range-track { grid-column: 2; grid-row: 1; height: 22px; margin: 0 10px; }
  .zs-page .zs-pop .zs-range-track input { height: 22px; }
  .zs-page .zs-pop .zs-range-foot { display: none; }
  .zs-page .zs-pop > .zs-pop-hint { margin: 0; font-size: 12px; }
  .zs-page .zs-pop .zs-pop-foot2 { position: static; margin: 4px -18px 0; padding: 8px 18px 12px; }
  .zs-page .zs-pop .zs-pop-foot2 .zs-cond-clear, .zs-page .zs-pop .zs-apply { height: 38px; font-size: 14px; }
}
@media (min-width: 901px) {
  .zs-page .zs-drop .zs-pop { grid-template-columns: 90px minmax(0, 1fr); gap: 5px 8px; width: 660px; }
  .zs-page .zs-drop[data-filter="cond"] .zs-pop { width: 480px; }
  .zs-page .zs-pop .zs-range { grid-template-columns: 90px 1fr 120px; gap: 0 8px; }
  .zs-page .zs-pop .zs-ck, .zs-page .zs-pop .zs-pills label span { height: 26px; padding: 0 9px; }
  .zs-page .zs-pop > .zs-pop-label, .zs-page .zs-pop #zs-gender-sec > .zs-pop-label { padding-top: 4px; }
}

/* ===== 2026-11-26 v3: 탭 3개 + 드롭박스 4개 (글자·버튼 원래 크기, 아래로 길게) ===== */
.zs-cat { display: inline-flex; flex: none; padding: 4px; border-radius: 12px; background: #F1F3F6; }
.zs-cat button { height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 14.5px; font-weight: 700; color: #6B7684; cursor: pointer; white-space: nowrap; }
.zs-cat button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(16,24,40,.12); }
.zs-cat button[data-cat-tab="bun"][aria-selected="true"] { color: #B6420A; }
.zs-page .zs-search { width: auto; flex: 1 1 220px; min-width: 180px; max-width: 340px; }
.zs-drop[hidden] { display: none; }
.zs-sec[hidden] { display: none !important; }
.zs-card-site .zs-who.is-site { background: #FFF0E6; color: #B6420A; }
@media (min-width: 901px) {
  .zs-page .zs-drop .zs-pop, .zs-page .zs-drop[data-filter] .zs-pop {
    display: block; width: 460px; max-height: calc(100vh - 160px); overflow-y: auto; padding: 0 22px; border-radius: 16px;
  }
  .zs-page .zs-pop .zs-pop-top { position: sticky; top: 0; margin: 0 -22px 4px; padding: 16px 22px 12px; }
  .zs-page .zs-pop .zs-pop-top h4 { font-size: 18px; }
  .zs-page .zs-pop .zs-pop-x { width: 34px; height: 34px; }
  .zs-page .zs-pop .zs-sec { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .zs-page .zs-pop .zs-sec:last-of-type { border-bottom: 0; }
  .zs-page .zs-pop .zs-sec > .zs-pop-label { display: block; margin: 0 0 10px; padding: 0; font-size: 15.5px; font-weight: 800; }
  .zs-page .zs-pop .zs-sec > .zs-pop-label small { display: inline; margin-left: 6px; font-size: 12.5px; font-weight: 500; }
  .zs-page .zs-pop .zs-grid, .zs-page .zs-pop .zs-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
  .zs-page .zs-pop .zs-ck, .zs-page .zs-pop .zs-pills label span { height: 38px; padding: 0 14px; font-size: 14.5px; }
  .zs-page .zs-pop .zs-region select { height: 42px; font-size: 14.5px; padding: 0 10px; }
  .zs-page .zs-pop .zs-range { display: block; }
  .zs-page .zs-pop .zs-range-head { display: flex; justify-content: space-between; font-size: 15.5px; }
  .zs-page .zs-pop .zs-range-head b { font-weight: 800; }
  .zs-page .zs-pop .zs-range-val { font-size: 14px; color: var(--primary); font-weight: 700; }
  .zs-page .zs-pop .zs-range-track { height: 28px; margin: 10px 10px 0; }
  .zs-page .zs-pop .zs-range-track input { height: 28px; }
  .zs-page .zs-pop .zs-range-foot { display: flex; }
  .zs-page .zs-pop .zs-pop-hint { margin: 8px 0 0; font-size: 12.5px; }
  .zs-page .zs-pop .zs-pop-foot2 { position: sticky; bottom: 0; margin: 0 -22px; padding: 12px 22px 16px; }
  .zs-page .zs-pop .zs-pop-foot2 .zs-cond-clear, .zs-page .zs-pop .zs-apply { height: 46px; font-size: 15px; }
}
@media (max-width: 900px) { .zs-cat { order: -1; width: 100%; } .zs-cat button { flex: 1; } }
@media (min-width: 901px) {
  /* 항목이 많은 '방 조건'·'시설·옵션'은 두 줄(왼쪽·오른쪽)로 놓아 스크롤 없이 */
  .zs-page .zs-drop[data-filter="room"] .zs-pop, .zs-page .zs-drop[data-filter="opt"] .zs-pop { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; align-content: start; width: 760px; }
  .zs-page .zs-drop[data-filter="room"] .zs-pop > .zs-pop-top, .zs-page .zs-drop[data-filter="opt"] .zs-pop > .zs-pop-top,
  .zs-page .zs-drop[data-filter="room"] .zs-pop > .zs-pop-foot2, .zs-page .zs-drop[data-filter="opt"] .zs-pop > .zs-pop-foot2 { grid-column: 1 / -1; }
  .zs-page .zs-pop .zs-sec { border-bottom: 0; border-top: 1px solid var(--line); }
}
/* 노트북 화면(901~1279px): 위 줄이 넘치지 않게 조금씩 줄여요 */
@media (min-width: 901px) and (max-width: 1279px) {
  .zs-page .zs-bar { gap: 6px; padding: 0 12px; }
  .zs-cat button { padding: 0 9px; font-size: 13.5px; }
  .zs-page .zs-search { flex-basis: 150px; min-width: 130px; }
  .zs-page .zs-drop summary { gap: 8px; padding: 0 10px 0 12px; font-size: 14px; }
  .zs-quick { padding-left: 6px; }
  .zs-quick button { padding: 0 10px; font-size: 13.5px; }
}
@media (min-width: 901px) {
  .zs-page .zs-drop[data-filter="opt"] .zs-sec:has(input[name="built"]) { grid-column: 1 / -1; }
}
.zs-card-site h3 { padding-right: 48px; font-size: 15.5px; }

/* ===== 2026-11-27: 검색창 없음 · 맨 왼쪽 [매물종류] 드롭박스 ===== */
.zs-search[hidden], .zs-qchip[hidden] { display: none !important; }
.zs-drop-kind summary { border-color: #1C2433; color: #1C2433; font-weight: 800; }
.zs-pop-kind { width: 340px !important; }
.zs-kind-list { display: grid; gap: 8px; padding: 6px 0 16px; }
.zs-kind-list button { display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.zs-kind-list button b { font-size: 16px; color: var(--ink); }
.zs-kind-list button small { font-size: 12.5px; color: var(--muted); }
.zs-kind-list button:hover { border-color: #A9BCDD; }
.zs-kind-list button[aria-checked="true"] { border-color: var(--primary); background: #F2F6FF; }
.zs-kind-list button[aria-checked="true"] b { color: var(--primary); }
.zs-kind-list button[data-cat-tab="bun"][aria-checked="true"] { border-color: #E8590C; background: #FFF6F0; }
.zs-kind-list button[data-cat-tab="bun"][aria-checked="true"] b { color: #B6420A; }
body[data-zs-cat="bun"] .zs-drop-kind summary { border-color: #E8590C; color: #B6420A; }
.zs-qchip { height: 38px; padding: 0 12px; border: 1px solid #A9BCDD; border-radius: 999px; background: #EEF3FE; color: var(--primary); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.zs-rail-apt svg { width: 30px; height: 30px; }

/* ===== 아파트 매물 상세 > '단지 실거래가' (apt-real.js) ===== */
.zr-real-info { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.zr-real-info div { padding: 10px; border-radius: 10px; background: #F7F8FA; }
.zr-real-info dt { font-size: 11.5px; color: var(--muted); }
.zr-real-info dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 800; color: var(--ink); }
.zr-real-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.zr-real-tabs button { height: 42px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: 15px; font-weight: 700; color: #9AA4B2; cursor: pointer; }
.zr-real-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.zr-real-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.zr-real-sizes button { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 700; color: #4E5968; cursor: pointer; }
.zr-real-sizes button small { font-weight: 500; color: var(--muted); }
.zr-real-sizes button[aria-pressed="true"] { border-color: var(--primary); background: #EEF4FF; color: var(--primary); }
.zr-real-big { margin: 4px 0 6px; }
.zr-real-big small { display: block; font-size: 12.5px; color: var(--muted); }
.zr-real-big b { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.zr-real-chart { width: 100%; height: auto; margin: 4px 0 10px; }
.zr-real-chart polyline { fill: none; stroke: var(--primary); stroke-width: 2.2; stroke-linejoin: round; }
.zr-real-chart circle { fill: #fff; stroke: var(--primary); stroke-width: 2; }
.zr-real-chart .g { stroke: #E8EBF0; stroke-dasharray: 3 3; }
.zr-real-chart text { font-size: 10px; fill: #8B95A1; }
.zr-real-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.zr-real-table th, .zr-real-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.zr-real-table th { font-size: 12px; color: var(--muted); font-weight: 700; }
.zr-real-empty { margin: 14px 0; font-size: 13.5px; color: var(--muted); }
.zr-real-info { margin: 16px 0 6px; }
.zr-real-note { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ===== 지도 표시 (다방 방식 · 2026-11-27) ===== */
.zs-rail-btn[aria-current="page"] { border-color: var(--primary); background: #EEF3FE; color: var(--primary); font-weight: 800; }
/* 구·동 묶음: 파란 동그라미 숫자 + 동 이름 */
.zs-dong { position: relative; width: max-content; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 3px; border-radius: 17px; background: #fff; border: 1px solid #D5DEEE; box-shadow: 0 2px 8px rgba(15, 30, 60, .18); transform: translate(-50%, -50%); cursor: pointer; white-space: nowrap; font-family: var(--font); }
.zs-dong b { min-width: 28px; height: 28px; padding: 0 6px; border-radius: 14px; background: var(--primary); color: #fff; font-size: 14px; font-weight: 800; display: grid; place-items: center; box-sizing: border-box; }
.zs-dong span { font-size: 14px; font-weight: 700; color: #1A2B4C; letter-spacing: -.01em; }
.zs-dong.is-gu { height: 40px; border-radius: 20px; padding-right: 14px; }
.zs-dong.is-gu b { min-width: 34px; height: 34px; border-radius: 17px; font-size: 15px; }
.zs-dong.is-gu span { font-size: 15px; font-weight: 800; }
.zs-dong:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 107, 246, .2), 0 2px 8px rgba(15, 30, 60, .18); }
/* 아파트 단지 박스: 위 = 평형(파란 띠), 아래 = 매매가 */
.zs-cx { position: relative; width: max-content; display: flex; flex-direction: column; align-items: stretch; min-width: 54px; border-radius: 6px; background: #fff; border: 1.5px solid var(--primary); box-shadow: 0 2px 6px rgba(15, 30, 60, .22); transform: translate(-50%, -100%); cursor: pointer; text-align: center; font-family: var(--font); white-space: nowrap; }
.zs-cx::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 8px; height: 8px; background: #fff; border-right: 1.5px solid var(--primary); border-bottom: 1.5px solid var(--primary); transform: translateX(-50%) rotate(45deg); }
.zs-cx-py { display: block; padding: 2px 8px; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 4px 4px 0 0; }
.zs-cx > b { display: block; padding: 3px 8px 4px; font-size: 13px; font-weight: 800; color: #1A2B4C; letter-spacing: -.02em; }
.zs-cx-n { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #1A2B4C; color: #fff; font: 700 11px/18px var(--font); font-style: normal; box-sizing: border-box; }
.zs-cx:hover, .zs-cx.is-active { background: var(--primary); }
.zs-cx:hover > b, .zs-cx.is-active > b { color: #fff; }
.zs-cx:hover::after, .zs-cx.is-active::after { background: var(--primary); }
/* 마우스를 올리면 뜨는 안내 */
.zs-tip { display: none; position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); min-width: 190px; padding: 12px 14px; border-radius: 10px; background: #fff; box-shadow: 0 6px 20px rgba(15, 30, 60, .22); border: 1px solid #E3E8F0; text-align: left; white-space: nowrap; z-index: 5; cursor: default; }
.zs-dong:hover .zs-tip, .zs-cx:hover .zs-tip { display: block; }
.zs-tip-t { display: block; font-size: 14px; font-weight: 800; color: #1A2B4C; margin-bottom: 2px; }
.zs-tip-s { display: block; font-size: 12px; color: #6B7684; margin-bottom: 6px; }
.zs-tip-s:last-child { margin: 6px 0 0; }
.zs-tip-r { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 700; color: #1A2B4C; line-height: 1.7; }
.zs-tip-r em { flex: none; min-width: 34px; padding: 1px 6px; border-radius: 4px; background: #EEF3FE; color: var(--primary); font-size: 12px; font-style: normal; font-weight: 700; text-align: center; }
.zs-tip-r em.is-j { background: #E9F7EF; color: #12924F; }
.zs-tip-r i { font-size: 12px; font-style: normal; font-weight: 500; color: #8B95A1; }

/* =====================================================================
   다방과 같은 필터 줄 · 위치 (2026-11-27 다방 지도에서 직접 측정)
   - 왼쪽 세로 메뉴 80px가 위까지 올라가고, 필터 줄은 그 오른쪽에서 시작 (첫 버튼 = 메뉴 + 20px)
   - 필터 줄 높이 61px (위아래 12px), 버튼 높이 36px · 글자 14px · 테두리 #DFDFDF · 모서리 2px · 간격 8px
   - 펼친 창: 버튼 왼쪽 끝에 맞춰 8px 아래, 너비 360px, 테두리 #DFDFDF, 그림자 없음
   - 목록 칸 400px
   ===================================================================== */
.zs { --zs-bar: 61px; --zs-rail: 80px; }
.zs-bar { box-sizing: border-box; height: var(--zs-bar); gap: 8px; padding: 0 20px; border-bottom: 1px solid #E5E5E5; }
.zf-bar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.zf-drop { position: relative; flex: none; }
.zf-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 7px 0 11px; border: 1px solid #DFDFDF; border-radius: 2px; background: #fff; color: #000; font: inherit; font-size: 14px; font-weight: 400; line-height: 1; white-space: nowrap; cursor: pointer; box-sizing: border-box; }
.zf-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.zf-btn.is-strong { font-weight: 700; }
.zf-btn:hover, .zf-drop.is-open .zf-btn:hover { background: #EDEDED; }
.zf-drop.is-on .zf-btn { font-weight: 700; }
.zf-btn { max-width: 220px; }
.zf-lb { overflow: hidden; text-overflow: ellipsis; }
.zf-btn svg { flex: none; }
.zf-drop.is-open .zf-btn { border-color: #326CF9; background: #fff; color: #326CF9; }
.zf-drop.is-open .zf-btn svg { transform: rotate(180deg); }
.zf-owner { padding: 0 11px; }
.zf-owner[aria-pressed="true"] { border-color: #326CF9; color: #326CF9; font-weight: 700; }
.zf-reset { width: 36px; padding: 0; justify-content: center; }
.zf-reset svg { width: 18px; height: 18px; stroke-width: 1.8; }
.zf-pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: 360px; box-sizing: border-box; padding: 0 20px; background: #fff; border: 1px solid #DFDFDF; border-radius: 2px; max-height: calc(100vh - var(--zs-header, 72px) - var(--zs-bar) - 24px); overflow-y: auto; }
.zf-sec { padding: 24px 0; border-top: 1px solid #F5F5F5; }
.zf-sec:first-child { border-top: 0; }
.zf-sec header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.zf-sec h4 { margin: 0; font-size: 16px; font-weight: 700; line-height: 26px; color: #222; }
.zf-sec header small { font-size: 14px; color: #979797; }
.zf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.zf-chips button { height: 28px; padding: 0 12px; border: 1px solid #F2F2F2; border-radius: 28px; background: #F2F2F2; color: #ACACAC; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.zf-chips button[aria-pressed="true"] { border-color: #326CF9; background: #326CF9; color: #fff; }
.zf-ck { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 14px; color: #222; cursor: pointer; }
.zf-ck input { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1px solid #DFDFDF; border-radius: 2px; background: #fff; cursor: pointer; }
.zf-ck input:checked { border-color: #326CF9; background: #326CF9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 10 3.5 3.5L15 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.zf-ck input:focus-visible { outline: 2px solid #326CF9; outline-offset: 2px; }
.zf-ck-r { margin: 0 0 0 auto; }
.zf-range { padding: 0 0 18px; }
.zf-range + .zf-range { padding-top: 18px; border-top: 1px solid #F5F5F5; }
.zf-range-h { display: flex; justify-content: space-between; align-items: center; height: 24px; margin-bottom: 12px; font-size: 14px; color: #222; }
.zf-range-h b { font-weight: 400; color: #326CF9; }
.zf-track { position: relative; height: 24px; margin: 0 12px; }
.zf-track::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; background: #E5E5E5; }
.zf-track i { position: absolute; top: 10px; height: 4px; background: #326CF9; }
.zf-track input { position: absolute; left: -12px; width: calc(100% + 24px); top: 0; height: 24px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.zf-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #DFDFDF; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); pointer-events: auto; cursor: pointer; }
.zf-track input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #DFDFDF; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .16); pointer-events: auto; cursor: pointer; }
.zf-track input::-webkit-slider-runnable-track { background: none; }
.zf-ticks { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: #979797; }
.zf-foot { display: flex; justify-content: flex-end; padding: 24px 0; border-top: 1px solid #F5F5F5; }
.zf-foot button { height: 36px; padding: 0 15px; border: 1px solid #DFDFDF; border-radius: 2px; background: #fff; color: #222; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.zs-qchip { height: 36px; border-radius: 2px; font-size: 14px; }

/* 목록 위 [매물 | 단지] */
.zs-list-head { padding: 20px 16px 8px; }
.zs-ltabs { display: flex; gap: 4px; }
.zs-ltabs button { height: 32px; padding: 0 16px; border: 1px solid #DFDFDF; border-radius: 32px; background: #fff; color: #222; font: inherit; font-size: 14px; font-weight: 400; cursor: pointer; }
.zs-ltabs button[aria-selected="true"] { border-color: #222; background: #222; color: #fff; font-weight: 700; }
.zs-ltabs button[hidden] { display: none; }
.zs-danji .zs-info { padding-left: 4px; }
.zs-danji .zs-info h3 { padding-right: 0; }
.zs-dj-p { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.zs-dj-p em { font-style: normal; font-size: 12px; padding: 1px 6px; border-radius: 4px; background: #EAF1FF; color: var(--primary); }
.zs-dj-p em.is-j { background: #E9F8F1; color: #08734F; }
.zs-dj-p i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--muted); }
.zd-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.zd-list button { display: grid; gap: 2px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.zd-list button:hover { border-color: var(--primary); }
.zd-list b { font-size: 16px; color: var(--ink); }
.zd-list small { font-size: 13px; color: var(--muted); }

/* 지도 왼쪽 위: 평형 / 실거래가 안내 + 추가정보 (다방: 52×42 상자, 지도 왼쪽·위 20px) */
.zs-legend { position: absolute; top: 20px; left: 20px; z-index: 15; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.zs-legend[hidden] { display: none; }
.zs-legend-box { width: 52px; box-sizing: border-box; border: 1px solid #1E41D0; border-radius: 6px; background: #fff; text-align: center; overflow: hidden; }
.zs-legend-box b { display: block; padding: 2px 0 3px; background: #326CF9; color: #fff; font-size: 10px; font-weight: 700; line-height: 12px; }
.zs-legend-box span { display: block; padding: 4px 0 5px; font-size: 12px; letter-spacing: -.05em; white-space: nowrap; font-weight: 700; line-height: 14px; color: #222; }
.zs-legend-more { position: relative; }
.zs-legend-more > button { display: inline-flex; align-items: center; gap: 1px; height: 17px; padding: 1px 5px 2px; border: 1px solid #CCC; border-radius: 100px; background: #fff; color: #656565; font: inherit; font-size: 10px; font-weight: 700; cursor: pointer; }
.zs-legend-more > button svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.zs-legend-more ul { position: absolute; top: calc(100% + 6px); left: 0; margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #DFDFDF; border-radius: 2px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
.zs-legend-more ul[hidden] { display: none; }
.zs-legend-more ul button { display: block; width: 100%; padding: 10px 12px; border: 0; background: none; font: inherit; font-size: 13px; color: #222; text-align: left; white-space: nowrap; cursor: pointer; }
.zs-legend-more ul button:hover { background: #F5F5F5; }
.zs-legend-more ul button[aria-pressed="true"] { color: #326CF9; font-weight: 700; }
.zs-cx-more { display: block; padding: 0 8px 4px; margin-top: -2px; font-size: 11px; font-weight: 600; color: #6B7684; }
.zs-cx:hover .zs-cx-more, .zs-cx.is-active .zs-cx-more { color: #DDE7FF; }
.zs-map-wrap { position: relative; }

/* PC: 왼쪽 세로 메뉴(80px)가 필터 줄 옆까지 올라가요 · 목록 칸 400px (다방과 같은 위치) */
@media (min-width: 901px) {
  .zs-bar, .zs-page .zs-bar { padding-left: calc(var(--zs-rail) + 1px + 20px); padding-right: 20px; gap: 8px; }
  .zs-body { grid-template-columns: var(--zs-rail) 400px 1fr; }
  .zs-body.has-room { grid-template-columns: var(--zs-rail) 400px 440px 1fr; }
  .zs-rail { position: relative; z-index: 21; margin-top: calc(-1 * var(--zs-bar)); height: calc(100% + var(--zs-bar)); box-sizing: border-box; padding: 6px 8px; gap: 4px; border-right: 1px solid #E5E5E5; }
  .zs-rail-btn { width: 64px; padding: 8px 1px; font-size: 12px; }
  .zs-rail-btn svg { width: 26px; height: 26px; }
  .zs-rail hr { width: 48px; }
}
@media (min-width: 901px) and (max-width: 1280px) { .zs-body.has-room { grid-template-columns: var(--zs-rail) 420px 1fr; } }
/* 휴대폰: 필터 버튼은 한 줄로 옆으로 밀어서 봐요, 펼친 창은 화면 폭에 맞춰요 */
@media (max-width: 900px) {
  .zs-bar { height: auto; padding: 10px 12px; flex-wrap: nowrap; overflow-x: auto; overflow-y: visible; }
  .zf-bar { flex-wrap: nowrap; }
  .zf-pop { position: fixed; left: 12px; right: 12px; top: auto; width: auto; margin-top: 8px; max-height: 70vh; }
}
/* 지도 위 표시(박스·묶음)가 펼친 필터 창 위로 올라오지 않게 지도 안에 가둬요 */
.zs-map-wrap { z-index: 0; isolation: isolate; }
/* 방 상세가 열리면 지도 왼쪽 위에 닫기(✕) 버튼이 오니까 안내 상자는 그 아래로 */
.zs-body.has-room .zs-legend { top: 76px; }
/* [단지] 카드는 사진 없이 한 칸 전체를 써요 */
.zs-card.zs-danji { display: block; padding: 16px; }
.zs-danji .zs-info { padding: 0; }
.zs-danji .zs-info h3 { white-space: normal; }
.zs-dj-p { white-space: nowrap; }

/* =====================================================================
   단지 지도 (아파트·오피스텔) — 2026-11-27 대표님 다방 동영상 기준
   ===================================================================== */
/* 시 이름 (가장 멀리) */
.zs-si { width: max-content; padding: 6px 12px; border-radius: 16px; background: #326CF9; color: #fff; font: 700 12px/1.2 var(--font); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transform: translate(-50%, -50%); cursor: pointer; white-space: nowrap; }
/* 구·동 박스: 위 = 지역 이름(굵게), 아래 = 평균 실거래 매매가(파랑) */
.zs-rg { position: relative; width: max-content; min-width: 52px; padding: 4px 8px 5px; border: 1px solid #1E41D0; border-radius: 6px; background: #fff; text-align: center; font-family: var(--font); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); transform: translate(-50%, -100%); cursor: pointer; white-space: nowrap; }
.zs-rg::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 7px; height: 7px; background: #fff; border-right: 1px solid #1E41D0; border-bottom: 1px solid #1E41D0; transform: translateX(-50%) rotate(45deg); }
.zs-rg b { display: block; font-size: 12px; font-weight: 700; color: #222; line-height: 16px; }
.zs-rg span { display: block; font-size: 11px; font-weight: 700; color: #326CF9; line-height: 15px; }
.zs-rg:hover { background: #F2F6FF; }
/* 단지 박스: 다방처럼 작게 (위 파란 띠 10px 평형 / 아래 12px 가격). 회색 = 매물 없는 단지 */
.zs-cx { min-width: 46px; border: 1px solid #1E41D0; border-radius: 6px; }
.zs-cx::after { border-right: 1px solid #1E41D0; border-bottom: 1px solid #1E41D0; width: 7px; height: 7px; bottom: -5px; }
.zs-cx-py { padding: 2px 6px 3px; background: #326CF9; font-size: 10px; line-height: 12px; border-radius: 5px 5px 0 0; }
.zs-cx > b { padding: 3px 6px 4px; font-size: 12px; font-weight: 700; color: #222; line-height: 14px; }
.zs-cx > b small { font-size: 10px; font-weight: 500; margin-right: 1px; }
.zs-cx.is-nop .zs-cx-py { border-radius: 5px; }
.zs-cx.is-gray { border-color: #6B6B6B; }
.zs-cx.is-gray .zs-cx-py { background: #7A7A7A; }
.zs-cx.is-gray::after { border-color: #6B6B6B; }
.zs-cx.is-nop::after { background: #326CF9; }
.zs-cx.is-gray.is-nop::after { background: #7A7A7A; }
.zs-cx:hover, .zs-cx.is-active { background: #fff; box-shadow: 0 0 0 2px rgba(50, 108, 249, .35), 0 2px 6px rgba(15, 30, 60, .22); }
.zs-cx:hover > b, .zs-cx.is-active > b { color: #222; }
.zs-cx:hover::after, .zs-cx.is-active::after { background: #fff; }
.zs-cx.is-nop:hover::after { background: #326CF9; }
.zs-cx.is-gray.is-nop:hover::after { background: #7A7A7A; }
/* 추가정보 알약 (박스 바로 아래 파란 테두리) */
.zs-cx-more { position: absolute; left: 50%; top: calc(100% + 1px); transform: translateX(-50%); margin: 0; padding: 0 5px; border: 1px solid #326CF9; border-radius: 10px; background: #fff; color: #326CF9; font-size: 10px; font-weight: 700; line-height: 14px; white-space: nowrap; z-index: 2; }
.zs-cx:hover .zs-cx-more, .zs-cx.is-active .zs-cx-more { color: #326CF9; }
/* 단지에 마우스를 올리면 뜨는 카드 (다방: 이름 · 세대수·사용승인 · 면적 · 매매 | 전세) */
.zs-cxcard { display: none; position: absolute; left: 50%; top: calc(100% + 12px); transform: translateX(-50%); width: 236px; padding: 18px 18px 14px; border-radius: 10px; background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .18); text-align: left; white-space: normal; cursor: default; z-index: 10; }
.zs-cx:hover .zs-cxcard { display: block; }
.zs-cxcard-t { display: block; font-size: 17px; font-weight: 700; color: #222; margin-bottom: 6px; }
.zs-cxcard-s { margin: 0; font-size: 12px; color: #656565; line-height: 1.6; }
.zs-cxcard-p { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; padding: 12px 0 10px; border: 1px solid #EFEFEF; border-radius: 6px; text-align: center; }
.zs-cxcard-p small { display: block; font-size: 12px; font-weight: 700; color: #222; }
.zs-cxcard-p strong { display: block; margin-top: 6px; font-size: 15px; font-weight: 700; color: #326CF9; }
.zs-cxcard-p i { display: block; margin-top: 2px; font-size: 11px; font-style: normal; color: #979797; }
/* 왼쪽 위 안내: 멀리 보면 '지역명 / 실거래가' (흰 바탕 · 아래 파랑) */
.zs-legend-box.is-region b { background: #fff; color: #222; font-size: 11px; padding: 4px 0 1px; }
.zs-legend-box.is-region span { color: #326CF9; padding: 1px 0 5px; }
.zs-legend-more[hidden] { display: none; }
/* 오른쪽 위 순위 */
.zs-rank { position: absolute; top: 20px; right: 64px; z-index: 15; display: flex; align-items: center; gap: 8px; min-width: 270px; max-width: 360px; height: 36px; padding: 0 14px 0 8px; border-radius: 6px; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .14); font-size: 13px; color: #222; white-space: nowrap; }
.zs-rank[hidden] { display: none; }
.zs-rank-tag { flex: none; padding: 2px 6px; border-radius: 3px; background: #222; color: #fff; font-size: 11px; font-weight: 700; }
.zs-rank b { flex: none; font-size: 15px; font-weight: 800; }
.zs-rank-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.zs-rank small { flex: none; font-size: 11px; color: #979797; }
/* 오른쪽 지도 도구 */
.zs-tools { position: absolute; top: 130px; right: 10px; z-index: 15; display: flex; flex-direction: column; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); overflow: hidden; }
.zs-tools button { width: 30px; height: 30px; border: 0; border-top: 1px solid #F0F0F0; background: #fff; font: inherit; font-size: 10px; font-weight: 600; color: #444; cursor: pointer; padding: 0; }
.zs-tools button:first-child { border-top: 0; }
.zs-tools button:hover { background: #F5F5F5; }
.zs-tools button[aria-pressed="true"] { color: #326CF9; font-weight: 800; background: #EEF3FE; }
.zs-map-toast { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 16; margin: 0; padding: 9px 14px; border-radius: 8px; background: rgba(25, 31, 40, .92); color: #fff; font-size: 13px; white-space: nowrap; }
.zs-map-toast[hidden] { display: none; }
@media (max-width: 900px) { .zs-rank { left: 84px; right: 12px; min-width: 0; top: 12px; height: 32px; } .zs-legend { top: 12px; left: 12px; } .zs-tools { top: 120px; } }
/* 지도 박스가 순위·안내·도구 위로 올라오지 않게 지도 그림을 한 겹으로 묶어요 */
#zs-map { isolation: isolate; z-index: 0; }
.zs-tags span.is-type { background: #EEF3FE; color: #2456D6; }
