/* ==========================================================================
   KB Realty — 디자인 토큰
   브랜드: 로고의 딥 네이비 + 골드. 고급 부동산 톤(여백 넉넉, 사진 중심).
   ========================================================================== */
:root {
  --navy: #16323d;
  --navy-2: #1f4352;
  --navy-3: #0f2530;
  --ink: #15222b;
  --text: #3a4852;
  --muted: #6c7a84;
  --line: #e6e1d8;
  --line-2: #d6d0c4;
  --bg: #ffffff;
  --tint: #f7f4ee;
  --gold: #b08d2e;
  --gold-2: #c8a443;
  --gold-ink: #85691c;
  --ok: #1f7a4d;
  --err: #b42318;
  --kakao: #fee500;
  --r: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 37, 48, .06), 0 8px 24px rgba(16, 37, 48, .08);
  --shadow-lg: 0 24px 60px rgba(16, 37, 48, .18);
  --hd-h: 76px;
  --wrap: 1240px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.ico { flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--text { max-width: 820px; }
.wrap--wide { max-width: 1100px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin: 0 0 10px; }
.eyebrow--light { color: var(--gold-2); }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-ink); }
.btn--line { border-color: var(--line-2); background: #fff; color: var(--ink); }
.btn--line:hover { border-color: var(--navy); }
.btn--kakao { background: var(--kakao); color: #191600; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.cbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.cbtns--stack { flex-direction: column; }
.cbtns--stack .btn { width: 100%; }
.cbtns--light .btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cbtns--light .btn--line:hover { border-color: #fff; }
.cbtns--side { margin-top: 12px; }
.cbtns--side .btn { flex: 1 1 100%; }

/* ---------- 헤더 ---------- */
.hd { position: sticky; top: 0; z-index: 50; height: var(--hd-h); background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s, color .25s; }
.hd__in { display: flex; align-items: center; gap: 28px; height: 100%; }
.hd__logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); flex: none; }
.hd__logo-img { max-height: 46px; width: auto; }
.logo-text { font-size: 19px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.logo-text b { color: var(--gold); font-weight: 800; }
.hd__logo--light { color: #fff; }
.nav { flex: 1; }
.nav .menu { list-style: none; display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; }
.nav .menu > li > a { display: block; padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 15.5px; color: var(--ink); transition: color .2s, background .2s; }
.nav .menu > li > a:hover, .nav .menu > .current-menu-item > a, .nav .menu > .current-menu-ancestor > a { color: var(--gold-ink); }
.nav .sub-menu { display: none; }
.nav__foot { display: none; }
.hd__right { display: flex; align-items: center; gap: 14px; flex: none; }
.hd__tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--navy); white-space: nowrap; }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; font-size: 12.5px; font-weight: 700; }
.lang a { padding: 5px 10px; color: var(--muted); }
.lang a[aria-current] { background: var(--navy); color: #fff; }
.hd__burger { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.hd__burger .i-close { display: none; }
.nav-open .hd__burger .i-open { display: none; }
.nav-open .hd__burger .i-close { display: block; }

/* 메인: 히어로 위에 투명 헤더 → 스크롤하면 흰 배경 */
.home .hd--over { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; }
.home .hd--over:not(.is-solid) .hd__logo, .home .hd--over:not(.is-solid) .hd__tel, .home .hd--over:not(.is-solid) .nav .menu > li > a, .home .hd--over:not(.is-solid) .hd__burger { color: #fff; }
.home .hd--over:not(.is-solid) .nav .menu > li > a:hover { color: var(--gold-2); }
.home .hd--over:not(.is-solid) .lang { border-color: rgba(255,255,255,.4); }
.home .hd--over:not(.is-solid) .lang a { color: rgba(255,255,255,.8); }
.home .hd--over:not(.is-solid) .lang a[aria-current] { background: #fff; color: var(--navy); }
.home .hd--over.is-solid { background: rgba(255,255,255,.97); border-color: var(--line); backdrop-filter: saturate(1.4) blur(10px); }
.admin-bar .hd { top: 32px; }

@media (max-width: 1180px) { .hd__tel span { display: none; } .nav .menu > li > a { padding: 10px 10px; font-size: 15px; } }
@media (max-width: 1024px) {
  :root { --hd-h: 64px; }
  .hd__tel, .hd__cta { display: none; }
  .hd__burger { display: inline-flex; }
  .nav { position: fixed; inset: var(--hd-h) 0 0 0; background: #fff; padding: 12px 20px 28px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; display: flex; flex-direction: column; }
  .admin-bar .nav { top: calc(var(--hd-h) + 46px); }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav .menu { flex-direction: column; gap: 0; }
  .nav .menu > li > a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink) !important; }
  .nav__foot { display: block; margin-top: auto; padding-top: 24px; }
  .nav-open { overflow: hidden; }
  .nav-open .hd--over { background: #fff !important; }
  .nav-open .hd--over .hd__logo, .nav-open .hd--over .hd__burger { color: var(--navy) !important; }
}
@media (max-width: 782px) { .admin-bar .hd { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hd { top: 0; } .admin-bar .hd--over { top: 46px; } }

/* ---------- 히어로 ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; background: var(--navy-3); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,25,33,.55) 0%, rgba(10,25,33,.25) 35%, rgba(10,25,33,.82) 100%); }
.hero__in { position: relative; padding-top: calc(var(--hd-h) + 60px); padding-bottom: 64px; }
.hero__title { color: #fff; font-size: clamp(36px, 5.6vw, 68px); font-weight: 750; line-height: 1.16; letter-spacing: -.035em; margin-bottom: 18px; max-width: 14em; }
.hero__sub { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.86); max-width: 38em; margin-bottom: 34px; }

/* ---------- 검색 ---------- */
.search { background: #fff; color: var(--text); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.search__tabs { display: flex; gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.search__tabs label { cursor: pointer; flex: none; }
.search__tabs input { position: absolute; opacity: 0; pointer-events: none; }
.search__tabs span { display: block; padding: 12px 18px 13px; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.search__tabs input:checked + span { color: var(--navy); border-color: var(--gold); }
.search__tabs input:focus-visible + span { outline: 3px solid var(--gold-2); border-radius: 6px; }
.search__fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 18px; }
.search .fld { flex: 1 1 160px; }
.search .fld--q { flex: 2 1 220px; }
.search .fld--price { flex: 2 1 240px; }
.search__go { flex: 0 0 auto; min-height: 50px; padding: 0 26px; border-radius: var(--r-sm); }
.search--hero { max-width: 980px; }
@media (max-width: 640px) {
  .search__fields { padding: 14px; }
  .search .fld { flex: 1 1 calc(50% - 6px); }
  .search .fld--q, .search .fld--price { flex-basis: 100%; }
  .search__go { flex-basis: 100%; }
  .search--hero .fld:first-child { flex-basis: 100%; }
}

/* ---------- 폼 공통 ---------- */
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span:first-child { font-size: 13px; font-weight: 700; color: var(--ink); }
.fld > span i { color: var(--err); font-style: normal; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; font-size: 15.5px; transition: border-color .2s, box-shadow .2s; }
.fld textarea { min-height: 0; resize: vertical; line-height: 1.55; }
.fld select { appearance: none; padding-right: 38px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c7a84' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,50,61,.12); }
.fld__pair { display: flex; align-items: center; gap: 6px; }
.fld__pair i { color: var(--muted); font-style: normal; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 14px 0 16px; cursor: pointer; }
.chk input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; }
.inq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inq__wide { grid-column: 1 / -1; }
.inq--compact .inq__grid { grid-template-columns: 1fr; gap: 10px; }
.inq--compact .fld input, .inq--compact .fld select, .inq--compact .fld textarea { min-height: 46px; }
@media (max-width: 640px) { .inq__grid { grid-template-columns: 1fr; } }
.notice { display: flex; gap: 8px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; margin-bottom: 14px; }
.notice--ok { background: #e8f5ee; color: var(--ok); }
.notice--err { background: #fdecea; color: var(--err); }

/* ---------- 신뢰 지표 ---------- */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: 12px; padding: 26px 20px; font-weight: 600; color: var(--ink); font-size: 15px; }
.trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__item b { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.trust__item .ico { color: var(--gold); }
@media (max-width: 900px) { .trust__in { grid-template-columns: 1fr 1fr; } .trust__item:nth-child(3) { border-left: 0; } .trust__item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 480px) { .trust__item { padding: 18px 8px; font-size: 13.5px; gap: 8px; } .trust__item b { font-size: 22px; } }

/* ---------- 섹션 ---------- */
.sec { padding: 96px 0; }
.sec--flush { padding-top: 48px; }
.sec--tint { background: var(--tint); }
.sec--navy { background: var(--navy); color: rgba(255,255,255,.8); }
.sec--navy h2, .sec--navy h3 { color: #fff; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.sec__head h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 0; }
.sec__head--center { justify-content: center; text-align: center; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.link-more:hover { color: var(--gold-ink); }
@media (max-width: 640px) { .sec { padding: 64px 0; } .sec--flush { padding-top: 32px; } .sec__head { flex-direction: column; align-items: flex-start; margin-bottom: 24px; } .sec__head--center { align-items: center; } }

/* ---------- 카드 ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1024px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s, border-color .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tint); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--line-2); }
.card__tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.card__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(10,25,33,.62); color: #fff; font-size: 12.5px; font-weight: 600; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card__meta { font-size: 13px; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.card__title { font-size: 17px; line-height: 1.45; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* 카드 전체 클릭 */
.card__price { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.card__price span { display: flex; align-items: baseline; gap: 8px; }
.card__price em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--gold-ink); min-width: 2.6em; }
.card__price b { font-size: 20px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.card__price small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.card__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text); }
.card__facts li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.card__facts .ico { color: var(--muted); }
.card__excerpt { font-size: 14.5px; color: var(--muted); margin: 0; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 700; background: #fff; color: var(--navy); line-height: 1.4; }
.tag--deal { background: var(--navy); color: #fff; }
.tag--status { background: var(--gold); color: #fff; }
.prop__tags .tag:not(.tag--deal):not(.tag--status) { border: 1px solid var(--line-2); }

/* ---------- 지역 ---------- */
.areas { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 16px; }
.area { position: relative; border-radius: var(--r); overflow: hidden; background: var(--navy-2); color: #fff; }
.area--lg { grid-row: span 2; }
.area img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.area:hover img { transform: scale(1.05); }
.area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,25,33,.78)); }
.area__txt { position: absolute; left: 20px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; }
.area__txt b { font-size: 22px; letter-spacing: -.02em; }
.area--lg .area__txt b { font-size: 30px; }
.area__txt small { font-size: 14px; color: rgba(255,255,255,.85); }
@media (max-width: 800px) { .areas { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 170px 170px; gap: 12px; } .area--lg { grid-column: span 2; grid-row: auto; } }

/* ---------- 서비스 ---------- */
.svc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc__item { display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; transition: border-color .25s, box-shadow .25s, transform .25s; }
.svc__item:hover { border-color: var(--gold-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.svc__ico { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 14px; background: var(--tint); color: var(--gold-ink); margin-bottom: 20px; }
.svc__item h3 { font-size: 20px; }
.svc__item p { font-size: 15px; color: var(--muted); flex: 1; }
.svc__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; color: var(--navy); }
@media (max-width: 1024px) { .svc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc { grid-template-columns: 1fr; } .svc__item { padding: 24px 22px; } }

/* ---------- 진행 단계 ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { padding: 28px 26px 8px 0; border-top: 1px solid rgba(255,255,255,.18); position: relative; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--gold-2); }
.steps span { display: block; font-size: 14px; font-weight: 800; letter-spacing: .1em; color: var(--gold-2); margin-bottom: 12px; }
.steps h3 { font-size: 21px; }
.steps p { font-size: 15px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA / 푸터 ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-3), var(--navy-2)); color: #fff; }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 2.6vw, 32px); margin: 0; }
.cta-band__act { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 900px) { .cta-band__in { flex-direction: column; align-items: flex-start; } .cta-band__act { justify-content: flex-start; } }
.ft { background: var(--navy-3); color: rgba(255,255,255,.66); font-size: 14.5px; padding: 72px 0 0; }
.ft__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.ft__brand p { margin: 18px 0; max-width: 26em; }
.ft__h { color: #fff; font-size: 15px; margin-bottom: 16px; }
.ft__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ft__links a:hover { color: #fff; }
.ft__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ft__contact li { display: flex; gap: 10px; align-items: flex-start; }
.ft__contact .ico { color: var(--gold-2); margin-top: 2px; }
.ft__contact a:hover { color: #fff; }
.ft__contact--dark { color: var(--text); font-size: 15.5px; }
.ft__contact--dark .ico { color: var(--gold); }
.ft__contact--dark a { font-weight: 700; color: var(--navy); }
.ft__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }
.ft__bottom p { margin: 0; }
.socials { display: flex; gap: 10px; }
.socials a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.socials a:hover { border-color: var(--gold-2); color: var(--gold-2); }
@media (max-width: 900px) { .ft__grid { grid-template-columns: 1fr 1fr; } .ft__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .ft__grid { grid-template-columns: 1fr; gap: 32px; } }

/* 모바일 하단 고정 연락 바 */
.mbar { display: none; }
@media (max-width: 768px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(16,37,48,.08); }
  .mbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 9px; font-size: 12px; font-weight: 700; color: var(--navy); }
  .mbar__main { background: var(--navy); color: #fff !important; }
  body { padding-bottom: 64px; }
}

/* ---------- 서브 페이지 헤드 ---------- */
.page-head { background: var(--navy); color: rgba(255,255,255,.78); padding: 56px 0 52px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border: 2px solid rgba(200,164,67,.25); transform: rotate(45deg); }
.page-head h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px; position: relative; z-index: 1; }
.page-head__sub { max-width: 44em; margin: 0; font-size: 16.5px; position: relative; z-index: 1; }
.page-head--about { padding: 80px 0 76px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; margin-bottom: 18px; color: rgba(255,255,255,.6); position: relative; z-index: 1; }
.crumbs a:hover { color: #fff; }
.crumbs--dark { color: var(--muted); margin: 22px 0 18px; }
.crumbs--dark a:hover { color: var(--navy); }

/* ---------- 매물 목록 ---------- */
.listing { padding-top: 28px; padding-bottom: 96px; }
.filters { margin-top: -56px; position: relative; z-index: 2; }
.filters__toggle { display: none; }
.filters .search { box-shadow: var(--shadow); }
.listing__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 32px 0 20px; }
.listing__count { margin: 0; font-size: 15px; }
.listing__count b { color: var(--navy); font-size: 18px; }
.sort select { min-height: 42px; padding: 8px 36px 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c7a84' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; font-size: 14.5px; font-weight: 600; cursor: pointer; }
@media (max-width: 768px) {
  .filters { margin-top: -28px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); }
  .filters__toggle { display: flex; align-items: center; gap: 8px; padding: 16px 18px; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
  .filters__toggle::-webkit-details-marker { display: none; }
  .filters[open] .filters__toggle { border-bottom: 1px solid var(--line); }
  .filters .search { box-shadow: none; }
}
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 52px; }
.pager .page-numbers { display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; color: var(--ink); background: #fff; }
.pager .page-numbers:hover { border-color: var(--navy); }
.pager .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .dots { border: 0; background: none; }
.empty { text-align: center; padding: 72px 20px; color: var(--muted); }
.empty .ico { color: var(--line-2); margin: 0 auto 16px; }
.empty h2 { font-size: 22px; }
.empty .btn { margin: 4px; }

/* ---------- 매물 상세 ---------- */
.gal { position: relative; display: grid; gap: 8px; border-radius: var(--r); overflow: hidden; height: min(62vh, 560px); grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gal__cell { position: relative; display: block; overflow: hidden; background: var(--tint); }
.gal__cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.gal__cell:hover img { transform: scale(1.03); filter: brightness(.94); }
.gal__cell:first-child { grid-row: span 2; }
.gal--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gal--2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.gal--2 .gal__cell:first-child { grid-row: auto; }
.gal--3 { grid-template-columns: 2fr 1fr; }
.gal--4 { grid-template-columns: 2fr 1fr 1fr; }
.gal--4 .gal__cell:nth-child(4) { grid-column: span 2; }
.gal__all { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); cursor: pointer; }
.gal__all:hover { background: var(--navy); color: #fff; }
@media (max-width: 768px) {
  .gal { height: auto; grid-template-columns: 1fr !important; grid-template-rows: auto !important; margin: 0 -16px; border-radius: 0; }
  .gal__cell { display: none; aspect-ratio: 4 / 3; }
  .gal__cell:first-child { display: block; grid-row: auto; }
}
.prop__layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; padding: 36px 0 88px; align-items: start; }
@media (max-width: 1024px) { .prop__layout { grid-template-columns: 1fr; gap: 32px; } }
.prop__head h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.35; margin: 12px 0 10px; }
.prop__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.prop__loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; margin: 0; }
.specs { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 28px 0 0; padding: 0; }
.specs li { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-sm); background: var(--tint); font-weight: 700; color: var(--ink); font-size: 15px; }
.specs .ico { color: var(--gold-ink); }
.prop__sec { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
.prop__sec > h2 { font-size: 22px; margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14.5px; }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.facts dd small { font-weight: 600; color: var(--muted); }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.chips .ico { color: var(--ok); }
.prose--clamp.is-clamped { max-height: 520px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.clamp-btn { margin-top: 14px; }
.ratio { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map { border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 8; background: var(--tint) repeating-linear-gradient(45deg, transparent 0 22px, rgba(22,50,61,.035) 22px 23px); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__load { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; cursor: pointer; color: var(--navy); font-weight: 700; font-size: 16px; padding: 16px; text-align: center; }
.map__load small { color: var(--muted); font-weight: 500; font-size: 13.5px; }
.map__load .ico { color: var(--gold); }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }
.prop__side { position: sticky; top: calc(var(--hd-h) + 20px); }
.side-card { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: #fff; box-shadow: var(--shadow); }
.side-card__price { padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.side-card__price p { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; }
.side-card__price em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--gold-ink); }
.side-card__price b { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.side-card__price b small { font-size: 15px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.side-card__price > small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.side-card__h { font-size: 17px; margin-bottom: 14px; }
@media (max-width: 1024px) { .prop__side { position: static; } }

/* ---------- 본문(블로그·매물 설명) ---------- */
.prose { font-size: 17px; line-height: 1.8; color: var(--text); }
.prose > * { margin-top: 0; margin-bottom: 1.15em; }
.prose h1, .prose h2 { font-size: 1.45em; margin-top: 1.8em; }
.prose h3 { font-size: 1.2em; margin-top: 1.6em; }
.prose h1:first-child, .prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold-2); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold); }
.prose img { border-radius: var(--r-sm); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--gold); color: var(--ink); font-weight: 600; }
.prose blockquote cite { display: block; font-size: 14px; color: var(--muted); font-weight: 500; font-style: normal; margin-top: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; white-space: nowrap; }
.prose th { background: var(--tint); }
.prose pre { white-space: pre-wrap; background: var(--tint); padding: 16px; border-radius: var(--r-sm); font-family: inherit; font-size: 15px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose .alignwide, .prose .alignfull { max-width: 100%; }

/* 블로그 상세 */
.post__head { padding: 8px 0 32px; }
.post__head h1 { font-size: clamp(28px, 3.6vw, 42px); }
.post__meta { color: var(--muted); font-size: 14.5px; }
.post__hero { margin-bottom: 44px; }
.post__hero img { width: 100%; border-radius: var(--r); }
.post__foot { padding: 32px 0 96px; }

/* 회사 소개 */
.about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: sticky; top: calc(var(--hd-h) + 20px); }
.pillars li { display: flex; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--tint); }
.pillars .ico { color: var(--gold-ink); }
.pillars h3 { font-size: 17px; margin-bottom: 4px; }
.pillars p { margin: 0; font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 36px; } .pillars { position: static; } }

/* 상담 문의 */
.contact { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; padding-bottom: 96px; }
.contact__form { background: #fff; }
.contact__info { padding: 32px; border-radius: var(--r); background: var(--tint); align-self: start; }
.contact__info h2 { font-size: 20px; margin-bottom: 20px; }
.contact__note { display: flex; gap: 8px; align-items: center; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.contact__note .ico { color: var(--gold); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 라이트박스 ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8,18,24,.96); display: flex; flex-direction: column; color: #fff; }
.lb[hidden] { display: none; }
.lb__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-weight: 600; font-size: 14.5px; }
.lb__stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; padding: 0 64px 24px; touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lb button { border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.2); }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: 10px; }
.lb__next { right: 10px; }
@media (max-width: 640px) { .lb__stage { padding: 0 0 24px; } .lb__prev, .lb__next { top: auto; bottom: 28px; transform: none; } .lb__prev { left: 20px; } .lb__next { right: 20px; } }
