* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #5b6bff;
  --primary-dark: #3a45cc;
  --accent: #00d4b8;
  --grad: linear-gradient(135deg, #5b6bff 0%, #8a5bff 100%);
  --grad-mint: linear-gradient(135deg, #00d4b8 0%, #00a86b 100%);
  --ink: #16162a;
  --muted: #8a8a9c;
  --line: #ececf4;
  --bg: #f7f8fc;
  --trade: #5b6bff;
  --jeonse: #00b884;
  --wolse: #ff8a3d;
  --shadow: 0 8px 28px rgba(40, 50, 120, .10);
}
html, body, #app { height: 100%; width: 100%; font-family: -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
#map { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* 상단바 */
#topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 64px; z-index: 20;
  display: flex; align-items: center; gap: 16px; padding: 0 22px;
  background: rgba(255,255,255,0.82); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(160%);
}
.brand { font-size: 23px; font-weight: 800; letter-spacing: -1px; white-space: nowrap; flex-shrink: 0; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.search { position: relative; flex: 1; max-width: 440px; }
.search input {
  width: 100%; height: 42px; border: 1.5px solid transparent; border-radius: 21px;
  padding: 0 20px; font-size: 14px; outline: none; background: var(--bg);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.search input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(91,107,255,.12); }
.search-results {
  position: absolute; top: 46px; left: 0; right: 0; background: #fff; list-style: none;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.1);
  max-height: 340px; overflow-y: auto; z-index: 30;
}
.search-results li { padding: 10px 16px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #f2f2f7; }
.search-results li:last-child { border-bottom: none; }
.search-results li:hover { background: var(--bg); }
.search-results li .sub { color: var(--muted); font-size: 12px; margin-left: 6px; }
.search-results .group-label { font-size: 11px; color: var(--muted); padding: 6px 16px; background: var(--bg); cursor: default; }

.tabs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 13px; }
.tab { border: none; background: transparent; padding: 8px 17px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s ease; }
.tab.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(91,107,255,.18); }

/* 상단 우측 메뉴 */
.topbar-menu { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-btn {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 9px 16px;
  border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: all .15s ease;
}
.menu-btn:hover { border-color: var(--primary); color: var(--primary); }
a.menu-btn { text-decoration: none; display: inline-flex; align-items: center; }
.menu-btn.primary { background: var(--grad); border-color: transparent; color: #fff; }
.menu-btn.primary:hover { color: #fff; box-shadow: 0 4px 14px rgba(91,107,255,.3); }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-name { font-size: 14px; font-weight: 700; }
.menu-btn .btn-icon { display: none; }

/* 로그인/회원가입 모달 */
.modal-overlay {
  position: absolute; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(22,22,42,.45); backdrop-filter: blur(4px);
}
.modal-card {
  position: relative; width: 360px; max-width: calc(100vw - 40px); background: #fff; border-radius: 20px;
  padding: 32px 28px 26px; box-shadow: 0 24px 60px rgba(40,50,120,.3); animation: pop .18s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close { position: absolute; top: 16px; right: 16px; border: none; background: var(--bg); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.modal-card h2 { font-size: 22px; margin-bottom: 4px; }
.modal-sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.social-btn {
  width: 100%; height: 48px; border: none; border-radius: 13px; font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px;
  transition: filter .15s ease;
}
.social-btn:hover { filter: brightness(.96); }
.social-btn b { font-size: 16px; }
.social-btn.kakao { background: #FEE500; color: #191600; }
.social-btn.naver { background: #03C75A; color: #fff; }
.social-btn.naver b { display: inline-flex; width: 18px; height: 18px; background: #fff; color: #03C75A; border-radius: 4px; align-items: center; justify-content: center; font-size: 13px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-input {
  width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 16px;
  font-size: 14px; outline: none; margin-bottom: 10px; transition: border-color .15s ease;
}
.auth-input:focus { border-color: var(--primary); }
.auth-submit {
  width: 100%; height: 48px; border: none; border-radius: 13px; background: var(--grad); color: #fff;
  font-size: 15px; font-weight: 800; cursor: pointer; margin-top: 4px; transition: box-shadow .15s ease;
}
.auth-submit:hover { box-shadow: 0 6px 18px rgba(91,107,255,.3); }
.auth-error { color: #f5576c; font-size: 13px; margin-top: 10px; min-height: 18px; text-align: center; }
.auth-switch { text-align: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
.auth-switch a { color: var(--primary); font-weight: 700; cursor: pointer; }
.auth-find { text-align: center; margin-top: 12px; }
.auth-find a { color: var(--muted); font-size: 13px; cursor: pointer; text-decoration: underline; }
.auth-find a:hover { color: var(--primary); }

/* 관심단지 목록 */
.fav-list { list-style: none; }
.fav-list li {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 4px;
  border-bottom: 1px solid #f2f2f7; cursor: pointer; transition: background .12s ease;
}
.fav-list li:hover { background: var(--bg); }
.fav-list .sub { color: var(--muted); font-size: 12px; margin-left: 8px; font-weight: 400; }
.fav-list .t-amount { font-weight: 800; color: var(--primary); }

/* 지도 마커 */
.dong-label, .complex-label {
  display: inline-flex; flex-direction: column; align-items: center; transform: translate(-50%, -100%);
  cursor: pointer; user-select: none;
}
.dong-label .bubble, .complex-label .bubble {
  position: relative; background: var(--grad); color: #fff; font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 16px; white-space: nowrap; box-shadow: 0 4px 12px rgba(91,107,255,.40);
  transition: transform .12s ease;
}
.dong-label .bubble::after, .complex-label .bubble::after {
  content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--primary);
}
.dong-label:hover .bubble, .complex-label:hover .bubble { transform: scale(1.08); }
.dong-label .name, .complex-label .name {
  font-size: 11px; color: #fff; background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 8px;
  margin-top: 2px; white-space: nowrap;
}
.complex-label .bubble { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.complex-label .bubble::after { border-top-color: #fff; }
body.type-jeonse .dong-label .bubble { background: var(--grad-mint); box-shadow: 0 4px 12px rgba(0,184,132,.40); }
body.type-jeonse .dong-label .bubble::after { border-top-color: var(--jeonse); }
body.type-jeonse .complex-label .bubble { color: var(--jeonse); border-color: var(--jeonse); }
body.type-wolse .dong-label .bubble { background: linear-gradient(135deg, #ffab3d 0%, #ff7a3d 100%); box-shadow: 0 4px 12px rgba(255,138,61,.40); }
body.type-wolse .dong-label .bubble::after { border-top-color: var(--wolse); }
body.type-wolse .complex-label .bubble { color: var(--wolse); border-color: var(--wolse); }

/* 상세 패널 */
.panel {
  position: absolute; top: 64px; right: 0; bottom: 0; width: 392px; z-index: 15;
  background: #fff; border-left: 1px solid var(--line); box-shadow: -8px 0 32px rgba(40,50,120,.10);
  overflow-y: auto; transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.panel.hidden { transform: translateX(100%); }
.panel-close { position: absolute; top: 14px; right: 14px; border: none; background: var(--bg); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.p-head { padding: 24px 20px 16px; border-bottom: 1px solid var(--line); }
.p-head h2 { font-size: 20px; margin-bottom: 4px; }
.p-head .addr { color: var(--muted); font-size: 13px; }
.p-head .meta { margin-top: 8px; font-size: 12px; color: var(--muted); }
.p-section { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.p-section h3 { font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.price-cards { display: flex; gap: 8px; }
.price-card { flex: 1; background: var(--bg); border-radius: 14px; padding: 13px 12px; text-align: center; transition: transform .12s ease; }
.price-card:hover { transform: translateY(-2px); }
.price-card .label { font-size: 12px; color: var(--muted); }
.price-card .val { font-size: 18px; font-weight: 800; margin-top: 4px; }
.price-card.trade .val { color: var(--trade); }
.price-card.jeonse .val { color: var(--jeonse); }
.price-card.wolse .val { color: var(--wolse); }
.fav-btn { width: 100%; margin-top: 14px; height: 46px; border-radius: 13px; border: 1.5px solid var(--primary); background: #fff; color: var(--primary); font-weight: 700; font-size: 15px; cursor: pointer; transition: all .15s ease; }
.fav-btn:hover { box-shadow: 0 4px 14px rgba(91,107,255,.22); }
.fav-btn.on { background: var(--grad); border-color: transparent; color: #fff; }

table.areas { width: 100%; border-collapse: collapse; font-size: 13px; }
table.areas th, table.areas td { padding: 8px 6px; text-align: right; border-bottom: 1px solid #f2f2f7; }
table.areas th { color: var(--muted); font-weight: 600; font-size: 12px; }
table.areas td:first-child, table.areas th:first-child { text-align: left; }

.trade-list { list-style: none; font-size: 13px; }
.trade-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f2f2f7; }
.trade-list .t-date { color: var(--muted); }
.trade-list .t-amount { font-weight: 700; }

/* 생활편의 점수 */
.livability { display: flex; align-items: center; gap: 16px; }
.score-gauge { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.score-gauge .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-gauge .num b { font-size: 24px; font-weight: 800; line-height: 1; }
.score-gauge .num span { font-size: 10px; color: var(--muted); margin-top: 2px; }
.score-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.score-desc b { color: var(--ink); }
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 14px; }
.amenity { background: var(--bg); border-radius: 12px; padding: 11px 4px; text-align: center; transition: transform .12s ease, box-shadow .12s ease; border: 1.5px solid transparent; }
.amenity.clickable { cursor: pointer; }
.amenity.clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(91,107,255,.18); }
.amenity.active { border-color: var(--primary); background: #fff; box-shadow: 0 4px 14px rgba(91,107,255,.28); }
.amenity .ico { font-size: 18px; }
.amenity .cnt { font-size: 15px; font-weight: 800; margin-top: 3px; }
.amenity .nm { font-size: 10px; color: var(--muted); margin-top: 1px; }

/* 생활편의 POI 지도 마커 */
.poi-pin { transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.poi-dot {
  width: 27px; height: 27px; border-radius: 50%; background: #fff; border: 2.5px solid var(--pc, #5b6bff);
  display: flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.28);
}
.poi-name {
  margin-top: 2px; font-size: 10px; font-weight: 700; color: #fff; background: var(--pc, #5b6bff);
  padding: 1px 6px; border-radius: 8px; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* 토스트 안내 */
.toast {
  position: absolute; bottom: 70px; left: 50%; transform: translateX(-50%); z-index: 40;
  background: rgba(22,22,42,.9); color: #fff; padding: 10px 18px; border-radius: 20px; font-size: 13px;
  opacity: 0; transition: opacity .2s; pointer-events: none; box-shadow: 0 6px 20px rgba(0,0,0,.22); backdrop-filter: blur(8px);
}
.toast.show { opacity: 1; }

svg.trend { width: 100%; height: 120px; display: block; }
.trend-empty, .list-empty { color: var(--muted); font-size: 13px; padding: 12px 0; text-align: center; }

.zoom-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 12;
  background: rgba(22,22,42,.78); color: #fff; padding: 9px 20px; border-radius: 22px; font-size: 13px;
  pointer-events: none; transition: opacity .3s; backdrop-filter: blur(8px); box-shadow: 0 6px 20px rgba(0,0,0,.22);
}
.zoom-hint.hidden { opacity: 0; }
.hidden { display: none; }

/* ─── 확장 기능 네비/패널 ─── */
.feature-nav { display: flex; gap: 4px; margin-left: 14px; }
.nav-btn { border: none; background: transparent; padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #555; cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.nav-btn:hover { background: var(--bg); color: var(--primary); }

.detail-actions { display: flex; gap: 8px; }
.act-btn { flex: 1; height: 42px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; color: #333; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .15s ease; }
.act-btn:hover { border-color: var(--primary); color: var(--primary); }
.act-btn.primary { background: var(--grad); border-color: transparent; color: #fff; }
.act-btn.primary:hover { color: #fff; box-shadow: 0 4px 14px rgba(91,107,255,.3); }

.form-col { display: flex; flex-direction: column; gap: 10px; }
.form-col textarea.auth-input { resize: vertical; font-family: inherit; }

.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.analysis-card { background: var(--bg); border-radius: 12px; padding: 12px; }
.ac-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; }
.ac-head b { color: var(--primary); }
.ac-sub { font-size: 11px; color: var(--muted); margin: 4px 0 8px; }
.mini-list { list-style: none; }
.mini-list li { display: flex; justify-content: space-between; font-size: 12px; padding: 3px 0; }
.mini-list .t-amount { color: var(--muted); font-weight: 600; }
.list-empty-sm { color: var(--muted); font-size: 12px; text-align: center; padding: 6px 0; }
.muted-sm { color: var(--muted); font-size: 12px; font-weight: 400; }

.cat-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; margin-right: 6px; vertical-align: middle; }
.post-body { font-size: 14px; line-height: 1.7; color: #333; }
.comment-list { list-style: none; margin-bottom: 12px; }
.comment-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.comment-list .sub { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.comment-form { display: flex; gap: 8px; }
.comment-form .auth-input { flex: 1; margin: 0; }
.comment-form .act-btn { flex: 0 0 64px; height: auto; }

.chg { font-weight: 800; font-size: 13px; }
.chg.up { color: #f5576c; }
.chg.down { color: #2f80ed; }

/* 모달은 항상 화면 안에서 스크롤 (작은 화면 대응) */
.modal-card { max-height: calc(100vh - 32px); overflow-y: auto; }

/* ─────────────────────────────────────────────
   반응형: PC · 태블릿/폴드(열림) · 스마트폰/폴드(닫힘) · 플립/협소 · 가로
   ───────────────────────────────────────────── */

/* 태블릿 · 폴더블 펼침 (~1024px) */
@media (max-width: 1024px) {
  #topbar { gap: 8px; padding: 0 12px; }
  .search { max-width: 200px; min-width: 0; }
  .menu-btn { padding: 8px 11px; font-size: 13px; white-space: nowrap; }
  .user-name { white-space: nowrap; }
  .nav-btn { padding: 7px 9px; }
  .tab { padding: 8px 13px; }
  .tabs { flex-shrink: 0; }
  .panel { width: 340px; }
}

/* 스마트폰 · 폴드 커버 · 소형 태블릿 세로 (~760px)
   - 상단바: 줄바꿈(브랜드+메뉴 / 검색 / 탭+기능)
   - 패널: 우측 사이드 → 하단 바텀시트 (지도 위치 유지) */
@media (max-width: 760px) {
  #topbar {
    height: auto; flex-wrap: wrap; padding: 8px 12px; gap: 8px;
    background: rgba(255,255,255,0.94);
  }
  .brand { font-size: 20px; order: 0; }
  .topbar-menu { order: 1; margin-left: auto; }
  .search { order: 2; flex: 1 1 100%; max-width: none; }
  .tabs { order: 3; }
  .feature-nav { order: 4; margin-left: 0; flex: 1 1 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .feature-nav::-webkit-scrollbar { display: none; }
  .search-results { top: 44px; }
  /* 좁은 화면: 보조 메뉴는 아이콘만(채팅/최근본/관심단지), 로그아웃은 ⏻ */
  .topbar-menu { gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  #chatMenuBtn .btn-label, #recentMenuBtn .btn-label, #favMenuBtn .btn-label { display: none; }
  #chatMenuBtn, #recentMenuBtn, #favMenuBtn { padding: 8px 11px; font-size: 16px; }
  #logoutBtn .btn-label { display: none; }
  #logoutBtn .btn-icon { display: inline; }
  .user-name { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .panel {
    top: max(46vh, 300px); left: 0; right: 0; bottom: 0; width: 100%;
    height: auto; max-height: none;
    border-left: none; border-top: 1px solid var(--line);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 36px rgba(40,50,120,.20);
  }
  .panel::before {
    content: ''; position: sticky; top: 0; display: block;
    width: 40px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: #d8d9e4;
  }
  .panel.hidden { transform: translateY(100%); }
  .panel-close { top: 12px; right: 12px; }
  .p-head { padding: 16px 18px 14px; }
  .p-section { padding: 16px 18px; }
  .zoom-hint { bottom: 16px; font-size: 12px; padding: 8px 16px; }
  .toast { bottom: 90px; }
}

/* 플립/폴드 커버 등 매우 좁은 화면 (~380px) */
@media (max-width: 380px) {
  #topbar { padding: 7px 10px; gap: 6px; }
  .brand { font-size: 18px; }
  .menu-btn { padding: 7px 10px; font-size: 12px; }
  #chatMenuBtn, #recentMenuBtn, #favMenuBtn { padding: 7px 9px; font-size: 15px; }
  .user-name { display: none; }
  .nav-btn { padding: 6px 9px; font-size: 13px; }
  .tab { padding: 7px 12px; font-size: 13px; }
  .search input { height: 38px; font-size: 13px; }
  .panel { top: max(42vh, 286px); }
  .price-card .val { font-size: 16px; }
  .amenity-grid { gap: 3px; }
  .amenity .ico { font-size: 16px; }
  .modal-card { padding: 24px 20px 20px; }
  .ld-facts { gap: 5px; padding: 4px 14px 12px; }
  .ld-facts .fact { padding: 8px 4px; }
  .ld-price { font-size: 23px; }
  .opt-grid-view { grid-template-columns: 1fr; }
  .gal-arrow { width: 32px; height: 32px; font-size: 19px; }
}

/* 가로 모드(낮은 높이): 바텀시트 대신 우측 패널 유지 (플립/폰 가로) */
@media (max-height: 480px) and (orientation: landscape) {
  #topbar { height: 52px; }
  .panel {
    top: 0; bottom: 0; left: auto; right: 0; width: 56%; max-width: 380px;
    height: auto; max-height: none; border-radius: 0;
    border-left: 1px solid var(--line); border-top: none; box-shadow: -8px 0 32px rgba(40,50,120,.10);
  }
  .panel::before { display: none; }
  .panel.hidden { transform: translateX(100%); }
}

/* 채팅 안읽음 배지 / 로그인 안내 */
.chat-badge { background: #f5576c; color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; margin-left: 4px; font-weight: 700; }
.chat-badge.hidden { display: none; }
.modal-hint { font-size: 12.5px; color: var(--muted, #888); background: #f5f7ff; border-radius: 8px; padding: 8px 10px; margin: 6px 0 0; line-height: 1.5; }

/* 매물 사진 갤러리 */
.gallery { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: #11131a; margin: 0 0 6px; touch-action: pan-y; user-select: none; }
.gal-track { display: flex; height: 100%; will-change: transform; }
.gal-slide { flex: 0 0 100%; height: 100%; }
.gal-slide img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0,0,0,.45); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.gal-arrow.prev { left: 8px; } .gal-arrow.next { right: 8px; }
.gal-count { position: absolute; top: 8px; right: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.gal-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gal-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.gal-dot.on { background: #fff; }
/* 옵션 칩 / 매물 상세 */
.opt-list { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-chip { background: #eef0fb; color: #4453c8; border-radius: 14px; padding: 4px 11px; font-size: 13px; font-weight: 600; }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; margin: 2px 0 4px; }
.opt-check { font-size: 13px; display: flex; align-items: center; gap: 4px; cursor: pointer; }
.form-label { font-size: 13px; font-weight: 600; color: var(--muted, #888); margin: 6px 0 2px; }
.li-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; margin-right: 9px; }
.listing-li { display: flex; align-items: center; }
.listing-li .li-main { flex: 1; min-width: 0; }
.listing-price { font-size: 19px; font-weight: 800; color: var(--accent, #5b6bff); margin-top: 4px; }
.desc-text { white-space: pre-wrap; line-height: 1.6; font-size: 14px; color: #444; }
.kv { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14px; }

/* 다방 스타일 매물 상세 */
.ld-head { padding: 14px 18px 10px; }
.ld-toprow { margin-bottom: 8px; }
.ld-badge { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 6px; }
.ld-badge.trade { background: #5b6bff; } .ld-badge.jeonse { background: #00b884; } .ld-badge.wolse { background: #f5a623; }
.ld-price { font-size: 27px; font-weight: 800; color: #1a1a2e; letter-spacing: -.5px; }
.ld-price-sl { color: #c4c8d4; font-weight: 500; margin: 0 2px; }
.ld-title { font-size: 16px; font-weight: 700; margin-top: 6px; color: #222; }
.ld-sub { font-size: 13.5px; color: var(--muted, #8a8f9c); margin-top: 2px; }
.ld-facts { display: flex; gap: 8px; padding: 4px 18px 14px; }
.ld-facts .fact { flex: 1; background: #f5f6fa; border-radius: 10px; padding: 10px 8px; text-align: center; }
.ld-facts .fact span { display: block; font-size: 11.5px; color: #9aa0ad; margin-bottom: 3px; }
.ld-facts .fact b { font-size: 15px; color: #2a2a3a; }
.ld-facts .fact i { display: block; font-size: 11px; color: #b0b4bf; font-style: normal; margin-top: 1px; }
.opt-grid-view { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 12px; }
.opt-item { font-size: 13.5px; color: #3a3f4d; }
.ld-agent { display: flex; align-items: center; gap: 12px; margin: 8px 18px 20px; padding: 14px; background: #f7f8fc; border-radius: 12px; }
.ld-agent-info { flex: 1; }
.ld-agent-name { font-weight: 700; font-size: 15px; color: #222; }
.ld-agent-contact { font-size: 13px; color: var(--muted, #8a8f9c); margin-top: 2px; }
.ld-agent .act-btn { white-space: nowrap; }
