/* 부동산 매물 지도 검색 */
* { box-sizing: border-box; }
body.estate {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Malgun Gothic", sans-serif;
  color: #16191d;
  background: #fff;
}

/* 사이트 공통 상단 네비 */
.es-topnav {
  display: flex; align-items: center; gap: 20px;
  padding: 12px 16px; background: #f7f8fa; border-bottom: 1px solid #e3e6ea;
  flex-wrap: wrap;
}
.es-topbrand { font-weight: 800; font-size: 22px; text-decoration: none; color: #16191d; letter-spacing: -0.3px; }
.es-topbrand span { color: #2563eb; }
.es-topbrand .es-brand-dot { color: #fb5b3f; }
.es-appguide { display: inline-flex; align-items: center; gap: 4px; text-decoration: none;
  background: #eceef1; color: #475467; font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap; border: 1px solid #e0e3e7; }
.es-appguide:hover { background: #e2e5e9; }
.es-topmenu { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.es-topmenu a { color: #667085; text-decoration: none; font-size: 14px; }
.es-topmenu a:hover { color: #16191d; }
.es-topmenu a.active { color: #2563eb; font-weight: 700; }

.es-header {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 16px; border-bottom: 1px solid #e3e6ea;
  flex-wrap: wrap; position: sticky; top: 0; background: #fff; z-index: 500;
}
.es-brand { font-weight: 700; font-size: 17px; text-decoration: none; color: #16191d; }
.es-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.es-filters select, .es-btn {
  padding: 8px 12px; border: 1px solid #e3e6ea; border-radius: 8px;
  font-size: 14px; background: #fff; cursor: pointer;
}
.es-btn { background: #2563eb; color: #fff; border: none; font-weight: 600; }

.es-body { display: flex; height: calc(100vh - 57px); }
.es-list { width: 400px; overflow-y: auto; border-right: 1px solid #e3e6ea; }
.es-map { flex: 1; }

.es-card {
  display: flex; flex-wrap: wrap; gap: 12px 12px; padding: 12px 16px; position: relative;
  border-bottom: 1px solid #eef0f2; text-decoration: none; color: inherit;
}
.es-card:hover, .es-card.active { background: #f5f8ff; }
.es-thumb { width: 96px; height: 72px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: #f0f2f4; }
.es-thumb img { width: 100%; height: 100%; object-fit: cover; }
.es-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #98a2b3; }
.es-info { min-width: 0; flex: 1 1 auto; }
.es-deal { font-weight: 700; font-size: 15px; color: #2563eb; }
/* 유형 배지 다음 줄바꿈 (배지 → 다음 줄에 가격) */
.es-deal .es-badge { display: block; width: fit-content; margin-bottom: 3px; }
.es-dist { margin-left: 6px; font-size: 12px; color: #0f9d58; font-weight: 600; }
.es-title { font-size: 14px; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-addr { font-size: 12px; color: #667085; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-meta { font-size: 12px; color: #98a2b3; margin-top: 2px; }
.es-empty { padding: 40px 16px; text-align: center; color: #98a2b3; }

/* 상세 */
.es-detail { max-width: 900px; margin: 0 auto; padding: 20px 16px 60px; }
.es-detail h1 { font-size: 24px; margin: 12px 0 4px; }
.es-detail .price { font-size: 26px; font-weight: 700; color: #2563eb; margin: 8px 0; }
.es-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 8px; margin: 16px 0; }
.es-photos img { width: 100%; border-radius: 8px; }
.es-spec { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.es-spec th, .es-spec td { padding: 10px 12px; border-bottom: 1px solid #eef0f2; text-align: left; }
.es-spec th { width: 120px; color: #667085; font-weight: 600; }
#es-detail-map { height: 320px; border-radius: 10px; margin: 8px 0 16px; }
.es-loc-bar { display: flex; align-items: center; gap: 12px; margin: 8px 0; flex-wrap: wrap; }
.es-dist-info { font-size: 14px; font-weight: 600; color: #0f9d58; }
.es-route-btn {
  display: inline-block; padding: 12px 20px; background: #2563eb; color: #fff;
  border-radius: 8px; text-decoration: none; font-weight: 600; margin-top: 8px;
}
.es-back { color: #667085; text-decoration: none; font-size: 14px; }

/* 상세 하단 목록 버튼 (크고 잘 보이게) */
.es-bottom-nav { margin: 32px 0 20px; text-align: center; }
.es-list-btn {
  display: inline-block; width: 100%; max-width: 400px;
  padding: 16px 24px; background: #16191d; color: #fff;
  border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 16px;
}
.es-list-btn:hover { background: #2563eb; }

/* 관리자 */
.es-mng { max-width: 1000px; margin: 20px auto; padding: 0 16px; }
.es-mng table { width: 100%; border-collapse: collapse; font-size: 14px; }
.es-mng th, .es-mng td { padding: 10px; border-bottom: 1px solid #eef0f2; text-align: left; }
.es-mng .form-row { margin: 12px 0; }
.es-mng label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.es-mng input, .es-mng select, .es-mng textarea {
  width: 100%; padding: 10px; border: 1px solid #e3e6ea; border-radius: 8px; font-size: 14px;
}
.es-mng .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#es-form-map { height: 340px; border: 1px solid #e3e6ea; border-radius: 8px; }

/* 좁은 데스크톱/태블릿: 좌측 리스트·등락 창 폭 축소 + 내부 컴팩트화(글자 깨짐 방지) */
@media (min-width: 769px) and (max-width: 1100px) {
  .es-list { width: 300px; }
  /* 리스트 카드 컴팩트 */
  .es-card { padding: 10px 10px; gap: 8px; }
  .es-thumb { width: 60px; height: 46px; }
  .es-deal { font-size: 13px; }
  .es-title, .es-addr { font-size: 11px; }
  .es-meta { font-size: 10px; }
  .es-more { padding: 6px 8px; font-size: 11px; border-color: #e3e6ea; margin-top: 0; }
  /* 등락 창 컴팩트 */
  .trend-panel { width: 210px; }
  .trend-panel .trend-hd { font-size: 13px; padding: 8px 10px; }
  .trend-panel .trend-hd button { font-size: 18px; }
  .trend-period .tp { font-size: 11px; padding: 6px 2px; }
  .trend-tabs .tt { font-size: 12px; padding: 6px; }
  .trend-filter { font-size: 11px; padding: 5px 8px; }
  .trend-filter select { font-size: 11px; }
  .trend-note { font-size: 10px; padding: 5px 10px; }
  .trend-row { padding: 8px; font-size: 12px; gap: 6px; }
  .trend-row .tr-cnt { font-size: 10px; }
  .trend-row .tr-pct { font-size: 12px; }
  .trend-row .tr-rank { width: 16px; }
}
@media (min-width: 769px) and (max-width: 900px) {
  .es-list { width: 250px; }
  .trend-panel { width: 195px; }
}

@media (max-width: 768px) {
  .es-body { flex-direction: column; height: auto; }
  /* flex:none 로 flex-basis:0 붕괴를 막아 높이를 살린다. order 로 지도를 위로. */
  .es-map { flex: none; height: 52vh; order: 1; }
  .es-list { flex: none; width: 100%; max-height: 42vh; order: 2; border-right: none; border-top: 1px solid #e3e6ea; }
  .es-mng .cols { grid-template-columns: 1fr; }
}

/* ── 전기차 충전소 (매물 엔진 재사용) ── */
.es-lang { font-weight: 700; }
.es-attrib {
  padding: 8px 16px; font-size: 12px; color: #98a2b3;
  background: #f7f8fa; border-top: 1px solid #e3e6ea; text-align: center;
}
.es-attrib a { color: #667085; }
.es-attrib-top { border-top: 0; border-bottom: 1px solid #e3e6ea; }
.es-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 14px 0; }
.es-pager .es-pg { min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid #e3e6ea;
  background: #fff; border-radius: 8px; font-size: 14px; color: #344054; cursor: pointer; }
.es-pager .es-pg.on { background: #2563eb; color: #fff; border-color: #2563eb; font-weight: 700; }
.es-pager .es-pg:disabled { opacity: .4; cursor: default; }
.es-pager .es-pg-info { color: #98a2b3; font-size: 13px; margin-left: 6px; }
.es-badge {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; vertical-align: middle;
}
/* 배지 = 충전 속도(급속 파랑 / 완속 회색) */
.es-badge-fast { background: #e7f0ff; color: #2563eb; }
.es-badge-slow { background: #eef1f6; color: #5b6472; }
/* 점/핀 = 실시간 사용여부(사용가능 초록 / 사용중·불가 회색) */
.es-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.es-dot.ok { background: #0f9d58; }
.es-dot.no { background: #9aa3af; }
.ev-pin {
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.ev-pin.ok { background: #0f9d58; }
.ev-pin.no { background: #9aa3af; }

/* ── 신축 분양 ── */
.badge-open { background: #e7f6ee; color: #0f9d58; }
.badge-upcoming { background: #e7f0ff; color: #2563eb; }
.badge-closed { background: #eef1f6; color: #98a2b3; }
.sale-pin {
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.sale-pin.open { background: #0f9d58; }
.sale-pin.upcoming { background: #2563eb; }
.sale-pin.closed { background: #9aa3af; }

/* 지도 말풍선 제목 링크 */
.es-pop-link { color: #2563eb; text-decoration: none; font-size: 15px; }
.es-pop-link:hover { text-decoration: underline; }
.es-pop-hint { color: #98a2b3; font-size: 11px; }

/* ── 실거래가 (아파트/빌라) ── */
.badge-apt { background: #e7f0ff; color: #2563eb; }
.badge-rh { background: #f3edff; color: #7c3aed; }
.deal-pin {
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.deal-pin.apt { background: #2563eb; }
.deal-pin.rh { background: #7c3aed; }
.deal-pin.sh { background: #0f9d58; }
.deal-pin.oft { background: #ea8600; }
.badge-sh { background: #e7f6ee; color: #0f9d58; }
.badge-oft { background: #fef0e0; color: #ea8600; }
/* 중고·나눔 */
.badge-sale { background: #e7f0ff; color: #2563eb; }
.badge-free { background: #e7f6ee; color: #0f9d58; }
/* 부동산 매물 유형 색상(마커/배지) */
.deal-pin.villa { background: #7c3aed; } .badge-villa { background: #f3edff; color: #7c3aed; }
.deal-pin.house { background: #0f9d58; } .badge-house { background: #e7f6ee; color: #0f9d58; }
.deal-pin.com { background: #d0433b; } .badge-com { background: #fdeceb; color: #d0433b; }
.deal-pin.land { background: #92610f; } .badge-land { background: #f6efe2; color: #92610f; }
.auc-pin { display:flex; align-items:center; justify-content:center; font-size:14px;
  border-radius:50%; border:2px solid #fff; background:#b45309; box-shadow:0 1px 4px rgba(0,0,0,.35); }
.mk-pin { display: flex; align-items: center; justify-content: center; font-size: 15px;
  border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.mk-pin.sale { background: #2563eb; } .mk-pin.free { background: #0f9d58; }
.mk-thumb { width: 62px; height: 62px; object-fit: cover; border-radius: 9px; margin-right: 10px; flex: 0 0 auto; }
/* 유형 체크박스(상단) */
.es-typechk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: #16191d; }
.es-typechk label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }
.es-typechk input { cursor: pointer; margin: 0; }
/* 목록 카드 "자세히보기" 버튼 */
/* 가격 줄은 전체 폭, 자세히는 카드 하단 전체 폭 버튼 */
.es-more {
  flex: 0 0 100%; width: 100%; margin-top: 2px; text-align: center;
  color: #2563eb; font-weight: 600; font-size: 13px;
  padding: 3px 10px; border: 1px solid #d7e0ee; border-radius: 8px; background: #fff;
}
.es-more:hover { background: #eef4ff; }
/* 헤더 강제 줄바꿈(브랜드 다음 줄로) */
.es-hbreak { flex-basis: 100%; height: 0; margin: 0; }

/* 로그인/로그아웃 버튼 (아이콘 알약) */
.gf-authbtn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px;
  border-radius: 18px; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.gf-login { background: #03c75a; color: #fff !important; }
.gf-my { background: #2563eb; color: #fff !important; }
.gf-logout { background: #eef1f6; color: #5b6472 !important; }
.gf-authbtn:hover { opacity: .9; }

/* 마이페이지 바로가기 아이콘 */
.mypage-icons { display:flex; gap:12px; flex-wrap:wrap; margin:6px 0 4px; }
.mypage-icon { display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:120px; height:96px; border:1px solid #e3e6ea; border-radius:14px; background:#fff;
  text-decoration:none; color:#16191d; transition:box-shadow .15s, transform .1s; }
.mypage-icon:hover { box-shadow:0 6px 18px rgba(0,0,0,.10); transform:translateY(-2px); }
.mypage-icon .mi-emoji { font-size:32px; line-height:1; margin-bottom:8px; }
.mypage-icon .mi-label { font-size:14px; font-weight:700; }

/* 지도 중개사무소 마커 (아파트 핀과 구분되는 열쇠 배지) */
.agency-pin { background:transparent; border:none; }
.agency-pin .ag-badge { display:inline-block; background:#111827; color:#fff; font-size:12px; font-weight:800;
  padding:3px 7px; border-radius:999px; white-space:nowrap; border:2px solid #fff;
  box-shadow:0 2px 6px rgba(0,0,0,.35); line-height:1; }

/* 왼쪽 목록 중개사무소 섹션 */
.ag-sec-title { font-size:14px; font-weight:800; color:#111827; padding:10px 12px 6px; }
.ag-sec-empty { padding:16px 12px; color:#667085; font-size:14px; }
.ag-card { cursor:pointer; }
.ag-tag { display:inline-block; background:#111827; color:#fff; font-size:12px; font-weight:800;
  padding:2px 8px; border-radius:999px; }

/* 주변 학교 */
.school-pin { background:transparent; border:none; }
.school-pin .sc-badge { display:inline-block; color:#fff; font-size:11px; font-weight:800;
  padding:2px 6px; border-radius:999px; white-space:nowrap; border:2px solid #fff;
  box-shadow:0 2px 5px rgba(0,0,0,.3); line-height:1; }
.near-schools { display:flex; flex-direction:column; gap:8px; margin:8px 0 4px; }
.sc-row { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid #eef0f3; border-radius:10px; }
.sc-tag { flex:none; width:26px; height:26px; border-radius:50%; color:#fff; font-weight:800; font-size:13px;
  display:flex; align-items:center; justify-content:center; }
.sc-info { min-width:0; }
.sc-name { font-weight:700; font-size:15px; }
.sc-meta { font-size:13px; color:#667085; }

/* ── 커뮤니티 게시판 ── */
.cm-wrap { max-width: 900px; margin: 0 auto; padding: 20px 16px 60px; }
.cm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.cm-head h1 { font-size: 24px; margin: 0; }
.cm-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid #eef0f2; margin-bottom: 14px; }
.cm-tabs a { padding: 8px 14px; text-decoration: none; color: #667085; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.cm-tabs a.on { color: #2563eb; border-bottom-color: #2563eb; }
.cm-search { display: flex; gap: 8px; margin-bottom: 14px; }
.cm-search input { flex: 1; padding: 9px 12px; border: 1px solid #e3e6ea; border-radius: 8px; font-size: 14px; }
.cm-list { width: 100%; border-collapse: collapse; font-size: 14px; }
.cm-list th, .cm-list td { padding: 11px 8px; border-bottom: 1px solid #eef0f2; text-align: left; }
.cm-list th { color: #98a2b3; font-weight: 600; font-size: 13px; }
.cm-list .cm-c { width: 78px; }
.cm-list .cm-w { width: 92px; color: #98a2b3; font-size: 13px; white-space: nowrap; }
.cm-list .cm-n { width: 54px; text-align: right; color: #98a2b3; font-size: 13px; }
.cm-title a { color: #16191d; text-decoration: none; font-weight: 600; }
.cm-title a:hover { color: #2563eb; }
.cm-cc { color: #fb5b3f; font-weight: 700; margin-left: 4px; font-size: 13px; }
.cm-empty { text-align: center; color: #98a2b3; padding: 40px 0; }
.cm-cat { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef1f6; color: #5b6472; }
.cat-ESTATE { background: #e7f0ff; color: #2563eb; }
.cat-LIFE { background: #e7f6ee; color: #0f9d58; }
.cat-INFO { background: #fff3e0; color: #f59e0b; }
.cat-QNA { background: #f3e8ff; color: #8b5cf6; }
/* 상세 */
.cm-post { border-bottom: 2px solid #eef0f2; padding-bottom: 20px; margin-bottom: 20px; }
.cm-post-title { font-size: 22px; margin: 8px 0; }
.cm-post-meta { color: #98a2b3; font-size: 13px; margin-bottom: 8px; }
.cm-post-tools { margin: 8px 0; display: flex; gap: 8px; }
.cm-post-tools .es-btn { padding: 6px 12px; font-size: 13px; }
.cm-del { background: #fee2e2; color: #c0392b; }
.cm-post-body { white-space: pre-wrap; font-size: 16px; line-height: 1.75; margin-top: 16px; color: #16191d; word-break: break-word; }
.cm-form .form-row { margin: 12px 0; }
.cm-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.cm-form input, .cm-form select, .cm-form textarea { width: 100%; padding: 10px; border: 1px solid #e3e6ea; border-radius: 8px; font-size: 15px; box-sizing: border-box; }
.cm-form input[type=checkbox], .cm-form input[type=file] { width: auto; padding: 0; border: none; }
/* 비밀글 · 첨부 */
.cm-secret { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff4d6; color: #92610f; }
.cm-lock { font-size: 12px; }
.cm-attach { margin-top: 20px; padding-top: 16px; border-top: 1px dashed #e3e6ea; }
.cm-attach-h { font-weight: 700; font-size: 14px; color: #5b6472; margin-bottom: 8px; }
.cm-file-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.cm-file-link { color: #2563eb; text-decoration: none; word-break: break-all; }
.cm-file-link:hover { text-decoration: underline; }
.cm-attach-img { display: block; max-width: 100%; border-radius: 10px; margin: 8px 0 12px; }
.cm-files { display: block; }
/* 댓글 */
.cm-comments h2 { font-size: 17px; margin: 0 0 12px; }
.cm-comments h2 span { color: #2563eb; }
.cm-cmt { padding: 12px 0; border-bottom: 1px solid #f0f2f4; }
.cm-cmt-head { font-size: 13px; color: #98a2b3; margin-bottom: 4px; }
.cm-cmt-head b { color: #16191d; }
.cm-cmt-body { font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.cm-cmt-del { background: none; border: none; color: #c0392b; font-size: 12px; cursor: pointer; }
.cm-cmt-form { display: flex; gap: 8px; margin-top: 16px; align-items: flex-start; }
.cm-cmt-form textarea { flex: 1; padding: 10px; border: 1px solid #e3e6ea; border-radius: 8px; font-size: 14px; resize: vertical; }
.cm-login-hint { margin-top: 16px; padding: 16px; background: #f7f8fa; border-radius: 10px; text-align: center; color: #667085; }

/* ── 시군구 등락 패널 ── */
.es-map { position: relative; }
.trend-panel { position: absolute; top: 12px; left: 12px; z-index: 600; width: 290px;
  background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.18); overflow: hidden; }
.trend-hd { padding: 10px 12px; font-weight: 800; font-size: 14px; background: #111827; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trend-hd small { font-weight: 400; font-size: 11px; color: #cbd5e1; }
.trend-hd button { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; line-height: 1; }
.trend-tabs { display: flex; }
.trend-tabs .tt { flex: 1; padding: 9px; border: none; background: #f1f3f5; cursor: pointer; font-weight: 700; font-size: 13px; color: #667085; }
.trend-tabs .tt.on { background: #fff; color: #111827; border-bottom: 2px solid #2563eb; }
.trend-list { max-height: 340px; overflow: auto; }
.trend-row { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #f0f2f4; cursor: pointer; font-size: 14px; }
.trend-row:hover { background: #f5f8ff; }
.tr-rank { width: 20px; color: #98a2b3; font-weight: 700; text-align: center; }
.tr-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-pct { font-weight: 800; font-size: 13px; }
@media (max-width: 768px) {
  /* 모바일: 좌하단 작은 창(지도 이동·확대와 함께 보기). 나머지 지도 영역은 조작 가능 */
  .trend-panel { position: fixed; top: auto; bottom: 8px; left: 8px; right: auto;
    width: 58vw; max-width: 225px; max-height: 46vh; display: flex; flex-direction: column;
    border-radius: 14px; z-index: 1200; box-shadow: 0 4px 20px rgba(0,0,0,.28); }
  .trend-panel .trend-hd, .trend-panel .trend-period, .trend-panel .trend-tabs,
  .trend-panel .trend-filter { flex: 0 0 auto; }
  .trend-panel .trend-note { display: none; }
  .trend-panel .trend-list { flex: 1 1 auto; max-height: none; overflow-y: auto; }
  /* 내부 요소 컴팩트화 */
  .trend-panel .trend-hd { padding: 8px 10px; font-size: 13px; }
  .trend-panel .trend-hd button { font-size: 20px; line-height: 1; padding: 2px 4px; margin: -2px -2px -2px 0; }
  .trend-panel .trend-period { padding: 5px 6px; gap: 4px; }
  .trend-panel .trend-period .tp { font-size: 11px; padding: 6px 2px; }
  .trend-panel .trend-tabs .tt { padding: 6px; font-size: 12px; }
  .trend-panel .trend-filter { padding: 5px 8px; font-size: 11px; }
  .trend-panel .trend-filter select { font-size: 11px; padding: 2px 4px; }
  .trend-panel .trend-row { padding: 7px 8px; font-size: 12px; gap: 6px; }
  .trend-panel .trend-row .tr-cnt { font-size: 10px; }
  .trend-panel .trend-row .tr-pct { font-size: 12px; }
  .trend-panel .tr-rank { width: 16px; }
}

/* 아파트 등락 기간 탭 */
.trend-period { display: flex; gap: 6px; padding: 8px 10px; background: #f7f8fa; border-bottom: 1px solid #eef0f2; }
.trend-period .tp { flex: 1; padding: 7px; border: 1px solid #e3e6ea; background: #fff; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; color: #667085; }
.trend-period .tp.on { background: #2563eb; color: #fff; border-color: #2563eb; }
.trend-row .tr-name { line-height: 1.25; }

.trend-note { padding: 6px 12px; font-size: 11px; color: #98a2b3; background: #fafbfc; border-bottom: 1px solid #f0f2f4; }

/* 등락 신뢰도 필터 */
.trend-filter { display: flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 12px; color: #475467; background: #fafbfc; border-bottom: 1px solid #f0f2f4; }
.trend-filter select { padding: 3px 6px; border: 1px solid #e3e6ea; border-radius: 6px; font-size: 12px; }
.trend-note-inline { color: #98a2b3; }
.trend-row.tr-faded { opacity: 0.45; }

/* 등락 목록 거래건수 표기 */
.trend-row .tr-name { min-width: 0; }
.trend-row .tr-name small { display: block; white-space: normal; }
.trend-row .tr-sub { color: #98a2b3; }
.trend-row .tr-cnt { color: #667085; font-size: 11px; margin-top: 1px; }

.cat-RANK { background: #111827; color: #fff; }

/* 커뮤니티 분류 뱃지 정돈 (줄바꿈 방지·정렬) */
.cm-list .cm-c { width: 96px; }
.cm-cat { white-space: nowrap; letter-spacing: -0.2px; }
.cat-RANK { background: linear-gradient(135deg,#111827,#374151); color: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }

.gf-admin { background: #111827; color: #fff !important; }

/* 실거래가 지도 금액 라벨(네이버식 말풍선, 줌 확대 시).
   Leaflet 이 .price-pin 에 위치 transform 을 넣으므로, 시각 스타일·정렬은 내부 .pp-box 에 둔다. */
.price-pin { width: 0; height: 0; background: transparent; border: none; }
.pp-box { position: relative; display: inline-block; width: max-content; white-space: nowrap;
  line-height: 1.15; text-align: center; padding: 4px 9px; border-radius: 9px;
  font-size: 12.5px; font-weight: 800; color: #fff; background: #6b3fa0;
  box-shadow: 0 2px 7px rgba(0,0,0,.28); transform: translate(-50%, calc(-100% - 7px)); }
.pp-box .pp-pfx { display: inline-block; font-weight: 700; font-size: 10.5px; opacity: .95; margin-right: 3px;
  padding: 0 3px; border-radius: 4px; background: rgba(255,255,255,.22); vertical-align: 1px; }
.pp-box .pp-tilde { display: block; font-weight: 400; font-size: 10px; opacity: .8; margin: 0; }
.pp-box::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid #6b3fa0; }
.pp-box:hover { filter: brightness(1.07); }
.pp-box.pp-apt { background: #2563eb; } .pp-box.pp-apt::after { border-top-color: #2563eb; }
.pp-box.pp-rh  { background: #7c3aed; } .pp-box.pp-rh::after  { border-top-color: #7c3aed; }
.pp-box.pp-sh  { background: #0f9d58; } .pp-box.pp-sh::after  { border-top-color: #0f9d58; }
.pp-box.pp-oft { background: #ea8600; } .pp-box.pp-oft::after { border-top-color: #ea8600; }
.pp-box.pp-villa { background: #7c3aed; } .pp-box.pp-villa::after { border-top-color: #7c3aed; }
.pp-box.pp-house { background: #0f9d58; } .pp-box.pp-house::after { border-top-color: #0f9d58; }
.pp-box.pp-com   { background: #d0433b; } .pp-box.pp-com::after   { border-top-color: #d0433b; }
.pp-box.pp-land  { background: #92610f; } .pp-box.pp-land::after  { border-top-color: #92610f; }
