/* 사무소 매물사이트 (우잘부 시안 B안 신뢰 네이비) — 모바일 우선, 1024px 이상은 가운데 정렬 넓은 화면 */
:root {
	--s-brand: #1F4E8C;
	--s-brand-dark: #163A69;
	--s-tint: #E8EFF8;
	--s-best: #F2B544;
	--s-bg: #F6F7F9;
	--s-surface: #FFFFFF;
	--s-text: #17212B;
	--s-text-2: #3D4752;
	--s-muted: #5B6673;
	--s-line: #E3E7EC;
	--s-line-2: #D5DBE1;
	--s-ph: #DCE3E8;
	--s-ink: #17212B;
	--s-radius: 14px;
	--s-tabbar-h: 68px;
	--s-gutter: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.site { margin: 0; background: var(--s-bg); color: var(--s-text); font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif; font-size: 15px; line-height: 1.5; padding-bottom: calc(var(--s-tabbar-h) + env(safe-area-inset-bottom)); }
.site a { color: var(--s-brand); }
.site a:hover { color: var(--s-brand-dark); }
.site img { max-width: 100%; display: block; }
.site-shell { max-width: 1080px; margin: 0 auto; }

.site-preview-bar { background: var(--s-best); color: var(--s-ink); font-size: 12px; font-weight: 700; text-align: center; padding: 6px 12px; }

/* 메인 헤더 */
.site-hero { background: var(--s-brand); color: #fff; padding: 20px var(--s-gutter) 28px; display: flex; flex-direction: column; gap: 16px; }
.site-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.site-hero-brand { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.site-hero-name { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.3; word-break: keep-all; }
.site-hero-sub { font-size: 12px; opacity: .9; }
.site-hero-call { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 22px; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; color: #fff !important; }
.site-hero-call svg { width: 20px; height: 20px; }
.site-hero-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.35; letter-spacing: -0.5px; }
.site-hero-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 4px 4px 4px 14px; }
.site-hero-search svg { width: 20px; height: 20px; color: var(--s-muted); flex: 0 0 20px; }
.site-hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; height: 44px; font: inherit; font-size: 16px; color: var(--s-text); background: transparent; }
.site-hero-search button { height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--s-brand-dark); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* 섹션 공통 */
.site-section { padding: 24px var(--s-gutter) 0; }
.site-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.site-h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -0.3px; }
.site-more { font-size: 14px; white-space: nowrap; }
.site-help { margin: 10px 0 0; font-size: 13px; color: var(--s-muted); }
.site-pad { padding: 0 var(--s-gutter); }
.site-empty { margin: 0; padding: 20px; background: var(--s-surface); border: 1px dashed var(--s-line-2); border-radius: var(--s-radius); color: var(--s-muted); font-size: 14px; text-align: center; }
.site-kind { margin: 12px 0 0; font-size: 13px; color: var(--s-muted); }
.site-kind strong { color: var(--s-brand-dark); }

/* 거래유형 4버튼 */
.site-trade-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.site-trade-btn { min-height: 60px; border: 1px solid var(--s-line-2); border-radius: 12px; background: var(--s-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--s-text) !important; font-weight: 700; }
.site-trade-btn small { font-size: 11px; font-weight: 500; color: var(--s-muted); }
.site-trade-btn:hover, .site-trade-btn:focus-visible { border: 2px solid var(--s-brand); background: var(--s-tint); color: var(--s-brand-dark) !important; }

/* 가로 스크롤 카드 */
.site-hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--s-gutter) * -1); padding: 0 var(--s-gutter) 4px; scrollbar-width: none; }
.site-hscroll::-webkit-scrollbar { display: none; }
.site-hscroll > * { scroll-snap-align: start; flex: 0 0 74%; max-width: 280px; }

/* 매물 카드 */
.site-card { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius); overflow: hidden; }
.site-card-link { display: flex; flex-direction: column; color: inherit !important; text-decoration: none; height: 100%; }
.site-card-photo { position: relative; aspect-ratio: 16 / 10; background: var(--s-ph); }
.site-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.site-card-nophoto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #9AA4AE; }
.site-badge-best { position: absolute; top: 10px; left: 10px; background: var(--s-best); color: var(--s-ink); font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.site-badge-best.is-static { position: static; display: inline-block; align-self: flex-start; }
.site-badge-trade { position: absolute; top: 10px; left: 10px; background: var(--s-tint); color: var(--s-brand-dark); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.site-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.site-card-meta { font-size: 12px; color: var(--s-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-card-price { font-size: 17px; font-weight: 800; color: var(--s-text); letter-spacing: -0.3px; }

/* 사진이 없어 단지 배치도·평면도를 쓸 때: 잘리지 않게 전체를 흰 바탕에 */
.is-drawing { background: #fff; }
.is-drawing img { object-fit: contain !important; padding: 6px; }
.site-photo-kind { position: absolute; right: 6px; bottom: 6px; background: rgba(23,33,43,.72); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; }

/* 쇼츠 */
.site-hscroll-shorts > * { flex: 0 0 42%; max-width: 190px; }
.site-short { border: 0; padding: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.site-short-thumb { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #2B3240; }
.site-short-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.site-short-tag { position: absolute; top: 8px; left: 8px; background: #E62117; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.site-short-play { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 22px; background: rgba(255,255,255,.9); color: var(--s-ink); display: flex; align-items: center; justify-content: center; }
.site-short-play svg { width: 20px; height: 20px; margin-left: 2px; }
.site-short-price { font-size: 14px; font-weight: 800; }
.site-video { border: 0; padding: 0; background: #000; width: min(400px, 92vw); border-radius: 14px; overflow: visible; }
.site-video::backdrop { background: rgba(0,0,0,.75); }
.site-video-frame { aspect-ratio: 9 / 16; max-height: 82vh; }
.site-video-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 14px; display: block; }
.site-video-close { position: absolute; top: -48px; right: 0; width: 44px; height: 44px; border: 0; border-radius: 22px; background: rgba(255,255,255,.2); color: #fff; font-size: 26px; cursor: pointer; }

/* 단지로 찾기 */
.site-complex-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.site-complex { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--s-text) !important; display: flex; flex-direction: column; gap: 2px; min-height: 72px; }
.site-complex strong { font-size: 14px; line-height: 1.35; word-break: keep-all; }
.site-complex span { font-size: 12px; color: var(--s-muted); }
.site-complex:hover { border-color: var(--s-brand); }

/* 문의 */
.site-cta { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 18px; }
.site-cta strong { font-size: 16px; }
.site-cta p { margin: 6px 0 14px; font-size: 13px; color: var(--s-muted); }
.site-cta-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.site-btn { height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; padding: 0 18px; }
.site-btn-primary { background: var(--s-brand); color: #fff !important; }
.site-btn-primary:hover { background: var(--s-brand-dark); }
.site-btn-line { border: 1px solid var(--s-line-2); background: var(--s-surface); color: var(--s-text) !important; }

/* 1번매물 */
.site-best-hero { background: var(--s-ink); color: #fff; padding: 20px var(--s-gutter) 22px; display: flex; flex-direction: column; gap: 8px; }
.site-best-hero h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.site-best-hero p { margin: 0; font-size: 13px; opacity: .85; }
.site-chips { display: flex; gap: 8px; overflow-x: auto; padding: 14px var(--s-gutter); background: var(--s-surface); border-bottom: 1px solid var(--s-line); scrollbar-width: none; position: sticky; top: 0; z-index: 5; }
.site-chips::-webkit-scrollbar { display: none; }
.site-chip { flex: 0 0 auto; height: 38px; padding: 0 14px; border: 1px solid var(--s-line-2); border-radius: 19px; display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--s-text-2) !important; text-decoration: none; background: var(--s-surface); }
.site-chip small { font-size: 11px; color: var(--s-muted); }
.site-chip.is-active { background: var(--s-ink); border-color: var(--s-ink); color: #fff !important; font-weight: 700; }
.site-chip.is-active small { color: rgba(255,255,255,.75); }
.site-chip.is-filter { background: var(--s-tint); border-color: var(--s-tint); color: var(--s-brand-dark) !important; font-weight: 700; }
.site-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px var(--s-gutter) 0; }
.site-grid .site-card-price { font-size: 16px; }

/* 서브 헤더·준비 중 */
.site-subhead { background: var(--s-surface); border-bottom: 1px solid var(--s-line); padding: 6px 8px; display: flex; align-items: center; gap: 4px; font-size: 17px; }
.site-back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--s-text) !important; }
.site-back svg { width: 22px; height: 22px; }
.site-soon { margin: 32px var(--s-gutter); padding: 28px 20px; background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius); text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.site-soon p { margin: 0 0 8px; color: var(--s-muted); font-size: 14px; }

/* 검색 (시안 Search) */
.site-search-head { background: var(--s-surface); border-bottom: 1px solid var(--s-line); padding: 8px var(--s-gutter) 12px; display: flex; flex-direction: column; gap: 12px; }
.site-search-title { display: flex; align-items: center; gap: 4px; margin-left: -12px; }
.site-search-title h1 { margin: 0; font-size: 17px; font-weight: 800; }
.site-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #EEF1F4; border-radius: 10px; }
.site-seg-item { height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--s-text-2) !important; text-decoration: none; }
.site-seg-item.is-active { background: var(--s-surface); color: var(--s-brand-dark) !important; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.site-danji-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.site-danji-chip { min-height: 34px; display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; border-radius: 17px; background: var(--s-tint); color: var(--s-brand-dark) !important; font-size: 13px; font-weight: 500; text-decoration: none; }
.site-danji-add { min-height: 34px; padding: 0 12px; border: 1px dashed #9AA4AE; border-radius: 17px; background: var(--s-surface); color: var(--s-text-2); font: inherit; font-size: 13px; cursor: pointer; }
.site-filter-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--s-gutter) * -1); padding: 0 var(--s-gutter); }
.site-filter-row::-webkit-scrollbar { display: none; }
.site-filter { flex: 0 0 auto; height: 36px; padding: 0 12px; border: 1px solid var(--s-line-2); border-radius: 18px; background: var(--s-surface); font: inherit; font-size: 13px; color: var(--s-text) !important; white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.site-filter.is-on { border-color: var(--s-brand); background: var(--s-tint); color: var(--s-brand-dark) !important; font-weight: 700; }
.site-filter-reset { flex: 0 0 auto; height: 36px; padding: 0 8px; display: inline-flex; align-items: center; font-size: 13px; color: var(--s-muted) !important; }
.site-result-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px var(--s-gutter); font-size: 14px; }
.site-result-bar small { font-size: 12px; color: var(--s-muted); margin-left: 4px; }
.site-sort { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--s-text-2); }
.site-sort select { height: 36px; border: 1px solid var(--s-line-2); border-radius: 8px; background: var(--s-surface); font: inherit; font-size: 13px; color: var(--s-text); padding: 0 8px; }
.site-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 0 var(--s-gutter); }
.site-row { background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius); padding: 12px; display: flex; gap: 12px; }
.site-row-photo { position: relative; flex: 0 0 92px; height: 92px; border-radius: 10px; overflow: hidden; background: var(--s-ph); }
.site-row-photo img { width: 100%; height: 100%; object-fit: cover; }
.site-row-photo .site-card-nophoto { font-size: 18px; }
.site-row-best { position: absolute; top: 6px; left: 6px; background: var(--s-best); color: var(--s-ink); font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 5px; }
.site-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.site-row-price { font-size: 17px; font-weight: 800; color: var(--s-text) !important; text-decoration: none; letter-spacing: -0.3px; }
.site-row-actions { display: flex; justify-content: flex-end; margin-top: 2px; }
.site-compare-btn { height: 34px; min-width: 96px; padding: 0 10px; border: 1px solid var(--s-line-2); border-radius: 8px; background: var(--s-surface); color: var(--s-text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.site-compare-btn[aria-pressed="true"] { background: var(--s-brand); border-color: var(--s-brand); color: #fff; }
.site-more-wrap { margin-top: 14px; }
.site-btn-block { display: flex; width: 100%; }
.site-mx { margin: 0 var(--s-gutter); }

/* 비교함 떠 있는 바·안내 */
.site-compare-bar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--s-tabbar-h) + env(safe-area-inset-bottom) + 12px); z-index: 19; background: var(--s-ink); color: #fff; border-radius: 14px; padding: 10px 10px 10px 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 6px 18px rgba(0,0,0,.2); font-size: 14px; }
.site-compare-bar[hidden], .site-toast[hidden] { display: none; }
.site-compare-bar a { height: 40px; padding: 0 16px; border-radius: 10px; background: #fff; color: var(--s-ink) !important; font-weight: 700; display: flex; align-items: center; text-decoration: none; }
body.has-compare-bar .site-shell { padding-bottom: 72px; }
.site-toast { position: fixed; left: 50%; bottom: calc(var(--s-tabbar-h) + 84px); transform: translateX(-50%); z-index: 30; background: rgba(23,33,43,.92); color: #fff; font-size: 13px; padding: 10px 16px; border-radius: 10px; max-width: calc(100% - 32px); text-align: center; }

/* 필터 시트 (모바일: 아래에서 올라옴, PC: 가운데) */
.site-sheet { border: 0; padding: 0; width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; background: var(--s-surface); color: var(--s-text); max-height: 82vh; display: none; flex-direction: column; }
.site-sheet[open] { display: flex; }
.site-sheet::backdrop { background: rgba(23,33,43,.5); }
.site-sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 8px 8px 20px; font-size: 17px; }
.site-sheet-x { width: 44px; height: 44px; border: 0; background: none; font-size: 26px; color: var(--s-muted); cursor: pointer; }
.site-sheet-body { padding: 4px 20px 12px; overflow-y: auto; }
.site-sheet-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--s-line); }
.site-sheet-foot .site-btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.site-sheet-foot .site-btn-line { border: 1px solid var(--s-line-2); }
.site-sheet-find { width: 100%; height: 44px; border: 1px solid var(--s-line-2); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; margin-bottom: 8px; }
.site-sheet-label { margin: 8px 0 8px; font-size: 14px; font-weight: 700; }
.site-check-list { display: flex; flex-direction: column; }
.site-check { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--s-line); font-size: 15px; cursor: pointer; }
.site-check input { width: 20px; height: 20px; accent-color: var(--s-brand); flex: 0 0 20px; }
.site-check span { flex: 1; min-width: 0; }
.site-check small { color: var(--s-muted); font-size: 12px; }
.site-check[hidden] { display: none; }
.site-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.site-pill { position: relative; cursor: pointer; }
.site-pill input { position: absolute; opacity: 0; inset: 0; }
.site-pill span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid var(--s-line-2); border-radius: 20px; font-size: 14px; }
.site-pill input:checked + span { background: var(--s-tint); border-color: var(--s-brand); color: var(--s-brand-dark); font-weight: 700; }
.site-pill input:focus-visible + span { outline: 2px solid var(--s-brand); outline-offset: 2px; }
.site-range { display: flex; align-items: flex-end; gap: 8px; }
.site-range label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--s-text-2); }
.site-range select { height: 44px; border: 1px solid var(--s-line-2); border-radius: 10px; background: #fff; font: inherit; font-size: 15px; padding: 0 10px; }
.site-range > span { padding-bottom: 10px; }

/* 상세 (시안 Detail) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.site-has-actionbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.site-gallery { position: relative; background: var(--s-ph); }
.site-gallery-track { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: min(75vw, 70vh); }
.site-gallery-track::-webkit-scrollbar { display: none; }
.site-gallery-item { flex: 0 0 100%; margin: 0; scroll-snap-align: start; background: #10161D; display: flex; align-items: center; justify-content: center; }
.site-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.site-gallery-item.is-plan { background: #fff; }
.site-gallery-item.is-plan img { object-fit: contain; }
.site-gallery-empty { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #9AA4AE; }
.site-gallery-empty span { font-size: 28px; font-weight: 800; }
.site-gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(23,33,43,.7); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px; }
.site-gallery-back { position: absolute; top: 10px; left: 10px; width: 40px; height: 40px; border-radius: 20px; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; color: var(--s-text) !important; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.site-gallery-back svg { width: 22px; height: 22px; }
.site-detail-head { background: var(--s-surface); padding: 16px var(--s-gutter); display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--s-line); }
.site-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.site-tag { background: var(--s-tint); color: var(--s-brand-dark); font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
/* 분양권·입주권 배지 (가격 앞), 가격 구성 한 줄, 상세 가격 구성표 */
.site-kind { display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 5px; background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA; font-size: 11px; font-weight: 700; line-height: 1.5; vertical-align: 2px; letter-spacing: 0; white-space: nowrap; }
.site-kind.is-lg { font-size: 12px; padding: 3px 8px; border-radius: 6px; vertical-align: baseline; }
.site-presale-line { color: #C2410C; font-weight: 600; }
.site-card.is-best .site-presale-line { color: #FDBA74; }
.site-presale { margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.site-presale > div { background: var(--s-bg); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.site-presale dt { font-size: 12px; font-weight: 500; color: var(--s-muted); }
.site-presale dd { margin: 0; font-size: 15px; font-weight: 800; color: var(--s-text); word-break: keep-all; }
.site-presale dd.is-key { color: #C2410C; }
.site-detail-no { font-size: 12px; color: var(--s-muted); margin-left: auto; }
.site-detail-price { margin: 4px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.3; display: flex; flex-direction: column; }
.site-detail-sub { margin: 0; font-size: 14px; color: var(--s-text-2); }
.site-block { background: var(--s-surface); margin-top: 8px; padding: 18px var(--s-gutter); }
.site-block h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.site-block h2 small { font-size: 12px; font-weight: 500; color: var(--s-muted); margin-left: 4px; }
.site-spec { margin: 0; display: grid; grid-template-columns: 1fr; }
.site-spec > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--s-line); font-size: 14px; }
.site-spec > div:last-child { border-bottom: 0; }
.site-spec dt { color: var(--s-muted); flex: 0 0 auto; }
.site-spec dd { margin: 0; text-align: right; font-weight: 500; word-break: keep-all; overflow-wrap: anywhere; }
.site-gap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.site-gap > div { background: var(--s-bg); border-radius: 10px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.site-gap span { font-size: 12px; color: var(--s-muted); }
.site-gap strong { font-size: 16px; }
.site-gap strong.is-key { color: var(--s-brand-dark); }
.site-feature { margin: 0; font-size: 15px; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
.site-actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--s-surface); border-top: 1px solid var(--s-line); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 64px 1fr 1fr; gap: 8px; }
.site-actionbar .site-btn { height: 48px; padding: 0 8px; }
.site-action-compare { height: 48px; border: 1px solid var(--s-line-2); border-radius: 12px; background: var(--s-surface); font: inherit; font-size: 13px; font-weight: 700; color: var(--s-text); cursor: pointer; }
.site-action-compare[aria-pressed="true"] { background: var(--s-brand); border-color: var(--s-brand); color: #fff; }
.site-btn-kakao { background: #FEE500; color: #191919 !important; }
.site-has-actionbar .site-toast { bottom: 96px; }

/* 비교함 (시안 Compare) */
.site-compare-head { justify-content: space-between; }
.site-compare-head strong { flex: 1; }
.site-share { height: 36px; padding: 0 14px; border: 1px solid var(--s-line-2); border-radius: 18px; background: var(--s-surface); font: inherit; font-size: 13px; font-weight: 700; color: var(--s-text); cursor: pointer; margin-right: 8px; }
.site-compare-wrap { overflow-x: auto; margin-top: 12px; padding: 0 var(--s-gutter); }
.site-compare-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: calc(88px + var(--cols) * 140px); background: var(--s-surface); border: 1px solid var(--s-line); border-radius: var(--s-radius); overflow: hidden; table-layout: fixed; font-size: 13px; }
.site-compare-table th, .site-compare-table td { padding: 10px 8px; border-bottom: 1px solid var(--s-line); text-align: center; vertical-align: middle; overflow-wrap: anywhere; }
.site-compare-table tr:last-child th, .site-compare-table tr:last-child td { border-bottom: 0; }
.site-compare-table tbody th { width: 88px; text-align: left; color: var(--s-muted); font-weight: 500; background: #FAFBFC; position: sticky; left: 0; }
.site-compare-table thead th:first-child { width: 88px; position: sticky; left: 0; background: var(--s-surface); }
.site-compare-table thead th { vertical-align: top; }
.site-compare-photo { position: relative; display: block; aspect-ratio: 4 / 3; max-width: 200px; margin-left: auto; margin-right: auto; border-radius: 8px; overflow: hidden; background: var(--s-ph); margin-bottom: 6px; }
.site-compare-photo img { width: 100%; height: 100%; object-fit: cover; }
.site-compare-photo .site-card-nophoto { font-size: 16px; }
.site-compare-name { display: block; font-size: 13px; font-weight: 700; color: var(--s-text) !important; text-decoration: none; line-height: 1.35; word-break: keep-all; }
.site-compare-remove { margin-top: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--s-line-2); border-radius: 15px; background: var(--s-surface); font: inherit; font-size: 12px; color: var(--s-muted); cursor: pointer; }
.site-compare-table td.is-win { color: var(--s-brand-dark); font-weight: 800; background: var(--s-tint); }
.site-compare-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }

/* 단지 페이지 */
.site-danji-hero { background: var(--s-brand); color: #fff; padding: 8px var(--s-gutter) 20px; display: flex; flex-direction: column; gap: 4px; }
.site-danji-hero .site-back { color: #fff !important; margin-left: -12px; }
.site-danji-hero h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.3; word-break: keep-all; }
.site-danji-hero p { margin: 0; font-size: 13px; opacity: .9; }
.site-danji-facts { font-weight: 700; }

/* 푸터 (중개사무소 표시사항) */
.site-footer { margin: 32px var(--s-gutter) 16px; padding-top: 16px; border-top: 1px solid var(--s-line); display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--s-muted); }
.site-footer strong { color: var(--s-text-2); font-size: 13px; }
.site-footer-note { margin-top: 6px; color: #8A949E; }

/* 하단 탭바 (1안: 아이콘+문구, 높이 68px) */
.site-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--s-tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--s-surface); border-top: 1px solid var(--s-line); display: grid; grid-template-columns: repeat(4, 1fr); }
.site-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; color: var(--s-muted) !important; text-decoration: none; }
.site-tab.is-active { color: var(--s-brand) !important; font-weight: 700; }
.site-tab-icon { position: relative; width: 24px; height: 24px; }
.site-tab-icon svg { width: 24px; height: 24px; }
.site-tab-badge { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #D93A2F; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

@media (min-width: 640px) {
	.site-hscroll > * { flex-basis: 44%; }
	.site-hscroll-shorts > * { flex-basis: 26%; }
	.site-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-complex-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-sheet { max-width: 480px; margin: auto; border-radius: 18px; }
	.site-compare-bar { left: 50%; right: auto; width: 420px; transform: translateX(-50%); }
	.site-spec { grid-template-columns: 1fr 1fr; column-gap: 32px; }
	.site-spec > div:nth-last-child(2):not(.is-wide) { border-bottom: 0; }
	.site-spec .is-wide { grid-column: 1 / -1; }
	.site-actionbar { left: 50%; right: auto; width: 560px; transform: translateX(-50%); bottom: 16px; border: 1px solid var(--s-line); border-radius: 18px; box-shadow: 0 8px 24px rgba(23,33,43,.12); padding: 10px; }
}
@media (min-width: 1024px) {
	:root { --s-gutter: 24px; }
	.site-hero { border-radius: 0 0 20px 20px; padding-top: 28px; padding-bottom: 36px; }
	.site-hero-title { font-size: 32px; }
	.site-hero-search { max-width: 640px; }
	.site-hscroll > * { flex-basis: 31%; }
	.site-hscroll-shorts > * { flex-basis: 18%; }
	.site-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
	.site-complex-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.site-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-compare-bar { bottom: 92px; }
	.site-gallery-track { height: min(560px, 62vh); }
	.site-gallery-item { flex-basis: 50%; }
	.site-gallery { max-width: 1080px; margin: 0 auto; }
	body.site-has-actionbar { padding-bottom: 100px; }
	.site-tabbar { left: 50%; right: auto; width: 480px; transform: translateX(-50%); bottom: 16px; height: 64px; padding: 0; border: 1px solid var(--s-line); border-radius: 18px; box-shadow: 0 8px 24px rgba(23,33,43,.12); }
	body.site { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ==========================================================================
   포인트 디자인 C안 (네이비 + 민트, 2026-12-03 사용자 선택·수정)
   - 거래유형 색은 TOPPRO 업무 화면과 같은 고정색: 매매 로즈, 전세 파랑, 월세 초록, 갭투자 보라
   - 1번매물(.is-best)은 진한 남색 카드 + 민트 가격으로 가장 먼저 눈에 띄게
   ========================================================================== */
:root {
	--s-deep: #1F4E8C;        /* 네이비 (사이트 기본 브랜드색과 같음) */
	--s-point: #FFC93C;        /* 노랑 포인트 바탕 (네이비 글자와 짝) */
	--s-point-ink: #1B2B44;    /* 노랑 위 글자 */
	--s-point-text: #1F4E8C;   /* 흰 바탕 위 강조 글자 = 네이비 */
	--s-point-light: #FFD66B;  /* 네이비 바탕 위 강조 글자 */
	--s-t-sale: #BE123C;
	--s-t-rent: #1D4ED8;
	--s-t-monthly: #047857;
	--s-t-gap: #6D28D9;
}
.t-sale { --tc: var(--s-t-sale); }
.t-rent { --tc: var(--s-t-rent); }
.t-monthly { --tc: var(--s-t-monthly); }
.t-gap { --tc: var(--s-t-gap); }

/* 거래유형 칩 (가격 앞) */
.site-trade { color: var(--tc, var(--s-muted)); font-weight: 800; white-space: nowrap; }
.site-trade.is-lg { font-size: inherit; }
.site-price-num { white-space: nowrap; }
.site-badge-trade[class*="t-"] { background: var(--tc); color: #fff; }
.site-tag[class*="t-"] { background: var(--tb); color: var(--tc); }

/* 헤더·버튼 포인트 */
.site-hero { background: var(--s-deep); }
.site-hero-title::first-line { color: var(--s-point-light); }
.site-hero-search button { background: var(--s-point); color: var(--s-point-ink); }
.site-best-hero, .site-danji-hero { background: var(--s-deep); }

/* 거래유형 4버튼: 연한 거래색 바탕 + 오른쪽 아래 큰 배경 아이콘 */
.t-sale { --tb: #FFF1F2; --tl: #FECDD3; }
.t-rent { --tb: #EFF6FF; --tl: #BFDBFE; }
.t-monthly { --tb: #ECFDF5; --tl: #A7F3D0; }
.t-gap { --tb: #F5F3FF; --tl: #DDD6FE; }
.site-trade-btn[class*="t-"] { position: relative; overflow: hidden; min-height: 84px; padding: 12px; align-items: flex-start; justify-content: flex-start; gap: 2px; background: var(--tb); border-color: var(--tl); }
.site-trade-btn[class*="t-"] .site-trade-name { position: relative; z-index: 1; color: var(--tc); font-size: 16px; font-weight: 800; }
.site-trade-btn[class*="t-"] small { position: relative; z-index: 1; color: var(--s-text-2); font-size: 12px; font-weight: 600; }
.site-trade-ico { position: absolute; right: -6px; bottom: -8px; width: 52px; height: 52px; color: var(--tc); opacity: .2; pointer-events: none; }
.site-trade-btn[class*="t-"]:hover, .site-trade-btn[class*="t-"]:focus-visible { border: 1px solid var(--tc); background: var(--tb); color: inherit !important; box-shadow: 0 0 0 1px var(--tc); }
.site-trade-btn[class*="t-"]:hover .site-trade-ico { opacity: .32; }
@media (min-width: 768px) {
	.site-trade-btn[class*="t-"] { min-height: 96px; padding: 16px 18px; }
	.site-trade-btn[class*="t-"] .site-trade-name { font-size: 18px; }
	.site-trade-ico { width: 72px; height: 72px; right: 4px; bottom: -10px; }
}

/* 섹션 제목 밑줄 */
.site-section-head { border-bottom: 2px solid var(--s-deep); margin-bottom: 12px; }
.site-section-head .site-h2 { margin-bottom: 8px; }

/* 1번매물 배지 */
.site-badge-best, .site-row-best { background: var(--s-point); color: var(--s-point-ink); }

/* 1번매물 카드: 진한 남색 + 민트 가격 */
.site-card.is-best { border-color: var(--s-deep); background: var(--s-deep); box-shadow: 0 12px 28px rgba(15, 27, 45, .28); }
.site-card.is-best .site-card-meta { color: #D3DEEC; }
.site-card.is-best .site-card-price { color: var(--s-point-light); font-size: 19px; }
.site-card.is-best .site-trade { color: #fff; }
.site-grid .site-card.is-best .site-card-price { font-size: 17px; }

/* 1번매물 목록 줄: 왼쪽 민트 띠 */
.site-row.is-best { background: #FFF1F2; border-color: #FECDD3; }
.site-row.is-best .site-opts li { background: #fff; }

/* 탭바·칩 */
.site-tab.is-active { color: var(--s-point-text) !important; }
.site-chip.is-active { background: var(--s-deep); border-color: var(--s-deep); }

/* 메인 강조 띠: 1번매물(연민트) · 쇼츠(딥네이비) */
.site-band { margin-top: 24px; padding: 20px var(--s-gutter) 24px; }
.site-band .site-section-head { border-bottom: 0; margin-bottom: 2px; align-items: baseline; }
.site-band .site-h2 { margin: 2px 0 0; font-size: 20px; }
.site-band-title { min-width: 0; }
.site-band-sub { margin: 0 0 14px; font-size: 13px; color: var(--s-muted); }
.is-best-band { background: #EDF2F9; border-top: 1px solid #D6E0EE; border-bottom: 1px solid #D6E0EE; }
.is-best-band .site-more { color: var(--s-point-text); font-weight: 700; }
/* 쇼츠 띠는 유튜브 다크 화면 색(#0F0F0F, 보조 글자 #AAAAAA)으로 */
.is-shorts-band { background: #0F0F0F; color: #fff; }
.is-shorts-band .site-h2 { color: #fff; }
.is-shorts-band .site-hscroll-shorts { margin-top: 12px; }
.is-shorts-band .site-card-meta { color: #AAAAAA; }
.is-shorts-band .site-short-price { color: #fff; }
.is-shorts-band .site-short-price .site-trade { color: var(--s-point-light); }
.is-shorts-band .site-short-thumb { box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.is-shorts-band .site-help { color: #AAAAAA; }
.site-band + .site-band { margin-top: 0; }
@media (min-width: 1024px) {
	.site-band { border-radius: 20px; margin-left: var(--s-gutter); margin-right: var(--s-gutter); border-left: 1px solid transparent; border-right: 1px solid transparent; }
	.is-best-band { border-color: #D6E0EE; }
	.site-band + .site-band { margin-top: 16px; }
	.site-band { padding-left: 24px; padding-right: 24px; }
	.site-band .site-hscroll { margin: 0; padding: 0 0 6px; }
}

/* 카드 썸네일은 도면도 여백 없이 꽉 채운다 (상세 갤러리는 그대로 전체 보기) */
.site-card-photo.is-drawing img, .site-row-photo.is-drawing img { object-fit: cover !important; padding: 0; }
.site-card-photo.is-drawing, .site-row-photo.is-drawing { background: var(--s-ph); }

/* 옵션 키워드 */
.site-opts { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.site-opts li { height: 22px; padding: 0 7px; border-radius: 4px; background: #F1F4F8; color: var(--s-text-2); font-size: 12px; line-height: 22px; white-space: nowrap; }
.site-opts li.is-more { background: transparent; color: var(--s-muted); padding: 0 2px; }
.site-card.is-best .site-opts li { background: rgba(255, 255, 255, .14); color: #fff; }
.site-card.is-best .site-opts li.is-more { background: transparent; color: #D3DEEC; }
/* 사진 크기와 상관없이 카드 사진 칸 비율 고정 (세로로 긴 도면이 칸을 늘리던 문제) */
.site-card-photo { overflow: hidden; }
.site-card-photo img { position: absolute; inset: 0; }

/* 공개 매물 특징 한 줄 (카드·목록) · 비교함 글 항목 */
.site-card-feature { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--s-text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.site-card .site-card-feature { -webkit-line-clamp: 1; }
.site-card.is-best .site-card-feature { color: #fff; }
.site-compare-table tr.is-text td { text-align: left; vertical-align: top; font-size: 12px; line-height: 1.55; color: var(--s-text-2); white-space: normal; }

/* 단지로 찾기: 1번매물 수는 노란 표시, 공개 매물 수는 회색 */
.site-complex-nums { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.site-complex-nums > span { font-size: 12px; color: var(--s-muted); }
.site-complex-best { font-style: normal; font-size: 12px; font-weight: 800; line-height: 20px; padding: 0 7px; border-radius: 4px; background: var(--s-point, #FFC93C); color: var(--s-point-ink, #1B2B44); }
.site-complex span.site-complex-nums { color: inherit; }
/* 1번매물 탭 단지 선택 줄 */
.site-best-danji { margin-top: 8px; }

/* 공유받은 비교함 안내 */
.site-shared-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; padding-bottom: 10px; background: #F4F6F9; border-radius: 10px; font-size: 13px; color: var(--s-text-2); }
.site-shared-note[hidden] { display: none; }
.site-shared-note p { margin: 0; }
.site-shared-note .site-btn { flex: 0 0 auto; height: 38px; font-size: 13px; }

/* 상세 위치 지도 */
.site-map { position: relative; height: 220px; border-radius: 12px; overflow: hidden; background: var(--s-ph, #EEF1F5); display: flex; align-items: center; justify-content: center; }
.site-map-wait { font-size: 13px; color: var(--s-muted); }
.site-map-label { padding: 4px 8px; border-radius: 6px; background: var(--s-deep, #1F4E8C); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
@media (min-width: 768px) { .site-map { height: 300px; } }

/* 홈 가로 넘김 줄 (2026-12-04)
 * - 첫 카드가 화면 왼쪽 끝에 붙던 문제: 넘김 맞춤 기준을 좌우 여백(16px) 안쪽으로 (scroll-padding)
 * - 세로로 내리다 가로 줄을 건드릴 때 스크롤이 걸려 주소창·탭바가 들썩이던 문제: 맞춤을 proximity 로, 가로 넘김이 세로로 번지지 않게
 */
.site-hscroll { scroll-snap-type: x proximity; scroll-padding-inline: var(--s-gutter); overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.site-band .site-hscroll { margin-left: calc(var(--s-gutter) * -1); margin-right: calc(var(--s-gutter) * -1); padding-left: var(--s-gutter); padding-right: var(--s-gutter); }
@media (min-width: 1024px) {
	.site-band .site-hscroll { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; scroll-padding-inline: 0; }
}
/* 탭바를 자기 층으로 그려 주소창이 움직일 때 덜 흔들리게 */
.site-tabbar { -webkit-transform: translateZ(0); backface-visibility: hidden; }
@media (min-width: 1024px) { .site-tabbar { transform: translateX(-50%) translateZ(0); } }

/* 홈 가로 넘침(2026-12-04): 「단지로 찾기」 긴 단지명(띄어쓰기 없는 이름, keep-all)이 칸 밖으로 나가 화면이 옆으로 밀리던 문제
 * → 칸 안에서 줄바꿈, 그리고 사이트 전체에 가로 넘침 안전망(overflow-x: clip 은 sticky 를 깨지 않는다) */
.site-complex { min-width: 0; overflow: hidden; }
.site-complex strong { overflow-wrap: anywhere; }
.site-shell { overflow-x: clip; }

/* 건물 종류 칸 (아파트 · 오피스텔) — 밑줄 탭 */
.site-btype { display: flex; gap: 22px; border-bottom: 1px solid var(--s-line); }
.site-btype.is-bar { background: var(--s-surface); padding: 0 var(--s-gutter); }
.site-btype-item { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--s-text-2) !important; text-decoration: none; }
.site-btype-item small { margin-left: 4px; font-size: 12px; color: var(--s-muted); }
.site-btype-item.is-active { color: var(--s-ink) !important; font-weight: 700; }
.site-btype-item.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--s-ink); }
/* 홈 「다른 종류 매물」 줄 */
.site-other-list { display: flex; flex-direction: column; border-top: 1px solid var(--s-line); }
.site-other-item { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--s-line); color: var(--s-text) !important; text-decoration: none; font-size: 15px; }
.site-other-item span { color: var(--s-muted); font-size: 14px; }
.site-seg.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* 갭투자·수익 계산 칸이 4개(월세 + 수익률)면 2열 */
.site-gap:has(> div:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 갭투자·수익형 계산 줄은 잘리지 않게 줄바꿈 */
.site-card-meta.is-wrap { white-space: normal; }
