/* =========================================================
   realty 테마 — 공인중개사사무소·부동산용
   색상은 theme.css(company.json colors)에서 --primary / --accent / --ink 로 들어옴
   ========================================================= */
:root {
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --gray: #f5f7fa;
  --white: #fff;
  --r: 16px;
  --hd-h: 72px;
  --wrap: 1280px;
  --gutter: 32px;
  --sec-y: 96px;
  --shadow: 0 10px 30px rgba(17, 24, 39, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 1024px) { :root { --hd-h: 62px; --gutter: 20px; --sec-y: 72px; } }
@media (max-width: 640px)  { :root { --gutter: 16px; --sec-y: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 50%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 10px 18px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 16px; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(860px + var(--gutter) * 2); }
.note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.eyebrow { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--primary); }
.h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.35; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.h3 { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.h3 small { font-size: 13px; font-weight: 500; color: var(--muted); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); font-size: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 85%, #000); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn-line { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* 헤더 */
.hd { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.hd-bar { display: flex; align-items: center; gap: 28px; height: var(--hd-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo img { height: 36px; width: auto; }
.logo-mark { width: 36px; height: 36px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.logo-text small { font-size: 10px; font-weight: 700; letter-spacing: .18em; color: var(--primary); }
.gnb { flex: 1; }
.gnb ul { display: flex; gap: 4px; }
.gnb a { display: block; padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--ink); }
.gnb a:hover { background: var(--gray); }
.gnb a[aria-current] { color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, #fff); }
.hd-util { display: flex; align-items: center; gap: 12px; flex: none; }
.fav-link { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); }
.fav-link .ico { width: 22px; height: 22px; }
.fav-link b { position: absolute; right: 2px; top: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.fav-link b:empty, .fav-link b[data-zero] { display: none; }
.hd-tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--ink); }
.menu-btn { display: none; width: 40px; height: 40px; place-items: center; border-radius: 10px; }
.menu-btn .ico { width: 24px; height: 24px; }
@media (max-width: 1100px) { .gnb, .hd-tel { display: none; } .menu-btn { display: grid; } .hd-bar { justify-content: space-between; } }
@media (max-width: 480px) { .hd-cta { display: none; } }
.sitemap { position: fixed; inset: 0; z-index: 200; background: rgba(17,24,39,.45); animation: fadeIn .2s; }
.sitemap[hidden] { display: none; }
.sitemap-box { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 100%); padding: 72px 24px 32px; background: #fff; overflow-y: auto; animation: slideIn .3s var(--ease); }
.sitemap-close { position: absolute; right: 16px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; }
.sitemap-list a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; color: var(--ink); }
.sitemap-call { margin-top: 28px; }
.sitemap-call small { display: block; color: var(--muted); }
.sitemap-call a { font-size: 26px; font-weight: 800; color: var(--primary); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 메인 검색 비주얼 */
.hero { position: relative; padding: 96px 0 72px; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: var(--ink); }
.hero-img { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.4s; }
.hero-img.is-active { opacity: 1; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,24,39,.55), rgba(17,24,39,.75)); }
.hero-in { position: relative; }
.hero-title { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.25; font-weight: 800; letter-spacing: -.04em; }
.hero-text { margin: 16px 0 36px; max-width: 560px; font-size: 17px; color: rgba(255,255,255,.85); }
.finder { max-width: 960px; padding: 20px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.finder-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 12px; background: var(--gray); }
.finder-tabs label { position: relative; }
.finder-tabs input { position: absolute; opacity: 0; }
.finder-tabs span { display: block; padding: 8px 18px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; }
.finder-tabs input:checked + span { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.finder-tabs input:focus-visible + span { outline: 2px solid var(--primary); }
.finder-row { display: grid; grid-template-columns: 1fr 1fr 1.6fr auto; gap: 10px; }
.finder-field { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; }
.finder-field span { font-size: 12px; font-weight: 700; color: var(--muted); }
.finder-field select, .finder-field input { border: 0; padding: 2px 0; font-size: 16px; font-weight: 600; background: transparent; outline: none; }
.finder-field:focus-within { border-color: var(--primary); }
.finder .btn { height: auto; min-height: 58px; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero-quick a { display: inline-flex; gap: 6px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); font-size: 14px; font-weight: 600; }
.hero-quick a:hover { background: rgba(255,255,255,.25); }
.hero-quick b { color: #ffd2bf; }
@media (max-width: 860px) { .finder-row { grid-template-columns: 1fr 1fr; } .finder-q, .finder .btn { grid-column: 1 / -1; } .hero { padding: 56px 0 48px; } .finder { padding: 14px; } }

.sec { padding: var(--sec-y) 0; }
.sec-tight { padding-top: 40px; }
.sec-gray { background: var(--gray); }

/* 매물 카드 */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 20px; }
.card { position: relative; }
.card[hidden] { display: none; }
.card-link { display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--gray); margin-bottom: 12px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-link:hover img { transform: scale(1.05); }
.card-deal { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 8px; font-size: 13px; font-weight: 800; color: #fff; background: var(--ink); }
.deal-매매 { background: #e11d48; }
.deal-전세 { background: var(--primary); }
.deal-월세 { background: #059669; }
.price-deal.deal-매매 { color: #e11d48; background: none; }
.price-deal.deal-전세 { color: var(--primary); background: none; }
.price-deal.deal-월세 { color: #059669; background: none; }
.card-count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; }
.card-count .ico { width: 13px; height: 13px; }
.card-price { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.card-title { display: block; margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-spec { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.card-tags em { padding: 2px 8px; border-radius: 6px; background: var(--gray); font-style: normal; font-size: 12px; font-weight: 600; color: var(--text); }
.card-tags-lg em { padding: 6px 12px; font-size: 14px; background: color-mix(in srgb, var(--primary) 8%, #fff); color: var(--primary); }
.fav-btn { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.fav-btn .ico { width: 20px; height: 20px; }
.i-on { display: none; color: #e11d48; }
[aria-pressed="true"] .i-on { display: block; }
[aria-pressed="true"] .i-off { display: none; }
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px) { .card-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; } .card-price { font-size: 17px; } }
@media (max-width: 420px) { .card-grid { grid-template-columns: 1fr; } }

/* 단지 */
.cx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cx { border-radius: var(--r); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.cx-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.cx-img img { width: 100%; height: 100%; object-fit: cover; }
.cx-body { padding: 16px 18px 18px; }
.cx-body b { font-size: 18px; color: var(--ink); }
.cx-meta { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.cx-recent > div { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cx-recent dt { color: var(--muted); }
.cx-recent dd { font-weight: 800; color: var(--ink); }
.cx-recent small { font-size: 12px; color: var(--muted); }
@media (max-width: 1024px) { .cx-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cx-grid { grid-template-columns: 1fr; } }
.cx-list { display: grid; gap: 20px; }
.cx-row { display: grid; grid-template-columns: 280px 1fr 300px; gap: 28px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 20px; }
.cx-row .cx-img { border-radius: 12px; }
.cx-dl { margin-top: 10px; }
.cx-dl > div { display: grid; grid-template-columns: 48px 1fr; gap: 10px; padding: 4px 0; font-size: 15px; }
.cx-dl dt { color: var(--muted); }
.cx-trade { padding: 16px; border-radius: 14px; background: var(--gray); }
.cx-trade-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.cx-trade .link-arrow { margin-top: 10px; }
@media (max-width: 1024px) { .cx-row { grid-template-columns: 1fr; gap: 16px; } }

.sell-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding: 48px; border-radius: 24px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, #fff), color-mix(in srgb, var(--primary) 8%, #fff)); }
.sell-band p:not(.eyebrow) { margin-top: 12px; max-width: 540px; }
.sell-band-btns { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .sell-band { padding: 28px 22px; } }

.trust { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.stats li { padding: 20px; border-radius: 14px; background: #fff; }
.stats b { display: block; font-size: 28px; font-weight: 800; color: var(--primary); }
.stats span { font-size: 14px; color: var(--muted); }
.reviews { display: grid; gap: 12px; }
.reviews li { padding: 22px 24px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.reviews p { font-size: 16px; color: var(--ink); }
.reviews span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; gap: 32px; } }

/* 푸터 */
.ft { background: #0b1220; color: rgba(255,255,255,.6); font-size: 14px; padding: 56px 0 40px; }
.ft-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.ft-name { font-size: 18px; font-weight: 800; color: #fff; }
.ft-call a { display: block; font-size: 30px; font-weight: 800; color: #fff; }
.ft-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ft-links a { color: rgba(255,255,255,.8); }
.ft-links b { color: #fff; }
.ft-legal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; padding: 24px 0; }
.ft-legal > div { display: flex; gap: 10px; }
.ft-legal dt { flex: none; color: rgba(255,255,255,.45); }
.ft-legal dd { color: rgba(255,255,255,.85); }
.copy { font-size: 12px; }
@media (max-width: 900px) { .ft-legal { grid-template-columns: 1fr; } }

/* 모바일 하단 바 */
.m-bar { display: none; }
@media (max-width: 860px) {
  body { padding-bottom: 64px; }
  .m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr; height: 64px; background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
  .m-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 700; color: var(--ink); }
  .m-bar a + a { border-left: 1px solid var(--line); }
  .m-bar .ico { width: 21px; height: 21px; }
  .m-bar b { color: var(--accent); }
  .m-bar-em { background: var(--primary); color: #fff !important; flex-direction: row !important; gap: 6px !important; font-size: 15px !important; }
}

/* 하위 페이지 */
.sub-head { padding: 40px 0 8px; }
.crumb { display: flex; gap: 6px; font-size: 13px; color: var(--muted); }
.crumb li + li::before { content: "›"; margin-right: 6px; }
.sub-title { margin-top: 6px; font-size: clamp(26px, 3vw, 36px); line-height: 1.3; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.sub-lead { margin-top: 6px; color: var(--muted); }

/* 검색 필터 */
.filters { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: var(--gray); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: #fff; justify-self: start; }
.seg button { padding: 8px 18px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; }
button.chip, .chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
button.chip[aria-pressed="true"] { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, #fff); color: var(--primary); }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; }
.chip input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.filters-row { display: grid; grid-template-columns: 1fr 1.3fr 2fr 1fr; gap: 8px; }
.sel select, .search input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search { position: relative; }
.search input { padding-right: 40px; }
.search .ico { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.sel select:focus, .search input:focus { outline: none; border-color: var(--primary); }
@media (max-width: 860px) { .filters-row { grid-template-columns: 1fr 1fr; } .filters-row .search { grid-column: 1 / -1; order: -1; } }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 24px 0 18px; font-size: 15px; }
.result-bar b { color: var(--primary); font-size: 18px; }
.reset { font-size: 14px; color: var(--muted); text-decoration: underline; }
.empty { padding: 56px 20px; text-align: center; border-radius: 18px; background: var(--gray); }
.empty p + p { margin: 4px 0 18px; color: var(--muted); }

/* 매물 상세 */
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.detail > * { min-width: 0; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: var(--gray); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-n { position: absolute; right: 14px; bottom: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.gallery-thumbs button { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; opacity: .55; }
.gallery-thumbs button[aria-current] { opacity: 1; box-shadow: 0 0 0 2px var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-sec { margin-top: 40px; }
.detail-sec .h3 { margin-bottom: 14px; }
.detail-desc { margin-top: 12px; font-size: 16px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.facts li { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; background: var(--gray); }
.facts .ico { width: 26px; height: 26px; color: var(--primary); }
.facts span { font-weight: 700; color: var(--ink); line-height: 1.3; }
.facts small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.info-table { border-top: 2px solid var(--ink); font-size: 15px; }
.info-table th, .info-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.info-table th { width: 130px; background: var(--gray); font-weight: 600; color: var(--muted); white-space: nowrap; }
.info-table b { color: var(--ink); }
@media (max-width: 640px) {
  .info-table, .info-table tbody, .info-table tr { display: block; }
  .info-table tr { display: grid; grid-template-columns: 100px 1fr; }
  .info-table th, .info-table td { display: block; width: auto; }
  .info-table td[colspan] { grid-column: 2; }
}
.calc { padding: 22px; border-radius: 18px; background: var(--gray); display: grid; gap: 14px; }
.calc > label { display: grid; grid-template-columns: 110px 1fr 70px; gap: 12px; align-items: center; font-weight: 600; }
.calc input[type="range"] { accent-color: var(--primary); width: 100%; }
.calc output { font-weight: 800; color: var(--primary); text-align: right; }
.calc select { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.calc-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-result > div { padding: 14px; border-radius: 12px; background: #fff; }
.calc-result dt { font-size: 13px; color: var(--muted); }
.calc-result dd { font-size: 20px; font-weight: 800; color: var(--ink); }
@media (max-width: 640px) { .calc-result { grid-template-columns: 1fr; } .calc > label { grid-template-columns: 80px 1fr 56px; } }
.detail-side { position: sticky; top: calc(var(--hd-h) + 20px); display: grid; gap: 14px; }
.price-box, .agent-box { padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.price-deal { font-size: 14px; font-weight: 800; }
.price-main { margin: 4px 0; font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price-main small { font-size: 16px; color: var(--muted); margin-left: 4px; }
.price-sub { font-size: 14px; color: var(--muted); }
.price-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.agent-box { display: grid; grid-template-columns: 64px 1fr; gap: 10px 14px; align-items: center; }
.agent-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; }
.agent-box b { display: block; font-size: 18px; color: var(--ink); }
.agent-box span { font-size: 13px; color: var(--muted); }
.agent-box .btn { grid-column: 1 / -1; }
.side-note { font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 1024px) { .detail { grid-template-columns: 1fr; } .detail-side { position: static; } }

/* 거래 가이드 */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { padding: 28px; border-radius: 20px; border: 1px solid var(--line); }
.guide-no { font-size: 14px; font-weight: 800; color: var(--accent); }
.guide-card .h3 { margin: 4px 0 14px; }
.checks li { display: flex; gap: 8px; padding: 6px 0; font-size: 15px; }
.checks .ico { color: var(--primary); margin-top: 4px; stroke-width: 2.6; }
@media (max-width: 900px) { .guide-grid { grid-template-columns: 1fr; } }
.fee-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.fee-wrap .h2 { margin-bottom: 18px; }
.fee-wrap > * { min-width: 0; }
.fee-wrap .calc { background: #fff; }
.fee-table { background: #fff; border-radius: 14px; overflow: hidden; font-size: 14px; }
.fee-table th, .fee-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.fee-table thead th { background: var(--ink); color: #fff; }
.fee-table b { color: var(--primary); }
@media (max-width: 900px) { .fee-wrap { grid-template-columns: 1fr; } }

/* 소개 */
.agents { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.agent { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 20px; border-radius: 20px; border: 1px solid var(--line); }
.agent img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 14px; }
.agent-role { font-size: 13px; font-weight: 700; color: var(--primary); }
.agent-name { display: block; font-size: 24px; color: var(--ink); }
.agent-area { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.agent .btn { margin-top: 12px; }
@media (max-width: 900px) { .agents { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .agent { grid-template-columns: 1fr; } .agent img { max-width: 200px; } }
.office { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.map { border-radius: 20px; overflow: hidden; background: #e5e7eb; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
.office-dl { margin: 18px 0 24px; }
.office-dl > div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.office-dl dt { color: var(--muted); }
.office-dl dd { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .office { grid-template-columns: 1fr; } .map iframe { height: 280px; } }

/* 폼 */
.form-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.form-wrap > * { min-width: 0; }
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, .field legend { font-size: 14px; font-weight: 700; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 8px; }
.field em { color: #e11d48; font-style: normal; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; }
.field input, .field select { height: 50px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent); }
.is-invalid { border-color: #e11d48 !important; }
.chips.is-invalid { outline: 2px solid #e11d48; outline-offset: 4px; border-radius: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hint { font-size: 14px; color: var(--primary); font-weight: 600; margin-top: -8px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); }
.agree a { color: var(--primary); text-decoration: underline; }
.form-msg { min-height: 1em; font-size: 14px; color: #e11d48; }
.form-msg.is-ok { color: var(--primary); }
.steps-box { position: sticky; top: calc(var(--hd-h) + 20px); padding: 26px; border-radius: 20px; background: var(--gray); }
.steps { counter-reset: s; margin-top: 6px; }
.steps li { position: relative; padding: 0 0 18px 40px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 800; }
.steps li::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps b { display: block; color: var(--ink); }
.steps span { font-size: 14px; color: var(--muted); }
.steps-call { margin-top: 10px; font-size: 14px; color: var(--muted); }
.steps-call a { display: block; font-size: 24px; font-weight: 800; color: var(--ink); }
.contact-big { display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px; margin-top: 10px; border-radius: 14px; background: var(--primary); color: #fff; font-size: 20px; font-weight: 800; }
.contact-kakao { background: #fee500; color: #3c1e1e; font-size: 17px; }
@media (max-width: 960px) { .form-wrap { grid-template-columns: 1fr; } .steps-box { position: static; } }

.policy h2 { font-size: 18px; color: var(--ink); margin: 32px 0 10px; }
.policy-date { margin-top: 36px; color: var(--muted); }
