:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-subtle: #f8faf9;
  --ink: #101b18;
  --ink-secondary: #394a44;
  --ink-muted: #566761;
  --brand: #184f43;
  --brand-hover: #123d34;
  --brand-soft: #eaf3f0;
  --border: #d8e1dd;
  --border-strong: #bcc9c3;
  --ok: #136845;
  --ok-bg: #e7f5ee;
  --warn: #8c4e00;
  --warn-bg: #fff5e6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(18, 32, 28, 0.05);
  --shadow-md: 0 8px 22px rgba(18, 32, 28, 0.08);
  --shadow-lg: 0 18px 42px rgba(15, 28, 24, 0.18);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; max-width: 100%; overflow-x: clip; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Pretendard GOV Variable", "Pretendard GOV", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 450;
  line-height: 1.58;
  letter-spacing: -0.005em;
  word-break: keep-all;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "ss06" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

input, select, textarea {
  min-width: 0;
  max-width: 100%;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
input:not([type="checkbox"]):not([type="radio"]):hover,
select:hover,
textarea:hover {
  border-color: #93aaa2;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(24, 79, 67, 0.14);
}
select {
  background-color: #fff;
  cursor: pointer;
}
button {
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease, transform 0.06s ease;
}
button:active:not(:disabled) { transform: translateY(0.5px); }
::placeholder { color: #687a73; font-weight: 450; opacity: 1; }

/* 고객 전용 상단 헤더 */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.topbar-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 13px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.015em;
}
.brand-sub {
  font-size: 13px;
  color: var(--ink-muted);
}

.main-nav { display: flex; gap: 6px; }
.nav-link {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { background: var(--surface-subtle); color: var(--ink); }
.nav-link.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}
.nav-cnt {
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 999px;
}
.nav-cnt:empty { display: none; }

.container {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 10px 0 0;
  padding: 0 16px 36px;
}
#view-requests {
  max-width: 1360px;
  margin: 0 auto;
}
.view { display: none; }
.view.active { display: block; }

.search-panel, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(18, 32, 28, 0.04), 0 6px 18px rgba(18, 32, 28, 0.025);
}

.search-bar { display: flex; gap: 8px; }
.search-bar input {
  flex: 1;
  padding: 11px 15px;
  font-size: 15px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
}
.search-bar input:focus { outline: none; border-color: var(--brand); }
.search-submit { min-width: 92px; font-size: 15.5px; }

.preset-row {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.preset-label { font-size: 13px; color: var(--ink-muted); font-weight: 600; margin-right: 2px; }
.preset-chip {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  padding: 5px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}
.preset-chip:hover { border-color: var(--brand); color: var(--brand); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 14px;
  align-items: center;
}
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-group.full-row { width: 100%; padding-top: 2px; }
.filter-title { font-size: 13px; font-weight: 700; color: var(--ink-secondary); }

.seg-group {
  display: inline-flex;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}
.seg {
  border: none;
  background: transparent;
  padding: 6px 11px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
}
.seg.active { background: var(--brand); color: #fff; }

.flt-select {
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  background: #fff;
  color: var(--ink);
}

.toggle-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill-toggle {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-secondary);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pill-toggle.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 700;
}

.result-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.offer-alert-bar {
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}
.offer-alert-bar[hidden] { display: none; }
.btn-watch-req {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-secondary);
  padding: 4px 9px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.btn-watch-req.watching {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.active-cond-bar {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--brand-soft);
  border: 1px solid #bddbce;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.btype-plain-guide {
  flex: 1 1 100%;
  margin-top: 4px;
  padding: 10px 13px;
  background: #f5faf8;
  border: 1px solid #c3ded3;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  display: grid;
  gap: 3px;
}
.cond-tag {
  background: #fff;
  color: var(--brand);
  border: 1px solid #a8cfc0;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12.5px;
}
.btn-cmp-pill {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-secondary);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-cmp-pill.picked {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-heart {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-secondary);
  padding: 4px 9px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-heart.saved {
  border-color: #d9485f;
  background: #fff1f3;
  color: #c82843;
}
.monthly-total-line {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
}
.modal-photo-stage {
  position: relative;
}
.modal-nav-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  z-index: 8;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
  transition: background-color 0.12s ease, transform 0.08s ease;
}
.modal-nav-arrow:hover {
  background: rgba(24, 79, 67, 0.92);
  border-color: #ffffff;
}
.modal-nav-arrow:active:not(:disabled) {
  transform: scale(0.92) !important;
}
.modal-nav-arrow.prev { left: 12px; }
.modal-nav-arrow.next { right: 12px; }
.modal-photo-counter {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 6;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.result-count { font-size: 14.5px; font-weight: 600; color: var(--ink-secondary); }
.result-controls { display: flex; align-items: center; gap: 6px; }
.sort-label { font-size: 13px; color: var(--ink-muted); }

/* 매물 카드 그리드 */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.listing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.listing-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.card-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9.6;
  background: #e9eeec;
  overflow: hidden;
  cursor: pointer;
}
.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-thumb-empty {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #7c9089;
  font-size: 12.5px;
  font-weight: 600;
  background: linear-gradient(145deg, #f2f6f4 0%, #e5ece9 100%);
}
.thumb-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.thumb-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 32, 29, 0.68);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: manipulation;
  opacity: 0;
  transition: opacity 0.14s, transform 0.08s;
}
.thumb-nav:active:not(:disabled) {
  transform: scale(0.92) !important;
}
.card-thumb-wrap:hover .thumb-nav { opacity: 1; }
.thumb-nav.prev { left: 8px; }
.thumb-nav.next { right: 8px; }

.photo-cnt-badge {
  position: absolute;
  bottom: 9px;
  right: 10px;
  background: rgba(16, 26, 23, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.status-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
}
.status-pill.ok { background: var(--ok-bg); color: var(--ok); }
.status-pill.unknown { background: var(--warn-bg); color: var(--warn); }

.cobroker-pill {
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

.card-body {
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.card-top-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.price-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
  cursor: pointer;
}
.cmp-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
}
.cmp-label input { width: 15px; height: 15px; margin: 0; accent-color: var(--brand); }

.card-title { font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.spec-line { font-size: 13.5px; color: var(--ink-secondary); }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.fact-tag {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}
.fact-tag.ok { border-color: #bfe0d1; background: #f2faf6; color: var(--ok); }
.fact-tag.unknown { border-color: #f2d3a8; background: #fffaf3; color: var(--warn); }

.hug-summary {
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 12.5px;
  color: var(--ink-secondary);
}
.hug-summary b { color: var(--ink); }

.card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.broker-mini {
  font-size: 12.5px;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-card-detail {
  background: var(--brand-soft);
  color: var(--brand);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-card-detail:hover { background: #dbece5; }

/* 비교 바 */
.floating-compare {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 25;
  font-size: 14px;
  font-weight: 600;
}
.floating-compare-btns { display: flex; gap: 8px; }
.btn-white {
  background: #fff;
  color: var(--ink);
  border: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.btn-white:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost-light {
  background: transparent;
  color: #cbd5d1;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.compare-box {
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
  overflow-x: auto;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--surface-subtle); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  border: 1px solid var(--brand);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.btn-outline-sm {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.btn-text-sm {
  border: 1px solid transparent;
  background: #edf4f1;
  color: var(--brand);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.btn-text-sm:hover {
  background: #ddece6;
  border-color: #b5d2c7;
}
.btn-tall { min-height: 46px; }
.full-width { width: 100%; }

/* 고객 요청함 */
.req-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 20px;
  align-items: start;
}
.sec-title { margin: 0 0 6px; font-size: 19px; }
.sec-desc { margin: 0 0 16px; font-size: 14px; color: var(--ink-secondary); }
.sec-head-inline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.count-pill {
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.fld input, .fld textarea {
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
}
.req-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 12px;
  background: var(--surface-subtle);
}
.req-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.offer-box {
  background: #fff;
  border: 1px solid #c3dfd3;
  border-radius: 8px;
  padding: 11px 13px;
  margin-top: 10px;
  font-size: 13.5px;
}
.offer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* 하단 푸터 (중개사 센터 분리 링크) */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.partner-footer-link {
  color: var(--ink-secondary);
  font-weight: 700;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface-subtle);
}
.partner-footer-link:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* 상세 모달 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 19, 0.62);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1200;
}
.modal-backdrop[hidden] { display: none !important; }
.modal-sheet {
  background: #fff;
  width: min(820px, 100%);
  max-height: 90vh;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
}
.btn-close {
  border: 1px solid var(--border-strong);
  background: var(--surface-subtle);
  color: var(--ink);
  padding: 6px 13px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
}
.btn-close:hover {
  background: #e6eeeb;
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-body > * {
  flex-shrink: 0;
}
.modal-gallery {
  overflow: hidden;
  border-radius: 10px;
}
.modal-photo-stage {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}
.modal-gallery img#modal-main-photo {
  width: 100%;
  aspect-ratio: 16 / 9.5;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}
.modal-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
}
.modal-thumbs img {
  width: 78px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
}
.modal-thumbs img.active { opacity: 1; border-color: var(--brand); }

.detail-brief-box {
  margin-top: 8px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #f6f9f8;
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.72;
  white-space: pre-line;
  word-break: keep-all;
}
.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  background: var(--surface-subtle);
  padding: 14px;
  border-radius: 10px;
  font-size: 14px;
}
.status-box.warn {
  background: var(--warn-bg);
  border: 1px solid #efb665;
  color: #6e3d00;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
}
#budget-clarification:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block: 12px;
}
#budget-question { margin: 0 8px 0 0; }
#map-pane[data-previous-results]::before {
  content: "이전 검색의 지도";
  display: block;
  padding: 6px 12px;
  font-size: 0.875rem;
  background: var(--warn-bg);
}
.call-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--brand-soft);
  padding: 14px 16px;
  border-radius: 10px;
  flex-wrap: wrap;
}
.btn-call {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 800;
}

.toast {
  position: fixed;
  bottom: 26px;
  right: 24px;
  background: #14201d;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1400;
}

@media (max-width: 900px) {
  .req-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px 72px; }
  .search-bar { flex-direction: column; }
  .listing-grid, .two-fields, .detail-spec-grid { grid-template-columns: 1fr; }
  .floating-compare { width: calc(100% - 24px); justify-content: space-between; }
}

/* ==================== 지도 분할뷰 · 통근 추천 · 실질 주거비 · 4대 공공 인사이트 ==================== */
.container { width: 100%; max-width: none; }
.search-panel { padding: 16px 18px; }
.preset-row { margin-top: 8px; padding-bottom: 10px; }
.filter-bar { gap: 9px 16px; margin-top: 10px; }

.flt-input-sm {
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  width: 175px;
}

.utility-dual-bar {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 18px;
  flex-wrap: wrap;
}
.util-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.cash-quick-btns {
  display: inline-flex;
  gap: 3px;
}
.cash-chip {
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  padding: 4px 7px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.cash-chip:hover, .cash-chip.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
}
.btn-soft-sm {
  border: 1px solid #b8d8cb;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.btn-soft-sm:hover { background: #dceee6; }

/* 개별 해제 가능한 조건 칩 */
.cond-tag-btn {
  border: 1px solid #a8cfc0;
  background: #fff;
  color: var(--brand);
  padding: 3px 9px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cond-tag-btn:hover {
  background: #eef6f3;
  border-color: var(--brand);
}

/* 출퇴근 동네 추천 드로어 */
.discover-drawer {
  margin-top: 12px;
  padding: 13px 15px;
  background: var(--surface-subtle);
  border: 1px solid #bfdace;
  border-radius: 10px;
}
.discover-drawer[hidden] { display: none; }
.discover-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.discover-sub {
  display: block;
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-top: 2px;
}
.discover-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.discover-controls label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
}
.discover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(225px, 100%), 1fr));
  gap: 9px;
}
.disc-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.disc-card.has-items { border-color: var(--brand); background: #fbfefd; }
.disc-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.disc-lines { font-size: 12.5px; color: var(--brand); font-weight: 700; }

.cost-inline-lbl {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-secondary);
}
.calc-num-input {
  width: 90px;
  padding: 5px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
}
.calc-rate-input {
  width: 62px;
  padding: 5px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
}

.hf-banks-panel {
  margin-top: 10px;
  padding: 11px 14px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
}
.hf-banks-panel[hidden] { display: none; }
.hf-bank-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.hf-bank-chip {
  border: 1px solid var(--border-strong);
  background: #fff;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}
.hf-bank-chip:hover { border-color: var(--brand); color: var(--brand); }

/* 규칙 기반 핵심 후보 3선 요약 */
.decision-picks-wrap {
  margin: 12px 0 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 10px;
}
.decision-picks-wrap[hidden] { display: none; }
.pick-card {
  background: #fff;
  border: 1px solid #c4ded3;
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}
.pick-card:hover { box-shadow: var(--shadow-md); }
.pick-role {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 3px;
}
.pick-title { font-size: 14px; font-weight: 800; color: var(--ink); }
.pick-reason { font-size: 12.5px; color: var(--ink-secondary); margin-top: 2px; }

/* 목록 + 지도 분할 레이아웃 */
.explorer-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: start;
}
.explorer-split.list-only { grid-template-columns: 1fr; }
.explorer-split.list-only .map-pane { display: none; }
.explorer-split:not(.list-only) .listing-grid {
  grid-template-columns: repeat(auto-fill, minmax(305px, 1fr));
}
.map-pane {
  position: sticky;
  top: 74px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-toolbar {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: var(--surface-subtle);
}
.map-status-txt { font-size: 12.5px; color: var(--ink-secondary); font-weight: 600; }
.btn-bbox-dirty {
  background: var(--brand) !important;
  color: #fff !important;
  border-color: var(--brand) !important;
}
#btn-draw-lasso.drawing {
  background: #14201d;
  color: #fff;
  border-color: #14201d;
}
.map-stage-wrap {
  position: relative;
}
.lasso-overlay {
  position: absolute;
  inset: 0;
  z-index: 500;
  cursor: crosshair;
  touch-action: none;
  background: rgba(24, 79, 67, 0.03);
}
.lasso-overlay[hidden] { display: none; }
.lasso-guide-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 510;
  background: rgba(20, 32, 29, 0.88);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.lasso-guide-pill[hidden] { display: none; }
.seeker-map {
  width: 100%;
  height: calc(100vh - 150px);
  min-height: 460px;
  max-height: 740px;
  z-index: 1;
}

/* 지도 가격 마커 */
.hs-map-pin {
  background: var(--brand);
  color: #fff;
  font-family: "Pretendard GOV Variable", "Pretendard GOV", "Pretendard Variable", Pretendard, sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.24);
  white-space: nowrap;
  display: inline-block;
  transform: translate(-50%, -50%);
}
.hs-map-pin.unknown { background: #8a5600; }
.hs-map-pin.active {
  background: #0d2b24;
  transform: translate(-50%, -56%) scale(1.1);
  z-index: 999 !important;
}
.listing-card.map-hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.transit-line-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: #164b3f;
  background: #eef6f3;
  padding: 4px 9px;
  border-radius: 6px;
  display: inline-block;
}
.ltv-warn {
  color: var(--warn);
  font-weight: 700;
  font-size: 12.5px;
  margin-left: 4px;
}

/* 상세 모달 내 4대 공공데이터 인사이트 그리드 */
.insights-section {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.insight-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fcfdfd;
  font-size: 13px;
}
.insight-box.full { grid-column: 1 / -1; }
.insight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.insight-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.insight-pill.confirmed { background: var(--ok-bg); color: var(--ok); }
.insight-pill.conditional { background: var(--warn-bg); color: var(--warn); }
.insight-pill.unknown, .insight-pill.unsupported { background: #eef1f0; color: var(--ink-muted); }
.insight-headline { font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 5px; }
.insight-lines { margin: 0; padding-left: 16px; color: var(--ink-secondary); font-size: 13px; }
.insight-src { font-size: 12px; color: var(--ink-muted); margin-top: 6px; }

/* 지하철 방면별 혼잡도 막대 */
.metro-dir-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.metro-dir-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.metro-bar-bg {
  height: 7px;
  background: #e7ecea;
  border-radius: 999px;
  overflow: hidden;
}
.metro-bar-fill { height: 100%; border-radius: 999px; }
.metro-bar-fill.ok { background: #197a52; }
.metro-bar-fill.warn { background: #c97a10; }
.metro-bar-fill.high { background: #c43c2b; }

.tx-mini-table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 12.5px; }
.tx-mini-table th, .tx-mini-table td { border-bottom: 1px solid var(--border); padding: 4px 6px; text-align: left; }

/* 초보자 친화 접이식 상세 조건 서랍 & 지도 스크롤 잠금 UI */
.primary-filter-row {
  justify-content: flex-start;
  margin-top: 11px;
}
.btn-adv-toggle {
  margin-left: auto;
  border: 1.5px solid #b6d4c8;
  background: var(--brand-soft);
  color: var(--brand);
  padding: 7px 13px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.btn-adv-toggle:hover {
  background: #dceee7;
}
.btn-adv-toggle.open {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.adv-filter-drawer {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.adv-sec-row {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 8px 14px;
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px dashed var(--border);
}
.adv-sec-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}
.adv-sec-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.adv-inline-help {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.map-toolbar-btns {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
#btn-lock-map.locked {
  background: #142b24;
  border-color: #142b24;
  color: #fff;
}
.seeker-map.map-locked {
  touch-action: pan-y !important;
  cursor: default;
}
.map-lock-pill {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 450;
  background: rgba(16, 27, 24, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.map-lock-pill:hover {
  background: var(--brand);
}

.explorer-split > * {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 1024px) {
  .explorer-split { grid-template-columns: minmax(0, 1fr); }
  .map-pane { position: static; order: -1; }
  .seeker-map { height: 255px; min-height: 235px; }
  .insights-grid { grid-template-columns: minmax(0, 1fr); }
  .adv-sec-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .btn-adv-toggle { margin-left: 0; }
}
@media (max-width: 640px) {
  .topbar-inner { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
  .main-nav { flex-wrap: wrap; gap: 4px; }
  .nav-link { padding: 7px 10px; font-size: 14px; }
  .brand-sub { display: none; }
  .explorer-split:not(.list-only) .listing-grid,
  .listing-grid,
  .two-fields,
  .detail-spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .metro-dir-row { grid-template-columns: minmax(86px, 118px) minmax(0, 1fr) auto; }
  .map-toolbar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .map-lock-pill { font-size: 12px; padding: 6px 12px; bottom: 24px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
}

.ext-ico {
  width: 12px;
  height: 12px;
  margin-left: 4px;
  vertical-align: -1.5px;
  opacity: 0.68;
  flex-shrink: 0;
}
a:hover .ext-ico {
  opacity: 1;
}

/* ==================== 결정용 한 줄 요약 · 클릭형 확인 근거 · 조건부 세부 필터 ==================== */
.sub-filter-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #c5ddd3;
}
.sub-filter-inline[hidden] {
  display: none !important;
}
.sub-filter-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-right: 2px;
}
.sub-chip {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  padding: 3px 9px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.sub-chip:hover {
  background: var(--surface-subtle);
}
.sub-chip.active {
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.decision-line {
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.decision-line.all-ok {
  background: #f2faf6;
  border: 1px solid #c3e2d4;
  color: var(--ok);
}
.decision-line.need-check {
  background: #fffaf2;
  border: 1px solid #f0d2a4;
  color: #7c4a03;
}

.check-prov-row {
  border-bottom: 1px solid var(--border);
  padding: 8px 4px;
  font-size: 13.5px;
}
.check-prov-row.is-expandable {
  cursor: pointer;
  border-radius: 6px;
  padding: 8px 8px;
  margin: 0 -8px;
  transition: background 0.12s ease;
}
.check-prov-row.is-expandable:hover {
  background: var(--surface-subtle);
}
.check-prov-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.check-prov-lbl {
  color: var(--ink);
}
.check-prov-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.check-prov-val {
  font-weight: 700;
}
.check-prov-val.ok {
  color: var(--ok);
}
.check-prov-val.warn {
  color: var(--warn);
}
.check-prov-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  background: #edf2f0;
  padding: 2px 7px;
  border-radius: 999px;
}
.check-prov-row.open .check-prov-btn {
  background: var(--brand-soft);
  color: var(--brand);
}
.check-prov-detail {
  margin-top: 7px;
  padding: 8px 10px;
  background: #f7faf9;
  border: 1px solid #dce8e3;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
}
.check-prov-detail[hidden] {
  display: none !important;
}
.prov-entry {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.prov-meta {
  color: var(--ink-secondary);
  white-space: nowrap;
}
.prov-meta b {
  color: var(--ink);
}
.prov-what {
  color: var(--ink-secondary);
}

.search-error-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  color: #7f1d1d;
}
.search-error-bar[hidden] {
  display: none !important;
}
.search-error-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
}
.search-error-copy strong {
  font-size: 14px;
  font-weight: 800;
  color: #991b1b;
}
.search-retry-btn {
  padding: 7px 14px;
  font-size: 13.5px;
  white-space: nowrap;
}
.result-count.is-stale {
  color: #991b1b;
  font-weight: 800;
}
.listing-grid.is-stale-results {
  opacity: 0.76;
}
.cond-tag-static {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
  font-size: 12.5px;
  font-weight: 700;
}


/* ==================== 고도화 지도 (클러스터·항공뷰·플로팅 재검색) ==================== */
#btn-toggle-aerial.active-aerial {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.map-float-bbox {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 650;
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(20, 61, 50, 0.34);
  cursor: pointer;
  white-space: nowrap;
}
.map-float-bbox:hover {
  background: #1c5344;
}
.hs-map-cluster {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #143d32;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(15, 38, 31, 0.32);
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.hs-map-cluster b {
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11.5px;
}
.hs-map-cluster.safe {
  border-color: #6ee7b7;
}
.cluster-popup-head {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 6px;
}
.cluster-popup-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 210px;
  overflow-y: auto;
}
.cluster-item-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f9fbfa;
  font-family: inherit;
  cursor: pointer;
}
.cluster-item-btn:hover {
  border-color: var(--brand);
  background: #edf5f2;
}
.cluster-item-btn b {
  font-size: 13px;
  color: var(--brand);
}
.cluster-item-btn span {
  font-size: 11.5px;
  color: var(--ink-secondary);
}

/* ==================== 모달 3단 임장 뷰어 (실내·항공채광·360°로드뷰) ==================== */
.modal-viewer-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #f6f9f8;
}
.modal-viewer-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  background: #edf3f0;
  border-bottom: 1px solid var(--border);
}
.mv-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
  padding: 6px 13px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.mv-tab.active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(20, 61, 50, 0.22);
}
.mv-pane {
  display: none;
}
.mv-pane.active {
  display: block;
}
.modal-empty-photo {
  padding: 46px 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-secondary);
  background: linear-gradient(145deg, #f3f7f5 0%, #e7efec 100%);
}
.aerial-stage-wrap,
.roadview-stage-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  background: #10201b;
}
.modal-aerial-map,
.modal-roadview-stage {
  width: 100%;
  height: 100%;
}
.aerial-scope-bar {
  position: absolute;
  top: 12px;
  left: 52px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(16, 36, 30, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.ascope-btn {
  border: 0;
  background: transparent;
  color: #d6ebe3;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.ascope-btn.active {
  background: #fde047;
  color: #142a22;
}
.apoi-btn.zero {
  opacity: 0.48;
}
.amen-sub-cnt {
  font-weight: 600;
  font-size: 11px;
  color: var(--ink-secondary);
}
.aerial-poi-popup {
  min-width: 170px;
  font-family: inherit;
}
.apop-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f2922;
  margin-bottom: 2px;
}
.apop-sub {
  font-size: 11.5px;
  color: #475e55;
  margin-bottom: 7px;
  line-height: 1.4;
}
.apop-rv-btn {
  width: 100%;
  border: 0;
  background: #143d32;
  color: #ffffff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 6px;
  cursor: pointer;
}
.apop-rv-btn:hover {
  background: #1d5747;
}
.aerial-top-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 500;
  background: rgba(16, 36, 30, 0.86);
  backdrop-filter: blur(8px);
  color: #f0f9f5;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 78%;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.24);
}
.aerial-poi-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(16, 36, 30, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 94%;
  overflow-x: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26);
}
.apoi-btn {
  border: 0;
  background: transparent;
  color: #dbeee6;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.apoi-btn.active {
  background: #ffffff;
  color: #143d32;
}
.apoi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.aerial-home-pin {
  background: #143d32;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2.5px solid #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  text-align: center;
  white-space: nowrap;
}
.aerial-station-pin {
  background: #1e293b;
  color: #fde047;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  border: 2px solid #fde047;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.42);
  text-align: center;
  white-space: nowrap;
}
.aerial-route-pill {
  background: rgba(15, 23, 42, 0.88);
  color: #fef9c3;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(253, 224, 71, 0.55);
  text-align: center;
  white-space: nowrap;
}
.aerial-ring-tag {
  background: rgba(16, 36, 30, 0.72);
  color: #d1fae5;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
}
.aerial-poi-pin {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.42);
}
.rv-hud-top {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(16, 36, 30, 0.82);
  backdrop-filter: blur(8px);
  color: #f3faf7;
  font-size: 12.5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.rv-step-bar {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(16, 36, 30, 0.86);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.rv-step-btn {
  border: 0;
  background: transparent;
  color: #d7ebe3;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.rv-step-btn.active {
  background: #ffffff;
  color: #143d32;
}
.rv-fallback-card {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: linear-gradient(145deg, #16372e 0%, #0f251f 100%);
  color: #f0f9f5;
  gap: 10px;
}
.rv-fallback-card[hidden] {
  display: none;
}
.rv-fb-title {
  font-size: 15.5px;
  font-weight: 800;
}
.rv-fb-desc {
  margin: 0;
  font-size: 13px;
  color: #bdd6cd;
  max-width: 440px;
}
.rv-fb-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.rv-fb-actions .btn-outline-sm {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

/* ==================== 전세·계약 안전 신호등 4칸 보드 ==================== */
.safety-signal-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.safety-sig-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  border-top: 3px solid #94a3b8;
  background: #fafcfb;
}
.safety-sig-card.ok {
  border-top-color: #15803d;
  background: #f2fbf6;
}
.safety-sig-card.warn {
  border-top-color: #d97706;
  background: #fffaf0;
}
.safety-sig-card.danger {
  border-top-color: #dc2626;
  background: #fef4f4;
}
.sig-k {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-secondary);
}
.sig-v {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.28;
}
.sig-s {
  font-size: 11.5px;
  color: var(--ink-secondary);
  line-height: 1.35;
}
.slope-inline-pill {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  margin-right: 3px;
}
.slope-inline-pill.ok { background: #dcfce7; color: #166534; }
.slope-inline-pill.warn { background: #fef3c7; color: #92400e; }
.slope-inline-pill.danger { background: #fee2e2; color: #991b1b; }

/* ==================== 도보 5분 생활권 & 지형·경사도 카드 ==================== */
.slope-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 8px;
  background: #f2fbf6;
  color: #14532d;
}
.slope-banner.gentle { background: #fff9eb; color: #854d0e; }
.slope-banner.steep { background: #fef2f2; color: #991b1b; }
.slope-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  background: #166534;
  color: #fff;
}
.slope-pill.gentle { background: #d97706; }
.slope-pill.steep { background: #dc2626; }
.living-amen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.living-amen-chip {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}
.amen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-secondary);
}
.amen-top b {
  color: var(--brand);
  font-size: 13px;
}
.amen-near {
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--ink-primary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .safety-signal-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .aerial-stage-wrap,
  .roadview-stage-wrap {
    height: 270px;
  }
  .rv-step-bar {
    width: calc(100% - 16px);
    justify-content: center;
  }
  .rv-step-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* 보증보험 명확 안내 & 세부 전세대출 배지·그리드 */
.hug-summary.ok {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.hug-summary.fail {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.hug-verdict-line {
  line-height: 1.5;
}
.hug-calc-details {
  margin-top: 4px;
  font-size: 12.2px;
  opacity: 0.92;
}
.hug-calc-details summary {
  cursor: pointer;
  font-weight: 600;
}
.card-loan-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.clb-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-right: 2px;
}
.clb-chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e6f4f0;
  color: #0f5c4c;
  border: 1px solid #bce0d5;
}
.loan-clarity-box {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8faf9;
  border: 1px solid var(--border);
}
.lcb-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.lcb-title small {
  font-size: 11.8px;
  font-weight: 500;
  color: var(--ink-muted);
}
.modal-loan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 640px) {
  .modal-loan-grid {
    grid-template-columns: 1fr;
  }
}
.mlg-item {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}
.mlg-item.ok {
  background: #f0fdf8;
  border-color: #a7f3d0;
}
.mlg-item.fail {
  background: #f4f6f5;
  border-color: #dde3e1;
  opacity: 0.78;
}
.mlg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
}
.mlg-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}
.mlg-badge.ok {
  background: #0f5c4c;
  color: #fff;
}
.mlg-badge.neutral {
  background: #fef3c7;
  color: #92400e;
}
.mlg-badge.fail {
  background: #e5e7eb;
  color: #4b5563;
}
.mlg-sub {
  margin-top: 4px;
  font-size: 11.8px;
  color: var(--ink-secondary);
  line-height: 1.42;
}
.loan-grid-disallowed {
  font-size: 13px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 8px 11px;
  border-radius: 7px;
}

/* 상단 슬림 중개사무소 1줄 연락 바 */
.quick-broker-bar {
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid #d5e3dd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.qbb-info {
  font-size: 13.2px;
  color: var(--ink);
}
.qbb-phone {
  color: var(--brand);
  font-weight: 700;
}
.qbb-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qbb-call {
  padding: 5px 11px;
  font-size: 12.5px;
  border-radius: 7px;
}

/* 전세대출 3단 담백 스트립 (임대인 동의 / 동의 문의 / 기준 외) */
.loan-strip-box {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  background: #f8faf9;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lsb-lbl {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
}
.lsb-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ls-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.3px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}
.ls-pill em {
  font-style: normal;
  font-weight: 600;
}
.ls-pill.consent {
  background: #ecfdf5;
  border-color: #86efac;
  color: #065f46;
}
.ls-pill.consent b {
  color: #047857;
  font-weight: 700;
}
.ls-pill.ask {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}
.ls-pill.ask em {
  color: #64748b;
  font-size: 11.6px;
}
.ls-pill.out {
  background: #f3f5f4;
  border-color: #e2e8f0;
  color: #94a3b8;
}
.ls-pill.out em {
  color: #94a3b8;
  font-size: 11.5px;
}
.ls-pill.disallowed {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

/* 보증금·월세 직접 범위 입력 팝오버 */
.price-pop-wrap {
  position: relative;
}
.price-pop-btn {
  text-align: left;
  cursor: pointer;
  background: #fff;
  white-space: nowrap;
}
.price-pop-btn.has-val {
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 700;
  background: #f0faf6;
}
.price-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 320;
  width: 288px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}
.pp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.pp-chip {
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8faf9;
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.pp-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.pp-custom-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}
.pp-custom-lbl small {
  font-weight: 500;
  color: var(--ink-muted);
}
.pp-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pp-inputs input {
  width: 100%;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 7px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 13px;
}
.pp-preview {
  margin-top: 6px;
  font-size: 12px;
  color: var(--brand);
  font-weight: 600;
}
.pp-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}
.pp-apply-btn {
  padding: 6px 14px;
  font-size: 12.5px;
}

/* 상단 통근 역·시간 팝오버 */
.commute-popover {
  width: 316px;
}
.commute-pop-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  font-family: inherit;
  font-size: 13.5px;
  margin-bottom: 8px;
}
.commute-pop-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.commute-pop-actions {
  justify-content: space-between;
  align-items: center;
}
.commute-disc-link {
  padding: 2px 4px;
  font-size: 12.2px;
  color: var(--brand);
  font-weight: 700;
}
.adv-inline-selects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}
#flt-walkup-floor:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 상세 모달 전용 '한 달 고정 지출' + 계산기 */
.fixed-cost-box {
  padding: 11px 14px;
  border-radius: 10px;
  background: #f8fbf9;
  border: 1px solid #d4e4dc;
}
.fc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fc-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.fc-lbl {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-secondary);
  white-space: nowrap;
}
.fc-val {
  font-size: 14.5px;
  color: var(--ink);
}
.fc-val b {
  color: var(--brand);
  font-weight: 800;
}
.fc-sub {
  font-size: 12.8px;
  color: var(--ink-secondary);
  font-weight: 500;
}
.fc-toggle-btn {
  font-size: 12.2px;
  padding: 5px 10px;
  background: #fff;
  white-space: nowrap;
}
.fc-calc-drawer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbdcd4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fc-calc-drawer[hidden] {
  display: none !important;
}
.fc-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.fc-row-lbl {
  min-width: 72px;
  padding-top: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
}
.fc-row-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.fc-unit {
  font-size: 12.5px;
  color: var(--ink-secondary);
}
.fc-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.fc-chip {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-secondary);
  font-family: inherit;
  font-size: 11.8px;
  font-weight: 600;
  cursor: pointer;
}
.fc-chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.fc-pk-chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

/* ==================== 가독성 상향 (네이버 부동산급 14~20px 스케일) ==================== */
body {
  font-size: 15px;
  line-height: 1.6;
}
.filter-title,
.adv-sec-label,
.sort-label {
  font-size: 13.5px;
}
.seg,
.flt-select,
.pill-toggle,
.sub-chip,
.btn-adv-toggle,
.btn-outline-sm {
  font-size: 14px;
}
.result-count {
  font-size: 15px;
  font-weight: 700;
}
#modal-title {
  font-size: 19.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.detail-brief-box {
  font-size: 14.8px;
  line-height: 1.66;
}
.detail-brief-box.is-quad,
.detail-brief-box.is-prose {
  margin-top: 10px;
  padding: 15px 17px;
  border-radius: 12px;
  background: #f6f9f8;
  border: 1px solid #dce6e2;
  white-space: normal;
  color: var(--ink);
}
.brief-quad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
}
.brief-quad-cell {
  min-width: 0;
}
.brief-quad-head {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e3f0eb;
  color: #145343;
  font-size: 12.2px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.brief-quad-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3.5px;
}
.brief-quad-list li {
  position: relative;
  padding-left: 10px;
  font-size: 14.2px;
  line-height: 1.48;
  font-weight: 500;
  color: #1e293b;
  word-break: keep-all;
}
.brief-quad-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  color: #64748b;
  font-weight: 800;
}
.bq-sub {
  display: inline-block;
  max-width: 100%;
  font-size: 13.2px;
  font-weight: 500;
  color: var(--ink-secondary);
}
.brief-prose-extra {
  margin-top: 12px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--ink-secondary);
}
.brief-prose-extra p {
  margin: 0;
}
.brief-prose-line + .brief-prose-line {
  margin-top: 5px;
}
@media (max-width: 560px) {
  .brief-quad-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
}
.detail-spec-grid {
  font-size: 14.5px;
  line-height: 1.58;
}
.hug-summary {
  font-size: 14.5px;
  line-height: 1.56;
}
.ls-pill {
  font-size: 13.5px;
  padding: 5px 11px;
}
.ls-pill.ask em,
.ls-pill.out em {
  font-size: 12.8px;
}
.lsb-lbl {
  font-size: 14px;
}
.fc-lbl {
  font-size: 14px;
}
.fc-val {
  font-size: 15.5px;
}
.fc-sub {
  font-size: 13.5px;
}
.fc-chip {
  font-size: 13px;
  padding: 5px 10px;
}
.quick-broker-bar {
  font-size: 14.5px;
  padding: 10px 14px;
}
.safety-sig-card .sig-k {
  font-size: 13px;
}
.safety-sig-card .sig-v {
  font-size: 16px;
}
.safety-sig-card .sig-s {
  font-size: 13px;
}
.hs-map-pin {
  font-size: 13.5px;
  padding: 5px 11px;
}
.hs-map-pin.is-selected {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(24, 79, 67, 0.38), 0 6px 16px rgba(0, 0, 0, 0.34) !important;
  transform: translate(-50%, -58%) scale(1.12);
  z-index: 1050 !important;
}

/* ==================== 2단(목록|지도) ⇄ 3단(목록|상세|지도) 워크스페이스 ==================== */
.compact-only-meta {
  display: none;
}
.heart-ico {
  display: none;
}

@media (min-width: 1081px) {
  .explorer-split:not(.list-only) {
    display: grid;
    grid-template-columns: clamp(430px, 26vw, 520px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
  }
  .explorer-split.has-detail:not(.list-only) {
    grid-template-columns: clamp(405px, 23vw, 480px) clamp(500px, 33vw, 660px) minmax(380px, 1fr);
    gap: 14px;
  }
  .explorer-split:not(.list-only) #listing-grid {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 10px;
    max-height: calc(100vh - 136px);
    overflow-y: auto;
    padding-right: 4px;
  }
  .explorer-split:not(.list-only) #listing-grid::-webkit-scrollbar,
  .docked-detail-pane .modal-body::-webkit-scrollbar {
    width: 6px;
  }
  .explorer-split:not(.list-only) #listing-grid::-webkit-scrollbar-thumb,
  .docked-detail-pane .modal-body::-webkit-scrollbar-thumb {
    background: #c7d4cf;
    border-radius: 999px;
  }

  /* 가운데 고정 상세 패널 (3단 상태) */
  .detail-dock-slot {
    min-width: 0;
  }
  .detail-dock-slot[hidden] {
    display: none !important;
  }
  .docked-detail-pane {
    position: sticky;
    top: 70px;
    height: calc(100vh - 136px);
    max-height: none;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #c5d9d0;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(15, 32, 27, 0.07);
    overflow: hidden;
  }
  .docked-detail-pane[hidden] {
    display: none !important;
  }
  .docked-detail-pane .modal-sheet {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }
  .docked-detail-pane .modal-header {
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
  }
  .docked-detail-pane #modal-title {
    font-size: 19px;
  }
  .docked-detail-pane .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
  }
  .explorer-split:not(.list-only) .seeker-map {
    height: calc(100vh - 182px);
    max-height: none;
  }

  /* 좌측 세련된 컴팩트 리스트 카드 (분할 탐색 모드 전용) */
  .explorer-split:not(.list-only) .listing-card {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 16px;
    border-radius: 13px;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  }
  .explorer-split:not(.list-only) .listing-card:hover {
    border-color: #8eb5a6;
    background: #fbfdfc;
  }
  .explorer-split:not(.list-only) .listing-card.is-selected {
    border-color: var(--brand);
    background: #f2faf6;
    box-shadow: inset 4px 0 0 var(--brand), 0 4px 14px rgba(24, 79, 67, 0.08);
  }
  .explorer-split:not(.list-only) .card-thumb-wrap {
    width: 116px;
    height: 116px;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
  }
  .explorer-split:not(.list-only) .thumb-nav,
  .explorer-split:not(.list-only) .thumb-badges .is-default-reg,
  .explorer-split:not(.list-only) .wide-only-meta,
  .explorer-split:not(.list-only) .card-footer {
    display: none !important;
  }
  .explorer-split:not(.list-only) .photo-cnt-badge {
    bottom: 6px;
    right: 6px;
    padding: 2px 8px;
    font-size: 12.5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
  }
  .explorer-split:not(.list-only) .card-body {
    padding: 0;
    gap: 5px;
    min-width: 0;
  }
  .explorer-split:not(.list-only) .price-title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.025em;
    white-space: nowrap;
  }
  .explorer-split:not(.list-only) .heart-ico {
    display: inline;
    font-size: 14px;
  }
  .explorer-split:not(.list-only) .heart-txt {
    display: none;
  }
  .explorer-split:not(.list-only) .btn-heart,
  .explorer-split:not(.list-only) .btn-cmp-pill {
    padding: 3px 8px;
    font-size: 12.5px;
  }
  .explorer-split:not(.list-only) .compact-only-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
  }
}

.card-top-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  align-items: center;
}
.compact-spec-row {
  font-size: 14.3px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-loc-row {
  font-size: 13.5px;
  color: var(--ink-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.compact-loc-row b {
  color: var(--brand);
  font-weight: 700;
}
.compact-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}
.ct-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12.8px;
  font-weight: 700;
}
.ct-pill.ok {
  background: #ecfdf5;
  color: #047857;
}
.ct-pill.fail {
  background: #fef2f2;
  color: #b91c1c;
}
.ct-pill.loan {
  background: #f1f5f9;
  color: #334155;
}

/* ==================== 상세 하단 선택형 체크박스 토글 ==================== */
.optin-extras-section {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.optin-extras-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.optin-extras-head strong {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}
.optin-extras-head span {
  font-size: 13.5px;
  color: var(--ink-muted);
}
.optin-chk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.optin-chk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.14s ease;
}
.optin-chk-chip:hover {
  border-color: var(--brand);
  color: var(--ink);
}
.optin-chk-chip.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 700;
}
.optin-chk-chip input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--brand);
  cursor: pointer;
}
.insights-section[hidden],
.js-extra-pane[hidden] {
  display: none !important;
}
.insights-grid.single-col-optin {
  grid-template-columns: 1fr;
}
.insight-box {
  font-size: 14px;
}
.insight-headline {
  font-size: 15px;
}
.insight-lines {
  font-size: 14px;
  line-height: 1.6;
}
.insight-subnote {
  font-size: 13.5px;
  color: var(--ink-secondary);
}
.insight-src {
  font-size: 12.8px;
}

/* ==================== 실내 사진 클릭 확대 & 100%~400% 줌 라이트박스 ==================== */
.zoomable-photo {
  cursor: zoom-in;
}
.photo-zoom-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.photo-zoom-pill:hover {
  background: var(--brand);
}
.pz-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: rgba(10, 15, 14, 0.93);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}
.pz-lightbox[hidden] {
  display: none !important;
}
.pz-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.45);
}
.pz-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 16px;
}
.pz-counter {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13.5px;
  font-weight: 700;
}
.pz-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pz-ctrl-btn {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.pz-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}
.pz-scale-txt {
  min-width: 58px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
}
.pz-close-btn {
  margin-left: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: none;
  background: var(--brand);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.pz-hint {
  text-align: center;
  padding: 7px 12px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 0, 0, 0.28);
}
.pz-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
}
.pz-img {
  max-width: min(1100px, 88vw);
  max-height: calc(100vh - 190px);
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.06s ease-out;
  transform-origin: center center;
}
.pz-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto 0;
  z-index: 20;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.36);
  background: rgba(0, 0, 0, 0.68);
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}
.pz-nav:hover {
  background: rgba(24, 79, 67, 0.92);
}
.pz-nav:active:not(:disabled) {
  transform: scale(0.92) !important;
}
.pz-nav.prev { left: 18px; }
.pz-nav.next { right: 18px; }
.pz-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
  overflow-x: auto;
}
.pz-thumbs img {
  width: 64px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  opacity: 0.55;
  cursor: pointer;
  border: 2px solid transparent;
}
.pz-thumbs img.active {
  opacity: 1;
  border-color: #34d399;
}
@media (max-width: 640px) {
  .pz-hide-xs { display: none; }
}
