/* ================= 경매콕 — 행크옥션 클론 디자인 시스템 ================= */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css');

:root {
  --brand: #00c85a; --brand-2: #00d461; --brand-dark: #00a94b;
  --blue: #297dfd; --blue-dark: #1f66d8; --blue-050: #eff5ff; --blue-100: #d7e6ff;
  --red: #f95137; --red-050: #fff0ed;
  --purple: #9d5de6; --amber: #f7a600;
  --ink: #1b1b1b; --ink-2: #505050; --ink-3: #8a8a8a; --ink-4: #b4b4b4;
  --line: #e2e8f0; --line-2: #eef1f5;
  --bg: #f7f9fc; --card: #ffffff;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 2px 10px rgba(20, 30, 55, .06);
  --shadow-lg: 0 8px 30px rgba(20, 30, 55, .1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, system-ui, 'Malgun Gothic', sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.5;
  font-size: 15px; letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; font-size: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--radius-sm); font-weight: 700; transition: .15s; white-space: nowrap; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-dark { background: #1b1b1b; color: #fff; }
.btn-outline { border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.btn-outline:hover { border-color: var(--ink-3); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn-md { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* ================= 헤더 ================= */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.util-bar { border-bottom: 1px solid var(--line-2); }
.util-bar .wrap { display: flex; align-items: center; justify-content: flex-end; height: 38px; font-size: 13px; color: var(--ink-2); }
.util-bar .util-left { display: flex; gap: 20px; }
.util-bar .util-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.util-bar a:hover { color: var(--ink); }
.util-bar .u-pay { color: var(--red); font-weight: 700; }
.util-bar .divider { color: var(--line); }

.main-bar .wrap { display: flex; align-items: center; gap: 22px; height: 74px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.logo .mark { width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 900; }
.logo b { color: var(--ink); }

.hsearch { flex: 1; max-width: 640px; display: flex; align-items: center; gap: 0; border: 2px solid var(--brand); border-radius: 999px; height: 48px; padding: 0 6px 0 8px; background: #fff; }
/* 검색창 좌측 로고(쉬) — 참고 디자인의 N 자리 */
.hsearch .hlogo { display: grid; place-items: center; margin-right: 8px; flex: 0 0 auto; }
.hsearch .hlogo .mark { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 900; }
.hsearch .seg { display: flex; background: #f1f3f6; border-radius: 999px; padding: 3px; margin-left: 2px; }
.hsearch .seg button { font-size: 13px; font-weight: 700; color: var(--ink-3); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.hsearch .seg button.on { background: var(--brand); color: #fff; }
.hsearch select { border: none; background: transparent; font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 0 4px; outline: none; margin-left: 8px; }
.hsearch .taegyeong { font-size: 13.5px; font-weight: 700; color: var(--ink-2); padding: 0 6px; }
.hsearch input { flex: 1; border: none; outline: none; font-size: 14.5px; padding: 0 8px 0 16px; min-width: 60px; }
/* 우측 AI 버튼 — 참고 디자인의 그라데이션 AI 버튼(키보드 아이콘 없음) */
.hsearch .hsearch-btn { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 16px 0 13px; border-radius: 999px; background: linear-gradient(135deg, #00c85a, #00a94b); color: #fff; font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; flex: 0 0 auto; }
.hsearch .hsearch-btn:hover { filter: brightness(1.04); box-shadow: 0 2px 8px rgba(0,169,75,.28); }
.hsearch .ai-ico { display: block; }

.header-auth { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.header-auth .divider { color: var(--line); }
.header-auth a:hover { color: var(--ink); }
.plan-chip { background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }

.gnb-bar { border-top: 1px solid var(--line-2); }
.gnb { display: flex; align-items: center; gap: 4px; height: 54px; }
.gnb .ham { font-size: 22px; color: var(--ink); padding: 0 18px 0 4px; background: none; }
.gnb a { font-size: 20px; font-weight: 700; color: var(--ink); padding: 0 46px; height: 54px; display: inline-flex; align-items: center; position: relative; }
.gnb a.active, .gnb a:hover { color: var(--brand-dark); }
.gnb a.active::after { content: ''; position: absolute; left: 40px; right: 40px; bottom: 0; height: 3px; background: var(--brand); border-radius: 3px 3px 0 0; }

.hamburger { display: none; }
.mobile-nav { display: none; }
.gnb-drop { display: none; position: absolute; top: 54px; left: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 200px; z-index: 120; }
.gnb-drop.open { display: block; }
.gnb-drop a { display: block; height: auto; padding: 11px 16px; font-size: 14.5px; border-radius: 8px; }
.gnb-drop a:hover { background: #f5faf7; }
.gnb-drop a.active::after { display: none; }

/* ================= 배지/신호등 ================= */
.badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 5px; }
.badge-auction { background: var(--blue-050); color: var(--blue); }
.badge-onbid { background: #f2ecff; color: var(--purple); }
.badge-new { background: var(--red-050); color: var(--red); }
.badge-yuchal { background: #f4f6f9; color: var(--ink-2); }
.sig { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.sig::before { content: ''; width: 7px; height: 7px; border-radius: 50%; }
.sig-safe { background: #e7f8ef; color: #12a55a; } .sig-safe::before { background: #12a55a; }
.sig-caution { background: #fff6e2; color: #c98a00; } .sig-caution::before { background: #f2ab13; }
.sig-danger { background: #ffe9e6; color: #e0402a; } .sig-danger::before { background: #f95137; }
.rights-tag { font-size: 12px; color: var(--red); font-weight: 600; }

/* ================= 히어로 캐러셀 ================= */
.hero-carousel { position: relative; margin-top: 18px; overflow: hidden; border-radius: 16px; }
.hero-track { display: flex; transition: transform .4s ease; }
.hero-slide { flex: 0 0 100%; height: 250px; display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; color: #fff; position: relative; overflow: hidden; }
.hero-slide h2 { font-size: 30px; font-weight: 800; line-height: 1.3; }
.hero-slide h2 .g { color: var(--brand-2); }
.hero-slide p { margin-top: 10px; font-size: 15px; opacity: .92; }
.hero-slide .tag { display: inline-block; align-self: flex-start; background: rgba(255,255,255,.16); border-radius: 6px; padding: 4px 10px; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.hero-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.hero-dots button.on { background: var(--brand); width: 22px; border-radius: 999px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 18px; z-index: 2; }
.hero-arrow.prev { left: 10px; } .hero-arrow.next { right: 10px; }

/* ================= 섹션 공통 ================= */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; }
.section-head p { color: var(--ink-3); font-size: 14px; margin-top: 5px; }
.section-head .more { color: var(--ink-3); font-size: 14px; font-weight: 600; }
.section-head .more:hover { color: var(--brand-dark); }

/* 지역별 경공매 */
.region-panel { display: grid; grid-template-columns: 1fr 380px; gap: 0; background: #eef4fb; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.region-map { padding: 22px; position: relative; }
.region-selects { display: flex; gap: 8px; margin-bottom: 14px; max-width: 320px; }
.region-selects select {
  flex: 1; height: 42px; border: none; border-radius: 8px; background: var(--brand); color: #fff;
  padding: 0 12px; font-weight: 800; font-size: 14px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='white'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
/* 실제 행정구역 폴리곤 지도 */
.map-svg-box { display: flex; gap: 14px; align-items: stretch; width: 100%; min-height: 340px; }
.kmap-inset { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; width: 130px; flex: 0 0 auto; display: grid; place-items: center; }
.kmap-inset svg { width: 100%; height: auto; }
.kmap-district { flex: 1; display: grid; place-items: center; }
.kmap-main { width: 100%; max-width: 460px; height: auto; }
.kpoly { fill: #fff; stroke: #b8c4d2; stroke-width: 1; cursor: pointer; transition: fill .12s; }
.kpoly.hover { fill: #d9f5e5; }
.kpoly.on { fill: var(--brand); stroke: #00a94b; }
.klabel { font-size: 11px; font-weight: 700; fill: #4a5666; text-anchor: middle; dominant-baseline: middle; cursor: pointer; pointer-events: all; paint-order: stroke; stroke: #fff; stroke-width: 2.5px; }
.kmap-empty { color: var(--ink-3); padding: 40px; }
.region-card { background: #fff; margin: 22px 22px 22px 0; border-radius: 14px; padding: 24px; box-shadow: var(--shadow); align-self: center; }
.region-card .rc-name { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 800; }
.region-card .rc-name .pin { color: var(--brand); }
.region-card .rc-counts { margin: 14px 0 18px; font-size: 15px; color: var(--ink-2); }
.region-card .rc-counts b { color: var(--ink); font-weight: 800; }
.region-card .rc-counts .down { color: var(--blue); font-size: 13px; }
.region-card .rc-top b { font-size: 13px; color: var(--ink-3); font-weight: 700; }
.region-card .rc-top ol { list-style: none; margin-top: 8px; }
.region-card .rc-top li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; }
.region-card .rc-top li .rank { width: 18px; height: 18px; border-radius: 5px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.region-card .rc-top li .nm { flex: 1; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.region-card .rc-top li .pr { font-weight: 800; }
.region-card .rc-top li a { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.region-card .rc-top li a:hover .nm { color: var(--brand-dark); text-decoration: underline; }
.region-card .rc-asof { margin-top: 12px; font-size: 11px; color: var(--ink-4); text-align: right; }

/* 다크 통계 밴드 */
.stat-band { background: #1c1c20; border-radius: 16px; padding: 30px 40px; display: flex; align-items: center; gap: 40px; color: #fff; flex-wrap: wrap; }
.stat-band .sb-title { font-size: 17px; font-weight: 800; line-height: 1.45; }
.stat-band .sb-title .g { color: var(--brand-2); }
.stat-band .sb-item { border-left: 1px solid rgba(255,255,255,.15); padding-left: 40px; }
.stat-band .sb-item .lbl { font-size: 13px; color: rgba(255,255,255,.7); }
.stat-band .sb-item .num { font-size: 30px; font-weight: 900; color: var(--brand-2); }
.stat-band .sb-item .num span { font-size: 15px; }
.stat-band .sb-hl { margin-left: auto; }
.stat-band .sb-hl .box { border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; }
.stat-band .sb-hl .box b { color: var(--brand-2); }
.stat-band .sb-hl .more { display: block; text-align: right; margin-top: 8px; font-size: 13px; color: rgba(255,255,255,.85); }

/* ================= 물건 카드 (홈) ================= */
.item-scroller { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.item-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 0 16px; display: block; transition: .15s; overflow: hidden; }
.item-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.item-card .ic-photo { position: relative; height: 150px; background: linear-gradient(150deg,#eef1f5,#e3e9f0); overflow: hidden; }
.item-card .ic-photo img { width: 100%; height: 100%; object-fit: cover; }
.item-card .ic-photo .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; opacity: .45; }
.item-card .ic-photo .badge { position: absolute; top: 8px; left: 8px; z-index: 2; }
.item-card .ic-photo .badge.badge-auction { background: var(--red); color: #fff; }
.item-card .ic-photo .badge.badge-onbid { background: var(--purple); color: #fff; }
.item-card .ic-body { padding: 12px 16px 0; }
.item-card .ic-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.item-card .ic-date { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.item-card .ic-dday { font-size: 12px; color: var(--red); font-weight: 700; }
.item-card .ic-type { font-size: 12.5px; color: var(--ink-3); }
.item-card h3 { font-size: 15px; font-weight: 700; margin: 4px 0 6px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.item-card .ic-case { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.item-card .ic-prices { border-top: 1px solid var(--line-2); padding-top: 10px; }
.item-card .ic-prices .row { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; }
.item-card .ic-prices .row.min b { font-size: 17px; color: var(--blue); font-weight: 800; }
.item-card .ic-prices .row .lbl { color: var(--ink-3); }
.item-card .ic-foot { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.item-card .ic-rate { background: var(--red-050); color: var(--red); font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }

/* ================= 투자 배너 (초록 스트립) ================= */
.invest-banner { display: flex; align-items: center; gap: 20px; background: linear-gradient(100deg, #00b854, #00d461); border-radius: 14px; padding: 22px 34px; color: #fff; }
.invest-banner .ib-text { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.invest-banner .ib-text .w { background: none; border-radius: 0; padding: 0; }
.invest-banner .ib-illust { font-size: 34px; }
.invest-banner .ib-more { margin-left: auto; font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; }

/* ================= 동영상 강좌 (경매콕 클래스) ================= */
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: .15s; }
.video-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.video-card .vthumb { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; background: #0f1720; overflow: hidden; }
.video-card .vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card:hover .vthumb img { transform: scale(1.04); transition: transform .25s; }
.video-card .vthumb .vtitle { position: absolute; left: 14px; top: 14px; right: 14px; font-size: 16px; font-weight: 800; line-height: 1.35; text-shadow: 0 1px 4px rgba(0,0,0,.25); }
.video-card .vthumb .play { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.55); display: grid; place-items: center; font-size: 15px; padding-left: 3px; }
.video-card .vthumb .dur { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.65); font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.video-card .vbody { padding: 12px 14px 14px; }
.video-card .vbody b { font-size: 14.5px; font-weight: 700; display: block; line-height: 1.4; }
.video-card .vbody span { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; display: block; }

/* ================= 커뮤니티 프리뷰 (홈) ================= */
.home-community { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hc-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.hc-box .hc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.hc-box .hc-head h3 { font-size: 19px; font-weight: 800; }
.hc-box .hc-head .more { color: var(--ink-3); font-size: 13px; }
.hc-item { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.hc-item:first-of-type { border-top: none; }
.hc-item .thumb { width: 96px; height: 72px; border-radius: 8px; object-fit: cover; background: #eef1f5; flex: 0 0 auto; }
.hc-item .hc-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hc-item .hc-body p { font-size: 13px; color: var(--ink-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hc-item .hc-meta { font-size: 12px; color: var(--ink-4); margin-top: 6px; }

/* 홈 커뮤니티 3열(경공매 Q&A / Tip! 법원판례 / BEST 글) */
.home-triple { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.ht-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; }
.ht-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.ht-head h3 { font-size: 20px; font-weight: 800; }
.ht-head h3 .g { color: var(--brand-dark); }
.ht-head .more { color: var(--ink-3); font-size: 13px; }
.ht-list { display: flex; flex-direction: column; }
.ht-list a { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--ink); }
.ht-list a:first-child { border-top: none; }
.ht-list a:hover { color: var(--brand-dark); }
.ht-list .rk { font-size: 16px; font-weight: 800; color: var(--brand); width: 16px; flex: 0 0 auto; text-align: center; }
.ht-list .tx { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
/* Tip! 법원판례 — 대표글 1건 */
.ht-feature { display: block; }
.ht-feature h4 { font-size: 16px; font-weight: 800; line-height: 1.45; margin-bottom: 10px; }
.ht-feature p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ht-feature:hover h4 { color: var(--brand-dark); }

/* ================= 검색 페이지 ================= */
.page-title { font-size: 22px; font-weight: 800; margin: 26px 0 16px; }
.filter-panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; }
.filter-row { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 8px 0; }
.filter-row .fl { font-size: 14px; font-weight: 700; color: var(--ink-2); min-width: 66px; }
.filter-row input[type=date], .filter-row input[type=number], .filter-row select { height: 38px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; font-size: 13.5px; }
.filter-row input[type=number] { width: 120px; }
.filter-actions { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.chip-type { border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 13px; font-weight: 700; color: var(--blue); background: #fff; }
.chip-type.on { background: var(--blue); color: #fff; border-color: var(--blue); }

.search-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.search-toolbar .total { font-size: 15px; font-weight: 700; }
.search-toolbar .total b { color: var(--blue); }
.seg-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg-tabs button { padding: 7px 14px; font-size: 13px; font-weight: 700; color: var(--ink-3); background: #fff; }
.seg-tabs button.on { background: var(--ink); color: #fff; }
.search-toolbar .sort { margin-left: auto; height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-weight: 600; }

.item-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.item-table thead th { background: #f6f8fb; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.item-table td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); font-size: 13.5px; vertical-align: middle; }
.item-table tbody tr { cursor: pointer; transition: background .1s; }
.item-table tbody tr:hover { background: var(--blue-050); }
.item-table .col-photo { width: 96px; }
.item-table .photo { width: 84px; height: 64px; border-radius: 8px; background: linear-gradient(150deg,#eef1f5,#e3e9f0); display: grid; place-items: center; color: var(--ink-4); font-size: 18px; overflow: hidden; position: relative; }
.item-table .photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.item-table .col-main .type { font-weight: 800; color: var(--ink); }
.item-table .col-main .case { color: var(--ink-3); font-size: 12.5px; margin: 2px 0; }
.item-table .col-main .addr { color: var(--ink-2); }
.addr .unit, .ic-case .unit { color: var(--ink); font-weight: 700; }
.item-table .col-main .area { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.item-table .col-price { text-align: right; white-space: nowrap; }
.item-table .col-price .gam { color: var(--ink-3); font-size: 12.5px; text-decoration: line-through; }
.item-table .col-price .min { color: var(--blue); font-weight: 800; font-size: 15px; }
.item-table .col-price .pyeong { color: var(--ink-4); font-size: 11.5px; }
.item-table .col-state { text-align: center; }
.item-table .col-state .yuchal { color: var(--red); font-weight: 700; }
.item-table .col-state .rate { font-size: 12px; color: var(--ink-3); }
.item-table .col-when { text-align: center; white-space: nowrap; }
.item-table .col-when .dday { color: var(--red); font-size: 12px; font-weight: 700; }
.item-table .col-views { text-align: center; color: var(--ink-3); }

.pager { display: flex; justify-content: center; gap: 5px; margin: 26px 0; }
.pager button { min-width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.pager button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.pager button:disabled { opacity: .4; }

/* ================= 멤버십 ================= */
.mypage-layout { display: grid; grid-template-columns: 200px 1fr; gap: 30px; padding: 30px 0 100px; }
.mypage-layout > * { min-width: 0; } /* grid 아이템이 테이블 min-content 폭으로 넘치는 것 방지 (모바일 가로스크롤 원인) */
.mypage-side { border: 1px solid var(--brand); border-radius: 14px; padding: 8px; height: max-content; }
.mypage-side a { display: block; padding: 14px 18px; font-size: 14.5px; font-weight: 600; color: var(--ink-3); text-align: center; border-radius: 8px; }
.mypage-side a.on { color: var(--brand-dark); font-weight: 800; }
.mypage-side a:hover { background: #f5faf7; }
.mship-h { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mship-h .redbadge { background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.sub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sub-card { background: var(--blue-050); border: 1px solid var(--blue-100); border-radius: 12px; padding: 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.sub-card.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.sub-card .sc-l b { font-size: 16px; font-weight: 800; }
.sub-card .sc-l span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.sub-card .sc-r { text-align: right; }
.sub-card .sc-r .disc { font-size: 12px; color: var(--red); font-weight: 800; }
.sub-card .sc-r .orig { font-size: 12px; color: var(--ink-4); text-decoration: line-through; }
.sub-card .sc-r .price { font-size: 20px; font-weight: 900; } .sub-card .sc-r .price span { font-size: 13px; color: var(--ink-3); }
.more-toggle { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 14px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.ticket-table { width: 100%; border-collapse: collapse; }
.ticket-table th { text-align: left; font-size: 13px; color: var(--ink-3); font-weight: 700; padding: 12px 14px; }
.ticket-table th.special { color: var(--red); }
.ticket-table td { padding: 14px; font-size: 14px; }
.ticket-table tbody tr:nth-child(even) { background: var(--blue-050); }
.ticket-table .reg b { font-weight: 800; } .ticket-table .reg span { display: block; font-size: 12px; color: var(--ink-3); }
.ticket-table .cell { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ticket-table .cell input { accent-color: var(--blue); }
.pay-sticky { position: fixed; bottom: 0; left: 0; right: 0; background: var(--blue); color: #fff; z-index: 90; }
body:has(.pay-sticky) .site-footer { padding-bottom: 110px; } /* 고정 결제바에 푸터 가림 방지 */
.pay-sticky .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 18px; height: 64px; }
.pay-sticky .amt { font-size: 15px; } .pay-sticky .amt b { font-size: 22px; font-weight: 900; margin-left: 8px; }

/* ================= 커뮤니티 ================= */
.board-side a { display: block; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); border-radius: 8px; }
.board-side a.on { background: var(--brand); color: #fff; font-weight: 800; }
.board-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.board-head h2 { font-size: 22px; font-weight: 800; }
.board-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.board-table th { font-size: 13px; color: var(--ink-3); padding: 12px 8px; border-bottom: 1px solid var(--line); }
.board-table td { padding: 14px 8px; border-bottom: 1px solid var(--line-2); font-size: 14px; text-align: center; color: var(--ink-3); }
.board-table td.title { text-align: left; color: var(--ink); font-weight: 600; cursor: pointer; }
.board-table td.title:hover { color: var(--blue); }
.board-table .tag-must { background: var(--red); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.board-table .tag-best { background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 5px; }
.board-table .cat { color: var(--ink-3); font-weight: 400; margin-right: 6px; }
.board-table .cmt { color: var(--blue); font-weight: 700; margin-left: 4px; }
.post-view { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px; }
.post-view h1 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.post-view .post-meta { color: var(--ink-3); font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.post-body { font-size: 15px; line-height: 1.85; color: var(--ink-2); white-space: pre-wrap; }

/* ================= 로그인/모달 ================= */
.auth-wrap { max-width: 420px; margin: 60px auto; padding: 0 16px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px 34px; box-shadow: var(--shadow); }
.auth-card .logo { justify-content: center; margin-bottom: 8px; }
.auth-sub { text-align: center; color: var(--ink-2); font-size: 14px; margin-bottom: 22px; }
.auth-sub b { color: var(--blue); }
.social-btn { width: 100%; height: 50px; border-radius: 10px; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 10px; }
.social-kakao { background: #FEE500; color: #191600; }
.social-row { display: flex; gap: 10px; margin: 6px 0 18px; }
.social-row button { flex: 1; height: 46px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.auth-field { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font-size: 15px; margin-bottom: 10px; }
.auth-field:focus { outline: none; border-color: var(--brand); }
.auth-check { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); margin: 4px 0 16px; }
.auth-submit { width: 100%; height: 52px; background: var(--brand); color: #fff; border-radius: 10px; font-weight: 800; font-size: 16px; }
.auth-submit:hover { background: var(--brand-dark); }
.auth-links { text-align: center; margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.auth-links a:hover { color: var(--ink); }
.auth-err { background: var(--red-050); color: var(--red); font-size: 13px; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; display: none; }
.auth-err.show { display: block; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal-overlay.show { display: flex; }
.modal-box { background: #fff; border-radius: 18px; padding: 40px 34px; max-width: 440px; width: 100%; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; font-size: 16px; color: var(--ink-3); }

/* AI 예산 검색 모달 */
.modal-box.aib { max-width: 460px; padding: 30px 30px 26px; }
.aib-head { margin-bottom: 18px; }
.aib-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: #4f46e5; background: linear-gradient(135deg,#eaf2ff,#f1ecff); padding: 5px 11px; border-radius: 999px; }
.aib-head h3 { font-size: 20px; font-weight: 800; margin: 12px 0 6px; letter-spacing: -0.02em; }
.aib-head p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.aib-field { margin-bottom: 14px; }
.aib-field > label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.aib-field > label i { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--ink-3); background: #f1f3f6; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.aib-money { display: flex; align-items: center; border: 2px solid var(--brand); border-radius: 12px; padding: 0 14px; height: 54px; }
.aib-money input { flex: 1; border: none; outline: none; font-size: 20px; font-weight: 800; color: var(--ink); background: transparent; }
.aib-money em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--ink-2); margin-left: 6px; }
.aib-field small { display: block; font-size: 12.5px; color: var(--brand-dark, var(--brand)); font-weight: 700; margin-top: 6px; min-height: 16px; }
.aib-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.aib-quick button { font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: #f1f3f6; border-radius: 999px; padding: 6px 12px; }
.aib-quick button:hover { background: #e5e8ee; }
.aib-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aib-row select { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: #fff; outline: none; }
.modal-box.aib .auth-submit { margin-top: 8px; }
.aib-note { font-size: 11.5px; color: var(--ink-3); line-height: 1.55; margin-top: 12px; text-align: center; }

/* 낙찰 수익 계산기 */
.calc-card .calc-desc { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; line-height: 1.5; }
.calc-card .calc-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 12px 0 6px; }
.calc-money { display: flex; align-items: center; border: 2px solid var(--brand); border-radius: 10px; padding: 0 12px; height: 46px; }
.calc-money input { flex: 1; border: none; outline: none; background: transparent; font-size: 17px; font-weight: 800; color: var(--ink); min-width: 0; }
.calc-money em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-left: 6px; }
.calc-quick { display: flex; gap: 6px; margin-top: 8px; }
.calc-quick button { font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: #f1f3f6; border-radius: 8px; padding: 6px 12px; }
.calc-quick button:hover { background: #e5e8ee; }
.calc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 14px; }
.calc-opt label { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.calc-opt select, .calc-suffix { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink); background: #fff; }
.calc-opt select { padding: 0 6px; outline: none; }
.calc-suffix { display: flex; align-items: center; padding: 0 10px; }
.calc-suffix input { flex: 1; width: 100%; border: none; outline: none; font-size: 14px; font-weight: 700; color: var(--ink); background: transparent; min-width: 0; }
.calc-suffix em { font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-left: 4px; }
.calc-result { margin-top: 16px; }
.calc-result tr.calc-sum th, .calc-result tr.calc-sum td { border-top: 1px solid var(--line); }
.calc-result tr.calc-sum th { font-weight: 800; color: var(--ink); }
.calc-result tr.calc-div th, .calc-result tr.calc-div td { border-top: 2px solid var(--line-2); padding-top: 12px; }
.calc-card .calc-note { margin-top: 12px; font-size: 11px; color: var(--ink-4); line-height: 1.55; }

/* 취득세율 도움말 배지 */
.calc-help { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--ink-4); color: #fff; font-size: 10px; font-weight: 800; cursor: help; vertical-align: middle; }

/* AI 적정 입찰가 버튼 + 결과 */
.ai-bid-btn { width: 100%; margin-top: 10px; height: 42px; border-radius: 10px; font-size: 14px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6a5cff, #9d5de6); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: .15s; }
.ai-bid-btn:hover { filter: brightness(1.05); box-shadow: 0 4px 14px rgba(106,92,255,.32); }
.ai-bid-btn .ai-spark { font-size: 15px; }
.ai-bid-out { margin-top: 10px; background: #f6f4ff; border: 1px solid #e2d9ff; border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.ai-bid-out .ai-bid-facts { font-size: 12px; color: var(--ink-3); background: #fff; border: 1px solid #e2d9ff; border-radius: 8px; padding: 7px 10px; margin-bottom: 9px; line-height: 1.5; }
.ai-bid-out .ai-bid-facts b { color: var(--ink); font-weight: 700; }
.ai-bid-out .ai-bid-head { font-size: 14px; font-weight: 800; color: #5b3fd6; margin-bottom: 6px; }
.ai-bid-out .ai-bid-head b { color: #5b3fd6; }
.ai-bid-out .ai-bid-note { margin-top: 8px; font-size: 11px; color: var(--ink-4); }

/* 계산 저장 / 공유 버튼 행 */
.save-share-row { display: flex; gap: 8px; margin-bottom: 10px; }
.save-share-row .btn { flex: 1; }
.calc-sec { font-size: 12px; font-weight: 800; color: var(--ink-2); margin: 18px 0 8px; padding-bottom: 5px; border-bottom: 1px solid var(--line-2); }
.calc-sec .calc-hint { font-size: 11px; font-weight: 600; color: var(--ink-4); margin-left: 4px; }
.calc-radio { display: flex; gap: 8px; }
.calc-radio label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 6px; cursor: pointer; text-align: center; }
.calc-radio label:has(input:checked) { border-color: var(--brand); background: #f0fbf5; color: var(--brand-dark); }
.calc-radio input { accent-color: var(--brand); }
.calc-checks { display: grid; gap: 6px; margin-top: 4px; }
.calc-checks label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.calc-checks input { width: 16px; height: 16px; accent-color: var(--brand); flex: 0 0 auto; }
.calc-checks label em { font-style: normal; margin-left: auto; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.calc-toggle { display: block; width: 100%; text-align: left; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--brand-dark); padding: 8px 0; }
.calc-consider { margin-top: 4px; background: #f7f9fc; border-radius: 10px; padding: 12px 14px; }
.calc-consider ul { margin: 0; padding-left: 16px; }
.calc-consider li { font-size: 12.5px; line-height: 1.7; color: var(--ink-2); margin-bottom: 5px; }
.calc-consider li b { color: var(--ink); }

/* ================= 상세 페이지 ================= */
.detail-wrap { padding: 26px 0 60px; }
.detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.detail-head h1 { font-size: 24px; font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; margin-top: 20px; }
.detail-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.detail-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th { text-align: left; width: 110px; background: #f7f9fc; color: var(--ink-2); font-weight: 700; font-size: 13.5px; padding: 11px 14px; border: 1px solid var(--line-2); }
.spec-table td { padding: 11px 14px; border: 1px solid var(--line-2); font-size: 14px; }
.analysis-box { border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.analysis-box.safe { background: #e7f8ef; } .analysis-box.caution { background: #fff6e2; } .analysis-box.danger { background: #ffe9e6; }
.gate-box { background: #fff; border: 2px dashed var(--brand); border-radius: 14px; padding: 40px; text-align: center; }
.gate-box .lock { font-size: 40px; } .gate-box h3 { font-size: 20px; font-weight: 800; margin: 12px 0 8px; }
.gate-box p { color: var(--ink-2); margin-bottom: 20px; }
.side-cta { background: #1c1c20; color: #fff; border-radius: 14px; padding: 24px; text-align: center; }
.side-cta h3 { font-size: 18px; font-weight: 800; } .side-cta h3 .g { color: var(--brand-2); }

/* 상세 사진 갤러리 */
.gallery-card { padding: 14px; }
.gal-main { position: relative; border-radius: 10px; overflow: hidden; background: #2a2d33; }
/* 원본 사진이 최대 700px라 cover 확대 시 픽셀이 깨짐 → contain으로 원본 비율 유지, 여백은 블러 배경으로 */
.gal-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(22px) brightness(.6); }
.gal-main img { position: relative; z-index: 1; width: 100%; height: 380px; object-fit: contain; display: block; }
.gal-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; display: grid; place-items: center; z-index: 2; }
.gal-arrow:hover { background: rgba(0,0,0,.65); }
.gal-arrow.prev { left: 12px; } .gal-arrow.next { right: 12px; }
.gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.gal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumbs img { width: 84px; height: 60px; object-fit: cover; border-radius: 7px; cursor: pointer; border: 2px solid transparent; flex: 0 0 auto; opacity: .75; }
.gal-thumbs img:hover { opacity: 1; }
.gal-thumbs img.on { border-color: var(--brand); opacity: 1; }
@media (max-width: 720px) { .gal-main img { height: 240px; } }

/* 실거래가 비교 표 — 각 거래 행 클릭 시 해당 단지 실거래로 이동 */
.rp-table .rp-row { cursor: pointer; transition: background .12s; }
.rp-table .rp-row.rp-hidden { display: none; }

/* 리스트 행 호버 미리보기 카드 */
.ez-preview { position: fixed; z-index: 300; width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.ez-preview.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.ez-preview { cursor: pointer; }
.ez-preview .ezp-rp-slot, .ez-preview .ezp-rp { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.ez-preview .ezp-rp span { color: var(--ink-3); }
.ez-preview .ezp-rp b { font-size: 13.5px; color: var(--ink); }
.ez-preview .ezp-rp b.blue { color: var(--blue); }
.ez-preview .ezp-rp b.red { color: var(--red); }
.ez-preview .ezp-rp em { font-style: normal; color: var(--ink-3); font-size: 11.5px; }
.ez-preview .ezp-rp-load { color: var(--ink-3); font-size: 12px; }
.ez-preview .ezp-rp-head { margin-bottom: 4px; }
.ez-preview .ezp-rp-grp { margin-top: 7px; }
.ez-preview .ezp-rp-lbl { font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 2px; }
.ez-preview .ezp-rp-row { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--ink-2); line-height: 1.7; }
.ez-preview .ezp-rp-row > span { color: var(--ink-3); flex: 0 0 auto; }
.ez-preview .ezp-rp-row > em { font-style: normal; color: var(--ink-3); font-size: 11px; }
.ez-preview .ezp-rp-row > b { margin-left: auto; font-size: 12.5px; color: var(--ink); }
.ez-preview .ezp-photo { width: 100%; height: 150px; background: #eef1f5; }
.ez-preview .ezp-photo img { width: 100%; height: 100%; object-fit: cover; }
.ez-preview .ezp-body { padding: 12px 14px 14px; }
.ez-preview .ezp-type { font-size: 13px; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.ez-preview .ezp-addr { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.4; }
.ez-preview .ezp-area { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.ez-preview .ezp-specs { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.ez-preview .ezp-specs > div { display: flex; align-items: baseline; gap: 6px; margin-bottom: 3px; }
.ez-preview .ezp-specs > div > span:first-child { color: var(--ink-3); width: 44px; flex: 0 0 auto; }
.ez-preview .ezp-specs b { font-size: 14px; color: var(--ink); }
.ez-preview .ezp-specs b.blue { color: var(--blue); }
.ez-preview .ezp-specs em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.ez-preview .ezp-anal { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.ez-preview .ezp-anal > b { margin-left: 4px; }
.ez-preview .ezp-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ez-preview .ezp-stat .ezp-yuchal { font-weight: 700; color: var(--ink-2); }
.ez-preview .ezp-stat .ezp-minbid { color: var(--ink-3); }
.ez-preview .ezp-stat .ezp-minbid b { color: var(--ink); font-size: 13.5px; margin-left: 2px; }
.ez-preview .ezp-anal p { color: var(--ink-2); line-height: 1.5; margin-top: 5px; }
.ez-preview .ezp-anal.ezp-muted { color: var(--ink-3); }
.ez-preview .ezp-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.ez-preview .ezp-bigo { margin-top: 8px; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.ez-preview .ezp-bigo b { color: var(--ink-2); }
.ez-preview .ezp-more { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--brand-dark); }

/* 실거래가 지도 — 경매물건 + 실거래 단지 함께 */
.rp-map-wrap { margin-top: 14px; }
.rp-map-legend { display: flex; gap: 14px; margin-bottom: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.rp-map-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.rp-map-legend .lg::before { content: ''; width: 11px; height: 11px; border-radius: 50%; }
.rp-map-legend .lg-subj::before { background: var(--brand); }
.rp-map-legend .lg-comp::before { background: var(--blue); }
.rp-map { width: 100%; height: 340px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.rpm-bubble { display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding: 5px 9px; border-radius: 9px; box-shadow: 0 2px 8px rgba(20,30,55,.25); cursor: pointer; white-space: nowrap; transform: translateY(-4px); }
.rpm-bubble::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: inherit; }
.rpm-bubble .t { font-size: 11px; font-weight: 700; }
.rpm-bubble .p { font-size: 12.5px; font-weight: 800; }
.rpm-bubble.comp { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); border-top-color: var(--blue); }
.rpm-bubble.comp::after { border-top-color: var(--blue); }
.rpm-bubble.subj { background: var(--brand); color: #fff; border: 1.5px solid var(--brand-dark); z-index: 10; }
.rpm-bubble.subj::after { border-top-color: var(--brand); }
.rpm-bubble:hover { filter: brightness(0.97); }
.rp-table .rp-row:hover { background: #eefaf1; }
.rp-table .rp-apt { white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.rp-table .rp-apt .nm { color: var(--blue); font-weight: 600; }
.rp-table .rp-row:hover .rp-apt .nm { text-decoration: underline; }
.rp-table .rp-apt .go { color: var(--ink-4); font-size: 11px; }
.rp-table .rp-apt .yr { color: var(--ink-3); font-size: 11.5px; font-weight: 600; margin-left: 2px; }

/* 로드뷰 미리보기 버튼 (네이버/카카오/구글) */
.roadview-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.rv-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font-size: 14.5px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: .15s; flex: 1 1 0; justify-content: center; min-width: 130px; }
.rv-btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.rv-btn .rv-ico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; }
.rv-naver .rv-ico { background: #03c75a; }
.rv-kakao .rv-ico { background: #ffe300; color: #391b1b; }
.rv-google .rv-ico { background: #4285f4; }
.rv-naver:hover { border-color: #03c75a; }
.rv-kakao:hover { border-color: #ffcd00; }
.rv-google:hover { border-color: #4285f4; }
@media (max-width: 520px) { .rv-btn { flex-basis: 100%; } }

/* 용어 툴팁 */
.term { border: none; border-bottom: 2px dotted var(--blue); cursor: help; font-weight: 700; position: relative; background: none; font: inherit; color: inherit; padding: 0; }
.term:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.term-pop { position: absolute; top: 130%; left: 0; z-index: 50; width: 240px; background: #1c1c20; color: #fff; font-weight: 400; font-size: 12.5px; line-height: 1.5; padding: 12px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); }
.term-pop b { display: block; color: var(--brand-2); margin-bottom: 4px; font-size: 13px; }

/* 토스트 */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1c1c20; color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 2000; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 빈 상태/스켈레톤 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty-state .icon { font-size: 40px; margin-bottom: 10px; }
.skeleton { background: linear-gradient(90deg, #eef1f5 25%, #f6f8fb 50%, #eef1f5 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ================= 가이드/마이페이지 지원 (구 페이지 호환, 행크 톤) ================= */
:root { --gold-soft: #fff6e2; }
.hero { background: linear-gradient(120deg, #0f1f16, #14402a 60%, #00a94b 140%); color: #fff; }
.hero h1 { font-weight: 800; letter-spacing: -0.03em; }
.hero .sub { margin-top: 10px; color: rgba(255,255,255,.82); font-size: 15.5px; line-height: 1.6; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; }
.panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.guide-steps { counter-reset: gstep; }
.guide-step { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.guide-step .num { counter-increment: gstep; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.guide-step .num::before { content: counter(gstep); }
.guide-step h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 6px; }
.guide-step p { color: var(--ink-2); line-height: 1.75; font-size: 14.5px; }
.check-list { list-style: none; }
.check-list li { padding: 9px 0 9px 28px; position: relative; color: var(--ink-2); line-height: 1.65; font-size: 14.5px; }
.check-list li::before { content: '✕'; position: absolute; left: 4px; color: var(--red); font-weight: 800; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.glossary-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.glossary-card b { font-size: 14.5px; color: var(--brand-dark); }
.glossary-card p { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }
@media (max-width: 720px) { .glossary-grid { grid-template-columns: 1fr; } }
/* 구버전 별칭 (마이페이지 등) */
:root { --ink-soft: #505050; }
.btn-primary, .btn-gold, .btn-ghost { min-height: 42px; padding: 0 18px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-gold { background: var(--blue); color: #fff; }
.btn-gold:hover { background: var(--blue-dark); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-2); background: #fff; }
.item-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .item-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .item-grid { grid-template-columns: 1fr; } }

/* ================= 푸터 ================= */
.site-footer { background: #1c1c20; color: rgba(255,255,255,.7); margin-top: 40px; padding: 40px 0 50px; font-size: 13px; }
.site-footer .fcols { display: flex; gap: 50px; flex-wrap: wrap; margin-bottom: 24px; }
.site-footer b { color: #fff; display: block; margin-bottom: 10px; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .disclaimer { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; line-height: 1.7; color: rgba(255,255,255,.5); font-size: 12px; }

/* ================= 반응형 ================= */
@media (max-width: 1024px) {
  .item-scroller { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .region-panel { grid-template-columns: 1fr; }
  .region-card { margin: 0 22px 22px; }
  .home-community { grid-template-columns: 1fr; }
  .home-triple { grid-template-columns: 1fr; }
  .mypage-layout { grid-template-columns: 1fr; }
  .sub-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .util-bar .util-left { gap: 12px; font-size: 11.5px; }
  .main-bar .wrap { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 12px; }
  .hsearch { order: 3; max-width: 100%; width: 100%; }
  .hsearch .hlogo { display: none; }  /* 모바일: 상단 메인 로고와 중복이라 검색창 내부 로고 숨김(공간 확보) */
  .hsearch .hsearch-btn { padding: 0 12px; font-size: 13.5px; }
  .gnb a { padding: 0 13px; font-size: 14px; white-space: nowrap; flex-shrink: 0; }
  .gnb .ham { padding: 0 10px 0 2px; flex-shrink: 0; }
  .gnb { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .gnb::-webkit-scrollbar { display: none; }
  .item-scroller { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .map-svg-box { flex-direction: column; align-items: center; }
  .kmap-inset { width: 110px; }
  .invest-banner { flex-wrap: wrap; padding: 18px 20px; } .invest-banner .ib-text { font-size: 17px; }
  .stat-band { flex-direction: column; align-items: flex-start; gap: 20px; }
  .stat-band .sb-item { border-left: none; padding-left: 0; }
  .ticket-table { display: block; overflow-x: auto; white-space: nowrap; }
  .item-table thead { display: none; }
  .item-table, .item-table tbody, .item-table tr, .item-table td { display: block; width: 100%; }
  .item-table tr { border-bottom: 8px solid var(--bg); padding: 8px 0; }
  .item-table td { text-align: left !important; border: none; padding: 4px 12px; }
  .detail-grid { grid-template-columns: 1fr; }
  .hero-slide { padding: 26px; height: 200px; } .hero-slide h2 { font-size: 22px; }
}
