/* 강남바로부동산 손님 화면 공통 스타일 (2026-11 개편)
 * 개념: 「임대 조건 명세서」 — 숫자와 표가 주인공. 그림자·그라데이션 없음, 선과 여백으로 구분.
 * 이 파일 하나가 예전 index.css + public_*.css + home_modern.css + home_redesign.css + site.css 를 대신한다.
 * 차례: 1 기준값  2 바탕  3 머리글  4 바닥글  5 버튼·입력  6 매물 카드  7 목록 화면  8 상세 화면  9 글 화면  10 첫 화면  11 작은 부품
 */

/* ---------------------------------------------------------------- 1 기준값 */
:root {
  --bg: #F4F5F3;
  --surface: #FFFFFF;
  --ink: #14202B;
  --ink-2: #3D4A55;
  --muted: #5B6670;
  --line: #D9DDDA;
  --line-soft: #E7EAE7;
  --accent: #1F4D46;
  --accent-deep: #163A35;
  --accent-wash: #E8EEEB;
  --on-dark: #F4F5F3;
  --on-dark-2: #A9B4BC;
  --warn: #9A3B1E;
  --kakao: #FEE500;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
  --serif: "RB Heading", var(--sans);

  --w: 1180px;
  --gut: 24px;
  --r: 3px;
  --head-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* 예전 스크립트가 직접 쓰는 이름(인라인 style) — 새 색으로 이어 준다 */
  --navy-dark: var(--ink);
  --primary-teal: var(--accent);
  --text-dim: var(--muted);
  --text-sub: var(--ink-2);
  --border-light: var(--line);
  --shadow-card: none;
}
@media (max-width: 640px) { :root { --gut: 16px; --head-h: 56px; } }

/* 제목용 명조: Noto Serif KR 700 에서 제목에 쓰는 글자만 자른 파일(tools/make_heading_font.py 로 다시 만든다) */
@font-face {
  font-family: "RB Heading"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/rb-heading.woff2") format("woff2");
}

/* ---------------------------------------------------------------- 2 바탕 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, h5, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
b, strong { font-weight: 700; }
.num, .lc-price, .money dd, table.spec td, .rate td, .rate th { font-variant-numeric: tabular-nums; }

.wrap-modern { width: 100%; max-width: calc(var(--w) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
main.wrap-modern { padding-block: 28px 96px; min-height: 60vh; }
@media (max-width: 640px) { main.wrap-modern { padding-block: 16px 72px; } }

/* ---------------------------------------------------------------- 3 머리글 */
header.glass {
  position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-container {
  max-width: calc(var(--w) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut);
  height: var(--head-h); display: flex; align-items: center; gap: 8px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin-right: 28px; flex: none; }
.logo .logo-mark { width: 30px; height: 30px; border-radius: var(--r); }
#header-logo-accent, #footer-brand { color: inherit; font-weight: 500; }
#header-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
#header-nav > a, #header-nav #menu-pages > a {
  padding: 8px 12px; font-size: .9375rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px; line-height: calc(var(--head-h) - 18px);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
#header-nav > a:hover, #header-nav #menu-pages > a:hover { color: var(--ink); }
#header-nav > a.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
#header-nav .btn-nav { line-height: 1.2; border: 0; margin: 0; }
#header-nav #header-phone-link { margin-left: auto; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; padding-inline: 12px; }
#header-nav #header-phone-link i { font-size: .8em; margin-right: 4px; color: var(--accent); }
#header-nav #header-kakao-link {
  background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line) !important;
  border-radius: var(--r); padding: 9px 14px; font-size: .875rem; font-weight: 600 !important;
}
#header-nav #header-kakao-link:hover { border-color: var(--ink) !important; }
#header-nav #header-kakao-link i { display: none; }
.hdr-fav {
  position: relative; width: 44px; height: 44px; flex: none; border: 0; background: none; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.125rem; border-radius: var(--r);
}
.hdr-fav:hover { background: var(--bg); }
.hdr-fav.vt-on i { color: var(--warn); }
.hdr-fav-n {
  position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
}
.btn-mobile-menu { display: none; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 1.25rem; border-radius: var(--r); }

@media (max-width: 960px) {
  .logo { margin-right: auto; }
  .btn-mobile-menu { display: inline-flex; align-items: center; justify-content: center; order: 3; }
  .hdr-fav { order: 2; }
  #header-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 4px var(--gut) 16px;
  }
  #header-nav.active { display: flex; }
  #header-nav > a, #header-nav #menu-pages > a { line-height: 1.2; padding: 15px 4px; border-bottom: 1px solid var(--line-soft); margin: 0; font-size: 1rem; }
  #header-nav > a.active { border-bottom-color: var(--line-soft); }
  #header-nav #header-phone-link { margin: 12px 0 8px; padding: 14px; border: 1px solid var(--ink); border-radius: var(--r); text-align: center; }
  #header-nav #header-kakao-link { padding: 14px; text-align: center; }
}

/* ---------------------------------------------------------------- 4 바닥글 */
footer { background: var(--ink); color: var(--on-dark-2); font-size: .875rem; line-height: 1.7; margin-top: 0; }
footer .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; padding-block: 56px 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--on-dark); font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.footer-logo .logo-mark { width: 28px; height: 28px; border-radius: var(--r); background: var(--on-dark); }
.footer-about { max-width: 24em; }
.footer-col h5 { color: var(--on-dark); font-size: .875rem; font-weight: 700; margin-bottom: 12px; }
.footer-col a { display: block; padding: 3px 0; color: var(--on-dark-2); }
.footer-col:nth-child(2) { columns: 2; column-gap: 24px; }
.footer-col:nth-child(2) h5 { column-span: all; }
.footer-col a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.footer-col p { display: flex; gap: 8px; align-items: baseline; }
.footer-col p i { width: 14px; font-size: .75rem; color: var(--on-dark-2); flex: none; text-align: center; }
.footer-bottom {
  max-width: calc(var(--w) + var(--gut) * 2); margin-inline: auto; padding: 20px var(--gut) 12px;
  border-top: 1px solid rgb(255 255 255 / .12); font-size: .8125rem; color: var(--on-dark-2);
}
.footer-bottom p[style] { color: var(--on-dark-2) !important; opacity: .8; }
.footer-staff { max-width: calc(var(--w) + var(--gut) * 2); margin-inline: auto; padding: 0 var(--gut) 28px; font-size: .75rem; }
.footer-bottom .footer-staff { padding: 12px 0 16px; }
.footer-staff a { color: var(--on-dark-2); opacity: .7; }
.footer-staff a:hover { opacity: 1; }
@media (max-width: 860px) { footer .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 28px; } }
@media (max-width: 960px) { footer { padding-bottom: 64px; } }   /* 아래 고정 상담 바 자리 */

/* ---------------------------------------------------------------- 5 버튼·입력 */
.btn, .btn-more-large, .btn-submit-inq, .btn-submit-inquiry, .btn-cta-main, .btn-cta-outline, .btn-search-main, .calc-cta-btn, .btn-listings-more {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--ink); border-radius: var(--r); background: var(--surface); color: var(--ink);
  font-size: .9375rem; font-weight: 700; line-height: 1.2; text-align: center; white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover, .btn-more-large:hover, .btn-cta-outline:hover, .btn-listings-more:hover { background: var(--ink); color: var(--on-dark); }
.btn-primary, .btn-more-primary, .btn-submit-inq, .btn-submit-inquiry, .btn-cta-call, .btn-search-main, .calc-cta-btn {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.btn-primary:hover, .btn-more-primary:hover, .btn-submit-inq:hover, .btn-submit-inquiry:hover, .btn-cta-call:hover, .btn-search-main:hover, .calc-cta-btn:hover {
  background: var(--accent-deep); border-color: var(--accent-deep); color: #fff;
}
.btn-cta-kakao, #btn-cta-kakao { background: var(--kakao) !important; border-color: var(--kakao) !important; color: #191919 !important; }
.btn-cta-kakao:hover, #btn-cta-kakao:hover { filter: brightness(.96); }
button:disabled { opacity: .55; cursor: default; }

input[type=text], input[type=tel], input[type=email], input[type=number], input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  font-size: 1rem; line-height: 1.4; transition: border-color .15s var(--ease);
}
textarea { min-height: 112px; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2314202B' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
::placeholder { color: #8A949C; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

/* ---------------------------------------------------------------- 6 매물 카드 (.lc) — 첫 화면·목록·상세 아래 모두 같은 한 벌 */
.grid, .listings-grid-modern {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px;
}
@media (max-width: 960px) { .grid, .listings-grid-modern { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; } }
@media (max-width: 560px) { .grid, .listings-grid-modern { grid-template-columns: 1fr; gap: 28px; } }

.lc { position: relative; display: flex; flex-direction: column; min-width: 0; }
.lc-ph { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-soft); border-radius: var(--r); }
.lc-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lc:hover .lc-ph img { transform: scale(1.025); }
.lc-n {
  position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 2px;
  background: rgb(20 32 43 / .72); color: #fff; font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums;
}
.lc .vt-heart {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / .92); color: var(--ink); font-size: 1rem; display: inline-flex; align-items: center; justify-content: center;
}
.lc .vt-heart.vt-on, .lc .vt-heart.on { color: var(--warn); }
.lc-body { padding-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.lc-kind { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.lc-pick { color: var(--accent); font-weight: 700; }
.lc-pick::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: var(--accent); border-radius: 50%; vertical-align: 2px; }
.lc-title { font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--ink-2); }
.lc-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* 카드 어디를 눌러도 상세로 */
.lc-price { margin-top: 6px; font-size: 1.3125rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-price i { font-style: normal; font-weight: 400; color: var(--line); margin-inline: 6px; }
.lc-price small { font-size: .8125rem; font-weight: 500; color: var(--muted); margin-right: 5px; letter-spacing: -0.01em; }
.lc-noc { font-size: .875rem; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.lc-facts { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); line-height: 1.55; }
.lc-facts span + span::before { content: ""; display: inline-block; width: 1px; height: 10px; margin-inline: 9px; background: var(--line); }
.lc-tags { font-size: .8125rem; color: var(--muted); }
.lc .card-broker { margin-top: 8px; font-size: .75rem; line-height: 1.5; color: #7B858D; }
.lc .card-broker b { font-weight: 500; }
.lc .card-broker span { display: none; }

/* ---------------------------------------------------------------- 7 목록 화면 */
.crumbs { font-size: .8125rem; color: var(--muted); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 4px 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a + a::before, .crumbs span + span::before, .crumbs a + span::before, .crumbs > * + *::before { content: "/"; margin-inline: 8px; color: var(--line); }
.crumbs i { display: none; }

.list-head { padding-bottom: 28px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.list-head h1 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; }
.list-head .lead { margin-top: 10px; max-width: 40em; color: var(--ink-2); font-size: .9375rem; }
.category-tabs-row { display: flex; gap: 24px; margin-top: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.category-tabs-row .tab-btn { padding: 10px 0; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.category-tabs-row .tab-btn.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.tab-count { font-size: .8125rem; font-variant-numeric: tabular-nums; margin-left: 2px; }
.sub-chips-bar, .chipnav, .related-tags-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.sub-chips-bar > span:first-child { display: none; }
.sub-chip, .chipnav a, .related-tags-nav a, .popular-chip-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); font-size: .875rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
a.sub-chip:hover, .chipnav a:hover, .related-tags-nav a:hover, .popular-chip-btn:hover { border-color: var(--ink); color: var(--ink); }
.sub-chip i { display: none; }
.sub-chip b, .popular-chip-btn b { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .sub-chips-bar, .chipnav { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
  .sub-chips-bar::-webkit-scrollbar, .chipnav::-webkit-scrollbar, .category-tabs-row::-webkit-scrollbar { display: none; }
}

.list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 16px 24px; flex-wrap: wrap; }
.lf-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lf-sel { width: auto; min-height: 40px; padding-block: 6px; font-size: .875rem; }
.lf-sel.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.list-count-badge span { color: var(--muted); }
.lf-clear { margin-left: 10px; font-size: .875rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .lf-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; width: calc(100% + var(--gut) * 2); }
  .lf-row::-webkit-scrollbar { display: none; }
  .lf-sel { flex: none; }
}
.list-count-badge { font-size: .9375rem; color: var(--ink-2); }
.list-count-badge b { color: var(--ink); font-variant-numeric: tabular-nums; }
.list-sort-select, .showcase-sort-select { width: auto; min-height: 40px; padding-block: 6px; font-size: .875rem; }

.pager { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 56px; }
.pager a, .pager-gap {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px;
  font-size: .9375rem; font-variant-numeric: tabular-nums; color: var(--ink-2); border-radius: var(--r);
}
.pager a:hover { background: var(--surface); color: var(--ink); }
.pager a[aria-current] { background: var(--ink); color: var(--on-dark); font-weight: 700; }
.pager i { font-size: .75rem; }

.empty, .gone { padding: 64px 0; text-align: left; color: var(--ink-2); max-width: 34em; }
.gone h1 { font-size: 1.75rem; margin-bottom: 16px; }
.empty a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; color: var(--accent); }

/* 지역·역 묶음 표(지역별·역별 첫 화면) */
.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; margin-top: 8px; }
.regions a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); font-weight: 500; }
.regions a:hover { border-bottom-color: var(--ink); }
.regions a span, .regions a b { font-size: .875rem; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-lead { color: var(--ink-2); margin-top: 6px; }

/* ---------------------------------------------------------------- 8 상세 화면 */
.item-top-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.item-top-actions { display: flex; gap: 4px; flex: none; margin-top: -8px; }
.btn-top-action { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 0; background: none; font-size: .8125rem; color: var(--ink-2); border-radius: var(--r); }
.btn-top-action:hover { background: var(--surface); color: var(--ink); }
.btn-top-action.vt-on { color: var(--warn); }
.item-layout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 48px; align-items: start; }
.item-main-col { min-width: 0; }
.item-gallery-card { margin-bottom: 8px; }
.g-main { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line-soft); border-radius: var(--r); }
.g-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-main:hover img { transform: scale(1.015); }
.g-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 2px; background: rgb(20 32 43 / .78); color: #fff; font-size: .8125rem; font-weight: 500; font-variant-numeric: tabular-nums; pointer-events: none; }
.g-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 6px; }
.g-thumbs a { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line-soft); border-radius: 2px; }
.g-thumbs a:nth-child(n+7) { display: none; }   /* 나머지는 크게 보기에서 넘겨 본다(마지막 칸에 남은 장수 표시) */
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.g-thumbs a:hover img { opacity: .85; }
.g-thumbs a[data-more6]::after, .g-thumbs a[data-more5]::after { content: attr(data-more6); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgb(20 32 43 / .62); color: #fff; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.g-thumbs a[data-more6]:hover img { opacity: 1; }
.item-gallery-card .sub-chips-bar { display: none; }   /* 같은 내용이 오른쪽 요약과 조건표에 있다 */

.detail-section-card { padding-block: 36px; border-bottom: 1px solid var(--line); }
.detail-section-card:last-child { border-bottom: 0; }
.sec-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.sec-title i { display: none; }
.sec-sub { font-size: 1rem; font-weight: 700; margin: 24px 0 10px; }
.detail-section-card .lead { font-size: 1.0625rem !important; line-height: 1.75 !important; color: var(--ink); max-width: 44em; }
.detail-section-card .intro, .detail-section-card .desc, .detail-section-card > p { color: var(--ink-2); max-width: 44em; white-space: pre-line; }
.detail-section-card .intro { white-space: normal; }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin-top: 16px; }
.points li { padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line-soft); position: relative; font-size: .9375rem; }
.points li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; max-width: none !important; }
.links a { font-size: .9375rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.links a i { display: none; }
.muted { color: var(--muted) !important; font-size: .8125rem; margin-top: 12px; }

table.spec { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); font-size: .9375rem; }
table.spec th, table.spec td { padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.spec th { width: 9.5em; font-weight: 400; color: var(--muted); }
table.spec td { font-weight: 500; }
@media (min-width: 720px) {
  table.spec tbody { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  table.spec tr { display: grid; grid-template-columns: 9.5em 1fr; }
  table.spec th { width: auto; }
}

.faq details, .faq-item-card { border-bottom: 1px solid var(--line); }
.faq details:first-child, .faq-modern-list .faq-item-card:first-child { border-top: 1px solid var(--ink); }
.faq summary, .faq-question-btn {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 2px; cursor: pointer;
  font-weight: 600; list-style: none; width: 100%; background: none; border: 0; text-align: left;
}
.faq summary::-webkit-details-marker, .faq-question-btn::-webkit-details-marker { display: none; }
.faq summary::after, .faq-question-btn::after { content: "+"; font-weight: 400; font-size: 1.25rem; line-height: 1; color: var(--muted); flex: none; }
.faq details[open] summary::after, details[open] > .faq-question-btn::after { content: "−"; }
.faq details p, .faq-answer-body { padding: 0 2px 20px; color: var(--ink-2); max-width: 44em; }

/* 주변 시세·상권(market_info.js 가 그린다) — 색·모서리만 이 화면에 맞춘다 */
.mk { font-size: .9375rem !important; color: var(--ink) !important; }
.mk .mk-card { background: none !important; border: 0 !important; border-top: 1px solid var(--ink) !important; border-radius: 0 !important; padding: 12px 0 !important; }
.mk .mk-card .k { color: var(--muted) !important; font-weight: 400 !important; }
.mk .mk-card .v { color: var(--ink) !important; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.mk h5 { color: var(--ink) !important; font-size: 1rem !important; margin-top: 24px !important; }
.mk h5 i { display: none; }
.mk .mk-tbl th { background: none !important; color: var(--muted) !important; font-weight: 400 !important; border-bottom: 1px solid var(--ink) !important; }
.mk .mk-tbl td { border-bottom-color: var(--line) !important; font-variant-numeric: tabular-nums; }
#item-market { overflow-x: auto; }
.mk .mk-bar i, .mk .mk-bar .b > *, .mk .mk-bar [style*="gradient"] { background: var(--accent) !important; border-radius: 0 !important; }
/* 오른쪽 요약(명세서) */
.sticky-brochure-card { position: sticky; top: calc(var(--head-h) + 20px); background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--ink); border-radius: 0 0 var(--r) var(--r); padding: 24px; }
.brochure-header { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--muted); }
.brochure-item-no { font-variant-numeric: tabular-nums; }
.brochure-title { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.3; margin-top: 8px; }
.brochure-addr { font-size: .875rem; color: var(--ink-2); margin-top: 4px; }
.brochure-addr i { display: none; }
.money { margin-top: 20px; border-top: 1px solid var(--line); }
.money > div { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.money dt { font-size: .875rem; color: var(--muted); }
.money dd { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.money > div:last-child { border-bottom: 0; }
.money > div:nth-child(4) { background: var(--accent-wash); margin-inline: -24px; padding-inline: 24px; border-bottom: 0; }
.money > div:nth-child(4) dt { color: var(--accent); font-weight: 600; }
.money > div:nth-child(4) dd { color: var(--accent); font-size: 1.25rem; font-weight: 800; }
.noc-explanation-box { padding: 14px 0 0; font-size: .8125rem; color: var(--ink-2); }
.noc-explanation-box strong { display: block; font-size: .9375rem; color: var(--ink); }
.noc-explanation-box strong i { display: none; }
.noc-explanation-box .formula { font-variant-numeric: tabular-nums; margin-top: 2px; }
.noc-explanation-box p[style] { display: none; }
.brochure-cta-group { display: grid; gap: 8px; margin-top: 20px; }
.brochure-cta-group > a { width: 100%; }
.brochure-trust-box { display: none; }
.brochure-meta-dates { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

form.inq, .inquiry-right-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; max-width: 640px; }
form.inq label, .inquiry-field-box label { display: grid; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
form.inq .full, .form-full-col { grid-column: 1 / -1; }
form.inq .chk { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: .8125rem; line-height: 1.5; }
form.inq .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
form.inq .btn-submit-inq { grid-column: 1 / -1; justify-self: start; min-width: 220px; }
form.inq .msg { font-size: .875rem; color: var(--accent); font-weight: 600; min-height: 1.4em; }
#ask > p[style] { margin-bottom: 20px !important; max-width: 38em; }

.similar-listings-wrap { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--ink); }
.similar-listings-wrap .section-header-modern { text-align: left; margin-bottom: 28px; }
.similar-listings-wrap h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.035em; }
.related-tags-nav { margin-top: 48px; }

@media (max-width: 960px) {
  .item-layout-grid { display: flex; flex-direction: column; gap: 0; }
  .item-main-col { display: contents; }
  .item-gallery-card { order: 0; width: 100%; }
  .item-sidebar-col { order: 1; width: 100%; margin-top: 16px; }
  .item-main-col > .detail-section-card { order: 2; width: 100%; }
  .sticky-brochure-card { position: static; }
  .g-main { margin-inline: calc(var(--gut) * -1); border-radius: 0; aspect-ratio: 4 / 3; }
  .g-thumbs { grid-template-columns: repeat(5, 1fr); }
  .g-thumbs a:nth-child(n+6) { display: none; }
  .g-thumbs a[data-more6]::after { content: none; }
  .g-thumbs a[data-more5]::after { content: attr(data-more5); }
  .points { grid-template-columns: 1fr; }
  .btn-top-action { font-size: 0; gap: 0; width: 40px; justify-content: center; padding: 0; }
  .btn-top-action i { font-size: 1rem; }
  form.inq, .inquiry-right-form { grid-template-columns: 1fr; }
  form.inq .btn-submit-inq { justify-self: stretch; }
}

/* 사진 크게 보기 */
.pv { position: fixed; inset: 0; z-index: 1000; background: rgb(12 18 24 / .96); display: none; align-items: center; justify-content: center; }
.pv.on { display: flex; }
.pv img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.pv button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; font-size: 1.125rem; }
.pv button:hover { background: rgb(255 255 255 / .24); }
.pv-x { top: 16px; right: 16px; } .pv-p { left: 16px; top: 50%; margin-top: -24px; } .pv-n { right: 16px; top: 50%; margin-top: -24px; }
.pv-c { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; font-size: .875rem; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- 9 글 화면(가이드·회사 소개·안내문) */
.guide, .about { max-width: 760px; }
.guide h1, .about h1 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.2; padding-bottom: 24px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.guide h2, .about h2 { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.03em; margin: 48px 0 14px; }
.guide h3, .about h3 { font-size: 1.0625rem; font-weight: 700; margin: 28px 0 8px; }
.guide p, .about p, .guide li, .about li { color: var(--ink-2); line-height: 1.8; }
.guide p + p, .about p + p { margin-top: 12px; }
.guide ul, .about ul, .guide ol, .about ol { padding-left: 1.2em; list-style: revert; margin-top: 8px; }
.guide a:not(.btn), .about a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.steps { counter-reset: s; list-style: none !important; padding: 0 !important; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; padding: 16px 0 16px 44px; border-bottom: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 4px; top: 16px; font-weight: 800; font-size: 1.125rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.check { list-style: none !important; padding: 0 !important; }
.check li { padding: 8px 0 8px 22px; position: relative; }
.check li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.guide table, .about table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); margin-top: 12px; font-size: .9375rem; }
.guide th, .guide td, .about th, .about td { padding: 12px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.guide th, .about th { font-weight: 400; color: var(--muted); }

/* ---------------------------------------------------------------- 10 첫 화면 */
/* 구역 공통 */
.sec { padding-block: 88px; }
.sec-alt { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 32px; }
.sec-h { font-family: var(--serif); font-size: clamp(1.625rem, 1.4vw + 1.1rem, 2.125rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.25; }
.sec-p { margin-top: 10px; color: var(--ink-2); max-width: 36em; }
.sec-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.sec-side { position: sticky; top: calc(var(--head-h) + 32px); }
.text-link { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--accent-deep); }
@media (max-width: 960px) {
  .sec { padding-block: 56px; }
  .sec-split { grid-template-columns: 1fr; gap: 24px; }
  .sec-side { position: static; }
  .sec-head { margin-bottom: 24px; }
}

/* 첫 화면 맨 위: 왼쪽 제목·검색, 오른쪽 시세표 */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 408px; gap: 72px; align-items: center; padding-block: 72px; }
.hero-h1 { font-family: var(--serif); font-size: clamp(2rem, 2.6vw + 1.1rem, 3.25rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.22; }
.hero-sub { margin-top: 18px; font-size: 1.0625rem; color: var(--ink-2); max-width: 30em; }
.hero-broker { margin-top: 20px; font-size: .8125rem; color: var(--muted); }

.search-card-container { margin-top: 36px; }
.search-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.search-field-group label { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.kw-group { grid-column: 1 / 3; }
.kw-group input { min-height: 56px; font-size: 1.0625rem; border-color: var(--ink); }
.btn-search-main { align-self: end; min-height: 56px; font-size: 1rem; }
.search-more-toggle { display: none; }
.popular-chips-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 18px; }
.popular-chips-title { font-size: .8125rem; color: var(--muted); margin-right: 2px; }
.popular-chips-wrap .popular-chip-btn { min-height: 0; padding: 4px 0; border: 0; background: none; border-radius: 0; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.popular-chips-wrap .popular-chip-btn:hover { color: var(--accent); text-decoration-color: currentColor; }

/* 여러 구간을 고르는 선택 상자(main.js initMultiSelect) */
.msel { position: relative; }
.msel-btn {
  width: 100%; min-height: 48px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: .9375rem; text-align: left;
}
.msel-btn:hover { border-color: var(--muted); }
.msel-btn.has { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.msel-btn i { font-size: .625rem; color: var(--muted); }
.msel-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msel-pop { display: none; position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: min(340px, 86vw); background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r); padding: 14px; }
.msel.open .msel-pop { display: block; }
.msel-hint { font-size: .75rem; color: var(--muted); margin-bottom: 10px; }
.msel-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.msel-chip { min-height: 40px; padding: 0 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: .875rem; text-align: left; }
.msel-chip:hover { border-color: var(--muted); }
.msel-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.msel-foot { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.msel-foot button { border: 0; background: none; min-height: 36px; padding: 0 6px; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.msel-foot .msel-done { color: var(--accent); }

/* 동별 시세표 — 이 화면에서 가장 힘을 준 한 곳 */
.rate { background: var(--ink); color: var(--on-dark); padding: 28px 28px 22px; border-radius: var(--r); }
.rate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--on-dark); }
.rate-head h2 { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.rate-head p { font-size: .75rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.rate table { width: 100%; border-collapse: collapse; }
.rate thead th { padding: 10px 0 6px; font-size: .75rem; font-weight: 400; color: var(--on-dark-2); text-align: right; }
.rate thead th:first-child { text-align: left; }
.rate tbody th, .rate tbody td, .rate tfoot th, .rate tfoot td { padding: 9px 0; border-bottom: 1px solid rgb(255 255 255 / .12); text-align: right; font-weight: 400; }
.rate tbody th, .rate tfoot th { text-align: left; font-size: .9375rem; }
.rate tbody th a { display: block; }
.rate tbody tr:hover th a { text-decoration: underline; text-underline-offset: 4px; }
.rate td { font-size: .9375rem; color: var(--on-dark-2); }
.rate td:last-child { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; color: var(--on-dark); width: 46%; }
.rate small { font-size: .75rem; font-weight: 400; color: var(--on-dark-2); margin-left: 2px; }
.rate .na { color: var(--on-dark-2); font-weight: 400; }
.rate tfoot th, .rate tfoot td { border-bottom: 0; border-top: 1px solid var(--on-dark); padding-top: 12px; font-weight: 700; }
.rate tfoot td:last-child { color: #9FD6C9; }
.rate-note { margin-top: 12px; font-size: .75rem; line-height: 1.6; color: var(--on-dark-2); }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 48px; }
}
@media (max-width: 640px) {
  .hero-grid { padding-block: 28px 36px; gap: 32px; }
  .hero-h1 { font-size: 1.875rem; }
  .hero-sub { font-size: 1rem; margin-top: 12px; }
  .search-card-container { margin-top: 24px; }
  .search-form-grid { grid-template-columns: 1fr; gap: 10px; }
  .kw-group { grid-column: auto; }
  .search-more-toggle { display: block; border: 0; background: none; padding: 8px 0; font-size: .875rem; font-weight: 600; color: var(--accent); text-align: left; text-decoration: underline; text-underline-offset: 4px; }
  .sf-opt { display: none; }
  .search-form-grid.open .sf-opt { display: block; }
  .msel-pop { width: 100%; }
  .rate { margin-inline: calc(var(--gut) * -1); border-radius: 0; padding: 24px var(--gut) 20px; }
}

/* 공개 매물 */
.geo-summary { margin-top: 8px; font-size: .8125rem; color: var(--muted); max-width: 52em; font-variant-numeric: tabular-nums; }
.showcase-bar { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--ink); margin-bottom: 28px; }
.showcase-filter-tabs { display: flex; gap: 24px; margin-right: auto; overflow-x: auto; scrollbar-width: none; }
.showcase-tab-pill { padding: 12px 0; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 500; color: var(--muted); white-space: nowrap; margin-bottom: -1px; }
.showcase-tab-pill:hover { color: var(--ink); }
.showcase-tab-pill.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.showcase-count-badge { font-size: .875rem; color: var(--ink-2); white-space: nowrap; }
.showcase-count-badge b { color: var(--ink); font-variant-numeric: tabular-nums; }
.showcase-sort-select { border-color: transparent; background-color: transparent; padding-left: 8px; }
.active-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: -12px 0 24px; padding: 12px 16px; background: var(--accent-wash); border-radius: var(--r); font-size: .9375rem; color: var(--accent-deep); }
.active-filter-clear { border: 0; background: none; padding: 4px 0; font-size: .875rem; font-weight: 600; color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.active-filter-note { flex-basis: 100%; font-size: .8125rem; color: var(--ink-2); }
.listings-more-wrap { margin-top: 48px; text-align: center; }
.btn-listings-more { min-width: 260px; }
.btn-listings-more small { font-weight: 400; font-variant-numeric: tabular-nums; opacity: .7; }
.showcase-bottom-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.listings-more-wrap + .showcase-bottom-links { margin-top: 10px; }
.showcase-bottom-links:first-of-type { margin-top: 48px; }
.empty-state-modern { grid-column: 1 / -1; padding: 56px 0; border-block: 1px solid var(--line); }
.empty-state-modern h4 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.empty-state-modern p { margin: 8px 0 20px; color: var(--ink-2); max-width: 34em; }
@media (max-width: 640px) {
  .showcase-bar { flex-wrap: wrap; gap: 0 12px; }
  .showcase-filter-tabs { flex-basis: 100%; border-bottom: 1px solid var(--line); gap: 20px; }
  .showcase-bar { border-bottom: 0; }
  .showcase-count-badge { margin-right: auto; padding-block: 12px; }
  .btn-listings-more, .showcase-bottom-links .btn-more-large { width: 100%; }
}

/* 조건으로 찾기: 이름 · 설명 · 건수 표 */
.theme-card-grid { border-top: 1px solid var(--ink); }
.theme-card-item { display: grid; grid-template-columns: 11em minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); transition: background-color .15s var(--ease); }
.theme-card-item:hover { background: var(--bg); }
.theme-card-item h5 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; }
.theme-card-item span { font-size: .9375rem; color: var(--ink-2); }
.theme-count { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); white-space: nowrap; }
@media (max-width: 640px) {
  .theme-card-item { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 14px 2px; }
  .theme-card-item span { grid-column: 1; grid-row: 2; font-size: .875rem; }
  .theme-count { grid-row: 1 / 3; grid-column: 2; align-self: center; }
}

/* 일하는 방식 */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; border-top: 1px solid var(--ink); }
.trust-item-card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.trust-item-card dt { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; }
.trust-item-card dd { margin-top: 6px; font-size: .9375rem; color: var(--ink-2); }
@media (max-width: 640px) { .trust-grid { grid-template-columns: 1fr; } }

/* 계산기 */
.calc-presets-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.calc-presets-title { font-size: .8125rem; color: var(--muted); margin-right: 6px; }
.btn-calc-preset { min-height: 36px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: .875rem; font-weight: 500; color: var(--ink-2); }
.btn-calc-preset:hover { border-color: var(--ink); }
.btn-calc-preset.active { background: var(--ink); border-color: var(--ink); color: var(--on-dark); font-weight: 600; }
.calc-grid-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; border-top: 1px solid var(--ink); padding-top: 8px; }
.calc-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.calc-row-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.calc-row-header label { font-size: .9375rem; color: var(--ink-2); }
.val-display { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
.calc-slider::-webkit-slider-runnable-track { height: 2px; background: var(--line); }
.calc-slider::-moz-range-track { height: 2px; background: var(--line); }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.calc-slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.calc-slider:focus-visible { outline: 0; }
.calc-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent-wash); }
.calc-output-panel { display: flex; flex-direction: column; }
.calc-metric-card { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.calc-metric-label { font-size: .9375rem; color: var(--ink-2); }
.calc-metric-val { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: right; }
.calc-metric-card.main { flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 22px; }
.calc-metric-card.main .calc-metric-label { color: var(--accent); font-weight: 600; }
.calc-metric-card.main .calc-metric-val { font-size: clamp(2.25rem, 3vw + 1rem, 3.25rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.1; color: var(--accent); }
.calc-cta-btn { margin-top: 24px; align-self: flex-start; }
@media (max-width: 860px) { .calc-grid-box { grid-template-columns: 1fr; gap: 8px; } .calc-cta-btn { align-self: stretch; } }

/* 권역 */
.district-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; border-top: 1px solid var(--ink); }
.district-card-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.district-badge { font-size: .8125rem; color: var(--muted); }
.district-name { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.03em; margin-top: 2px; }
.district-desc { margin-top: 8px; font-size: .9375rem; color: var(--ink-2); }
.district-stat { margin-top: 12px; font-size: .875rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.district-stat span { font-weight: 400; color: var(--muted); }
.district-link-btn { display: inline-block; margin-top: 12px; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.district-link-btn:hover { color: var(--accent); }
.district-sub-links { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; margin-left: 14px; font-size: .875rem; color: var(--ink-2); }
.district-sub-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .district-cards-grid { grid-template-columns: 1fr; } .district-sub-links { display: flex; margin: 8px 0 0; } }

/* 상담 신청 */
.inquiry-modern-section { background: var(--ink); color: var(--on-dark); }
.inquiry-modern-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
.inquiry-modern-section .sec-p { color: var(--on-dark-2); }
.inquiry-contact-list { margin-top: 32px; border-top: 1px solid rgb(255 255 255 / .2); }
.contact-pill-item { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgb(255 255 255 / .12); font-size: .9375rem; }
.contact-pill-item dt { color: var(--on-dark-2); }
.contact-pill-item dd { font-weight: 500; font-variant-numeric: tabular-nums; }
.contact-pill-item dd a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgb(255 255 255 / .4); }
.inquiry-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.inquiry-actions .btn:not(#btn-cta-kakao) { background: transparent; border-color: var(--on-dark); color: var(--on-dark); }
.inquiry-actions .btn:not(#btn-cta-kakao):hover { background: var(--on-dark); color: var(--ink); }
.inquiry-right-form { max-width: none; background: var(--surface); color: var(--ink); padding: 32px; border-radius: var(--r); }
.inquiry-right-form .consent { display: flex; gap: 8px; align-items: flex-start; font-size: .8125rem; line-height: 1.5; font-weight: 400; color: var(--ink-2); margin-bottom: 16px; cursor: pointer; }
.inquiry-right-form .consent a { text-decoration: underline; text-underline-offset: 3px; }
.inquiry-right-form .btn-submit-inquiry { width: 100%; min-height: 52px; font-size: 1rem; }
@media (max-width: 960px) {
  .inquiry-modern-card { grid-template-columns: 1fr; gap: 36px; }
  .inquiry-right-form { padding: 20px; }
  .inquiry-actions .btn { flex: 1; }
}

/* 떠 있는 버튼: 넓은 화면에서만(휴대폰은 아래 고정 바가 있다) */
.floating-action-hub { position: fixed; right: 20px; bottom: 92px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.btn-float-action { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--ink); border-radius: var(--r); font-size: .8125rem; font-weight: 600; color: var(--ink); }
.btn-float-action:hover { background: var(--ink); color: var(--on-dark); }
.float-kakao { display: none; }
@media (max-width: 960px) { .floating-action-hub { display: none; } }

/* 안내 배너(관리자가 올렸을 때만) */
.banner-section { position: relative; max-width: calc(var(--w) + var(--gut) * 2); margin: 20px auto 0; padding-inline: var(--gut); }
.banner-section .slide { display: none; position: relative; border-radius: var(--r); overflow: hidden; }
.banner-section .slide.on { display: block; }
.banner-section .slide img { width: 100%; max-height: 280px; object-fit: cover; }
.banner-section .cap { position: absolute; left: 0; bottom: 0; right: 0; padding: 16px 20px; background: rgb(20 32 43 / .72); color: #fff; display: grid; gap: 2px; }
.banner-section .dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.banner-section .dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); }
.banner-section .dots button.on { background: var(--ink); }

/* ---------------------------------------------------------------- 11 작은 부품 */
/* 휴대폰 아래 고정 상담 바 */
.s-bar { display: none; }
@media (max-width: 960px) {
  .s-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: var(--ink); padding-bottom: env(safe-area-inset-bottom);
  }
  .s-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; height: 56px; color: var(--on-dark); font-size: .9375rem; font-weight: 600; }
  .s-bar a + a { border-left: 1px solid rgb(255 255 255 / .14); }
  .s-bar a i { font-size: .875rem; opacity: .8; }
  .s-bar .b-ask { background: var(--accent); }
}
.toast-container { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 1200; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { background: var(--ink); color: var(--on-dark); padding: 14px 18px; border-radius: var(--r); font-size: .9375rem; }

@media print {
  header.glass, footer, .s-bar, .item-top-actions, .floating-action-hub, #ask, .similar-listings-wrap, .related-tags-nav { display: none !important; }
  body { background: #fff; }
  .item-layout-grid { display: block; }
}

/* 떠 있는 상담 버튼(visit_booking.js 가 넣는다) */
.bk-fab { height: 44px !important; border-radius: var(--r) !important; box-shadow: none !important; border: 1px solid var(--ink) !important; font-size: .875rem !important; font-weight: 600 !important; transform: none !important; }
.bk-fab.book { background: var(--surface) !important; color: var(--ink) !important; }
.bk-fab.kakao { border-color: #FEE500 !important; }

/* ---------------------------------------------------------------- 12 아이콘
 * Font Awesome 전체(약 170KB)를 받지 않고, 손님 화면에서 실제로 보이는 아이콘만 여기 그려 둔다.
 * 스크립트가 쓰는 fa-이름 클래스는 그대로 두고, 여기에 없는 아이콘은 보이지 않는다. 새 아이콘이 필요하면 아래에 한 줄 더한다. */
.fa-solid, .fa-regular, .fa-brands, .fas, .far { display: none; }
.fa-phone, .fa-heart, .fa-comment, .fa-comments, .fa-comment-dots, .fa-bars, .fa-xmark, .fa-chevron-left, .fa-chevron-right, .fa-chevron-down, .fa-share-from-square, .fa-share-nodes, .fa-print, .fa-paper-plane, .fa-calendar-check, .fa-circle-check, .fa-check, .fa-magnifying-glass, .fa-spinner, .fa-rotate-right, .fa-circle-info, .fa-triangle-exclamation, .fa-trash-can, .fa-scale-balanced, .fa-calculator {
  display: inline-block; width: 1em; height: 1em; flex: none; background: currentColor; vertical-align: -0.125em;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.fa-phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.fa-heart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.fa-comment { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H10l-5 4v-4H4z'/%3E%3C/svg%3E"); }
.fa-comments { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H10l-5 4v-4H4z'/%3E%3C/svg%3E"); }
.fa-comment-dots { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H10l-5 4v-4H4z'/%3E%3C/svg%3E"); }
.fa-bars { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E"); }
.fa-xmark { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.fa-chevron-left { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
.fa-chevron-right { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
.fa-chevron-down { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E"); }
.fa-share-from-square { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4M8 8l4-4 4 4M5 12v7h14v-7'/%3E%3C/svg%3E"); }
.fa-share-nodes { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V4M8 8l4-4 4 4M5 12v7h14v-7'/%3E%3C/svg%3E"); }
.fa-print { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 9V4h10v5M7 17H4v-7h16v7h-3M7 14h10v6H7z'/%3E%3C/svg%3E"); }
.fa-paper-plane { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 3L3 10l7 3 3 7zM10 13L21 3'/%3E%3C/svg%3E"); }
.fa-calendar-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v14H4zM4 10h16M8 3v4M16 3v4M9 15l2 2 4-4'/%3E%3C/svg%3E"); }
.fa-circle-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM8 12l3 3 5-6'/%3E%3C/svg%3E"); }
.fa-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.fa-magnifying-glass { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4a7 7 0 1 0 0 14 7 7 0 0 0 0-14zM16 16l5 5'/%3E%3C/svg%3E"); }
.fa-spinner { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 9 9'/%3E%3C/svg%3E"); }
.fa-rotate-right { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-3-6.2M20 4v5h-5'/%3E%3C/svg%3E"); }
.fa-circle-info { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 11v6M12 7.5v.5'/%3E%3C/svg%3E"); }
.fa-triangle-exclamation { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l9 16H3zM12 10v5M12 17.5v.5'/%3E%3C/svg%3E"); }
.fa-trash-can { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h14M9 7V4h6v3M7 7l1 13h8l1-13'/%3E%3C/svg%3E"); }
.fa-scale-balanced { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v16M6 20h12M5 7h14M5 7l-2 6a3 3 0 0 0 6 0zM19 7l-2 6a3 3 0 0 0 6 0z'/%3E%3C/svg%3E"); }
.fa-calculator { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18H6zM9 7h6M9 12h.01M12 12h.01M15 12h.01M9 16h.01M12 16h.01M15 16h.01'/%3E%3C/svg%3E"); }
.fa-solid.fa-heart, .vt-on .fa-heart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.fa-spin { animation: rb-spin 1s linear infinite; }
@keyframes rb-spin { to { transform: rotate(360deg); } }

/* ---- 2026-11-11 개선: 휴대폰 2열 카드 · 터치 영역 44px · 시세표 접기 · 추천 표시 정리 ---- */
.lc-pick-auto { display: none; }
@media (max-width: 560px) {
  .grid, .listings-grid-modern { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .lc-body { padding-top: 10px; }
  .lc-kind { font-size: .75rem; gap: 6px; }
  .lc-title { font-size: .875rem; line-height: 1.35; }
  .lc-price { font-size: 1rem; margin-top: 4px; white-space: normal; line-height: 1.3; }
  .lc-price small { font-size: .6875rem; margin-right: 3px; }
  .lc-price i { margin-inline: 3px; }
  .lc-noc { font-size: .75rem; line-height: 1.4; }
  .lc-facts { margin-top: 8px; padding-top: 8px; font-size: .75rem; line-height: 1.5; }
  .lc-facts span + span::before { margin-inline: 6px; }
  .lc-tags { display: none; }
  .lc .card-broker { display: none; }
  .rate.rate-fold tbody tr:nth-child(n+6) { display: none; }
  .rate.rate-fold .rate-note { display: none; }
  .rate.rate-open tbody tr:nth-child(n+6) { display: table-row; }
  .rate.rate-open .rate-note { display: block; }
}
.rate-toggle { display: none; }
@media (max-width: 560px) {
  .rate-toggle { display: block; width: 100%; margin-top: 10px; min-height: 44px; border: 1px solid rgb(255 255 255 / .35); background: none; color: var(--on-dark); font-size: .875rem; font-weight: 600; border-radius: var(--r); }
}
@media (pointer: coarse) {
  .sub-chip, .chipnav a, .related-tags-nav a, .popular-chip-btn, .showcase-tab-pill { min-height: 44px; }
  .popular-chips-wrap .popular-chip-btn { min-height: 44px; padding-block: 0; }
  footer a { display: inline-block; padding-block: 10px; }
}

/* 휴대폰: 상세·목록 페이지의 작은 링크(빵부스러기, 지도 링크, 아래쪽 안내 링크)도 손가락으로 누르기 쉽게 */
@media (max-width: 760px) {
  .crumbs a, .crumbs span { display: inline-block; padding-block: 12px; line-height: 1.2; }
  .crumbs { margin-bottom: 8px; gap: 0; align-items: center; }
  .links a { display: inline-flex; align-items: center; min-height: 44px; }
  .links { margin-top: 8px; gap: 0 20px; }
  .footer-col a { padding-block: 10px; }
}
