/* ============================================================
   오늘살집 — Theme Stylesheet
   디자인 토큰 + 컴포넌트 (모바일 우선)
   2026-07 리브랜딩: 블루 #2B62E8 + 네이비 #16223D + Noto Sans KR
   (변수명은 기존 --bd-coral 계열 유지 — 사용처 200+ 곳 호환)
   ============================================================ */

:root {
    /* 오늘살집 팔레트 — 지도 서비스 블루 시스템 */
    --bd-navy: #0E1A33;
    --bd-navy-2: #17264A;
    --bd-coral: #2B62E8;
    --bd-coral-2: #4E7BEF;
    --bd-coral-hover: #1F4FD0;
    --bd-coral-soft: #EEF3FF;
    --bd-coral-soft-2: #E4EDFF;
    --bd-coral-strong: #1A46BC;
    --bd-ink: #16223D;
    --bd-ink-2: #4E5968;
    --bd-mute: #8B95A1;
    --bd-mute-2: #949FB5;
    --bd-line: #E5E8EB;
    --bd-line-2: #F2F4F6;
    --bd-line-3: #E8ECF3;
    --bd-soft: #F9FAFB;
    --bd-bg: #FFFFFF;
    --bd-success: #00C471;
    --bd-warn: #F59E0B;
    --bd-blue: #2B62E8;
    --bd-blue-soft: #EBF3FF;
    --bd-accent-dot: #FFC24B; /* 로고 위치 도트 옐로 */

    --bd-radius: 20px;
    --bd-radius-sm: 12px;
    --bd-radius-pill: 999px;

    --bd-shadow-card: 0 2px 12px rgba(14,26,51,0.05);
    --bd-shadow-card-hover: 0 16px 36px rgba(14,26,51,0.10);
    --bd-shadow-brand: 0 4px 12px rgba(43,98,232,0.32);

    --bd-font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, sans-serif;
}

/* Reset minimal */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--bd-font);
    color: var(--bd-ink);
    background: var(--bd-bg);
    line-height: 1.55;
    letter-spacing: -0.02em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
html { overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { letter-spacing: -0.035em; line-height: 1.25; text-wrap: balance; font-weight: 800; }
p { text-wrap: pretty; }

.bd-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.bd-skip {
    position: absolute; left: 0; top: -40px; background: var(--bd-navy); color: #fff;
    padding: 8px 16px; z-index: 1000; transition: top .2s;
}
.bd-skip:focus { top: 0; }

.bd-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 1024px) { .bd-container { padding: 0 40px; } }

/* ============================================================
   Topbar + Header
   ============================================================ */
.bd-topbar {
    background: #fff;
    color: #8B95A1;
    font-size: 12px;
    border-bottom: 1px solid var(--bd-line);
}
.bd-topbar-inner {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0; gap: 16px;
}
.bd-topbar-left { display: flex; gap: 12px; flex-wrap: wrap; }
.bd-topbar-left > :nth-child(2) { opacity: 0.5; }
.bd-topbar-right { display: flex; gap: 16px; flex-shrink: 0; }
.bd-topbar-right a { color: inherit; }
.bd-topbar-right a:hover { color: var(--bd-coral); }
@media (max-width: 640px) {
    .bd-topbar-left :not(:first-child) { display: none; }
    .bd-topbar-right a:nth-child(n+3) { display: none; }
}

.bd-header {
    background: rgba(255,255,255,0.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--bd-line-2);
    position: sticky; top: 0; z-index: 100;
}
.bd-header-inner {
    display: flex; align-items: center; gap: 24px;
    padding: 16px 0; min-height: 64px;
}
.bd-brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.bd-brand-mark {
    width: 32px; height: 32px; border-radius: 11px;
    background: linear-gradient(145deg, var(--bd-coral-2), var(--bd-coral));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 800; font-size: 16px;
    box-shadow: var(--bd-shadow-brand);
}
.bd-brand-text { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.bd-brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.045em; }
.bd-brand-nm1 { color: var(--bd-ink); }
.bd-brand-nm2 { color: var(--bd-coral); }
.bd-brand-sub  { font-size: 11px; color: var(--bd-coral); font-weight: 600; }

.bd-nav { display: none; }
@media (min-width: 1024px) { .bd-nav { display: block; } }

.bd-nav-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; gap: 2px; font-size: 14px; font-weight: 600;
}
.bd-nav-list a {
    color: var(--bd-ink-2); padding: 9px 15px; display: inline-block;
    border-radius: 10px; white-space: nowrap;
    transition: background .15s, color .15s;
}
.bd-nav-list a:hover { background: var(--bd-line-2); color: var(--bd-ink); }
.bd-nav-list .current-menu-item a { background: var(--bd-line-2); color: var(--bd-ink); font-weight: 700; }

.bd-search {
    display: none; margin-left: auto;
    background: #F2F4F6; border-radius: var(--bd-radius-pill);
    padding: 8px 16px; align-items: center; gap: 10px;
    min-width: 280px;
}
@media (min-width: 1280px) { .bd-search { display: flex; } }
.bd-search input {
    background: transparent; border: 0; outline: none;
    flex: 1; font-size: 14px; color: var(--bd-ink);
}
.bd-search input::placeholder { color: var(--bd-mute); }
.bd-search button {
    background: transparent; border: 0; color: var(--bd-ink-2);
    font-size: 16px; padding: 0;
}

/* Mobile menu toggle */
.bd-nav-toggle {
    display: flex; flex-direction: column; gap: 4px; justify-content: center;
    width: 36px; height: 36px; padding: 0; border: 0;
    background: transparent; margin-left: auto;
}
.bd-nav-toggle span { width: 20px; height: 2px; background: var(--bd-ink); display: block; margin: 0 auto; }
@media (min-width: 1024px) { .bd-nav-toggle { display: none; } }

/* ── 모바일 사이드바 메뉴 ── */
/* 오버레이 (어두운 배경) */
.bd-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 998;
}
.bd-nav-overlay.is-open { display: block; }

/* 사이드바 패널 */
.bd-nav {
    /* 데스크톱: 기본 표시 */
}
@media (max-width: 1023px) {
    .bd-nav {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 58%;
        max-width: 320px;
        background: #fff;
        z-index: 999;
        transform: translateX(100%);
        transition: transform .28s cubic-bezier(.4,0,.2,1);
        overflow-y: auto;
        padding: 0;
        display: flex !important;
        flex-direction: column;
        box-shadow: -4px 0 32px rgba(0,0,0,.18);
    }
    .bd-nav.is-open {
        transform: translateX(0);
    }

    /* 상단 헤더 영역 (브랜드 + 닫기 버튼) */
    .bd-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid var(--bd-line);
        flex-shrink: 0;
    }
    .bd-nav-close {
        width: 32px; height: 32px;
        border: none; background: var(--bd-soft);
        border-radius: 50%; cursor: pointer;
        font-size: 18px; color: var(--bd-ink-2);
        display: flex; align-items: center; justify-content: center;
        line-height: 1;
    }
    .bd-nav-close:hover { background: var(--bd-line); }

    /* 메뉴 목록 */
    .bd-nav-list {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 8px 0;
        flex: 1;
    }
    .bd-nav-list li { display: block; }
    .bd-nav-list a {
        padding: 14px 20px !important;
        font-size: 16px !important;
        border-bottom: 1px solid var(--bd-soft) !important;
        display: flex !important;
        align-items: center;
        gap: 10px;
        color: var(--bd-ink) !important;
        font-weight: 600;
    }
    .bd-nav-list a:hover,
    .bd-nav-list .current-menu-item a { color: var(--bd-coral) !important; background: #fff5f3; }
    .bd-nav-list .current-menu-item a { border-left: 3px solid var(--bd-coral); padding-left: 17px !important; border-bottom: none !important; }

    /* 사이드바 하단 로그인 영역 */
    .bd-nav-footer {
        padding: 16px 20px;
        border-top: 1px solid var(--bd-line);
        display: flex;
        flex-direction: column;
        gap: 8px;
        flex-shrink: 0;
    }
    .bd-nav-footer a {
        display: block;
        padding: 11px 16px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 700;
        text-align: center;
        text-decoration: none;
    }
    .bd-nav-footer .bd-nav-login  { background: var(--bd-coral); color: #fff; }
    .bd-nav-footer .bd-nav-mypage { background: var(--bd-navy);  color: #fff; }
    .bd-nav-footer .bd-nav-logout { background: var(--bd-soft);  color: var(--bd-ink-2); font-weight: 500; }
}

/* 데스크톱: 사이드바 관련 요소 숨김 + 메뉴 원복 */
@media (min-width: 1024px) {
    .bd-nav-overlay,
    .bd-nav-header,
    .bd-nav-footer { display: none !important; }

    /* 사이드바 CSS로 오버라이드된 값들 데스크톱에서 원복 */
    .bd-nav {
        position: static !important;
        transform: none !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        box-shadow: none !important;
        padding: 0 !important;
        display: block !important;
        flex-direction: unset !important;
        overflow-y: visible !important;
        transition: none !important;
        background: transparent !important;
        z-index: auto !important;
    }
    .bd-nav-list {
        flex-direction: row !important;
        gap: 28px !important;
        padding: 0 !important;
        flex: unset !important;
    }
    .bd-nav-list li { display: list-item !important; }
    .bd-nav-list a {
        padding: 22px 0 !important;
        font-size: 15px !important;
        border-bottom: none !important;
        display: inline-block !important;
        background: transparent !important;
    }
    .bd-nav-list .current-menu-item a {
        border-left: none !important;
        padding-left: 0 !important;
        border-bottom: 2px solid var(--bd-coral) !important;
        margin-bottom: -1px;
    }
}

/* 하단 고정 네비 제거됨 */

/* ============================================================
   Section heads
   ============================================================ */
.bd-section { padding: 32px 0; }
.bd-section-soft { background: var(--bd-soft); }
.bd-section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.bd-section-head h2 { font-size: 20px; font-weight: 800; margin: 0; }
.bd-section-head h2 small { color: var(--bd-mute); font-size: 13px; font-weight: 500; margin-left: 6px; }
.bd-accent { color: var(--bd-coral); }
.bd-more { font-size: 12px; color: var(--bd-ink-2); }

/* ============================================================
   Grids
   ============================================================ */
.bd-grid-2-1 { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1024px) { .bd-grid-2-1 { grid-template-columns: 1fr 360px; gap: 32px; } }

.bd-grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (min-width: 768px) { .bd-grid-cards { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .bd-grid-cards { grid-template-columns: repeat(2, 1fr); } }
.bd-grid-cards-4 { grid-template-columns: 1fr 1fr !important; }
@media (min-width: 768px) { .bd-grid-cards-4 { grid-template-columns: repeat(3, 1fr) !important; } }
@media (min-width: 1280px) { .bd-grid-cards-4 { grid-template-columns: repeat(4, 1fr) !important; } }

/* .bd-grid-news → 아래 아카이브 섹션 참조 */

/* ============================================================
   Pills / chips / tags
   ============================================================ */
.bd-status-pills, .bd-chiprow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bd-chiprow { margin: 20px 0 14px; }
.bd-chiprow-divider { width: 1px; height: 18px; background: var(--bd-line); margin: 0 4px; }

.bd-pill {
    font-size: 14px; padding: 9px 17px;
    background: #fff; color: var(--bd-ink-2);
    border-radius: var(--bd-radius-pill); font-weight: 600;
    border: 1px solid var(--bd-line);
    transition: border-color .15s, color .15s;
}
.bd-pill:hover { border-color: var(--bd-mute); color: var(--bd-ink); }
.bd-pill-active { background: var(--bd-navy); color: #fff; font-weight: 700; border-color: var(--bd-navy); }
.bd-pill-active:hover { border-color: var(--bd-navy); color: #fff; }
.bd-pill-new { background: var(--bd-coral-soft-2); color: var(--bd-coral-strong); font-weight: 600; }
.bd-pill small { color: var(--bd-mute); font-weight: 500; }

.bd-chip {
    display: inline-block;
    font-size: 11px; font-weight: 800; padding: 5px 10px;
    border-radius: 8px;
}
.bd-chip-status { background: var(--bd-coral-soft-2); color: var(--bd-coral); }
.bd-chip-light { background: rgba(255,255,255,0.95); color: var(--bd-navy); }
.bd-chip-status.bd-chip-bunyang,
.bd-chip-status.bd-chip-cheonghyak { background: var(--bd-coral-soft-2); color: var(--bd-coral); }
.bd-chip-status.bd-chip-yejeong { background: #FFF6E5; color: var(--bd-warn); }
.bd-chip-status.bd-chip-modelhouse-open { background: var(--bd-success); color: #fff; }
.bd-chip-status.bd-chip-wanlyo { background: var(--bd-line-2); color: #6B7684; }
.bd-tag { font-size: 11px; color: var(--bd-ink-2); }

/* ============================================================
   Buttons
   ============================================================ */
.bd-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; border: 0; padding: 12px 18px; border-radius: var(--bd-radius-sm);
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: transform .1s, box-shadow .15s, background .15s;
    text-align: center; white-space: nowrap;
}
.bd-btn:active { transform: translateY(1px); }
.bd-btn-primary { background: var(--bd-coral); color: #fff; }
.bd-btn-primary:hover { background: var(--bd-coral-hover); }
.bd-btn-dark { background: var(--bd-navy); color: #fff; }
.bd-btn-dark:hover { background: var(--bd-navy-2); }
.bd-btn-ghost { background: #F2F4F6; color: var(--bd-ink); border: none; }
.bd-btn-ghost:hover { background: #E5E8EB; }
.bd-btn-mini { padding: 6px 12px; font-size: 11px; background: var(--bd-coral-soft); color: var(--bd-coral-strong); }
.bd-btn-mini:hover { background: var(--bd-coral-soft-2); }
.bd-btn-block { display: flex; width: 100%; }
.bd-btn-full { width: 100%; }
.bd-btn-lg { padding: 18px 28px; font-size: 14px; }

/* ============================================================
   Featured card (hero)
   ============================================================ */
.bd-featured {
    border-radius: var(--bd-radius); overflow: hidden;
    border: 1px solid var(--bd-line); background: #fff;
    display: grid; grid-template-columns: 1fr;
}
@media (min-width: 768px) { .bd-featured { grid-template-columns: 1.3fr 1fr; min-height: 380px; } }

.bd-featured-cover {
    position: relative; padding: 24px; overflow: hidden;
    background: linear-gradient(135deg, #111827 0%, #1E293B 100%);
    min-height: 240px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
}
/* bg image: stays absolute despite > * rule — specificity (0,2,0) beats (0,1,0) */
.bd-featured-cover .bd-featured-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bd-img-placeholder { background: linear-gradient(135deg, #111827, #1E293B); width: 100%; height: 100%; }
/* overlay + content layers — exclude img to avoid overriding position:absolute */
.bd-featured-cover > :not(img) { position: relative; z-index: 2; }
.bd-featured-cover::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.bd-featured-chips { display: flex; gap: 6px; }
.bd-featured-title { z-index: 2; }
.bd-featured-region { font-size: 12px; opacity: 0.85; margin-bottom: 6px; }
.bd-featured-name { font-size: 24px; font-weight: 800; margin: 0; line-height: 1.2; }
@media (min-width: 768px) { .bd-featured-name { font-size: 28px; } }

.bd-featured-side {
    padding: 24px 28px; display: flex; flex-direction: column;
    background: #fff;
}

.bd-keystats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0 0 22px; }
.bd-keystats div dt { font-size: 11px; color: var(--bd-mute); margin-bottom: 4px; }
.bd-keystats div dd { font-size: 15px; font-weight: 700; margin: 0; }

/* ============================================================
   Interest meter
   ============================================================ */
.bd-interest-meter {
    background: var(--bd-coral-soft);
    border: 1px solid var(--bd-coral-soft-2);
    padding: 12px 14px; border-radius: 8px; margin-bottom: 12px;
}
.bd-interest-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px;
}
.bd-interest-label { font-size: 12px; font-weight: 600; color: var(--bd-coral-strong); }
.bd-interest-rank {
    font-size: 11px; color: var(--bd-coral-strong);
    background: rgba(43,98,232,0.15); padding: 2px 8px;
    border-radius: var(--bd-radius-pill); font-weight: 700;
}
.bd-interest-count {
    display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px;
}
.bd-interest-count strong { font-size: 20px; font-weight: 800; color: var(--bd-navy); letter-spacing: -0.02em; }
.bd-interest-count-lg strong { font-size: 32px; line-height: 1; }
.bd-interest-count span { font-size: 12px; color: var(--bd-ink-2); }
.bd-interest-sub { font-size: 11px; color: var(--bd-ink-2); margin-bottom: 10px; }
.bd-interest-bar {
    height: 6px; background: rgba(43,98,232,0.18);
    border-radius: var(--bd-radius-pill); overflow: hidden;
}
.bd-interest-bar > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--bd-coral), var(--bd-coral-2));
}

.bd-cta-row { display: flex; gap: 8px; margin-top: auto; }
.bd-cta-row .bd-btn-primary { flex: 1; padding: 14px; }
.bd-cta-row .bd-btn-ghost  { padding: 14px 16px; }

/* ============================================================
   Card (archive listing)
   ============================================================ */
.bd-card {
    border: 1px solid var(--bd-line-2); border-radius: var(--bd-radius);
    overflow: hidden; background: #fff;
    box-shadow: var(--bd-shadow-card);
    transition: transform .16s, box-shadow .16s;
}
.bd-card:hover { transform: translateY(-4px); box-shadow: var(--bd-shadow-card-hover); }
.bd-card-cover {
    position: relative;
    display: block;
    /* padding-top 트릭: 1/1.6 × 100% = 62.5% — aspect-ratio 대신 사용 (구형 브라우저 호환) */
    padding-top: 62.5%;
    overflow: hidden;
    /* 이미지 로드 실패 시 fallback 배경 */
    background: linear-gradient(135deg, #334155 0%, #334155 100%);
}
/* 이미지 없을 때 건물 아이콘 */
.bd-card-cover::before {
    content: '🏢';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px; opacity: 0.35; z-index: 0;
    pointer-events: none;
}
.bd-card-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity .2s; }
.bd-card-cover .bd-img-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; z-index: 1; }
.bd-card-chips { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
/* wishlist btn: <a> 밖 <article> 기준으로 절대 배치 */
.bd-card > .bd-wishlist-btn {
    position: absolute; top: 10px; right: 10px; z-index: 10;
}
.bd-card-body { padding: 14px; }
.bd-card-region { font-size: 11px; color: var(--bd-mute); margin-bottom: 4px; }
.bd-card-title { font-size: 15px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.35; }
.bd-card-title a:hover { color: var(--bd-coral); }
.bd-card-specs {
    display: flex; gap: 4px; font-size: 11px; color: var(--bd-ink-2); margin-bottom: 10px; flex-wrap: wrap; line-height: 1.5;
}
.bd-card-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 8px; border-top: 1px solid var(--bd-line-2);
}
.bd-card-req-count { font-size: 11px; color: var(--bd-coral); }
.bd-card-req-count strong { font-weight: 700; }
.bd-card-req-link { font-size: 11px; font-weight: 700; color: var(--bd-coral); }
.bd-card-req-link:hover { text-decoration: underline; }
.bd-card-interest strong { color: var(--bd-coral); font-size: 11px; font-weight: 700; }
.bd-card-interest span { font-size: 10px; color: var(--bd-mute); margin-left: 4px; }
/* 모바일 카드 최적화 */
@media (max-width: 480px) {
    .bd-card-body { padding: 10px; }
    .bd-card-title { font-size: 13px; margin-bottom: 6px; }
    .bd-card-specs { font-size: 10px; gap: 3px; margin-bottom: 8px; }
    .bd-card-req-count, .bd-card-req-link { font-size: 10px; }
    .bd-card-region { font-size: 10px; }
}
/* 극소형 화면(360px 미만)은 1열로 */
@media (max-width: 359px) {
    .bd-grid-cards, .bd-grid-cards-4 { grid-template-columns: 1fr !important; }
}

/* ============================================================
   Sidebar widgets
   ============================================================ */
.bd-sidebar > * + * { margin-top: 18px; }

.bd-promise {
    background: linear-gradient(160deg, var(--bd-navy) 0%, var(--bd-navy-2) 100%);
    color: #fff; padding: 22px; border-radius: var(--bd-radius);
    position: relative; overflow: hidden;
}
.bd-promise::after {
    content: ''; position: absolute; top: -20px; right: -20px;
    width: 120px; height: 120px; background: rgba(43,98,232,0.15);
    border-radius: 50%;
}
.bd-promise-badge {
    font-size: 11px; color: #FF8A6E; font-weight: 700;
    letter-spacing: 0.08em; display: block; margin-bottom: 8px;
}
.bd-promise h3 { font-size: 18px; font-weight: 800; margin: 0 0 10px; line-height: 1.3; }
.bd-promise p { font-size: 12px; color: rgba(255,255,255,.65); margin: 0 0 14px; line-height: 1.6; }
.bd-promise-stats {
    display: flex; gap: 16px; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.bd-promise-stats div strong { font-size: 18px; font-weight: 800; display: block; }
.bd-promise-stats div span { font-size: 10px; color: rgba(255,255,255,.5); }

.bd-aicta {
    border: 2px solid var(--bd-navy); padding: 22px;
    border-radius: var(--bd-radius); background: #fff;
    position: relative;
}
.bd-aicta-badge {
    position: absolute; top: -10px; left: 18px;
    background: var(--bd-navy); color: #fff;
    font-size: 10px; font-weight: 700; padding: 4px 10px;
    border-radius: 4px; letter-spacing: 0.06em;
}
/* .bd-aicta-badge-lg positioning handled per context (see .bd-ai-panel .bd-aicta-badge-lg) */
.bd-aicta h3 { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.bd-aicta p { font-size: 12px; color: var(--bd-ink-2); margin: 0 0 14px; line-height: 1.55; }
.bd-aicta small { display: block; font-size: 10px; color: var(--bd-mute); text-align: center; margin-top: 8px; }

.bd-aicta-mini { margin-top: 14px; border-width: 1px; border-style: dashed; padding: 14px; }
.bd-aicta-mini-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.bd-aicta-mini-head .bd-aicta-badge {
    position: static; font-size: 9px; padding: 2px 6px;
}

.bd-top5 {
    border: 1px solid var(--bd-line); border-radius: var(--bd-radius); padding: 18px; background: #fff;
}
.bd-top5-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.bd-top5-head h3 { font-size: 14px; font-weight: 800; margin: 0; }
.bd-top5-head span { font-size: 10px; color: var(--bd-mute); }
.bd-top5 ol { list-style: none; margin: 0; padding: 0; }
.bd-top5 li {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 0; border-bottom: 1px solid var(--bd-line-2);
}
.bd-top5 li:last-child { border-bottom: 0; }
.bd-top5-rank {
    font-size: 14px; font-weight: 800; color: var(--bd-ink-2); width: 18px;
}
.bd-top5-rank.is-hot { color: var(--bd-coral); }
.bd-top5-name { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.bd-top5-meta { font-size: 10px; color: var(--bd-mute); }

/* ============================================================
   Breadcrumb
   ============================================================ */
.bd-breadcrumb { padding: 14px 0; font-size: 12px; color: var(--bd-ink-2); }
.bd-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0; }
.bd-breadcrumb li { display: inline-flex; align-items: center; }
.bd-breadcrumb a { color: var(--bd-ink-2); }
.bd-breadcrumb a:hover { color: var(--bd-coral); }
.bd-breadcrumb [aria-current="page"] { color: var(--bd-ink); font-weight: 600; }
.bd-breadcrumb-sep { margin: 0 6px; opacity: 0.5; }

/* ============================================================
   Detail page
   ============================================================ */
.bd-grid-detail-hero { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .bd-grid-detail-hero { grid-template-columns: 1fr 380px; gap: 32px; } }

/* gallery layout → defined in hero section below (.bd-gallery) */

.bd-detail-chips { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.bd-detail-title { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
@media (min-width: 768px) { .bd-detail-title { font-size: 32px; } }
.bd-detail-subtitle { font-size: 14px; color: var(--bd-ink-2); margin-bottom: 24px; }

.bd-cta-card {
    background: #fff;
    border-radius: var(--bd-radius); padding: 22px;
    box-shadow: var(--bd-shadow-card);
    align-self: start; position: sticky; top: 88px;
}
.bd-promise-mini {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; background: #F2F4F6;
    border-radius: 8px; margin: 8px 0 16px;
}
.bd-promise-mini small { font-size: 11px; color: var(--bd-ink-2); line-height: 1.4; }
.bd-promise-mini strong { color: var(--bd-navy); }

.bd-quickstats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin: 14px 0 0;
}
.bd-quickstats div dt { font-size: 10px; color: var(--bd-mute); margin-bottom: 3px; }
.bd-quickstats div dd { font-size: 13px; font-weight: 700; margin: 0; }

/* 단지정보 grid */
.bd-info-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    border: 1px solid var(--bd-line); border-radius: 10px; overflow: hidden;
}
@media (min-width: 768px) { .bd-info-grid { grid-template-columns: repeat(4, 1fr); } }
.bd-info-cell {
    padding: 14px 16px;
    border-right: 1px solid var(--bd-line);
    border-bottom: 1px solid var(--bd-line);
    margin: 0;
}
.bd-info-cell:nth-child(odd) { background: var(--bd-soft); }
@media (min-width: 768px) {
    .bd-info-cell:nth-child(odd) { background: transparent; }
    .bd-info-cell:nth-child(-n+4) { background: var(--bd-soft); }
}
.bd-info-cell dt { font-size: 11px; color: var(--bd-mute); margin-bottom: 4px; }
.bd-info-cell dd { font-size: 13px; font-weight: 600; margin: 0; }

/* 타입별 분양가 */
.bd-types-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .bd-types-grid { grid-template-columns: repeat(3, 1fr); } }
.bd-type-card { background: #fff; padding: 20px; border-radius: 10px; border: 1px solid var(--bd-line); }
.bd-type-plan {
    height: 140px; background: linear-gradient(135deg, var(--bd-line), var(--bd-line-2));
    border-radius: 6px; margin-bottom: 14px;
    display: flex; align-items: center; justify-content: center;
    color: var(--bd-mute); font-size: 12px;
}
.bd-type-plan img { width: 100%; height: 100%; object-fit: contain; }
.bd-type-card h3 { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.bd-type-spec { font-size: 11px; color: var(--bd-mute); margin-bottom: 10px; }
.bd-type-price {
    display: flex; justify-content: space-between;
    padding-top: 10px; border-top: 1px solid var(--bd-line-2);
}
.bd-type-price span { font-size: 11px; color: var(--bd-ink-2); }
.bd-type-price strong { font-size: 14px; font-weight: 800; color: var(--bd-coral); }

/* 24h promise band */
.bd-promise-band {
    background: linear-gradient(160deg, var(--bd-navy) 0%, var(--bd-navy-2) 100%);
    color: #fff; position: relative; overflow: hidden;
    width: 100%; margin-left: 0; margin-right: 0;
}
.bd-promise-band .bd-promise-band-inner {
    max-width: 1200px; margin: 0 auto; padding: 48px 40px;
}
.bd-promise-band::after {
    content: ''; position: absolute; top: -40px; right: -40px;
    width: 240px; height: 240px; background: rgba(43,98,232,0.12);
    border-radius: 50%;
}
.bd-promise-band-inner {
    display: grid; grid-template-columns: 1fr; gap: 24px;
    align-items: center; position: relative; z-index: 2;
}
@media (min-width: 768px) { .bd-promise-band-inner { grid-template-columns: 1fr auto; gap: 32px; } }
/* override .bd-tab-section h2 { color: var(--bd-navy) } — banner is navy bg */
.bd-promise-band h2 { font-size: 24px; font-weight: 800; margin: 0 0 12px; line-height: 1.3; color: #fff !important; border-bottom: none !important; }
@media (min-width: 768px) { .bd-promise-band h2 { font-size: 28px; } }
.bd-promise-band p { font-size: 14px; color: #C9D1DE; margin: 0; line-height: 1.6; max-width: 640px; }
.bd-promise-badge-light { color: #FF8A6E; }
.bd-promise-band-stats {
    display: flex; gap: 24px; padding-left: 0;
}
@media (min-width: 768px) {
    .bd-promise-band-stats {
        padding-left: 32px;
        border-left: 1px solid rgba(255,255,255,0.18);
    }
}
.bd-promise-band-stats div strong { font-size: 24px; font-weight: 800; display: block; }
.bd-promise-band-stats div span { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 4px; }

/* AI 입지분석 panel */
/* AI badge absolute positioning inside bd-ai-panel */
.bd-ai-panel .bd-aicta-badge-lg {
    position: absolute;
    top: -10px;
    left: 24px;
    background: var(--bd-navy);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: .05em;
    display: inline-block;
    margin: 0;
}
@media (max-width: 767px) {
    .bd-ai-panel-grid { grid-template-columns: 1fr !important; }
    .bd-ai-panel > .bd-ai-panel-grid > div:last-child { width: 100%; }
}

.bd-ai-panel {
    background: var(--bd-soft); border: 2px solid var(--bd-navy);
    border-radius: 14px; padding: 28px; position: relative;
}
.bd-ai-panel-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
@media (min-width: 768px) { .bd-ai-panel-grid { grid-template-columns: 1fr 280px; gap: 32px; } }
.bd-ai-panel h2 { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.bd-ai-panel p { font-size: 13px; color: var(--bd-ink-2); margin: 0 0 16px; line-height: 1.6; }
.bd-ai-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.bd-ai-tag {
    font-size: 11px; padding: 6px 12px; background: #fff;
    border: 1px solid #D7DCE3; border-radius: var(--bd-radius-pill); font-weight: 600;
}

/* FAQ */
.bd-faq { display: flex; flex-direction: column; gap: 10px; }
.bd-faq details {
    background: var(--bd-soft); padding: 16px 20px;
    border-radius: 10px; border: 1px solid var(--bd-line);
}
.bd-faq summary {
    font-size: 14px; font-weight: 700; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.bd-faq summary::after { content: '+'; color: var(--bd-mute); font-size: 18px; }
.bd-faq details[open] summary::after { content: '−'; color: var(--bd-coral); }
.bd-faq p { font-size: 13px; color: var(--bd-ink-2); margin: 12px 0 0; line-height: 1.6; }

/* ============================================================
   Archive
   ============================================================ */
.bd-archive-head { padding: 28px 0 22px; }
.bd-archive-head h1 { font-size: 28px; font-weight: 800; margin: 0 0 8px; }
.bd-archive-head p { color: var(--bd-ink-2); font-size: 14px; margin: 0; }
.bd-archive-eyebrow { font-size: 12px; font-weight: 700; color: var(--bd-coral); letter-spacing: 0.08em; }

.bd-archive-filters { display: flex; flex-direction: column; gap: 14px; padding: 16px 0; border-top: 1px solid var(--bd-line); border-bottom: 1px solid var(--bd-line); margin-bottom: 24px; }
.bd-filter-group { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.bd-filter-group .bd-pill small,
.bd-archive-filters .bd-pill small { font-size: 10px; color: var(--bd-mute); margin-left: 2px; }
.bd-filter-group .bd-pill.bd-pill-active small { color: rgba(255,255,255,.7); }
.bd-filter-label { font-size: 12px; font-weight: 700; color: var(--bd-mute); margin-right: 6px; min-width: 36px; }

.bd-pagination { display: flex; justify-content: center; padding: 32px 0; }
.bd-pagination .nav-links { display: flex; gap: 6px; }
.bd-pagination .page-numbers {
    min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--bd-line); border-radius: 6px; font-size: 13px; color: var(--bd-ink-2);
    transition: background .15s;
}
.bd-pagination .page-numbers:hover { background: var(--bd-soft); }
.bd-pagination .page-numbers.current { background: var(--bd-navy); color: #fff; border-color: var(--bd-navy); }

.bd-empty { padding: 60px 20px; text-align: center; color: var(--bd-mute); font-size: 14px; }

/* 홈 리스팅 그리드 — 항상 2열, 카드 커버 160px 고정 (디자인 Frame 01) */
.bd-grid-cards-home { grid-template-columns: 1fr 1fr !important; }
.bd-grid-cards-home .bd-card-cover { padding-top: 0; height: 160px; }

/* News strip — 홈 섹션 전용 (아카이브와 분리) */
.bd-section-news { background: #fff; }
.bd-section-news .bd-grid-news { gap: 18px; }
.bd-section-news .bd-news-card { background: #fff; padding: 18px; border-radius: 10px; border: 1px solid var(--bd-line); overflow: visible; }
.bd-section-news .bd-news-meta { font-size: 10px; font-weight: 700; color: var(--bd-coral); letter-spacing: 0.06em; padding: 0; display: block; }
.bd-section-news .bd-news-card h3 { font-size: 14px; font-weight: 700; margin: 8px 0; line-height: 1.45; padding: 0; }
.bd-section-news .bd-news-card h3 a { color: var(--bd-ink); }
.bd-section-news .bd-news-card h3 a:hover { color: var(--bd-coral); }
.bd-section-news .bd-news-date { font-size: 11px; color: var(--bd-mute); padding: 0; }

/* ============================================================
   Footer
   ============================================================ */
.bd-footer {
    background: linear-gradient(135deg, var(--bd-navy) 0%, var(--bd-navy-2) 100%);
    color: rgba(255,255,255,.55); border-top: none;
    padding: 52px 0 0; font-size: 13px; margin-top: 0; font-weight: 500;
}
.bd-footer-inner { display: grid; grid-template-columns: 1fr; gap: 24px; padding-bottom: 32px; }
@media (min-width: 768px) { .bd-footer-inner { grid-template-columns: 1fr auto; } }
.bd-footer-name { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.bd-footer-brand p { color: rgba(255,255,255,.55); line-height: 1.65; }
.bd-footer-meta { font-size: 12px; margin: 8px 0 0; color: rgba(255,255,255,.35); }
.bd-footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.bd-footer-cols h3 { color: rgba(255,255,255,.9); font-weight: 800; font-size: 13px; margin: 0 0 12px; }
.bd-footer-cols ul { list-style: none; margin: 0; padding: 0; line-height: 2.2; }
.bd-footer-cols a { color: rgba(255,255,255,.5); }
.bd-footer-cols a:hover { color: #fff; }
.bd-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0;
    font-size: 12px; color: rgba(255,255,255,.3);
}

/* ============================================================
   Modal
   ============================================================ */
.bd-modal { position: fixed; inset: 0; display: none; z-index: 1000; }
.bd-modal[aria-hidden="false"] { display: block; }
.bd-modal-backdrop { position: absolute; inset: 0; background: rgba(25,31,40,0.6); }
.bd-modal-panel {
    position: relative; max-width: 480px; margin: 5vh auto;
    background: #fff; border-radius: var(--bd-radius); padding: 28px;
    max-height: 90vh; overflow-y: auto;
}
.bd-modal-close {
    position: absolute; top: 12px; right: 12px;
    background: transparent; border: 0; font-size: 24px;
    color: var(--bd-mute); width: 36px; height: 36px;
}
.bd-modal-panel h2 { font-size: 20px; font-weight: 800; margin: 0 0 6px; }
.bd-modal-panel p { font-size: 13px; color: var(--bd-ink-2); margin: 0 0 18px; }
.bd-modal-panel label { display: block; font-size: 12px; font-weight: 600; color: var(--bd-ink-2); margin-bottom: 12px; }
.bd-modal-panel input[type="text"],
.bd-modal-panel input[type="tel"],
.bd-modal-panel input[type="email"] {
    display: block; width: 100%; padding: 10px 12px;
    border: 1px solid var(--bd-line); border-radius: 8px;
    font-size: 14px; margin-top: 4px; font-family: inherit;
}
.bd-modal-panel input:focus { outline: 2px solid var(--bd-coral); outline-offset: 1px; }
.bd-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; line-height: 1.5; margin: 12px 0 16px; }
.bd-consent input { margin-top: 3px; }
.bd-form-msg { margin-top: 12px; font-size: 12px; text-align: center; min-height: 1em; }
.bd-form-msg.is-ok { color: var(--bd-success); }
.bd-form-msg.is-err { color: var(--bd-coral-strong); }

/* ============================================================
   404
   ============================================================ */
.bd-404 { padding: 80px 0; text-align: center; }
.bd-404-code { font-size: 96px; font-weight: 800; color: var(--bd-coral); letter-spacing: -0.05em; line-height: 1; }
.bd-404 h1 { font-size: 24px; margin: 16px 0 8px; }
.bd-404 p { color: var(--bd-ink-2); }
.bd-404-links { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }


/* ============================================================
   Article (single.php) — 일반 글 / 분양뉴스 본문
   ============================================================ */
.bd-article { padding: 28px 0 48px; }
.bd-article-head { max-width: 760px; margin: 0 auto 28px; }
.bd-article-meta { display: flex; gap: 12px; align-items: center; font-size: 12px; color: var(--bd-ink-2); margin-bottom: 14px; }
.bd-article-cat { background: var(--bd-coral-soft); color: var(--bd-coral-strong); padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.bd-article-title { font-size: 32px; font-weight: 800; margin: 0 0 14px; line-height: 1.3; }
@media (min-width: 768px) { .bd-article-title { font-size: 40px; } }
.bd-article-lede { font-size: 16px; color: var(--bd-ink-2); line-height: 1.7; margin: 0 0 18px; }
.bd-article-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.bd-article-cover { margin: 0 -20px 32px; }
@media (min-width: 768px) { .bd-article-cover { margin: 0 0 40px; max-width: 960px; margin-left: auto; margin-right: auto; } }
.bd-article-cover img { width: 100%; height: auto; border-radius: 10px; }
.bd-article-body {
    max-width: 720px; margin: 0 auto;
    font-size: 16px; line-height: 1.85; color: var(--bd-ink);
}
.bd-article-body p { margin: 0 0 1.2em; }
.bd-article-body h2 { font-size: 24px; font-weight: 800; margin: 1.8em 0 0.6em; }
.bd-article-body h3 { font-size: 19px; font-weight: 700; margin: 1.6em 0 0.5em; }
.bd-article-body img { border-radius: 8px; margin: 1em 0; }
.bd-article-body blockquote {
    border-left: 3px solid var(--bd-coral);
    margin: 1.5em 0; padding: 0.4em 1.2em;
    background: var(--bd-soft); border-radius: 0 6px 6px 0;
    color: var(--bd-ink-2); font-style: italic;
}
.bd-article-body a { color: var(--bd-coral); text-decoration: underline; text-underline-offset: 3px; }
.bd-article-body ul, .bd-article-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.bd-article-body li { margin: 0.4em 0; }
.bd-article-body code { background: var(--bd-soft); padding: 2px 6px; border-radius: 3px; font-size: 0.92em; }
.bd-article-body pre { background: var(--bd-ink); color: #c9d1de; padding: 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; }

.bd-article-foot { max-width: 720px; margin: 36px auto 0; padding-top: 24px; border-top: 1px solid var(--bd-line); }
.bd-article-share { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--bd-ink-2); }
.bd-article-share a, .bd-article-share button {
    width: 36px; height: 36px; border-radius: 50%; background: var(--bd-soft);
    color: var(--bd-ink); display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; border: 0; cursor: pointer;
}
.bd-article-share a:hover, .bd-article-share button:hover { background: var(--bd-coral-soft); color: var(--bd-coral-strong); }

/* ============================================================
   분양현장 단지 소개 (overview - the_content output)
   ============================================================ */
.bd-overview-body {
    max-width: 760px;
    font-size: 15px; line-height: 1.85; color: var(--bd-ink-2);
}
.bd-overview-body p { margin: 0 0 1em; }
.bd-overview-body h3 { font-size: 17px; color: var(--bd-ink); margin: 1.4em 0 0.4em; }

/* Empty state for missing hero gallery */
.bd-img-empty {
    background: linear-gradient(135deg, #4A5568, #7B8B9C) !important;
}


/* ============================================================
   Static Page (page.php)
   ============================================================ */
.bd-page { padding: 28px 0 56px; }
.bd-page-head { max-width: 760px; margin: 0 auto 28px; text-align: left; }
.bd-page-head h1 { font-size: 32px; font-weight: 800; margin: 0 0 12px; }
@media (min-width: 768px) { .bd-page-head h1 { font-size: 38px; } }
.bd-page-lede { font-size: 16px; color: var(--bd-ink-2); line-height: 1.7; margin: 0; }
.bd-page-cover { margin: 0 0 28px; max-width: 960px; margin-left: auto; margin-right: auto; }
.bd-page-cover img { width: 100%; height: auto; border-radius: 10px; }
.bd-page-body {
    max-width: 720px; margin: 0 auto;
    font-size: 16px; line-height: 1.85; color: var(--bd-ink);
}
.bd-page-body p { margin: 0 0 1.2em; }
.bd-page-body h2 { font-size: 22px; font-weight: 800; margin: 1.8em 0 0.6em; }
.bd-page-body h3 { font-size: 18px; font-weight: 700; margin: 1.6em 0 0.4em; }
.bd-page-body ul, .bd-page-body ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.bd-page-body li { margin: 0.3em 0; }
.bd-page-body a { color: var(--bd-coral); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   AI 분석 포커스 선택 (Modal 내부)
   ============================================================ */
.bd-ai-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 18px; }
.bd-ai-focus-item { display: flex; align-items: center; gap: 8px; background: var(--bd-soft); padding: 10px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; border: 1px solid var(--bd-line); }
.bd-ai-focus-item input { accent-color: var(--bd-coral); }
.bd-ai-focus-item:has(input:checked) { background: var(--bd-coral-soft); border-color: var(--bd-coral-soft-2); }

/* 중복 블록 제거 — 모바일 메뉴는 line 142 의 is-open 블록 사용 */

/* ============================================================
   모델하우스 슬롯 예약
   ============================================================ */
.bd-slot { position: relative; }
.bd-slot input { position: absolute; opacity: 0; width: 0; height: 0; }
.bd-slot span {
    display: block; text-align: center; font-size: 12px; padding: 9px 4px;
    border: 1px solid var(--bd-line); border-radius: 6px; cursor: pointer;
    background: #fff; transition: all .15s;
}
.bd-slot input:checked + span { background: var(--bd-coral); color: #fff; border-color: var(--bd-coral); font-weight: 700; }
.bd-slot span:hover { border-color: var(--bd-coral); }

/* ============================================================
   로그인/회원가입 페이지 (Frame 09)
   ============================================================ */
.bd-auth-layout {
    min-height: calc(100vh - 160px);
    display: grid; grid-template-columns: 1fr;
    align-items: start; padding: 48px 0 80px;
}
@media (min-width: 1024px) {
    .bd-auth-layout { grid-template-columns: 1fr 1fr; align-items: center; min-height: 80vh; }
}
.bd-auth-left {
    background: linear-gradient(160deg, var(--bd-navy) 0%, var(--bd-navy-2) 100%);
    color: #fff; padding: 48px; border-radius: 16px;
    display: none;
}
@media (min-width: 1024px) { .bd-auth-left { display: block; } }
.bd-auth-left h2 { font-size: 28px; font-weight: 800; margin: 0 0 16px; line-height: 1.3; }
.bd-auth-left p { font-size: 14px; color: #C9D1DE; line-height: 1.7; margin: 0 0 28px; }
.bd-auth-benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bd-auth-benefits li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: #E8EDF4; line-height: 1.4;
}
.bd-auth-benefits li::before {
    content: '✓'; font-weight: 800; color: var(--bd-coral);
    flex-shrink: 0; margin-top: 1px;
}
.bd-auth-right { padding: 0 20px; }
@media (min-width: 1024px) { .bd-auth-right { padding: 0 48px; } }
.bd-auth-box { max-width: 400px; margin: 0 auto; }
.bd-auth-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--bd-line); margin-bottom: 28px; }
.bd-auth-tab {
    padding: 12px 24px; font-size: 15px; font-weight: 700; cursor: pointer;
    color: var(--bd-mute); border-bottom: 2px solid transparent; margin-bottom: -2px;
    background: transparent; border-top: 0; border-left: 0; border-right: 0;
}
.bd-auth-tab.is-active { color: var(--bd-navy); border-bottom-color: var(--bd-coral); }
.bd-auth-form-group { margin-bottom: 14px; }
.bd-auth-form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--bd-ink-2); margin-bottom: 5px; }
.bd-auth-form-group input {
    display: block; width: 100%; padding: 12px 14px;
    border: 1px solid var(--bd-line); border-radius: 8px;
    font-size: 14px; font-family: inherit;
    transition: border-color .15s;
}
.bd-auth-form-group input:focus { outline: 0; border-color: var(--bd-coral); box-shadow: 0 0 0 3px rgba(43,98,232,0.12); }
.bd-auth-error { background: var(--bd-coral-soft); color: var(--bd-coral-strong); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.bd-auth-divider { text-align: center; font-size: 12px; color: var(--bd-mute); margin: 16px 0; }
.bd-auth-footer { margin-top: 20px; text-align: center; font-size: 12px; color: var(--bd-ink-2); }
.bd-auth-footer a { color: var(--bd-coral); font-weight: 600; }

/* ============================================================
   분양현장 상세 — 정보요청 카운터 강조 (Frame 02)
   ============================================================ */
.bd-cta-card .bd-interest-meter { margin-bottom: 14px; }
.bd-cta-card .bd-aicta-mini { border: 1px dashed var(--bd-navy); }

/* ============================================================
   아카이브 — 태그/카테고리 진입 칩
   ============================================================ */
.bd-archive-tag-section { padding: 16px 0 8px; }
.bd-archive-tag-section h2 { font-size: 14px; font-weight: 700; color: var(--bd-ink-2); margin: 0 0 10px; }
.bd-archive-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.bd-archive-tags a { font-size: 12px; padding: 6px 12px; background: var(--bd-soft); border: 1px solid var(--bd-line); border-radius: var(--bd-radius-pill); color: var(--bd-ink-2); font-weight: 500; }
.bd-archive-tags a:hover { background: var(--bd-coral-soft); color: var(--bd-coral-strong); border-color: var(--bd-coral-soft-2); }

/* ============================================================
   지도 컨테이너 z-index (Leaflet 팝업이 헤더 뒤로 안 숨게)
   ============================================================ */
.leaflet-pane { z-index: 400 !important; }
.leaflet-top, .leaflet-bottom { z-index: 500 !important; }
.leaflet-popup { z-index: 600 !important; }

/* ============================================================
   전체화면 지도 페이지 (page-map.php)
   ============================================================ */

/* 지도 페이지는 body에 .page-template-page-map-php 클래스가 붙음 */
.page-template-page-map-php .bd-main,
.page-template-page-map-php main {
    padding: 0 !important;
    margin: 0 !important;
}

.bd-map-page-wrap {
    display: grid;
    grid-template-columns: 340px 1fr;
    height: calc(100vh - 64px); /* 헤더 높이 제외 */
    overflow: hidden;
    position: relative;
}

/* ── 왼쪽 패널 ── */
.bd-map-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid var(--bd-line);
    background: #fff;
    z-index: 10;
}

.bd-map-panel-head {
    padding: 16px 16px 0;
    border-bottom: 1px solid var(--bd-line);
    flex-shrink: 0;
}

.bd-map-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 10px;
}

.bd-map-pin-count {
    background: var(--bd-coral);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--bd-radius-pill);
}

.bd-map-panel-search {
    margin-bottom: 10px;
}

.bd-map-panel-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--bd-line);
    border-radius: var(--bd-radius-sm);
    font-size: 13px;
    font-family: inherit;
    background: var(--bd-soft);
    box-sizing: border-box;
}

.bd-map-panel-search input:focus {
    outline: 0;
    border-color: var(--bd-coral);
    background: #fff;
}

.bd-map-panel-filters {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.bd-map-filter-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid var(--bd-line);
    border-radius: var(--bd-radius-pill);
    background: #fff;
    color: var(--bd-ink-2);
    cursor: pointer;
    font-family: inherit;
}

.bd-map-filter-btn.is-active {
    background: var(--bd-navy);
    color: #fff;
    border-color: var(--bd-navy);
}

.bd-map-panel-regions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding-bottom: 12px;
}

.bd-map-region-btn {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border: 1px solid var(--bd-line);
    border-radius: var(--bd-radius-pill);
    background: #fff;
    color: var(--bd-ink-2);
    cursor: pointer;
    font-family: inherit;
}

.bd-map-region-btn.is-active {
    background: var(--bd-coral-soft);
    color: var(--bd-coral-strong);
    border-color: var(--bd-coral-soft-2);
}

/* 목록 스크롤 영역 */
.bd-map-list {
    flex: 1;
    overflow-y: auto;
    list-style: none;
    margin: 0;
    padding: 0;
    overscroll-behavior: contain;
}

.bd-map-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--bd-line-2);
    cursor: pointer;
    transition: background .1s;
}

.bd-map-list-item:hover,
.bd-map-list-item.is-active {
    background: var(--bd-coral-soft);
}

.bd-map-list-item.is-active {
    border-left: 3px solid var(--bd-coral);
    padding-left: 13px;
}

.bd-map-list-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background-color: var(--bd-soft);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.bd-map-list-thumb-empty {
    background: linear-gradient(135deg, #4A5568, #7B8B9C);
}

.bd-map-list-info {
    flex: 1;
    min-width: 0;
}

.bd-map-list-badges {
    display: flex;
    gap: 4px;
    margin-bottom: 3px;
    flex-wrap: wrap;
}

.bd-map-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
}

.bd-map-badge-status { background: var(--bd-coral); color: #fff; }
.bd-map-badge-mh     { background: var(--bd-navy);  color: #fff; }
.bd-map-badge-region { background: var(--bd-soft); color: var(--bd-ink-2); border: 1px solid var(--bd-line); }

.bd-map-list-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.bd-map-list-meta {
    font-size: 11px;
    color: var(--bd-mute);
}

.bd-map-list-count {
    font-size: 10px;
    color: var(--bd-coral);
    font-weight: 600;
    margin-top: 2px;
}

.bd-map-list-go {
    color: var(--bd-mute);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    padding: 4px;
    transition: color .1s;
}

.bd-map-list-go:hover { color: var(--bd-coral); }

.bd-map-list-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--bd-mute);
    font-size: 13px;
    line-height: 1.8;
}

/* ── 오른쪽 지도 ── */
.bd-map-area {
    position: relative;
    height: 100%;
}

#bd-kakao-map {
    width: 100%;
    height: 100%;
}

.bd-map-no-key {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bd-soft);
}

.bd-map-no-key-inner {
    text-align: center;
    padding: 40px;
    max-width: 400px;
}

.bd-map-no-key-inner h2 {
    font-size: 20px;
    margin: 16px 0 12px;
}

.bd-map-no-key-inner p {
    font-size: 14px;
    color: var(--bd-ink-2);
    line-height: 1.8;
}

.bd-map-no-key-inner a {
    color: var(--bd-coral);
    font-weight: 600;
}

/* 모바일 패널 토글 버튼 */
.bd-map-toggle-panel {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: var(--bd-navy);
    color: #fff;
    border: 0;
    padding: 12px 22px;
    border-radius: var(--bd-radius-pill);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    cursor: pointer;
    gap: 8px;
    align-items: center;
}

/* ── 카카오 커스텀 핀 ── */
.bd-kakao-pin {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform .18s cubic-bezier(.34,1.56,.64,1);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.30));
}
.bd-kakao-pin:hover { transform: translateY(-6px) scale(1.04); }

/* 핀 카드 본체 */
.bd-pin-card {
    width: 90px;
    border-radius: 10px 10px 6px 6px;
    overflow: hidden;
    background: #fff;
    border: 2.5px solid var(--pc, #2B62E8);
    position: relative;
}

/* 이미지 박스 */
.bd-pin-thumb-box {
    width: 90px;
    height: 60px;
    background: linear-gradient(135deg, var(--pc, #2B62E8) 0%, color-mix(in srgb, var(--pc, #2B62E8) 40%, #fff) 100%);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* color-mix 미지원 폴백 */
@supports not (color: color-mix(in srgb, red, blue)) {
    .bd-pin-thumb-box {
        background: linear-gradient(135deg, var(--pc, #2B62E8) 0%, rgba(255,255,255,.35) 100%);
    }
}

.bd-pin-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 핀 하단 풋터 */
.bd-pin-foot {
    background: var(--pc, #2B62E8);
    padding: 4px 7px 5px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.bd-pin-tag {
    font-size: 9px;
    font-weight: 800;
    color: rgba(255,255,255,.8);
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1;
}
.bd-pin-nm {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
    letter-spacing: -.01em;
}

/* 클러스터 — 스택 겹침 효과 */
.bd-pin-stack::before,
.bd-pin-stack::after {
    content: '';
    position: absolute;
    border-radius: 8px;
    border: 2px solid var(--pc, #2B62E8);
    background: rgba(255,255,255,.75);
    z-index: -1;
}
.bd-pin-stack::before {
    inset: -4px 4px 4px; /* top right bottom left */
    opacity: .65;
}
.bd-pin-stack::after {
    inset: -8px 8px 8px;
    opacity: .35;
}

/* 클러스터 카운트 뱃지 */
.bd-pin-count-badge {
    position: absolute;
    top: 6px; right: 6px;
    min-width: 22px;
    height: 22px;
    background: rgba(0,0,0,.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    letter-spacing: -.02em;
    border: 1.5px solid rgba(255,255,255,.4);
}

/* 꼬리 삼각형 */
.bd-kakao-pin-tail {
    width: 0; height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 11px solid var(--pc, #2B62E8);
    margin-top: -2px;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,.18));
}

/* ══════════════════════════════════════════
   가격 말풍선 핀 (새 디자인)
   ══════════════════════════════════════════ */
.bd-price-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform-origin: bottom center;
}
/* v3: 솔리드 색 가격 필 + 아래 dot */
.bd-price-pin-pill {
    background: var(--pc, #2B62E8);
    color: #fff;
    border-radius: 20px;
    padding: 5px 12px;
    min-width: 58px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -.2px;
    white-space: nowrap;
    line-height: 1.1;
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
    transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.bd-price-pin-dot {
    width: 7px; height: 7px;
    background: var(--pc, #2B62E8);
    border: 2px solid var(--pc, #2B62E8);
    border-radius: 50%;
    margin-top: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    transition: background .15s;
}
.bd-price-pin:hover .bd-price-pin-pill,
.bd-price-pin.is-active .bd-price-pin-pill {
    background: #fff;
    color: var(--pc, #2B62E8);
    box-shadow: 0 0 0 3px var(--pc, #2B62E8), 0 6px 18px rgba(0,0,0,.22);
    transform: scale(1.14) translateY(-2px);
}
.bd-price-pin:hover .bd-price-pin-dot,
.bd-price-pin.is-active .bd-price-pin-dot { background: #fff; }
.bd-price-pin:hover, .bd-price-pin.is-active { z-index: 100; }

.bd-price-pin-tail {
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--pc, #2B62E8);
    margin-top: -1px;
}

/* ── 시도별 원형 클러스터 (줌아웃 level 9+) ── */
.bd-sido-cluster {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    text-align: center;
    line-height: 1.05;
    /* 색상은 JS에서 --cc 로 주입 (인라인 background 단축속성이 그라디언트를 덮어쓰지 않도록) */
    background: radial-gradient(circle at 38% 30%, rgba(255,255,255,.28), rgba(255,255,255,0) 55%), var(--cc, #2B62E8);
    border: 3px solid #fff;
    box-shadow: 0 6px 16px rgba(43,98,232,.4), 0 2px 5px rgba(25,31,40,.25);
    transition: transform .15s ease, box-shadow .15s ease;
}
.bd-sido-cluster:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 24px rgba(43,98,232,.5), 0 3px 8px rgba(25,31,40,.28);
}
.bd-sido-cluster-name {
    font-size: 11px;
    font-weight: 800;
    opacity: .92;
    letter-spacing: -.02em;
    margin-bottom: 1px;
}
.bd-sido-cluster-count {
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -.03em;
}
.bd-sido-cluster-count span {
    font-size: 10px;
    font-weight: 700;
    margin-left: 1px;
}
.bd-sido-cluster-price {
    font-size: 9px;
    font-weight: 700;
    margin-top: 2px;
    background: rgba(25,31,40,.24);
    border-radius: 7px;
    padding: 1px 6px;
}

/* ── 그룹 클러스터 핀 ── */
.bd-cluster-pin {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform-origin: bottom center;
    transition: transform .15s;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.22));
}
.bd-cluster-pin:hover { transform: scale(1.06); }
.bd-cluster-pin-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--pc, #2B62E8);
    color: #fff;
    padding: 8px 14px;
    border-radius: 14px;
    min-width: 58px;
    border: 2px solid rgba(255,255,255,.35);
}
.bd-cluster-pin-count {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}
.bd-cluster-pin-lbl {
    font-size: 9px;
    font-weight: 600;
    opacity: .85;
    margin-top: 1px;
}
.bd-cluster-avg {
    font-size: 10px;
    font-weight: 700;
    margin-top: 4px;
    background: rgba(0,0,0,.15);
    border-radius: 8px;
    padding: 1px 6px;
}

/* ── 클러스터 배너 (사이드바 내) ── */
.bd-cluster-banner {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: var(--bd-navy);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    gap: 8px;
}
.bd-cluster-banner-clear {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.bd-cluster-banner-clear:hover { background: rgba(255,255,255,.28); }

/* ── 카카오 인포윈도우 ── */
.bd-kakao-info {
    width: 260px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,.28);
    font-family: 'Noto Sans KR', sans-serif;
    position: relative;
    /* 아래쪽 말풍선 꼬리 */
}
.bd-kakao-info::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
    filter: drop-shadow(0 4px 4px rgba(0,0,0,.12));
    pointer-events: none;
}

/* 이미지 영역 */
.bdi-thumb {
    height: 140px;
    overflow: hidden;
    position: relative;
    background: #E8ECF2;
}

.bdi-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}

/* 이미지 없을 때 그라디언트 + 준비중 */
.bdi-thumb-empty {
    height: 140px;
    background: linear-gradient(135deg, #1B3A5C 0%, #2B62E8 60%, #60A5FA 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    gap: 4px;
}

.bdi-preparing {
    color: rgba(255,255,255,0.95);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
    line-height: 1.4;
}

/* 닫기 버튼 — 이미지 우상단에 통합 */
.bdi-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    line-height: 1;
    transition: background .15s;
}
.bdi-close:hover { background: rgba(0,0,0,.75); }

/* ── 슬라이드 네비게이션 ── */
.bdi-slide-nav {
    position: absolute;
    bottom: 8px;
    left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 15;
}
.bdi-slide-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
}
.bdi-slide-btn:hover { background: rgba(0,0,0,.75); }
.bdi-slide-dot {
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    min-width: 40px;
    text-align: center;
}

/* ── 사이드바 핀 목록 썸네일 ── */
.bd-pin-thumb-wrap {
    width: 52px;
    height: 42px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #1B3A5C, #2B62E8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bd-pin-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bd-pin-thumb-wrap .bd-pin-no-img-icon {
    font-size: 18px;
    line-height: 1;
}

.bdi-body { padding: 12px 14px 14px; }

.bdi-badges { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }

.bdi-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: .01em;
}

.bdi-badge-status { background: #2B62E8; color: #fff; }
.bdi-badge-mh     { background: #16223D; color: #fff; }
.bdi-badge-region { background: #EEF2FF; color: #3B5BDB; }

.bdi-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.35;
    letter-spacing: -.02em;
    color: #111827;
}

.bdi-addr {
    font-size: 11px;
    color: #9CA3AF;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bdi-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: #4E5968;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.bdi-price { font-weight: 800; color: #2B62E8; font-size: 12px; }
.bdi-count { color: #6B7280; }

.bdi-cta {
    display: block;
    background: linear-gradient(135deg, #1B3A5C 0%, #2B62E8 100%);
    color: #fff;
    text-align: center;
    padding: 9px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .01em;
    transition: opacity .15s;
}

.bdi-cta:hover { opacity: .88; }

/* ── 반응형 (기존 그리드 방식 — 호환용) ── */
@media (max-width: 768px) {
    .bd-map-page-wrap {
        grid-template-columns: 1fr;
        height: calc(100vh - 64px);
    }
    .bd-map-area { grid-column: 1; }
    .bd-map-toggle-panel { display: inline-flex; }
}

/* ============================================================
   분양지도 v2 — 풀스크린 레이아웃 (개발지시서 v2.0)
   ============================================================ */

/* 전체 래퍼 — page-map.php inline style이 flex:1로 높이 제어 */
.bd-map-fullscreen {
    display: flex;
    flex-direction: column;
    /* height는 page-map.php wp_head CSS의 flex:1 로 결정됨 */
    overflow: hidden;
}

.bd-map-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* ── 좌측 패널 ── */
.bd-map-panel {
    width: 356px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1.5px solid #ECEEF4;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10;
}

.bd-map-panel-head {
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--bd-line);
    flex-shrink: 0;
    background: #fff;
}

.bd-map-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bd-map-icon-pin { font-size: 20px; }

.bd-map-panel-h1 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -.02em;
    color: #16223D;
}

.bd-map-panel-sub {
    font-size: 11px;
    color: #8B95A1;
    margin-left: auto;
}

/* 검색 */
.bd-map-search {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    border: 1px solid var(--bd-line);
    border-radius: 8px;
    overflow: hidden;
    background: #F2F4F6;
    transition: border-color .15s, background .15s;
}

.bd-map-search:focus-within {
    border-color: var(--bd-coral);
    background: #fff;
}

.bd-map-search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 9px 12px;
    font-size: 13px;
    font-family: inherit;
    color: #16223D;
    outline: none;
}

.bd-map-search input::placeholder { color: #b0b8c7; }

.bd-map-search button {
    background: #EDEFF3;
    color: #4E5968;
    border: 0;
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
}

.bd-map-search button:hover { background: var(--bd-coral); color: #fff; }

/* 카테고리 탭 — v3 채운 박스 방식 */
.bd-map-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.bd-map-tab {
    flex: 1;
    height: 34px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    background: #F9FAFB;
    color: #6B7684;
    border: 1.5px solid #E5E8EE;
    border-radius: 8px;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
}

.bd-map-tab.is-active {
    background: var(--bd-coral);
    color: #fff;
    font-weight: 700;
    border-color: var(--bd-coral);
}

.bd-map-tab:hover:not(.is-active) {
    border-color: var(--bd-coral);
    color: var(--bd-coral);
}

/* 정렬 드롭다운 */
.bd-map-sort-select {
    font-size: 12px; font-weight: 600; color: #16223D;
    background: #fff; border: 1px solid var(--bd-line); border-radius: 6px;
    padding: 5px 26px 5px 10px; cursor: pointer; font-family: inherit; outline: none;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A94A6' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 9px center;
}
.bd-map-sort-select:hover { border-color: #16223D; }

/* 가격 범위 슬라이더 (패널 헤더 다크 배경) */
.bd-price-slider { margin-top: 10px; }
.bd-price-slider-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bd-price-slider-lbl { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.6); }
.bd-price-slider-val { font-size: 12px; font-weight: 700; color: #fff; }
.bd-price-slider-track { position: relative; height: 24px; }
.bd-price-slider-track::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    height: 4px; border-radius: 2px; background: rgba(255,255,255,.18);
}
.bd-price-slider-fill {
    position: absolute; top: 50%; transform: translateY(-50%);
    height: 4px; border-radius: 2px; background: #2B62E8; left: 0; right: 0;
}
.bd-price-slider-track input[type=range] {
    position: absolute; top: 0; left: 0; width: 100%; height: 24px; margin: 0;
    background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.bd-price-slider-track input[type=range]::-webkit-slider-runnable-track { background: none; height: 24px; }
.bd-price-slider-track input[type=range]::-moz-range-track { background: none; height: 24px; }
.bd-price-slider-track input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%;
    background: #fff; border: 2px solid #2B62E8; cursor: pointer; pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,.3); margin-top: 4px;
}
.bd-price-slider-track input[type=range]::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #2B62E8;
    cursor: pointer; pointer-events: auto; box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* 스켈레톤 로딩 */
.bd-skeleton {
    background: linear-gradient(90deg, #F2F4F6 25%, #E5E8EB 50%, #F2F4F6 75%);
    background-size: 200% 100%; animation: bd-shimmer 1.4s infinite; border-radius: 6px;
}
@keyframes bd-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.bd-card-skeleton { background: #fff; border: 1px solid #F2F4F6; border-radius: 10px; overflow: hidden; }
.bd-card-skeleton .bd-skeleton-img { padding-bottom: 56.25%; border-radius: 0; }
.bd-card-skeleton .bd-skeleton-line { height: 12px; margin: 8px 10px; border-radius: 4px; }
.bd-card-skeleton .bd-skeleton-line.sm { width: 60%; }

/* 관련 콘텐츠 내부링크 블록 (SEO 노출 구조화) */
.bd-related-internal { background: #F7F9FB; border-top: 1px solid var(--bd-line); }
.bd-related-mh-head { margin-top: 28px; }
.bd-related-mh-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 640px) { .bd-related-mh-list { grid-template-columns: 1fr 1fr; } }
.bd-related-mh-list a {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: #fff; border: 1px solid var(--bd-line); border-radius: 10px; padding: 12px 16px;
    transition: box-shadow .15s, border-color .15s;
}
.bd-related-mh-list a:hover { box-shadow: 0 4px 16px rgba(25,31,40,.1); border-color: var(--bd-coral); }
.bd-related-mh-name { font-size: 14px; font-weight: 700; color: #16223D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-related-mh-go { font-size: 12px; font-weight: 700; color: var(--bd-coral); white-space: nowrap; flex-shrink: 0; }

/* 지역 허브 — 모델하우스 미니 카드 */
.bd-mh-mini { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; border: 1px solid var(--bd-line); background: #fff; transition: box-shadow .15s, transform .15s; }
.bd-mh-mini:hover { box-shadow: 0 6px 20px rgba(25,31,40,.12); transform: translateY(-1px); }
.bd-mh-mini-thumb { position: relative; padding-bottom: 56.25%; background-size: cover; background-position: center; }
.bd-mh-mini-thumb .bd-chip { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.bd-mh-mini-body { padding: 10px 12px 12px; }
.bd-mh-mini-title { font-size: 14px; font-weight: 700; color: #16223D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.bd-mh-mini-hours { font-size: 11px; color: #8B95A1; }

/* 맞춤 추천 섹션 */
.bd-recommend-section { background: linear-gradient(180deg, var(--bd-soft) 0%, #fff 100%); }
.bd-recommend-section .bd-section-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bd-recommend-sub { font-size: 13px; color: #8B95A1; }

/* ══════════════════════════════
   홈 히어로 + 검색
   ══════════════════════════════ */
.bd-hero-search {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, #EEF3FF 0%, #F7FAFF 55%, #fff 100%);
    padding: 56px 0 52px;
}
/* 비대칭 그리드: 좌 카피/검색 + 우 지도 프리뷰 (오늘살집 v2) */
.bd-hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 960px) { .bd-hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } }
.bd-hero-left { min-width: 0; }
.bd-hero-live {
    display: inline-flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid #D3E0FF; border-radius: 100px;
    padding: 7px 15px; margin-bottom: 20px;
    font-size: 13px; font-weight: 700; color: #55627E;
    box-shadow: 0 4px 14px rgba(43,98,232,.08);
}
.bd-hero-live b { color: var(--bd-coral); }
.bd-hero-live-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--bd-success);
    animation: bd-softpulse 2s infinite;
}
@keyframes bd-softpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.bd-hero-form-ico { color: var(--bd-mute-2, #949FB5); flex-shrink: 0; }
.bd-hero-stats { display: flex; gap: 28px; margin: 22px 0 18px; }
.bd-hero-stat { display: flex; flex-direction: column; }
.bd-hero-stat b { font-size: 26px; font-weight: 800; color: var(--bd-ink); letter-spacing: -.03em; }
.bd-hero-stat span { font-size: 12px; color: var(--bd-mute-2, #949FB5); font-weight: 600; margin-top: 1px; }
/* 지도 프리뷰 카드 */
.bd-hero-map {
    position: relative; display: block; height: 420px;
    border-radius: 24px; overflow: hidden; text-decoration: none;
    border: 1px solid var(--bd-line-3, #E8ECF3); background: #D8E4EF;
    box-shadow: 0 24px 60px rgba(14,26,51,.18);
    transition: transform .2s ease, box-shadow .2s ease;
}
.bd-hero-map:hover { transform: translateY(-3px); box-shadow: 0 30px 70px rgba(14,26,51,.22); }
.bd-hm-base  { position: absolute; inset: 0; background: linear-gradient(135deg, #DCE7F2, #CEDCEC); }
.bd-hm-grid  {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.5) 2px, transparent 2px), linear-gradient(90deg, rgba(255,255,255,.5) 2px, transparent 2px);
    background-size: 62px 62px;
}
.bd-hm-road-v { position: absolute; top: 0; left: 38%; width: 26px; height: 100%; background: rgba(255,255,255,.82); transform: skewX(-6deg); }
.bd-hm-road-h { position: absolute; top: 44%; left: 0; width: 100%; height: 22px; background: rgba(255,255,255,.78); transform: rotate(-3deg); }
.bd-hm-park  { position: absolute; top: 12%; left: 8%; width: 110px; height: 88px; background: rgba(182,214,168,.7); border-radius: 16px; }
.bd-hm-water { position: absolute; bottom: 9%; right: 9%; width: 128px; height: 98px; background: rgba(172,200,224,.72); border-radius: 18px; }
.bd-hm-pin   { position: absolute; transform: translate(-50%,-100%); z-index: 4; text-align: center; }
.bd-hm-pill  {
    display: inline-block; background: var(--bd-coral); color: #fff;
    font-size: 12px; font-weight: 800; padding: 6px 11px; border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,.22); white-space: nowrap;
}
.bd-hm-pill-active { background: #fff; color: var(--bd-coral); box-shadow: 0 0 0 3px var(--bd-coral), 0 6px 16px rgba(0,0,0,.2); }
.bd-hm-pill-mh   { background: #6D5EF0; font-size: 11px; }
.bd-hm-pill-soon { background: #E8912B; }
.bd-hm-dot { display: block; width: 7px; height: 7px; background: var(--bd-coral); border: 2px solid #fff; border-radius: 50%; margin: 2px auto 0; }
.bd-hm-dot-mh   { background: #6D5EF0; }
.bd-hm-dot-soon { background: #E8912B; }
.bd-hm-cta {
    position: absolute; left: 16px; bottom: 16px; z-index: 5;
    background: rgba(14,26,51,.85); color: #fff; backdrop-filter: blur(4px);
    font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 12px;
}
@media (max-width: 959px) { .bd-hero-map { height: 300px; } }

/* ── 히어로 실제 카카오 지도 (이번주 인기 현장) ── */
.bd-hero-map--live { display: block; cursor: pointer; }
.bd-hero-kkomap {
    position: absolute; inset: 0; z-index: 1;
    /* SDK 로딩/실패 시에도 흰 화면이 안 되도록 지도풍 플레이스홀더 */
    background:
        linear-gradient(135deg, #EEF3FF 0%, #E4ECFB 100%),
        repeating-linear-gradient(0deg, rgba(43,98,232,.05) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(90deg, rgba(43,98,232,.05) 0 1px, transparent 1px 34px);
    background-blend-mode: normal;
}
.bd-hero-live-badge {
    position: absolute; top: 14px; left: 14px; z-index: 5;
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.94); color: var(--bd-coral); backdrop-filter: blur(4px);
    font-size: 12px; font-weight: 800; padding: 6px 11px; border-radius: 20px;
    box-shadow: 0 4px 14px rgba(14,26,51,.14);
}
/* 히어로 지도 커스텀 핀 */
.bd-hero-pin { display: flex; flex-direction: column; align-items: center; cursor: pointer; user-select: none; }
/* 부드러운 스프링 이징 (활성 전환 시 살짝 튀는 느낌) */
.bd-hero-pin-pill {
    display: inline-flex; align-items: center; background: var(--bd-coral); color: #fff;
    font-size: 12px; font-weight: 800; padding: 6px 11px; border-radius: 20px; white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,.22); border: 2px solid #fff;
    transform-origin: bottom center;
    transition: transform .5s cubic-bezier(.34,1.4,.5,1), background .45s ease, color .45s ease, box-shadow .45s ease;
}
.bd-hero-pin-name {
    display: inline-block; max-width: 0; opacity: 0; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis; vertical-align: bottom;
    transition: max-width .5s cubic-bezier(.4,0,.2,1), opacity .35s ease .05s, margin-right .5s cubic-bezier(.4,0,.2,1);
}
.bd-hero-pin-price { display: inline-block; }
.bd-hero-pin-tail {
    width: 0; height: 0; margin-top: -1px;
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--bd-coral);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.15));
    transition: border-top-color .45s ease;
}
.bd-hero-pin-crown {
    font-size: 10px; font-weight: 900; color: #fff; background: var(--bd-ink, #16223D);
    padding: 1px 7px; border-radius: 8px; margin-bottom: 3px; opacity: .5;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
    transform: translateY(2px) scale(.92);
    transition: background .45s ease, opacity .45s ease, transform .5s cubic-bezier(.34,1.4,.5,1);
}
/* 비활성 핀은 부드럽게 축소·반투명하게 물러남 */
.bd-hero-pin:not(.is-active) .bd-hero-pin-pill { transform: scale(.88); opacity: .8; }
/* 현재 순회 중인(활성) 현장 강조 */
.bd-hero-pin.is-active { z-index: 40; }
.bd-hero-pin.is-active .bd-hero-pin-crown {
    background: var(--bd-coral); opacity: 1; transform: translateY(0) scale(1);
    box-shadow: 0 3px 8px rgba(43,98,232,.4);
}
.bd-hero-pin.is-active .bd-hero-pin-name { max-width: 150px; opacity: 1; margin-right: 7px; }
.bd-hero-pin.is-active .bd-hero-pin-pill {
    background: #fff; color: var(--bd-coral); border-color: var(--bd-coral); transform: scale(1.04);
    box-shadow: 0 0 0 3px rgba(43,98,232,.18), 0 8px 22px rgba(14,26,51,.24);
    animation: bd-hero-pin-pulse 2.6s ease-in-out infinite;
}
.bd-hero-pin.is-active .bd-hero-pin-tail { border-top-color: #fff; }
@keyframes bd-hero-pin-pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(43,98,232,.18), 0 8px 22px rgba(14,26,51,.24); }
    50%     { box-shadow: 0 0 0 8px rgba(43,98,232,.04), 0 8px 22px rgba(14,26,51,.24); }
}

/* ── 모바일 하단 고정 푸터 내비 ── */
.bd-mobfoot { display: none; }
@media (max-width: 767px) {
    .bd-mobfoot {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 130;
        display: flex; background: #fff; border-top: 1px solid var(--bd-line, #E8ECF3);
        box-shadow: 0 -2px 12px rgba(14,26,51,.08);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .bd-mobfoot a {
        flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; padding: 8px 4px; text-decoration: none;
        font-size: 10px; font-weight: 700; color: #6B7684; letter-spacing: -.02em;
    }
    .bd-mobfoot a svg { width: 21px; height: 21px; stroke: currentColor; }
    .bd-mobfoot a.is-active { color: var(--bd-coral); }
    .bd-mobfoot a:active { background: #F4F6FA; }
    /* 고정 바가 하단 콘텐츠(카피라이트)를 가리지 않게 여유 */
    .bd-footer-bottom { padding-bottom: calc(14px + 56px + env(safe-area-inset-bottom, 0px)); }
}
.bd-hero-search::before {
    content: ''; position: absolute; top: -120px; right: -80px;
    width: 460px; height: 460px; pointer-events: none;
    background: radial-gradient(circle, rgba(43,98,232,.14), transparent 68%);
}
.bd-hero-search::after {
    content: ''; position: absolute; bottom: -160px; left: -100px;
    width: 420px; height: 420px; pointer-events: none;
    background: radial-gradient(circle, rgba(49,130,246,.09), transparent 70%);
}
.bd-hero-search > .bd-container { position: relative; }
.bd-hero-title {
    color: var(--bd-ink); font-size: 52px; font-weight: 800; text-align: left;
    margin: 0 0 14px; letter-spacing: -.045em; line-height: 1.14; text-wrap: balance;
}
.bd-hero-title b, .bd-hero-title strong { color: var(--bd-coral); }
.bd-hero-sub { color: #55627E; font-size: 17px; font-weight: 500; text-align: left; margin: 0 0 26px; line-height: 1.62; }
.bd-hero-form {
    display: flex; gap: 10px; align-items: center;
    max-width: 520px; margin: 0 0 4px;
    background: #fff; border: 1px solid var(--bd-line-3, #E8ECF3);
    border-radius: 18px; overflow: hidden; padding: 7px 7px 7px 20px;
    box-shadow: 0 16px 44px rgba(14,26,51,.12);
}
.bd-hero-form input[type=search] {
    flex: 1; border: 0; padding: 12px 0; font-size: 16px; font-weight: 500; font-family: inherit;
    color: var(--bd-ink); outline: none; min-width: 0; background: transparent;
}
.bd-hero-form button {
    display: flex; align-items: center; gap: 6px;
    background: var(--bd-coral); color: #fff; border: 0;
    padding: 13px 26px; border-radius: 14px;
    font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
    transition: background .15s; flex-shrink: 0;
}
.bd-hero-form button:hover { background: var(--bd-coral-hover); }
.bd-hero-quick { display: flex; gap: 8px; justify-content: flex-start; align-items: center; flex-wrap: wrap; }
.bd-hero-quick-lbl { color: var(--bd-mute); font-size: 12px; font-weight: 600; }
.bd-hero-chip {
    color: var(--bd-ink-2); background: #fff;
    border: 1px solid var(--bd-line); border-radius: 100px;
    padding: 8px 16px; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: border-color .15s, color .15s;
}
.bd-hero-chip:hover { border-color: var(--bd-coral); color: var(--bd-coral); background: #fff; }
@media (max-width: 640px) {
    .bd-hero-search { padding: 34px 0 28px; }
    .bd-hero-title { font-size: 32px; }
    .bd-hero-sub { font-size: 14px; margin-bottom: 20px; }
    .bd-hero-form input[type=search] { padding: 12px 8px; font-size: 14px; }
    .bd-hero-form button { padding: 12px 16px; font-size: 14px; }
    .bd-hero-stats { gap: 20px; margin: 18px 0 14px; }
    .bd-hero-stat b { font-size: 18px; }
}

/* 실거래가 결과 카드 리스트 */
.bd-re-list { display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.bd-re-item {
    background: #fff; border: 1px solid #F2F4F6; border-radius: 8px;
    padding: 9px 12px;
}
.bd-re-item-main { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bd-re-item-name {
    font-size: 12px; font-weight: 700; color: #16223D;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bd-re-item-amount { font-size: 13px; font-weight: 800; color: #2B62E8; white-space: nowrap; flex-shrink: 0; }
.bd-re-item-sub { font-size: 11px; color: #8B95A1; margin-top: 3px; }

/* 토스트 알림 */
.bd-toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
    background: #16223D; color: #fff; padding: 10px 20px; border-radius: 20px;
    font-size: 13px; font-weight: 600; z-index: 99999; max-width: 86vw; text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
    animation: bd-toast-in .22s ease, bd-toast-out .25s ease 2.1s forwards;
}
.bd-toast-success { background: #15803D; }
.bd-toast-error   { background: #B91C1C; }
@keyframes bd-toast-in  { from { opacity:0; transform:translateX(-50%) translateY(12px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
@keyframes bd-toast-out { from { opacity:1; } to { opacity:0; transform:translateX(-50%) translateY(8px); } }

/* 지역 칩 */
/* 지역 필터 컨테이너 */
.bd-map-regions {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--bd-line);
    flex-shrink: 0;
}

/* ── 1단계: 시도 row ── */
.bd-sido-row {
    display: flex;
    gap: 5px;
    padding: 10px 16px 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.bd-sido-row::-webkit-scrollbar { display: none; }

.bd-sido-chip {
    font-size: 12px;
    font-weight: 600;
    background: #F2F4F6;
    color: var(--bd-ink-2);
    padding: 5px 12px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: background .15s, color .15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}
.bd-sido-chip:hover { background: #EBEDF0; }
.bd-sido-chip.is-active {
    background: var(--bd-navy);
    color: #fff;
    font-weight: 700;
}
.bd-sido-chip.is-active .bd-chip-cnt { background: rgba(255,255,255,.25); }

/* ── 2단계: 구군 row ── */
.bd-gugun-row {
    display: none;
    gap: 5px;
    padding: 0 16px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
}
.bd-gugun-row::-webkit-scrollbar { display: none; }
.bd-gugun-row.is-visible { display: flex; }

.bd-gugun-chip {
    font-size: 11px;
    font-weight: 600;
    background: var(--bd-soft);
    color: var(--bd-coral);
    border: 1px solid #C7D7FC;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s, color .15s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}
.bd-gugun-chip:hover { background: #DEE8FF; }
.bd-gugun-chip.is-active {
    background: var(--bd-coral);
    color: #fff;
    border-color: var(--bd-coral);
}
.bd-gugun-chip.is-active .bd-chip-cnt { background: rgba(255,255,255,.25); }
.bd-gugun-all-label { font-weight: 700; }

/* 카운트 뱃지 (공통) */
.bd-chip-cnt {
    background: rgba(0,0,0,.10);
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 999px;
}

/* 구형 .bd-map-chip 하위호환 */
.bd-map-chip {
    font-size: 11px;
    font-weight: 600;
    background: #F2F4F6;
    color: var(--bd-ink);
    padding: 4px 10px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    white-space: nowrap;
}
.bd-map-chip:hover { background: #EBEDF0; }
.bd-map-chip.is-active { background: var(--bd-coral); color: #fff; }
.bd-map-chip-count {
    background: rgba(0,0,0,.12);
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 999px;
}
.bd-map-chip.is-active .bd-map-chip-count { background: rgba(255,255,255,.3); }

/* 목록 헤더 */
.bd-map-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    border-bottom: 1px solid var(--bd-line-2);
    flex-shrink: 0;
}

.bd-map-list-label {
    font-size: 12px;
    color: var(--bd-mute);
    font-weight: 500;
}

.bd-map-list-label strong {
    color: var(--bd-navy);
    font-weight: 800;
}

.bd-map-list-sort {
    font-size: 11px;
    color: var(--bd-mute);
    cursor: pointer;
}

/* 클러스터 배너 */
.bd-cluster-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    background: var(--bd-soft);
    border-bottom: 1px solid #C7D7FC;
    font-size: 12px;
    color: var(--bd-coral);
    font-weight: 600;
    flex-shrink: 0;
}

.bd-cluster-banner-clear {
    font-size: 11px;
    color: var(--bd-mute);
    background: none;
    border: 1px solid var(--bd-line);
    border-radius: 4px;
    padding: 2px 8px;
    cursor: pointer;
}

/* 스크롤 목록 영역 */
.bd-map-panel-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px;
    overflow-x: hidden;
}

/* 단지 목록 아이템 카드 — v3 가로형 (썸네일 88px 좌 + 내용 우) */
.bd-map-item {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #EDF0F6;
    min-height: 0;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(15,30,60,.05);
    transition: box-shadow .15s, transform .15s, border-color .15s;
}

.bd-map-item:hover {
    box-shadow: 0 4px 18px rgba(15,30,60,.10);
    transform: translateY(-1px);
}

.bd-map-item.is-active {
    border: 2px solid var(--bd-coral);
    box-shadow: 0 0 0 3px rgba(43,98,232,0.16), 0 4px 16px rgba(15,30,60,.08);
}

.bd-map-item-thumb {
    position: relative;
    width: 88px;
    min-width: 88px;
    min-height: 92px;
    overflow: hidden;
    background: #e8edf3 center/cover no-repeat;
    flex-shrink: 0;
    padding: 0;
}

.bd-map-item-noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 배경 그라디언트는 인라인(상태색)으로 주입됨 */
}
.bd-map-item-noimg i {
    font-size: 26px;
    opacity: .18;
    font-style: normal;
}

/* v3: 상태 배지 = 흰 배경 + 상태색 텍스트 (썸네일 좌상단) */
.bd-map-item-thumb .bd-chip {
    position: absolute;
    top: 7px;
    left: 7px;
    bottom: auto;
    z-index: 1;
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .02em;
    background: rgba(255,255,255,.92) !important;
    color: var(--sc, #2B62E8) !important;
}
/* ── 지도·목록 타입 칩 컬러 ── */
.bd-chip-mh          { background: #4338CA; color: #fff; }
.bd-chip-listing     { background: #15803D; color: #fff; }
.bd-chip-sale,
.bd-chip-분양중       { background: var(--bd-coral,#2B62E8); color: #fff; }
.bd-chip-예정,
.bd-chip-yejeong     { background: #16223D; color: #fff; }
.bd-chip-완료,
.bd-chip-wanlyo      { background: #8B95A1; color: #fff; }

.bd-map-item-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    padding: 10px 12px;
    overflow: hidden;
}

.bd-map-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #1A2338;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-bottom: 3px;
}

.bd-map-item-meta {
    font-size: 11px;
    font-weight: 500;
    color: #8B95A1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bd-map-item-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bd-map-item-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--bd-coral);
    letter-spacing: -.3px;
    margin: 6px 0 5px;
}
/* v3: 타입 라벨 = 회색 배지 */
.bd-map-item-typelbl {
    font-size: 10px;
    font-weight: 600;
    background: #F2F4F6;
    color: #4E5968;
    padding: 2px 8px;
    border-radius: 4px;
}
.bd-map-item-countlbl { font-size: 10px; font-weight: 500; color: #9CA3AF; }
/* v3 카드엔 flat_types/화살표 aside 없음 */
.bd-map-item-aside { display: none !important; }

.bd-map-item-req {
    font-size: 10px;
    color: var(--bd-coral);
    font-weight: 600;
}

.bd-map-item-views {
    font-size: 10px;
    color: var(--bd-mute);
    font-weight: 500;
}

/* ── 조회수 뱃지 (전역 공용) ── */
.bd-view-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--bd-mute);
    font-weight: 500;
}

.bd-view-badge svg {
    opacity: .7;
    flex-shrink: 0;
}

/* 카드 내 조회수 */
.bd-card-view {
    color: var(--bd-mute);
    font-size: 10px;
    margin-left: auto;
}

/* 분양현장 single CTA 내 조회수 */
.bd-view-stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--bd-mute);
    margin-top: 6px;
}

.bd-view-stat strong {
    color: var(--bd-ink-2);
    font-weight: 700;
}

/* 팝업 내 조회수 */
.bdi-views {
    font-size: 10px;
    color: var(--bd-mute);
    margin-left: 6px;
}

.bd-map-item-aside {
    display: none;
}

.bd-map-item-types {
    font-size: 10px;
    color: var(--bd-mute);
    text-align: right;
    line-height: 1.3;
    font-weight: 500;
}

.bd-map-item-arrow {
    font-size: 20px;
    color: #BEC5D0;
    line-height: 1;
    font-weight: 300;
}

/* D-Day 배너 + empty msg: 그리드 전체 너비 */
.bd-map-panel-scroll > .bd-dday-banner,
.bd-map-panel-scroll > .bd-empty-msg { grid-column: 1 / -1; }

/* NEW 뱃지: 우상단 */
.bd-map-item-new-badge { top: 7px; left: auto; right: 7px; }

/* ── 패널 하단 (실거래가 + 청약일정) ── */
.bd-map-panel-foot {
    border-top: 1px solid var(--bd-line);
    flex-shrink: 0;
    max-height: 45vh;
    overflow-y: auto;
}

.bd-map-accordion {
    border-bottom: 1px solid var(--bd-line);
}

.bd-map-acc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-navy);
    font-family: inherit;
    text-align: left;
}

.bd-map-acc-toggle:hover { background: var(--bd-soft); }

.bd-acc-arrow {
    font-size: 11px;
    color: var(--bd-mute);
    transition: transform .2s;
}

.bd-map-accordion.is-open .bd-acc-arrow { transform: rotate(180deg); }

.bd-map-acc-body {
    display: none;
    padding: 0 14px 14px;
}

.bd-map-accordion.is-open .bd-map-acc-body { display: block; }

/* ── 지도 영역 ── */
.bd-map-area {
    flex: 1;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.bd-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bd-map-nokey {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
    color: var(--bd-mute);
}

.bd-map-nokey-icon { font-size: 48px; }

/* ── 지도 위 오버레이 ── */
.bd-map-overlay-tl,
.bd-map-overlay-tr,
.bd-map-zoom-btns,
.bd-map-fab,
.bd-map-legend {
    position: absolute;
    z-index: 20;
    pointer-events: all;
}

.bd-map-overlay-tl {
    top: 12px;
    left: 12px;
    display: flex;
    gap: 4px;
}

.bd-map-overlay-tr {
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
}

.bd-map-ov-btn,
.bd-map-type-btn {
    background: #fff;
    border: 1px solid var(--bd-line);
    border-radius: 8px;
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bd-ink-2);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s;
}

.bd-map-ov-btn.is-active,
.bd-map-type-btn.is-active {
    background: var(--bd-navy);
    color: #fff;
    border-color: var(--bd-navy);
}

/* 줌 버튼 */
.bd-map-zoom-btns {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bd-map-zoom-btns button {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid var(--bd-line);
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    transition: background .15s;
    color: var(--bd-ink);
    line-height: 1;
}

.bd-map-zoom-btns button:hover { background: var(--bd-soft); }

/* FAB 버튼 */
.bd-map-fab {
    right: 12px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.bd-fab {
    border: 0;
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    white-space: nowrap;
}

.bd-fab-coral {
    background: var(--bd-coral);
    color: #fff;
    box-shadow: 0 4px 16px rgba(43,98,232,.4);
}

.bd-fab-navy {
    background: var(--bd-navy);
    color: #fff;
    box-shadow: 0 4px 16px rgba(25,31,40,.35);
}

.bd-fab:hover { opacity: .9; }

/* 범례 */
.bd-map-legend {
    left: 12px;
    bottom: 14px;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--bd-line);
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--bd-ink-2);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.bd-legend-item { display: flex; align-items: center; gap: 4px; }

.bd-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bd-dot-coral { background: var(--bd-coral); }
.bd-dot-navy  { background: var(--bd-navy); }

.bd-legend-count {
    border-left: 1px solid var(--bd-line);
    padding-left: 10px;
    color: var(--bd-mute);
}

.bd-legend-count strong { color: var(--bd-navy); font-weight: 800; }

/* 모바일 패널 토글 버튼 */
.bd-map-panel-toggle-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 200;
    width: auto;
    height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    background: var(--bd-navy);
    color: #fff;
    border: 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    align-items: center;
    gap: 6px;
    font-family: inherit;
}

/* ── 청약일정 카드 ── */
.bd-chk-card {
    border: 1px solid #EEF1F4; border-radius: 12px; padding: 16px;
    margin-bottom: 14px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.bd-chk-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.bd-chk-dday {
    font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px;
    background: var(--bd-soft); color: #2B62E8;
}
.bd-chk-dday-today { background: #EEF2FF; color: #4338CA; }
.bd-chk-dday-open { background: #F0FDF4; color: #15803D; }
.bd-chk-dday-closed { background: #F3F4F6; color: #6B7280; }
.bd-chk-status-badge {
    font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 5px;
}
.bd-chk-status-open { background: #DCFCE7; color: #15803D; }
.bd-chk-status-upcoming { background: #EEF2FF; color: #4338CA; }
.bd-chk-status-closed { background: #F3F4F6; color: #6B7280; }
.bd-chk-title { font-size: 15px; font-weight: 800; color: #16223D; margin: 0 0 4px; line-height: 1.3; }
.bd-chk-addr { font-size: 12px; color: #8B95A1; margin-bottom: 12px; }
.bd-chk-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 12px; background: #F7F9FB; border-radius: 8px; margin-bottom: 12px;
}
.bd-chk-grid-item dt { font-size: 10px; color: #8B95A1; margin-bottom: 3px; }
.bd-chk-grid-item dd { font-size: 12px; font-weight: 700; color: #16223D; margin: 0; }
.bd-chk-grid-item dd.is-price { color: #2B62E8; }
.bd-chk-cta {
    display: block; background: #2B62E8; color: #fff; text-align: center;
    padding: 11px; border-radius: 8px; font-weight: 700; font-size: 13px;
    text-decoration: none; border: none; width: 100%; cursor: pointer; font-family: inherit;
}
.bd-chk-cta:hover { background: #e54d2e; }

/* ── 반응형 모바일 ── */
@media (max-width: 768px) {
    /* 모바일: flex:1 상속, 별도 height 불필요 */

    .bd-map-body { flex-direction: column; }

    .bd-map-panel {
        position: fixed;
        left: -100%;
        top: var(--bd-header-h, 56px);
        bottom: 0;
        width: 92vw;
        max-width: 400px;
        transition: left .3s ease;
        z-index: 100;
        box-shadow: 4px 0 24px rgba(0,0,0,.15);
    }

    .bd-map-panel.is-open { left: 0; }

    .bd-map-area { width: 100%; height: 100%; }

    .bd-map-panel-toggle-btn {
        display: flex;
        left: 50%;
        transform: translateX(-50%);
        bottom: 16px;
        width: auto;
        min-width: 56px;
        height: 52px;
        border-radius: 26px;
        padding: 0 20px;
        gap: 8px;
        justify-content: center;
        box-shadow: 0 4px 24px rgba(25,31,40,.45);
    }
    .bd-map-toggle-label { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; }

    .bd-map-overlay-tr { display: none; }

    .bd-map-fab { bottom: 80px; }

    /* ── 모바일: 데스크톱 전용 버튼 숨김 ── */
    .bd-sidebar-collapse-btn { display: none !important; }
    .bd-sidebar-expand-fab   { display: none !important; }

    /* ── 패널 헤더 모바일 축소 ── */
    .bd-map-panel-head { padding: 12px 14px 10px; }
    .bd-map-panel-title { margin-bottom: 8px; gap: 6px; }
    .bd-map-panel-h1 { font-size: 15px; }

    /* ── 통계 카드 모바일 ── */
    .bd-map-stat-row { gap: 6px; padding: 8px 0 10px; }
    .bd-map-stat { padding: 6px 4px; }
    .bd-map-stat-num { font-size: 15px; }
    .bd-map-stat-price { font-size: 12px; }
    .bd-map-stat-lbl { font-size: 9px; }

    /* ── 검색창 모바일 ── */
    .bd-map-search input { font-size: 12px; padding: 8px 10px; }

    /* ── 카테고리 탭 모바일 ── */
    .bd-map-tab { font-size: 11px; padding: 7px 0; }

    /* ── 필터 행 모바일: 가로 스크롤 ── */
    .bd-map-filter-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 6px;
    }
    .bd-map-filter-row::-webkit-scrollbar { display: none; }
    .bd-filter-chip, .bd-price-chip { font-size: 10px; padding: 3px 8px; }

    /* ── 정렬 버튼 모바일 ── */
    .bd-sort-btns { gap: 3px; }
    .bd-sort-btn { font-size: 10px; padding: 2px 5px; }

    /* ── D-Day 배너 모바일 ── */
    .bd-dday-banner { padding: 9px 12px; gap: 8px; }
    .bd-dday-icon { font-size: 15px; }
    .bd-dday-title { font-size: 11px; }
    .bd-dday-sub { font-size: 10px; }

    /* ── 레이어 패널 모바일 (FAB 위) ── */
    .bd-map-layer-panel { bottom: 130px; right: 8px; }

    /* ── 가격 핀 모바일 ── */
    .bd-price-pin { padding: 2px 7px; }
    .bd-pin-price { font-size: 12px; }
    .bd-pin-status { font-size: 8px; }

    /* ── 지도 위 디테일 패널: 전체 화면 ── */
    .bd-map-detail-panel.is-open { position: fixed; left: 0; top: 0; width: 100% !important; height: 100%; z-index: 200; overflow-y: auto; }
}

/* ── 작은 모바일 (480px 이하) ── */
@media (max-width: 480px) {
    .bd-map-stat-row { grid-template-columns: repeat(3,1fr); }
    .bd-map-stat-num { font-size: 13px; }
    .bd-map-stat-price { font-size: 11px; }
    .bd-map-panel-h1 { font-size: 14px; }
    .bd-map-item-title { font-size: 12px; }
    .bd-map-item-meta { font-size: 10px; }
}

/* ═══════════════════════════════════════════
   탭 내비게이션 — single-bunyang.php
═══════════════════════════════════════════ */
.bd-tab-nav {
    position: sticky;
    top: 64px;
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid var(--bd-line);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.bd-tab-list {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.bd-tab-list::-webkit-scrollbar { display: none; }
.bd-tab {
    display: inline-block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .18s, border-color .18s;
}
.bd-tab:hover { color: var(--bd-navy); }
.bd-tab.is-active {
    color: var(--bd-coral);
    border-bottom-color: var(--bd-coral);
    font-weight: 700;
}

/* 탭 패널 */
.bd-tab-body { padding-bottom: 80px; }
.bd-tab-panel {
    display: block;
    padding-top: 0;
    scroll-margin-top: 120px; /* sticky nav 오프셋 */
}
/* 섹션 구분선 */
.bd-tab-panel + .bd-tab-panel { border-top: 1px solid var(--bd-line); }
.bd-tab-panel > .bd-container { padding-top: 48px; padding-bottom: 48px; }

.bd-tab-section {
    margin-bottom: 48px;
}
.bd-tab-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--bd-navy);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bd-navy);
    display: inline-block;
}
.bd-tab-empty {
    padding: 60px 20px;
    text-align: center;
    color: #aaa;
    font-size: 15px;
    line-height: 1.7;
    background: #f9f9f9;
    border-radius: 12px;
    margin: 24px 0;
}

/* ═══ 히어로 상세 레이아웃 ═══ */
/* 브레드크럼 바 */
.bd-breadcrumb-bar {
    background: #F9FAFB;
    border-bottom: 1px solid #E5E8EB;
    padding: 13px 0;
    font-size: 12px;
    color: #4E5968;
}
/* 히어로 — 흰 배경 (디자인 Frame 02) */
.bd-detail-hero {
    background: #fff;
    padding: 32px 0 40px;
    border-bottom: 1px solid #E5E8EB;
}
/* .bd-detail-hero-inner — deprecated, replaced by bd-detail-hero-grid */
/* 갤러리 모자이크 (디자인 Frame 02: 2fr 1fr 1fr / 220px 220px) */
.bd-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 8px;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
}
.bd-gallery-main {
    grid-row: span 2;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}
.bd-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-gallery-main .bd-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #E5E8EB; color: #8B95A1; font-size: 13px; }
.bd-gallery-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
}
/* 갤러리 썸네일 컬럼 (우측 2행) */
.bd-gallery-thumbs {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}
.bd-gallery-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.bd-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-gallery-empty { background: #F2F4F6; border-radius: 8px; }
.bd-gallery-more::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}
.bd-gallery-more span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    z-index: 1;
}

.bd-detail-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
}
@media (min-width: 1024px) {
    .bd-detail-hero-grid { grid-template-columns: 1fr 380px; }
}

.bd-detail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bd-detail-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 800;
    color: var(--bd-navy);
    margin: 0 0 6px;
    line-height: 1.3;
}
.bd-detail-subtitle { font-size: 14px; color: #4E5968; margin-bottom: 0; }

/* 관심도+조회수 행 */
.bd-detail-stats-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #4E5968;
}
.bd-stat-item { display: flex; align-items: center; gap: 5px; }
.bd-stat-item strong { color: var(--bd-coral); font-size: 15px; }
.bd-stat-icon { font-size: 15px; }
.bd-stat-divider { color: #C9D1DE; }

/* 핵심 스펙 (keystats는 이제 CTA 카드 안 bd-quickstats 로 이동됨) */
.bd-keystats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0;
}
.bd-keystats > div {
    background: transparent;
    border-radius: 8px;
    padding: 8px 0;
}
/* CTA 카드 안에서만 배경 유지 */
.bd-cta-card .bd-keystats > div,
.bd-quickstats > div {
    background: #F2F4F6;
    border-radius: 8px;
    padding: 10px 14px;
}
.bd-keystats dt { font-size: 11px; color: #8B95A1; margin-bottom: 3px; }
.bd-keystats dd { font-size: 15px; font-weight: 700; color: var(--bd-navy); margin: 0; }

/* CTA 카드 */
.bd-cta-card {
    background: #fff;
    border: 1px solid var(--bd-line-2);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 28px rgba(25,31,40,.07);
    color: var(--bd-navy);
}
@media (min-width: 1024px) {
    .bd-cta-card { position: sticky; top: 110px; }
}
.bd-quickstats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 16px 0 0;
}
.bd-quickstats > div {
    background: #f5f6f9;
    border-radius: 8px;
    padding: 8px 10px;
}
.bd-quickstats dt { font-size: 11px; color: #888; margin-bottom: 2px; }
.bd-quickstats dd { font-size: 13px; font-weight: 700; margin: 0; color: var(--bd-navy); }

.bd-promise-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FFF8E1;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 12px 0;
    font-size: 13px;
    color: #795548;
}
.bd-promise-mini strong { color: var(--bd-coral); }

.bd-aicta-mini {
    background: var(--bd-navy);
    border-radius: 10px;
    padding: 14px 16px;
    color: #fff;
    margin-top: 12px;
}
.bd-aicta-mini-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.bd-aicta-mini-head strong { font-size: 14px; }
.bd-aicta-mini p { font-size: 12px; color: rgba(255,255,255,.7); margin: 0 0 12px; }

/* 관심도 미터 — 디자인 시스템 보정 */
.bd-interest-meter { background: linear-gradient(135deg, var(--bd-coral-soft) 0%, var(--bd-coral-soft-2) 100%); border: 1px solid var(--bd-coral-soft-2); padding: 16px; border-radius: 10px; margin-bottom: 16px; }
.bd-interest-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.bd-interest-label { font-size: 12px; font-weight: 600; color: var(--bd-coral-strong); }
.bd-interest-rank { font-size: 11px; color: var(--bd-coral-strong); background: rgba(43,98,232,0.15); padding: 2px 8px; border-radius: var(--bd-radius-pill); font-weight: 700; }
.bd-interest-count { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.bd-interest-count strong { font-size: 22px; font-weight: 800; color: var(--bd-navy); letter-spacing: -0.02em; }
.bd-interest-count span { font-size: 12px; color: var(--bd-ink-2); }
.bd-interest-count-lg { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.bd-interest-count-lg strong { font-size: 28px; font-weight: 800; color: var(--bd-navy); letter-spacing: -0.025em; line-height: 1; }
.bd-interest-count-lg span { font-size: 12px; color: var(--bd-ink-2); }
.bd-interest-bar {
    height: 6px;
    background: rgba(43,98,232,0.18);
    border-radius: var(--bd-radius-pill);
    overflow: hidden;
}
.bd-interest-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--bd-coral), var(--bd-coral-2));
    border-radius: var(--bd-radius-pill);
    transition: width .8s ease;
    min-width: 4px;
}

/* 정보 그리드 */
.bd-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.bd-info-cell {
    display: flex;
    flex-direction: column;
    background: #F9FAFB;
    border-radius: 8px;
    padding: 10px 14px;
}
.bd-info-cell dt { font-size: 11px; color: #888; margin-bottom: 3px; font-weight: 600; }
.bd-info-cell dd { font-size: 14px; color: var(--bd-navy); font-weight: 600; margin: 0; }

/* 타입별 평면도 */
.bd-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.bd-type-card {
    border: 1px solid var(--bd-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.bd-type-plan {
    background: #f0f1f3;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 13px;
    color: #aaa;
}
.bd-type-plan img { width: 100%; height: 100%; object-fit: contain; }
.bd-type-card h3,
.bd-type-spec,
.bd-type-price { padding: 8px 14px; }
.bd-type-card h3 { font-size: 15px; font-weight: 700; color: var(--bd-navy); padding-bottom: 4px; }
.bd-type-spec { font-size: 13px; color: #666; padding-top: 0; }
.bd-type-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--bd-line);
    padding-top: 10px;
}
.bd-type-price span { font-size: 11px; color: #888; }
.bd-type-price strong { font-size: 15px; color: var(--bd-coral); font-weight: 700; }

/* 모델하우스 카드 */
.bd-mh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.bd-mh-card {
    border: 1px solid var(--bd-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.bd-mh-card-thumb { height: 180px; overflow: hidden; }
.bd-mh-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bd-mh-card-body { padding: 16px; }
.bd-mh-card-body h3 { font-size: 16px; font-weight: 700; color: var(--bd-navy); margin: 0 0 12px; }

/* 모델하우스 TAB3 — 상담사 PM 그리드 (single-bunyang.php) */
.bd-mh-pm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 4px;
}
.bd-mh-pm-item .bd-author-card { margin-top: 0; }

/* PM 없는 fallback 모델하우스 카드 */
.bd-mh-pm-item .bd-mh-card {
    border: 1.5px solid var(--bd-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
.bd-mh-pm-item .bd-mh-card-thumb img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
}
.bd-mh-pm-item .bd-mh-card-body { padding: 14px; }
.bd-mh-pm-item .bd-mh-card-body h3 {
    font-size: 15px; font-weight: 700; color: var(--bd-navy);
    margin: 0 0 10px;
}
/* 2컬럼 info-grid (fallback 카드) */
.bd-mh-card .bd-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--bd-line);
    border-radius: 8px;
    overflow: hidden;
}
.bd-mh-card .bd-info-cell {
    padding: 10px 12px;
    border-right: 1px solid var(--bd-line);
    border-bottom: 1px solid var(--bd-line);
    background: #F9FAFB;
}
.bd-mh-card .bd-info-cell:nth-child(even) { border-right: 0; background: #fff; }
.bd-mh-card .bd-info-cell:nth-last-child(-n+2) { border-bottom: 0; }
.bd-mh-card .bd-info-cell dt { font-size: 11px; color: #8B95A1; margin-bottom: 3px; }
.bd-mh-card .bd-info-cell dd { font-size: 13px; font-weight: 600; color: var(--bd-navy); }

@media (max-width: 600px) {
    .bd-mh-pm-grid { grid-template-columns: 1fr; }
}

/* 입지/교통 */
.bd-map-addr { font-size: 14px; color: #666; margin: -12px 0 16px; }
.bd-infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.bd-infra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #F9FAFB;
    border-radius: 10px;
    padding: 12px 14px;
}
.bd-infra-icon { font-size: 22px; flex-shrink: 0; }
.bd-infra-label { font-size: 11px; color: #888; }
.bd-infra-value { font-size: 14px; font-weight: 700; color: var(--bd-navy); }

/* 청약 경쟁률 카드 */
.bd-comp-card {
    --comp-c: #6B7684;
    padding: 14px 18px; border-radius: 12px;
    margin: 16px 0 22px;
    background: color-mix(in srgb, var(--comp-c) 7%, #fff);
    border: 1px solid color-mix(in srgb, var(--comp-c) 28%, transparent);
}
.bd-comp-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; margin-bottom: 10px;
}
.bd-comp-status {
    font-size: 13px; font-weight: 700; color: var(--comp-c);
    white-space: nowrap;
}
.bd-comp-period { font-size: 12px; color: #8B95A1; }
.bd-comp-gauge-row { display: flex; align-items: center; gap: 12px; }
.bd-comp-ratio {
    font-size: 22px; font-weight: 800; color: var(--comp-c);
    line-height: 1; white-space: nowrap; flex-shrink: 0;
}
.bd-comp-ratio span { font-size: 13px; font-weight: 600; opacity: .8; }
.bd-comp-ratio-na { font-size: 16px; }
.bd-comp-gauge {
    flex: 1; height: 8px; border-radius: 99px;
    background: color-mix(in srgb, var(--comp-c) 14%, #fff);
    overflow: hidden;
}
.bd-comp-gauge-fill {
    height: 100%; border-radius: 99px; background: var(--comp-c);
    transition: width .5s cubic-bezier(.4,0,.2,1);
}
.bd-comp-detail { font-size: 12px; color: #6B7684; margin-top: 10px; }
.bd-comp-detail strong { color: #334155; font-weight: 700; }
.bd-comp-src { color: #8B95A1; }

/* 구형 브라우저 color-mix 폴백 */
@supports not (background: color-mix(in srgb, red, blue)) {
    .bd-comp-card  { background: #F9FAFB; border-color: #E5E8EB; }
    .bd-comp-gauge { background: #E5E8EB; }
}
@media (max-width: 640px) {
    .bd-comp-card { padding: 12px 14px; margin: 12px 0 18px; }
    .bd-comp-head { margin-bottom: 8px; }
    .bd-comp-period { flex-basis: 100%; }
    .bd-comp-ratio { font-size: 20px; }
    .bd-comp-gauge-row { gap: 10px; }
}

/* 청약 일정 타임라인 */
.bd-schedule-timeline {
    position: relative;
    padding-left: 28px;
}
.bd-schedule-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--bd-line);
}
.bd-schedule-step {
    position: relative;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.bd-schedule-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bd-coral);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--bd-coral);
    flex-shrink: 0;
    margin-left: -28px;
    margin-top: 2px;
}
.bd-schedule-date { font-size: 13px; color: var(--bd-coral); font-weight: 700; margin-bottom: 3px; }
.bd-schedule-label { font-size: 15px; font-weight: 600; color: var(--bd-navy); }
.bd-schedule-note { font-size: 13px; color: #888; margin-top: 4px; }

/* 뉴스 그리드 */
.bd-grid-news {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 600px)  { .bd-grid-news { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .bd-grid-news { grid-template-columns: repeat(3, 1fr); } }
.bd-news-card { background: #fff; border: 1px solid var(--bd-line); border-radius: 12px; overflow: hidden; }
.bd-news-thumb { display: block; height: 140px; overflow: hidden; }
.bd-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.bd-news-thumb:hover img { transform: scale(1.04); }
.bd-news-thumb-empty { display: block; height: 140px; background: var(--bd-soft); }
.bd-news-meta,
.bd-news-card h3,
.bd-news-date { padding: 0 14px; }
.bd-news-meta { display: block; font-size: 11px; color: var(--bd-coral); font-weight: 700; padding-top: 12px; }
.bd-news-card h3 { font-size: 14px; font-weight: 600; line-height: 1.5; margin: 6px 0 6px; }
.bd-news-card h3 a { color: var(--bd-navy); text-decoration: none; }
.bd-news-card h3 a:hover { color: var(--bd-coral); }
.bd-news-date { font-size: 12px; color: #aaa; padding-bottom: 14px; }

/* FAQ */
.bd-faq { display: flex; flex-direction: column; gap: 10px; }
.bd-faq details {
    border: 1px solid var(--bd-line);
    border-radius: 10px;
    overflow: hidden;
}
.bd-faq summary {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    color: var(--bd-navy);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bd-faq summary::after {
    content: '+';
    margin-left: auto;
    font-size: 20px;
    color: #ccc;
    transition: transform .2s;
}
.bd-faq details[open] summary::after { content: '−'; color: var(--bd-coral); }
.bd-faq details p {
    padding: 0 20px 16px;
    margin: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    border-top: 1px solid var(--bd-line);
    padding-top: 14px;
}

/* AI 패널 */
.bd-ai-panel {
    background: linear-gradient(135deg, var(--bd-navy) 0%, #111827 100%);
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    margin: 40px 0;
}
.bd-aicta-badge-lg {
    display: inline-block;
    background: rgba(43,98,232,.9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 16px;
}
.bd-ai-panel h2 { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.bd-ai-panel p { color: rgba(255,255,255,.75); font-size: 15px; margin: 0 0 18px; }
.bd-ai-panel-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
@media (min-width: 768px) { .bd-ai-panel-grid { grid-template-columns: 1fr auto; } }
.bd-ai-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-ai-tag {
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.2);
}

/* AI 신청 폼 */
.bd-ai-focus {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}
.bd-ai-focus-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f6f9;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--bd-navy);
    border: 1px solid var(--bd-line);
}
.bd-ai-focus-item input { accent-color: var(--bd-coral); }

/* 브레드크럼 */
.bd-breadcrumb { padding: 12px 0; }
.bd-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #888;
}
.bd-breadcrumb li + li::before { content: '/'; margin-right: 4px; color: #ccc; }
.bd-breadcrumb a { color: #888; text-decoration: none; }
.bd-breadcrumb a:hover { color: var(--bd-coral); }
.bd-breadcrumb li:last-child { color: var(--bd-navy); font-weight: 600; }

/* ═══ 아카이브 카드 통계 표시 ═══ */
.bd-card-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}
.bd-card-stats .bd-stat-val { font-weight: 700; color: var(--bd-coral); }


/* ═══════════════════════════════════════════
   마이페이지
═══════════════════════════════════════════ */
/* 마이페이지 헤더 — navy 그라디언트 배너 (Frame 10) */
.bd-mypage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(160deg, #16223D 0%, #333D4B 100%);
    color: #fff;
    border-radius: 14px;
    padding: 28px 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.bd-mypage-head::before {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 120px; height: 120px;
    background: rgba(43,98,232,.15);
    border-radius: 50%;
    pointer-events: none;
}
.bd-mypage-head-left { display: flex; align-items: center; gap: 14px; position: relative; }
.bd-mypage-avatar { flex-shrink: 0; }
.bd-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }
.bd-mypage-intro { min-width: 0; }
.bd-mypage-intro h1 { font-size: 18px; font-weight: 800; margin: 0 0 2px; color: #fff; }
.bd-mypage-intro p { font-size: 12px; color: #C9D1DE; margin: 0; }
.bd-mypage-headstats {
    display: flex;
    gap: 28px;
    position: relative;
    padding-top: 16px;
    margin-top: 0;
}
.bd-mypage-headstats > div { text-align: right; }
.bd-mypage-headstats strong { display: block; font-size: 22px; font-weight: 800; color: #fff; line-height: 1; }
.bd-mypage-headstats span { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 4px; display: block; }
@media (max-width: 640px) {
    .bd-mypage-head { padding: 20px; }
    .bd-mypage-headstats { width: 100%; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 14px; }
    .bd-mypage-headstats > div { text-align: center; }
}

/* 탭 */
.bd-mypage-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--bd-line);
    margin-bottom: 32px;
    overflow-x: auto;
    scrollbar-width: none;
}
.bd-mypage-tabs::-webkit-scrollbar { display: none; }
.bd-mypage-tab {
    padding: 14px 20px;
    font-size: 14px;
}

/* ============================================================
   Home — 인기 지역 분양 지도 섹션  (개발지시서 v2)
   bd-home-map-*
============================================================ */

.bd-home-map-section {
    border-top: 1px solid var(--bd-line);
    border-bottom: 1px solid var(--bd-line);
    background: #fff;
}

/* 섹션 헤더 */
.bd-home-map-header {
    padding: 18px 32px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.bd-home-map-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.bd-live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--bd-coral);
    box-shadow: 0 0 0 3px rgba(43,98,232,.2);
    flex-shrink: 0;
    animation: bd-live-pulse 2s ease-in-out infinite;
}
@keyframes bd-live-pulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(43,98,232,.2); }
    50%      { box-shadow: 0 0 0 6px rgba(43,98,232,.06); }
}
.bd-live-label {
    font-size: 11px; font-weight: 700;
    color: var(--bd-coral);
    letter-spacing: .08em;
    white-space: nowrap;
    flex-shrink: 0;
}
.bd-home-map-title {
    font-size: 16px; font-weight: 700;
    margin: 0;
    color: var(--bd-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bd-home-map-title strong { font-weight: 900; }
.bd-home-map-more {
    font-size: 12px; font-weight: 700;
    color: var(--bd-mute);
    text-decoration: none;
    display: flex; align-items: center; gap: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}
.bd-home-map-more:hover { color: var(--bd-navy); }

/* 바디 — 그리드 */
.bd-home-map-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    margin-top: 16px;
    height: 460px;
    border-top: 1px solid var(--bd-line);
}

/* ── 좌측 순위 패널 ── */
.bd-home-map-rank {
    border-right: 1px solid var(--bd-line);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

/* 탭 */
.bd-home-map-rank-tabs {
    display: flex;
    border-bottom: 1px solid var(--bd-line);
    flex-shrink: 0;
}
.bd-home-map-rank-tabs button {
    flex: 1;
    padding: 11px 0;
    font-size: 12px; font-weight: 600;
    color: var(--bd-mute);
    background: #fff; border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    font-family: inherit;
    margin-bottom: -1px;
}
.bd-home-map-rank-tabs button.is-active {
    font-weight: 700;
    color: var(--bd-navy);
    border-bottom-color: var(--bd-coral);
}
.bd-home-map-rank-tabs button:hover:not(.is-active) { color: var(--bd-navy); }

/* 순위 목록 */
.bd-home-map-rank-list {
    flex: 1; overflow-y: auto;
    margin: 0; padding: 0; list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}
.bd-home-map-rank-list::-webkit-scrollbar { width: 3px; }
.bd-home-map-rank-list::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }

.bd-home-map-rank-item a {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: background .12s;
}
.bd-home-map-rank-item a:hover { background: #fafafa; }
.bd-home-map-rank-item:first-child a { background: #FFFAF9; }

.bd-rank-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.bd-rank-num--top    { background: var(--bd-coral); color: #fff; }
.bd-rank-num--normal { background: #f3f4f6; color: #6b7280; }
.bd-rank-num--plus   { background: #eef2fb; color: var(--bd-navy); font-size: 16px; }

.bd-rank-info { flex: 1; min-width: 0; }
.bd-rank-info strong {
    display: block;
    font-size: 14px; font-weight: 800;
    color: var(--bd-navy);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bd-rank-info span  { font-size: 11px; color: var(--bd-mute); display: block; margin-top: 2px; }
.bd-rank-info em    { font-style: normal; color: var(--bd-coral); font-weight: 700; }

.bd-rank-trend { text-align: right; flex-shrink: 0; }
.bd-rank-trend span {
    display: inline-block;
    font-size: 10px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
    margin-bottom: 3px;
}
.bd-rank-trend--up   span { background: #f0fdf4; color: #00C471; }
.bd-rank-trend--down span { background: #fef2f2; color: #F04452; }
.bd-rank-trend--flat span { background: #f3f4f6; color: var(--bd-mute); }
.bd-rank-trend small { display: block; font-size: 9px; color: #9ca3af; }

/* 전남 전체보기 항목 */
.bd-home-map-rank-item--more a { color: var(--bd-mute); }
.bd-home-map-rank-item--more a:hover { color: var(--bd-navy); }
.bd-home-map-rank-item--more svg { flex-shrink: 0; color: #d1d5db; }

/* CTA 바 */
.bd-home-map-cta-full {
    display: flex; align-items: center;
    justify-content: center; gap: 6px;
    padding: 13px 18px;
    background: var(--bd-navy);
    color: #fff;
    text-decoration: none;
    font-size: 13px; font-weight: 700;
    flex-shrink: 0;
    transition: background .15s;
}
.bd-home-map-cta-full:hover { background: var(--bd-coral); }

/* ── 우측 지도 ── */
.bd-home-map-canvas-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    cursor: pointer;
    background: #e8edf2;
}
.bd-home-map-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 범례 */
.bd-home-map-legend {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,.93);
    backdrop-filter: blur(6px);
    border-radius: 7px;
    padding: 6px 12px;
    display: flex; gap: 12px;
    font-size: 10px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    z-index: 20;
    pointer-events: none;
}
.bd-home-map-legend span { display: flex; align-items: center; gap: 4px; color: #374151; }
.dot-coral { width:8px; height:8px; border-radius:50%; background:var(--bd-coral); flex-shrink:0; }
.dot-navy  { width:8px; height:8px; border-radius:50%; background:var(--bd-navy);  flex-shrink:0; }

/* 하단 오버레이 */
.bd-home-map-overlay-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(25,31,40,.78) 0%, rgba(25,31,40,.2) 65%, transparent 100%);
    padding: 56px 22px 18px;
    display: flex; align-items: flex-end;
    justify-content: space-between;
    z-index: 20;
    pointer-events: none;
}
.bd-home-map-overlay-bottom > * { pointer-events: auto; }
.bd-home-map-overlay-bottom > div small {
    display: block;
    font-size: 11px; color: rgba(255,255,255,.75);
    margin-bottom: 3px;
}
.bd-home-map-overlay-bottom > div strong {
    font-size: 15px; font-weight: 800; color: #fff;
}
.bd-home-map-cta-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--bd-coral);
    color: #fff;
    font-size: 13px; font-weight: 700;
    padding: 10px 18px;
    border-radius: 28px;
    box-shadow: 0 4px 16px rgba(43,98,232,.4);
    white-space: nowrap;
    transition: transform .15s, box-shadow .15s;
}
.bd-home-map-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(43,98,232,.5); }

/* 클러스터 핀 */
.bd-home-cluster {
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative;
    transition: transform .15s;
}
.bd-home-cluster:hover { transform: scale(1.08); }
.bd-home-cluster-num   { font-size: 16px; font-weight: 900; color: #fff; line-height: 1; }
.bd-home-cluster-label { font-size: 8px; font-weight: 600; color: rgba(255,255,255,.85); }
.bd-rank-crown {
    background: #facc15;
    color: #713f12;
    font-size: 9px; font-weight: 900;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 2px;
    display: inline-block;
}
.bd-home-cluster-name {
    font-size: 10px; font-weight: 700;
    color: var(--bd-navy);
    margin-top: 5px;
    background: rgba(255,255,255,.95);
    padding: 3px 9px;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(0,0,0,.12);
    text-align: center;
    white-space: nowrap;
}

/* ── 반응형 ── */
@media (max-width: 1024px) {
    .bd-home-map-title { font-size: 14px; }
}
@media (max-width: 768px) {
    .bd-home-map-header { padding: 14px 16px 0; flex-wrap: wrap; gap: 8px; }
    .bd-home-map-title  { font-size: 13px; }
    .bd-home-map-body   { grid-template-columns: 1fr; height: auto; }
    .bd-home-map-rank   { height: auto; border-right: none; border-bottom: 1px solid var(--bd-line); }
    .bd-home-map-rank-list { max-height: 240px; }
    .bd-home-map-canvas-wrap { height: 300px; }
    .bd-rank-trend { display: none; }
}

/* =====================================================
   HOT 섹션 헤더
   ===================================================== */
.bd-hot-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.bd-hot-header h2 { font-size: 26px; font-weight: 800; letter-spacing: -.04em; flex-shrink: 0; margin: 0; }
.bd-hot-header .bd-status-pills { flex: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.bd-hot-header .bd-more {
    margin-left: auto; font-size: 14px; font-weight: 700; color: var(--bd-ink-2); white-space: nowrap;
    background: var(--bd-line-2); padding: 10px 18px; border-radius: 12px;
    transition: background .15s;
}
.bd-hot-header .bd-more:hover { background: var(--bd-line); }
.bd-chip-label { font-size: 12px; color: var(--bd-mute); font-weight: 600; }

/* =====================================================
   청약일정 스트립 — Section 3
   ===================================================== */
.bd-schedule-strip {
    background: var(--bd-soft);
    border-top: 1px solid var(--bd-line);
    border-bottom: 1px solid var(--bd-line);
}

.bd-schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.bd-schedule-header-left { display: flex; align-items: center; gap: 16px; }
.bd-schedule-header h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0; }

.bd-tab-toggle {
    display: flex;
    background: var(--bd-line);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}
.bd-tab-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    color: var(--bd-mute);
    border: none;
    cursor: pointer;
    transition: background .15s, color .15s, box-shadow .15s;
}
.bd-tab-btn.is-active {
    background: #fff;
    color: var(--bd-ink);
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.bd-schedule-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1023px) { .bd-schedule-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .bd-schedule-cards { grid-template-columns: 1fr; } }

.bd-schedule-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    border: 1px solid var(--bd-line);
    border-left: 3px solid var(--bd-coral);
}

.bd-schedule-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bd-schedule-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
}
.bd-schedule-badge-active { background: #DCFCE7; color: #00C471; }
.bd-schedule-badge-soon   { background: #EEF3FA; color: var(--bd-navy); }

.bd-schedule-dday {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--bd-soft);
    color: var(--bd-ink-2);
}
.bd-schedule-dday.is-active { background: var(--bd-soft); color: var(--bd-coral); }

.bd-schedule-name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 4px;
    line-height: 1.35;
}
.bd-schedule-name a { color: var(--bd-ink); text-decoration: none; }
.bd-schedule-name a:hover { color: var(--bd-coral); }

.bd-schedule-region { font-size: 11px; color: var(--bd-mute); margin-bottom: 8px; }
.bd-schedule-dates  { font-size: 11px; color: var(--bd-ink-2); font-weight: 600; }

.bd-schedule-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #F2F4F6;
}
.bd-schedule-units { font-size: 11px; color: var(--bd-mute); }
.bd-schedule-link {
    font-size: 11px;
    font-weight: 700;
    color: var(--bd-navy);
    text-decoration: none;
}
.bd-schedule-link.is-active { color: var(--bd-coral); }
.bd-schedule-link:hover { opacity: .75; }

/* =====================================================
   뉴스 섹션 — 썸네일 + 디자인 업그레이드
   ===================================================== */
.bd-section-news { background: #fff; }

.bd-grid-news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 1023px) { .bd-grid-news { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .bd-grid-news { grid-template-columns: 1fr; } }

.bd-news-card {
    border: 1px solid var(--bd-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.bd-news-thumb {
    display: block;
    height: 140px;
    background: var(--bd-line-2);
    overflow: hidden;
    position: relative;
}
/* 이미지 없는 뉴스 — 라이트 플레이스홀더 (다크 박스 금지) */
.bd-news-thumb::before {
    content: '📰';
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; opacity: .5;
}
.bd-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.bd-news-body { padding: 16px; }

.bd-section-news .bd-news-meta {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    background: #EEF3FA;
    color: var(--bd-navy);
}
.bd-section-news .bd-news-card h3 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 6px;
    letter-spacing: -.01em;
}
.bd-section-news .bd-news-card h3 a { color: var(--bd-ink); text-decoration: none; }
.bd-section-news .bd-news-card h3 a:hover { color: var(--bd-coral); }
.bd-section-news .bd-news-date { font-size: 11px; color: var(--bd-mute); }


/* =====================================================
   분양현장 목록 — 필터바 + 결과바
   ===================================================== */
.bd-archive-head { padding-bottom: 24px; border-bottom: 1px solid var(--bd-line); margin-bottom: 0; }
.bd-archive-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; margin: 0 0 6px; }
.bd-archive-head p  { font-size: 14px; color: var(--bd-ink-2); margin: 0; }

.bd-filter-bar {
    /* 오늘살집 v2: 스티키 필터바 — 스크롤해도 따라오며 지도 동선 유지 */
    position: sticky; top: 0; z-index: 40;
    padding: 14px 16px;
    margin: 0 -16px;
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--bd-line-2);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bd-filter-map-cta {
    align-self: flex-end; order: -1;
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bd-coral); color: #fff; text-decoration: none;
    font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 11px;
    box-shadow: var(--bd-shadow-brand); transition: background .15s;
}
.bd-filter-map-cta:hover { background: var(--bd-coral-hover); color: #fff; }
.bd-filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bd-filter-group-row { justify-content: flex-start; }
.bd-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--bd-ink-2);
    width: 40px;
    flex-shrink: 0;
}
.bd-filter-pills { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }

/* 시/도 활성 pill */
.bd-pill-sido-active {
    background: var(--bd-navy) !important;
    color: #fff !important;
    border-color: var(--bd-navy) !important;
}
/* 상태 활성 pill */
.bd-pill-status-active {
    background: var(--bd-coral-soft);
    color: var(--bd-coral);
    border: 1.5px solid #C7D7FC;
    font-weight: 700;
}

.bd-filter-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bd-filter-reset {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bd-ink-2);
    background: var(--bd-soft);
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}
.bd-filter-reset:hover { background: var(--bd-line); }
.bd-sort-select {
    border: 1.5px solid var(--bd-line);
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-ink);
    background: #fff;
    font-family: inherit;
    cursor: pointer;
}

/* 결과 바 */
.bd-result-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 4px;
}
.bd-result-count { font-size: 13px; color: var(--bd-ink-2); }
.bd-result-count strong { font-size: 15px; color: var(--bd-ink); font-weight: 700; }

.bd-view-toggle { display: flex; gap: 4px; }
.bd-view-btn {
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: var(--bd-soft);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bd-ink-2);
    transition: background .15s, color .15s;
}
.bd-view-btn.is-active { background: var(--bd-navy); color: #fff; }

/* 빈 상태 */
.bd-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--bd-mute);
}
.bd-empty-state p { font-size: 15px; margin-bottom: 16px; }

/* 페이지네이션 */
.bd-pagination { display: flex; justify-content: center; margin: 40px 0; }
.bd-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.bd-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid var(--bd-line);
    background: #fff;
    color: var(--bd-ink-2);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s, border-color .15s, color .15s;
}
.bd-pagination .page-numbers:hover { border-color: var(--bd-coral); color: var(--bd-coral); }
.bd-pagination .page-numbers.current {
    background: var(--bd-coral);
    border-color: var(--bd-coral);
    color: #fff;
    font-weight: 700;
}
.bd-pagination .page-numbers.dots { border: none; background: none; cursor: default; color: var(--bd-mute); }


/* =====================================================
   단일 현장 — CTA 카드 추가 버튼 행
   ===================================================== */
.bd-cta-btn-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.bd-cta-btn-row .bd-wishlist-btn,
.bd-cta-btn-row .bd-share-btn {
    flex: 1;
    padding: 10px;
    border: 1.5px solid var(--bd-line);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bd-ink-2);
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: border-color .15s, background .15s;
}
.bd-cta-btn-row .bd-wishlist-btn:hover,
.bd-cta-btn-row .bd-share-btn:hover {
    border-color: var(--bd-coral);
    background: var(--bd-soft);
    color: var(--bd-coral);
}


/* =====================================================
   404 페이지
   ===================================================== */
.bd-404-main { background: var(--bd-soft); min-height: calc(100vh - 200px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 40px; }
.bd-404-wrap { text-align: center; max-width: 560px; margin: 0 auto; }
.bd-404-code { font-size: 120px; font-weight: 800; color: var(--bd-coral); line-height: 1; letter-spacing: -.04em; margin-bottom: 8px; opacity: .9; }
.bd-404-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.bd-404-desc { font-size: 15px; color: var(--bd-ink-2); line-height: 1.7; margin-bottom: 32px; }
.bd-404-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.bd-btn-outline { background: #fff; color: var(--bd-navy); border: 1.5px solid var(--bd-line); }
.bd-btn-outline:hover { border-color: var(--bd-navy); }
.bd-404-suggestions { border-top: 1px solid var(--bd-line); padding-top: 32px; }
.bd-404-suggestions-label { font-size: 13px; font-weight: 700; color: var(--bd-ink-2); margin-bottom: 16px; }
.bd-404-suggestions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bd-404-suggest-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--bd-line); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s; }
.bd-404-suggest-item:hover { border-color: var(--bd-coral); }
.bd-404-suggest-thumb { width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0; background: linear-gradient(135deg,#111827,#1E293B); }
.bd-404-suggest-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.bd-404-suggest-meta { font-size: 11px; color: var(--bd-mute); }

/* =====================================================
   검색 결과 페이지
   ===================================================== */
.bd-search-header { margin-bottom: 20px; }
.bd-search-header h1 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.bd-search-sub { font-size: 13px; color: var(--bd-mute); }

.bd-search-section { margin-bottom: 32px; }
.bd-search-section-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--bd-ink-2);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bd-search-section-bar { width: 3px; height: 15px; display: inline-block; border-radius: 2px; }

.bd-search-news-list { background: #fff; border-radius: 12px; border: 1px solid var(--bd-line); overflow: hidden; }
.bd-search-news-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #F2F4F6;
    color: inherit;
    text-decoration: none;
    transition: background .12s;
}
.bd-search-news-item:last-child { border-bottom: none; }
.bd-search-news-item:hover { background: var(--bd-soft); }
.bd-search-news-thumb { width: 80px; height: 56px; border-radius: 8px; flex-shrink: 0; background: linear-gradient(135deg,#111827,#1E293B); overflow: hidden; }
.bd-search-news-body .bd-news-meta { display: inline-block; margin-bottom: 4px; }
.bd-search-news-body h3 { font-size: 14px; font-weight: 700; line-height: 1.4; margin: 0 0 3px; }

.bd-search-empty { background: #fff; border-radius: 14px; border: 1px solid var(--bd-line); padding: 60px; text-align: center; margin-top: 20px; }
.bd-search-empty-icon { font-size: 48px; margin-bottom: 16px; }
.bd-search-empty h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.bd-search-empty p  { font-size: 14px; color: var(--bd-ink-2); margin-bottom: 20px; }
.bd-search-suggest-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* =====================================================
   뉴스 아카이브 (12-뉴스목록)
   ===================================================== */
.bd-news-cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.bd-news-archive-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 1023px) { .bd-news-archive-grid { grid-template-columns: 1fr; } }

/* Featured 뉴스 카드 */
.bd-news-featured-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--bd-line);
    margin-bottom: 20px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .15s;
}
.bd-news-featured-card:hover { box-shadow: 0 4px 20px rgba(25,31,40,.12); }
.bd-news-featured-thumb { position: relative; min-height: 220px; overflow: hidden; background: linear-gradient(135deg,#111827,#1E293B); }
.bd-news-featured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-news-thumb-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#111827,#1E293B); }
.bd-news-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bd-coral);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}
.bd-news-featured-body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.bd-news-featured-body h2 { font-size: 18px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; margin: 8px 0 10px; }
.bd-news-featured-body p { font-size: 13px; color: var(--bd-ink-2); line-height: 1.7; }
.bd-news-readmore { margin-top: 14px; font-size: 12px; font-weight: 700; color: var(--bd-coral); }

/* 뉴스 리스트 (이미지+텍스트 수평) */
.bd-news-list { display: flex; flex-direction: column; }
.bd-news-list-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #F2F4F6;
    color: inherit;
    text-decoration: none;
    align-items: center;
    transition: opacity .12s;
}
.bd-news-list-item:last-child { border-bottom: none; }
.bd-news-list-item:hover { opacity: .8; }
.bd-news-list-thumb { height: 90px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg,#111827,#1E293B); }
.bd-news-list-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-news-list-body .bd-news-cat-badge { position: static; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 2px 8px; display: inline-block; margin-bottom: 6px; background: #EEF3FA; color: var(--bd-navy); }
.bd-news-list-body h3 { font-size: 15px; font-weight: 800; line-height: 1.4; margin: 0 0 4px; letter-spacing: -.01em; }

/* 뉴스 사이드바 */
.bd-news-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.bd-news-sidebar-card { background: #fff; border-radius: 14px; border: 1px solid var(--bd-line); padding: 20px; }
.bd-news-sidebar-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.bd-news-popular-list { display: flex; flex-direction: column; gap: 12px; }
.bd-news-popular-item { display: flex; gap: 10px; align-items: flex-start; color: inherit; text-decoration: none; }
.bd-news-popular-item:hover p { color: var(--bd-coral); }
.bd-news-popular-item p { font-size: 13px; font-weight: 600; line-height: 1.4; margin: 0; }

/* 뉴스레터 */
.bd-news-newsletter { background: var(--bd-navy); border-radius: 14px; padding: 20px; color: #fff; }
.bd-news-newsletter-label { font-size: 11px; font-weight: 700; color: #FF8A6E; margin-bottom: 8px; }
.bd-news-newsletter h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; line-height: 1.4; color: #fff; border-bottom: none !important; padding-bottom: 0 !important; }
.bd-news-newsletter p { font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.bd-newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.bd-newsletter-input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-family: inherit; }
.bd-newsletter-input::placeholder { color: rgba(255,255,255,.4); }


/* ══ 위시리스트(찜) 버튼 ══════════════════════════════════════════════════ */
.bd-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 1.5px solid rgba(255,255,255,.7);
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s, background .15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.bd-wishlist-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.bd-wishlist-btn.is-wished {
    background: #fff0ee;
    border-color: #2B62E8;
}

/* front-page HOT 카드 — bd-btn-ghost (♡) */
.bd-btn-ghost {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    border: 1.5px solid rgba(255,255,255,.9);
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.bd-btn-ghost:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

/* ============================================================
   전체 반응형 보완 패치 — 2025
   (각 페이지 인라인 CSS가 커버 못 하는 모바일 구간)
   ============================================================ */

/* 홈 카드 그리드: 480px 이하 1열 */
@media (max-width: 480px) {
    .bd-grid-cards-home { grid-template-columns: 1fr !important; }
}

/* 뉴스 featured 카드: 640px 이하 세로 스택 */
@media (max-width: 640px) {
    .bd-news-featured-card { grid-template-columns: 1fr; }
    .bd-news-featured-card .bd-news-thumb { height: 200px; }
}

/* 탭 내비게이션 모바일 — 가로 스크롤 + 터치 지원 */
@media (max-width: 768px) {
    .bd-tab-nav .bd-container {
        padding-left: 0;
        padding-right: 0;
    }
    .bd-tab-list {
        padding: 0 12px;
        -webkit-overflow-scrolling: touch; /* iOS 구형 */
        overscroll-behavior-x: contain;
        touch-action: pan-x;              /* iOS: 가로 스와이프 허용 */
        scroll-padding: 0 12px;
        will-change: scroll-position;     /* GPU 레이어 — body overflow 간섭 방지 */
    }
    .bd-tab {
        padding: 11px 13px;
        font-size: 13px;
        flex-shrink: 0;
    }
    /* 오른쪽 끝 탭이 더 있음을 암시하는 그라디언트 */
    .bd-tab-nav {
        position: relative;
    }
    .bd-tab-nav::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 36px;
        background: linear-gradient(to right, rgba(255,255,255,0), #fff 85%);
        pointer-events: none;
        z-index: 2;
    }
}

/* 단일 분양현장 — 사이드 aside 정보 그리드 모바일 */
@media (max-width: 640px) {
    .bd-detail-meta-grid { grid-template-columns: 1fr 1fr !important; }
    .bd-tab-panel > .bd-container { padding-top: 28px; padding-bottom: 28px; }
    .bd-tab-section { margin-bottom: 28px; }
    .bd-tab-section h2 { font-size: 16px; }
}

/* 분양현장/모델하우스 아카이브 필터 행 모바일 */
@media (max-width: 540px) {
    .bd-archive-filter-row,
    .bd-mh-filter-row { flex-direction: column; align-items: stretch; }
    .bd-archive-filter-row > *,
    .bd-mh-filter-row > * { width: 100%; }
    .bd-mh-list-title { font-size: 20px; }
}

/* ── 실거래가 패널 디자인 ─────────────────────────────────── */
.bd-re-type-tabs {
    display: flex;
    gap: 6px;
}
.bd-re-type-btn {
    flex: 1;
    height: 34px;
    border: 1.5px solid #E5E8EB;
    border-radius: 8px;
    background: #fff;
    color: #6B7280;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}
.bd-re-type-btn.is-active {
    background: #16223D;
    color: #fff;
    border-color: #16223D;
}
.bd-re-type-btn:hover:not(.is-active) {
    border-color: #16223D;
    color: #16223D;
}

.bd-re-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.bd-re-card {
    background: #F7F9FB;
    border: 1px solid #E5E8EB;
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
}
.bd-re-card-label {
    font-size: 11px;
    color: #8B95A1;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: .02em;
}
.bd-re-card-val {
    font-size: 14px;
    font-weight: 800;
    color: #16223D;
    line-height: 1.2;
    word-break: keep-all;
}

.bd-re-map-btn {
    display: block;
    width: 100%;
    height: 40px;
    background: #16223D;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 12px;
    letter-spacing: .01em;
    transition: background .15s;
}
.bd-re-map-btn:hover { background: #1a3d68; }

.bd-re-result table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.bd-re-result thead th {
    background: #F2F4F6;
    color: #374151;
    font-weight: 700;
    padding: 8px 6px;
    text-align: left;
    border-bottom: 2px solid #E5E8EB;
    white-space: nowrap;
}
.bd-re-result tbody tr {
    border-bottom: 1px solid #F2F4F6;
    transition: background .1s;
}
.bd-re-result tbody tr:hover { background: #F7F9FB; }
.bd-re-result tbody td {
    padding: 8px 6px;
    color: #374151;
    vertical-align: middle;
}
.bd-re-result tbody td:first-child {
    font-weight: 600;
    color: #16223D;
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bd-re-result tbody td:nth-child(2) {
    color: #F04452;
    font-weight: 700;
    white-space: nowrap;
}

/* 실거래가 페이지 summary 480px */
@media (max-width: 480px) {
    .bd-re-summary { grid-template-columns: 1fr !important; }
    .bd-re-page-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* 지도 페이지 탭 버튼 모바일 */
@media (max-width: 480px) {
    .bd-map-tabs { gap: 4px; padding: 0 8px; }
    .bd-map-tab { font-size: 12px; padding: 7px 10px; }
    .bd-map-list-header { padding: 10px 12px; }
}

/* 모델하우스 detail 사이드 CTA 버튼 모바일 */
@media (max-width: 640px) {
    .bd-mh-hero-grid { gap: 16px; }
    .bd-mh-vendor-card-body { flex-direction: column; gap: 10px; }
}

/* 마이페이지 벤더 섹션 heading 모바일 */
@media (max-width: 480px) {
    .bd-vds-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
    .bd-mypage-hero-name { font-size: 18px; }
}

/* 푸터 링크 모바일 */
@media (max-width: 480px) {
    .bd-footer-cols { gap: 20px; }
    .bd-footer-inner { gap: 16px; }
}

/* ── 메인 뉴스 섹션: 모바일 가로 스크롤 (639px 이하) ── */
@media (max-width: 639px) {
    .bd-section-news .bd-grid-news {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px;
        scrollbar-width: none;
        padding-bottom: 10px;
    }
    .bd-section-news .bd-grid-news::-webkit-scrollbar { display: none; }
    .bd-section-news .bd-news-card {
        min-width: 220px;
        max-width: 260px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    .bd-section-news .bd-news-thumb { height: 120px; }
}

/* ── 아카이브 카드: 모바일 평형 칩 3개 제한 ── */
@media (max-width: 640px) {
    .bd-area-chips .bd-area-chip:nth-child(n+4) { display: none; }
}

/* ══════════════════════════════════════════════════════
   매물(bd_listing) — 단일 페이지 (single-bd_listing.php)
══════════════════════════════════════════════════════ */
/* 매물 히어로: 다크 그라디언트 (bunyang_site 히어로와 구분) */
.single-bd_listing .bd-detail-hero { background: linear-gradient(135deg, #16223D 0%, #333D4B 100%); border-bottom: none; }
.single-bd_listing .bd-detail-title { color: #fff; font-size: 24px; margin: 6px 0 0; }
.single-bd_listing .bd-breadcrumb a,
.single-bd_listing .bd-breadcrumb span { color: rgba(255,255,255,.6); }
.single-bd_listing .bd-breadcrumb li:last-child { color: rgba(255,255,255,.9); }

.bd-listing-hero-inner { padding: 36px 0 28px; }
.bd-listing-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.bd-badge-deal  { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; color: #fff; letter-spacing: .02em; }
.bd-badge-prop  { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 4px; background: rgba(255,255,255,.2); color: #fff; }
.bd-badge-region { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 4px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.bd-listing-price-hero { font-size: 30px; font-weight: 900; color: #FF8A6E; margin: 8px 0 4px; letter-spacing: -.02em; }
.bd-listing-addr-hero { font-size: 13px; color: rgba(255,255,255,.65); margin: 0; }

/* 상세 레이아웃 (메인 + 사이드바) */
.bd-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; padding: 32px 0 60px; align-items: start; }
@media (max-width: 960px) { .bd-detail-layout { grid-template-columns: 1fr; } }

.bd-detail-main { min-width: 0; }
.bd-listing-info-section,
.bd-listing-desc-section,
.bd-listing-map-section { margin-bottom: 28px; }

/* 매물 정보 테이블 */
.bd-info-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid #E5E8EB; border-radius: 12px; overflow: hidden; }
.bd-info-table th { width: 110px; padding: 11px 16px; background: #F9FAFB; font-weight: 700; font-size: 12px; color: #4E5968; border-bottom: 1px solid #E5E8EB; text-align: left; vertical-align: top; }
.bd-info-table td { padding: 11px 16px; border-bottom: 1px solid #F5F5F7; color: #16223D; }
.bd-info-table tr:last-child th,
.bd-info-table tr:last-child td { border-bottom: none; }

/* 사이드바 */
.bd-detail-sidebar { position: sticky; top: 80px; }
.bd-sidebar-card { background: #fff; border: 1px solid #E5E8EB; border-radius: 14px; padding: 22px; box-shadow: 0 4px 24px rgba(25,31,40,.06); }
.bd-sidebar-title { font-size: 15px; font-weight: 800; margin: 0 0 16px; color: #16223D; }
.bd-contact-form label { display: block; font-size: 12px; font-weight: 700; color: #4E5968; margin: 12px 0 5px; text-transform: uppercase; letter-spacing: .04em; }
.bd-contact-form label:first-of-type { margin-top: 0; }
.bd-contact-form input,
.bd-contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #E5E8EB; border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; box-sizing: border-box; transition: border-color .15s; }
.bd-contact-form input:focus,
.bd-contact-form textarea:focus { border-color: #2B62E8; box-shadow: 0 0 0 3px rgba(43,98,232,.08); }

/* ══════════════════════════════════════════════════════
   공통 알림 박스 (bd-alert)
══════════════════════════════════════════════════════ */
.bd-alert { padding: 14px 18px; border-radius: 10px; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.bd-alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.bd-alert-warn    { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.bd-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.bd-alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ══════════════════════════════════════════════════════
   매물 등록 폼 (page-listing-register.php)
══════════════════════════════════════════════════════ */
.bd-register-form { margin-top: 8px; }
.bd-form-section { background: #fff; border: 1px solid #E5E8EB; border-radius: 14px; padding: 24px; margin-bottom: 16px; }
.bd-form-section-title { font-size: 14px; font-weight: 800; color: #16223D; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid #F2F4F6; }
.bd-form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 600px) { .bd-form-grid { grid-template-columns: 1fr; } }
.bd-form-field { display: flex; flex-direction: column; }
.bd-form-full { grid-column: 1 / -1; }
.bd-form-field label { font-size: 12px; font-weight: 700; color: #4E5968; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.bd-form-field input,
.bd-form-field select,
.bd-form-field textarea { padding: 10px 12px; border: 1px solid #E5E8EB; border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; transition: border-color .15s; box-sizing: border-box; background: #fff; }
.bd-form-field input:focus,
.bd-form-field select:focus,
.bd-form-field textarea:focus { border-color: #2B62E8; box-shadow: 0 0 0 3px rgba(43,98,232,.08); }
.bd-form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A94A6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.bd-form-desc { font-size: 12px; color: #8B95A1; margin: 5px 0 0; }
.required { color: #2B62E8; }
.bd-form-agree { margin: 16px 0 8px; font-size: 13px; color: #4E5968; display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
.bd-form-agree input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 16px; height: 16px; accent-color: #2B62E8; }

/* 등록 폼 헤더 */
.bd-archive-head { text-align: center; margin-bottom: 32px; }
.bd-archive-eyebrow { font-size: 11px; font-weight: 700; color: #2B62E8; text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 8px; }
.bd-archive-head h1 { font-size: 28px; font-weight: 900; color: #16223D; margin: 0 0 8px; }
.bd-archive-head p { font-size: 14px; color: #4E5968; margin: 0; }

/* ══════════════════════════════════════════════
   메인페이지 모바일 최적화 — 콘텐츠 길이 제한
   ══════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* 분양현장 카드 그리드: 5번째 이후 숨김 (2×2 = 4개) */
    .bd-grid-cards-4 .bd-card:nth-child(n+5) { display: none; }

    /* 청약일정: 4개 이후 숨김 */
    .bd-schedule-cards .bd-schedule-card:nth-child(n+5) { display: none; }

    /* 뉴스: 4번째 이후 숨김 (3개만 표시) */
    .bd-grid-news .bd-news-card:nth-child(n+4) { display: none; }

    /* TOP5 인기현장: 모바일 숨김 (이미 HOT카드에서 인기순 표시됨) */
    .bd-top5 { display: none; }

    /* 청약일정 섹션: 1열 컴팩트 */
    .bd-schedule-strip .bd-container { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   KB부동산 시세 위젯 (상세 패널 내부)
   ============================================================ */
.bd-kb-loading {
    font-size: 11px; color: #8B95A1; padding: 8px 0; text-align: center;
}
.bd-kb-panel {
    margin: 0 0 14px;
    border: 1px solid #E5E8EB;
    border-radius: 12px;
    overflow: hidden;
    background: #FAFBFC;
}
.bd-kb-title {
    font-size: 11px; font-weight: 800; color: #16223D;
    padding: 10px 14px 8px; letter-spacing: .02em;
    border-bottom: 1px solid #F2F4F6;
    background: #F7F9FB;
}
/* 분양가 vs KB 시세 비교 */
.bd-kb-cmp {
    padding: 10px 14px;
    border-left: 4px solid #F59E0B;
    background: #FFFBEB;
    margin: 10px 12px 0;
    border-radius: 0 8px 8px 0;
}
.bd-kb-cmp-label {
    font-size: 12px; font-weight: 800; margin-bottom: 6px;
}
.bd-kb-cmp-row {
    display: flex; align-items: center; gap: 2px; font-size: 12px; color: #374151;
    margin-bottom: 4px;
}
.bd-kb-cmp-row strong { font-weight: 800; color: #16223D; }
.bd-kb-cmp-diff {
    font-size: 11px; font-weight: 700;
}
/* 3종 지표 그리드 */
.bd-kb-metrics {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 1px; background: #F2F4F6;
    margin: 10px 0 0;
}
.bd-kb-metric {
    padding: 10px 8px; text-align: center; background: #fff;
}
.bd-kb-metric-label {
    font-size: 10px; font-weight: 600; color: #8B95A1; margin-bottom: 4px;
}
.bd-kb-metric-val {
    font-size: 15px; font-weight: 800; color: #16223D; line-height: 1.2;
}
.bd-kb-metric-val span { font-size: 10px; font-weight: 500; color: #8B95A1; }
.bd-kb-metric-chg, .bd-kb-metric-sub {
    font-size: 10px; font-weight: 700; margin-top: 3px;
}
/* 하단 노트 */
.bd-kb-note {
    font-size: 10px; color: #8B95A1; padding: 8px 12px;
    border-top: 1px solid #F2F4F6;
}

/* ── 한국부동산원 R-ONE 가격지수 위젯 ── */
.bd-reb-panel {
    margin: 0 0 14px;
    border: 1px solid #E5E8EB;
    border-radius: 12px;
    overflow: hidden;
    background: #FAFBFC;
}
.bd-reb-title {
    font-size: 11px; font-weight: 800; color: #1A3F6F;
    padding: 10px 14px 8px; letter-spacing: .02em;
    border-bottom: 1px solid #F2F4F6;
    background: #F0F6FF;
}
.bd-reb-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: #F2F4F6;
    margin: 0;
}
.bd-reb-item {
    padding: 10px 8px; text-align: center; background: #fff;
}
.bd-reb-lbl {
    font-size: 10px; font-weight: 600; color: #8B95A1; margin-bottom: 4px;
}
.bd-reb-val {
    font-size: 15px; font-weight: 800; color: #16223D; line-height: 1.2;
}
.bd-reb-chg {
    font-size: 11px; font-weight: 600; margin-top: 3px;
}
.bd-reb-sub {
    font-size: 10px; color: #8B95A1; margin-top: 2px;
}
.bd-reb-spark-wrap { padding: 8px 12px 4px; }
.bd-reb-spark-cap {
    display: block; font-size: 10px; color: #8B95A1; margin-bottom: 2px;
}
.bd-reb-spark {
    display: block; width: 100%; height: 28px; box-sizing: border-box;
}
.bd-reb-footer {
    font-size: 10px; color: #8B95A1; padding: 7px 12px;
    border-top: 1px solid #F2F4F6;
}

/* ============================================================
   모바일 반응형 전면 개선 (분양지도 페이지)
   @since 2.1.0
   ============================================================ */

/* ── CSS 변수: safe area 대응 ── */
:root {
    --bd-safe-bottom: env(safe-area-inset-bottom, 0px);
    --bd-safe-top:    env(safe-area-inset-top,    0px);
    --bd-nav-h: 56px;
}

@media (max-width: 768px) {

    /* ── 하단 내비바 safe area ── */
    .bd-mobile-bottom-nav {
        padding-bottom: var(--bd-safe-bottom);
        height: calc(var(--bd-nav-h) + var(--bd-safe-bottom));
    }
    /* 터치 타겟 최소 44px (Apple HIG) */
    .bd-mob-nav-btn {
        min-height: 44px;
        padding: 6px 2px;
        font-size: 10px;
    }
    .bd-mob-nav-icon { font-size: 22px; margin-bottom: 2px; }

    /* ── 바텀시트 safe area + dvh ── */
    #bd-bs {
        /* 내비바(56px) + safe area 위로 */
        bottom: calc(var(--bd-nav-h) + var(--bd-safe-bottom));
        /* 기본 max-height — JS 드래그가 override */
        max-height: calc(82dvh - var(--bd-safe-bottom));
        border-radius: 20px 20px 0 0;
    }
    /* 스크롤 체인 방지 */
    .bd-bs-grid {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    /* ── 바텀시트 드래그 핸들 시각적 강조 ── */
    .bd-bs-drag { padding: 8px 16px 4px; }
    .bd-bs-handle-bar {
        width: 42px; height: 5px; border-radius: 3px;
        background: #C9CDD6; margin: 0 auto 8px;
    }

    /* ── 바텀시트 헤더 ── */
    .bd-bs-head {
        padding: 0 16px 10px;
        align-items: center;
    }

    /* ── 바텀시트 칩 행 ── */
    .bd-bs-sido-chips, .bd-bs-chips {
        padding: 6px 12px;
    }
    .bd-bs-chip {
        font-size: 12px; padding: 6px 14px;
        min-height: 34px;
    }
    .bd-bs-sido-chip {
        font-size: 12px; padding: 5px 12px;
        min-height: 32px;
    }

    /* ── 바텀시트 카드 — 가로 1열 레이아웃 ── */
    #bd-bs .bd-bs-grid {
        grid-template-columns: 1fr !important;
        padding: 6px 10px 120px; /* 하단 여백: safe area + 카드 여유 */
        gap: 8px;
    }
    #bd-bs .bd-map-item {
        flex-direction: row !important;
        min-height: 90px;
        border-radius: 12px;
        border: 1px solid #F2F4F6;
        box-shadow: 0 1px 6px rgba(0,0,0,.06);
        active-background: #FAFBFC; /* 터치 피드백 */
    }
    #bd-bs .bd-map-item-thumb {
        width: 90px !important;
        min-width: 90px !important;
        height: 90px !important;
        border-radius: 0 !important;
        flex-shrink: 0;
    }
    #bd-bs .bd-map-item-body {
        flex: 1; min-width: 0;
        padding: 10px 12px !important;
        display: flex; flex-direction: column; justify-content: space-between;
    }
    #bd-bs .bd-map-item-title {
        font-size: 13px !important; font-weight: 800; color: #16223D;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        margin-bottom: 3px;
    }
    #bd-bs .bd-map-item-meta {
        font-size: 11px; color: #8B95A1;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    #bd-bs .bd-map-item-price {
        font-size: 13px; font-weight: 800; color: #2B62E8; margin-top: 4px;
    }
    /* 터치 active 피드백 */
    #bd-bs .bd-map-item:active {
        transform: scale(0.98);
        opacity: 0.9;
        transition: transform .08s, opacity .08s;
    }

    /* ── 모바일 상세 패널 (전체화면) ── */
    .bd-map-right-panel.is-open {
        position: fixed !important;
        left: 0; right: 0;
        top: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        z-index: 200;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: var(--bd-safe-top);
    }
    /* 상세 패널 닫기 버튼 터치 타겟 */
    .bd-detail-back-btn {
        min-height: 40px; min-width: 72px;
        font-size: 14px;
    }

    /* ── 지도 범례 모바일 ── */
    .bd-map-legend-inline {
        font-size: 10px !important;
        padding: 5px 8px !important;
        gap: 6px !important;
        top: 8px !important;
        left: 8px !important;
        max-width: calc(100vw - 120px);
        flex-wrap: wrap;
    }
    .bd-legend-dot2 { width: 7px; height: 7px; }

    /* ── 지도 타입 전환 버튼 (우상단) ── */
    .bd-map-type-sw {
        top: 8px; right: 8px;
    }
    .bd-map-type-btn {
        padding: 6px 10px; font-size: 11px;
        min-height: 32px;
    }

    /* ── 레이어 패널 모바일 ── */
    .bd-map-layer-panel {
        top: 48px !important; right: 8px !important;
    }
    .bd-layer-toggle-btn {
        padding: 6px 10px; font-size: 11px; min-height: 32px;
    }

    /* ── FAB 버튼 safe area ── */
    .bd-map-fab {
        bottom: calc(var(--bd-nav-h) + var(--bd-safe-bottom) + 60px);
        right: 12px;
    }
    .bd-fab {
        height: 40px; font-size: 11px; padding: 0 12px;
    }

    /* ── 줌 버튼 ── */
    .bd-map-zoom-btns {
        bottom: calc(var(--bd-nav-h) + var(--bd-safe-bottom) + 8px);
        right: 12px;
    }
    .bd-map-zoom-btns button {
        width: 36px; height: 36px; font-size: 18px;
    }

    /* ── KB 시세 위젯 모바일 ── */
    .bd-kb-metrics {
        grid-template-columns: repeat(3,1fr);
    }
    .bd-kb-cmp {
        margin: 8px 10px 0;
    }
    .bd-kb-cmp-row { flex-wrap: wrap; gap: 4px; }

    /* ── 대출계산기 모달 safe area ── */
    .bd-loan-modal-box {
        margin-bottom: var(--bd-safe-bottom);
    }
}

/* ── 아주 좁은 화면 (360px 이하) ── */
@media (max-width: 360px) {
    .bd-mob-nav-btn { font-size: 9px; }
    .bd-mob-nav-icon { font-size: 20px; }
    .bd-bs-chip { font-size: 11px; padding: 5px 10px; }
    .bd-kb-metrics { grid-template-columns: 1fr 1fr; }
    .bd-kb-metrics .bd-kb-metric:last-child { grid-column: 1 / -1; }
    .bd-reb-grid { grid-template-columns: 1fr 1fr; }
    .bd-reb-grid .bd-reb-item:last-child { grid-column: 1 / -1; }
}

/* ── 모바일 터치 hover 제거 ── */
@media (hover: none) {
    .bd-map-item:hover { box-shadow: none; transform: none; }
    .bd-qnav-btn:hover { background: transparent; color: #6B7280; }
}

/* ══════════════════════════════════════════════════════════════
   오늘살집 v2 — 메인페이지 신규 섹션
   ══════════════════════════════════════════════════════════════ */

/* 공통 섹션 헤더 */
.bd-sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.bd-sec-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bd-sec-emoji { font-size: 22px; line-height: 1; }
.bd-sec-title { font-size: 26px; font-weight: 800; color: #16223D; letter-spacing: -.04em; margin: 0; }
.bd-sec-desc { font-size: 14px; color: #8B95A1; font-weight: 500; margin: 0; }
.bd-sec-more { background: #F2F4F6; border: none; color: #4E5968; font-size: 14px; font-weight: 700; padding: 10px 18px; border-radius: 12px; cursor: pointer; flex-shrink: 0; text-decoration: none; transition: background .15s; white-space: nowrap; }
.bd-sec-more:hover { background: #E5E8EB; }

/* SECTION 2 — 퀵 카테고리 타일 */
.bd-qtiles-sec { padding: 28px 0; }
.bd-qtiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.bd-qtile { display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid #F2F4F6; border-radius: 18px; padding: 22px 16px; text-decoration: none; box-shadow: 0 4px 18px rgba(25,31,40,.05); transition: transform .16s, box-shadow .16s; }
.bd-qtile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(25,31,40,.1); }
.bd-qtile-ico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px; }
.bd-qtile-label { font-size: 14px; font-weight: 700; color: #16223D; }
.bd-qtile-sub { font-size: 11px; color: #8B95A1; margin-top: 3px; font-weight: 500; }

/* SECTION 3 — 지금 뜨는 분양 (가로 스크롤) */
.bd-hot-sec { max-width: 1280px; margin: 0 auto; padding: 28px 20px; }
.bd-hot-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bd-hot-scroll::-webkit-scrollbar { display: none; }
.bd-hot-card { flex: 0 0 276px; scroll-snap-align: start; background: #fff; border: 1px solid #F2F4F6; border-radius: 20px; overflow: hidden; text-decoration: none; box-shadow: 0 2px 12px rgba(25,31,40,.04); transition: transform .16s, box-shadow .16s; }
.bd-hot-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(25,31,40,.11); }
.bd-hot-thumb { position: relative; height: 168px; overflow: hidden; background: linear-gradient(135deg,#DCE7F2,#CEDCEC); display: block; }
.bd-hot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bd-hot-thumb-ph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 40px; }
.bd-hot-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.bd-hot-badge { color: #fff; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 7px; }
.bd-hot-badge-new { background: #16223D; }
.bd-hot-body { padding: 16px 18px 18px; }
.bd-hot-region { font-size: 12px; color: #8B95A1; font-weight: 600; margin-bottom: 4px; }
.bd-hot-name { font-size: 17px; font-weight: 800; color: #16223D; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.03em; }
.bd-hot-price { font-size: 19px; font-weight: 800; color: #2B62E8; margin-bottom: 12px; }
.bd-hot-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.bd-hot-tag { background: #F2F4F6; color: #4E5968; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 7px; }
.bd-hot-tag-view { background: #EBF3FF; color: #3182F6; font-weight: 700; }

/* SECTION 4 — 모델하우스 관람예약 (다크 퍼널 카드) */
.bd-mhx-sec { max-width: 1280px; margin: 0 auto; padding: 28px 20px; }
.bd-mhx-panel { position: relative; border-radius: 24px; overflow: hidden; background: linear-gradient(120deg,#0E1A33 0%,#17264A 62%,#0B1428 100%); padding: 36px 40px; }
.bd-mhx-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size: 44px 44px; }
.bd-mhx-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.bd-mhx-live { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,196,113,.16); border-radius: 100px; padding: 5px 12px; margin-bottom: 12px; font-size: 12px; font-weight: 800; color: #3DDC97; }
.bd-mhx-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #00C471; display: inline-block; animation: bdMhxPulse 2s infinite; }
@keyframes bdMhxPulse { 0%,100%{opacity:1;} 50%{opacity:.45;} }
.bd-mhx-title { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1.25; margin: 0; }
.bd-mhx-more { background: #fff; color: #16223D; border: none; border-radius: 13px; padding: 13px 22px; font-size: 14px; font-weight: 800; cursor: pointer; flex-shrink: 0; text-decoration: none; transition: background .15s; white-space: nowrap; }
.bd-mhx-more:hover { background: #EEF3FF; }
.bd-mhx-cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bd-mhx-card { background: #fff; border-radius: 16px; padding: 15px; text-decoration: none; display: flex; flex-direction: column; gap: 13px; transition: transform .16s; }
.bd-mhx-card:hover { transform: translateY(-3px); }
.bd-mhx-card-top { display: flex; align-items: center; gap: 12px; }
.bd-mhx-thumb { width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0; overflow: hidden; background: linear-gradient(135deg,#111827,#1E293B); display: block; }
.bd-mhx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bd-mhx-info { min-width: 0; flex: 1; display: block; }
.bd-mhx-region { font-size: 11px; color: #949FB5; font-weight: 600; display: block; }
.bd-mhx-name { font-size: 14px; font-weight: 800; color: #16223D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.02em; display: block; }
.bd-mhx-card-foot { display: flex; align-items: center; justify-content: space-between; }
.bd-mhx-open { font-size: 12px; font-weight: 700; color: #00A863; }
.bd-mhx-book { background: #2B62E8; color: #fff; font-size: 12px; font-weight: 800; padding: 7px 14px; border-radius: 10px; }

/* SECTION 5 — 청약 임박 (D-day 4열) */
.bd-dday-sec { max-width: 1280px; margin: 0 auto; padding: 28px 20px; }
.bd-dday-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.bd-dday-head .bd-sec-title-row { margin-bottom: 0; }
.bd-dday-tag { background: #E7EEFF; color: #2B62E8; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 100px; }
.bd-dday-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.bd-dday-card { background: #fff; border: 1px solid #F2F4F6; border-radius: 18px; padding: 20px; box-shadow: 0 2px 12px rgba(25,31,40,.04); text-decoration: none; display: block; transition: border-color .15s; }
.bd-dday-card:hover { border-color: #CBDBFF; }
.bd-dday-badge { display: inline-block; background: #EEF3FF; color: #2B62E8; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 8px; }
.bd-dday-badge.is-hot { background: #FDECEC; color: #E8443C; }
.bd-dday-name { font-size: 16px; font-weight: 800; color: #16223D; margin: 12px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.03em; }
.bd-dday-meta { font-size: 13px; color: #8B95A1; font-weight: 500; }

/* v2 데스크톱 섹션 여백 — 넉넉하고 균일한 수직 리듬 (섹션 content 좌측 40px 정렬) */
@media (min-width: 1024px) {
    .bd-qtiles-sec { padding: 40px 0; }
    .bd-hot-sec, .bd-mhx-sec, .bd-dday-sec { padding: 44px 40px; }
    .bd-section-news { padding: 44px 0 52px; }
}

/* v2 메인 반응형 */
@media (max-width: 1024px) {
    .bd-qtiles { grid-template-columns: repeat(5, 1fr); }
    .bd-dday-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .bd-qtiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .bd-qtile { padding: 16px 10px; border-radius: 14px; }
    .bd-qtile-ico { width: 42px; height: 42px; font-size: 21px; margin-bottom: 9px; }
    .bd-sec-title { font-size: 21px; }
    .bd-hot-card { flex-basis: 240px; }
    .bd-mhx-panel { padding: 26px 20px; border-radius: 20px; }
    .bd-mhx-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .bd-mhx-title { font-size: 22px; }
    .bd-mhx-cards { grid-template-columns: 1fr; }
    .bd-dday-grid { grid-template-columns: 1fr; }
}

