/* ===================================================
   에코델타시티 분양권 추천매물 홈페이지
   Premium Design System
   =================================================== */

/* ===== CSS Variables (Design Tokens) ===== */
:root {
    /* Primary palette - Deep Navy & Gold */
    --primary-900: #111827;
    --primary-800: #1a2236;
    --primary-700: #243352;
    --primary-600: #1e3a5f;
    --primary-500: #2563eb;
    --primary-400: #3b82f6;
    --primary-300: #60a5fa;

    /* Accent - Warm Gold */
    --accent-500: #d4a023;
    --accent-400: #e6b84d;
    --accent-300: #f0cf72;

    /* Surface colors */
    --surface-50: #f8fafc;
    --surface-100: #f1f5f9;
    --surface-200: #e2e8f0;
    --surface-300: #cbd5e1;
    --surface-400: #94a3b8;
    --surface-500: #64748b;
    --surface-600: #475569;
    --surface-700: #334155;
    --surface-800: #1e293b;
    --surface-900: #0f172a;

    /* Semantic */
    --danger: #ef4444;
    --success: #10b981;

    /* Typography */
    --font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 100px;

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.15);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-900);
    color: var(--surface-200);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Background Particles ===== */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.3), transparent);
    animation: float-particle linear infinite;
    pointer-events: none;
    box-shadow: 0 0 6px 1px rgba(212, 160, 35, 0.15);
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(720deg);
        opacity: 0;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.95) 100%),
        url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=2075&auto=format&fit=crop') center/cover no-repeat;
    padding-bottom: 120px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-broker-name {
    font-size: clamp(13px, 2vw, 16px);
    font-weight: 600;
    color: var(--accent-400);
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--accent-400);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-title-sub {
    display: block;
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 400;
    color: var(--surface-400);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--surface-400);
    line-height: 1.8;
    margin-bottom: 48px;
    font-weight: 300;
}

.hero-desc strong {
    color: var(--accent-400);
    font-weight: 600;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--surface-400);
    font-weight: 400;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, var(--surface-600), transparent);
}

/* Hero CTA */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
}

.hero-cta svg {
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ===== Filter Navigation (Floating Pill Style) ===== */
.filter-nav {
    position: sticky;
    top: 20px;
    z-index: 100;
    display: block;
    margin: 0 auto 20px auto;
    width: 100%;
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-nav.scrolled {
    background: rgba(17, 24, 39, 0.85);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px;
    width: 100%;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    color: var(--surface-200);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    justify-content: center;
    text-align: center;
}

.filter-tab[data-filter="all"] {
    grid-column: 1 / -1;
    font-size: 15px;
    font-weight: 600;
}

.filter-tab:hover {
    color: var(--surface-200);
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

.filter-tab.active[data-theme="all"] {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-600));
    border-color: var(--accent-400);
    box-shadow: 0 4px 16px rgba(212, 160, 35, 0.3);
}

.filter-tab.active[data-theme="berhill"] {
    color: #ffffff;
    background: linear-gradient(135deg, #e8231a, #b81711);
    border-color: #ff4d4d;
    box-shadow: 0 4px 16px rgba(232, 35, 26, 0.3);
}

.filter-tab.active[data-theme="junghung"] {
    color: #ffffff;
    background: linear-gradient(135deg, #c9a227, #a1801c);
    border-color: #ffd700;
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}

.filter-tab.active[data-theme="first"] {
    color: #ffffff;
    background: linear-gradient(135deg, #c59995, #a37571);
    border-color: #eabfb9;
    box-shadow: 0 4px 16px rgba(197, 153, 149, 0.4);
}

.filter-tab.active[data-theme="granluche"] {
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a8a, #172554);
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.4);
}

.tab-icon {
    font-size: 16px;
}

/* ===== Listings Section ===== */
.listings-section {
    scroll-margin-top: 30px;
    padding: 60px 0 var(--section-padding);
    position: relative;
    z-index: 10;
    background: var(--primary-900);
    border-top-left-radius: 48px;
    border-top-right-radius: 48px;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.4);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-400);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 17px;
    color: var(--surface-400);
    font-weight: 300;
}

/* ===== Loan Notice Banner ===== */
.loan-notice {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(212, 160, 35, 0.1), rgba(212, 160, 35, 0.05));
    border: 1px solid rgba(212, 160, 35, 0.25);
    border-radius: 14px;
    margin-bottom: 32px;
}

.loan-notice-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.loan-notice-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.loan-notice-text strong {
    font-size: 15px;
    color: var(--accent-400);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.loan-notice-sub {
    font-size: 13px;
    color: var(--surface-400);
    font-weight: 400;
}

/* ===== Toolbar (Type Filter + Dong Filter + Sort) ===== */
.toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.type-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.type-filters::-webkit-scrollbar {
    display: none;
}

.type-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: var(--surface-400);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.type-tab:hover {
    color: var(--surface-200);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.type-tab.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--primary-400);
    font-weight: 600;
}

.sort-controls {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: var(--surface-500);
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.sort-btn:hover {
    color: var(--surface-200);
    background: rgba(255, 255, 255, 0.08);
}

.sort-btn.active {
    color: var(--accent-400);
    border-color: rgba(212, 160, 35, 0.3);
    background: rgba(212, 160, 35, 0.08);
}

.sort-btn svg {
    opacity: 0.7;
}

.sort-btn.active svg {
    opacity: 1;
    stroke: var(--accent-400);
}

/* Dong Filters */
.dong-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.dong-filters::-webkit-scrollbar {
    display: none;
}

.filter-label {
    font-size: 13px;
    color: var(--surface-400);
    font-weight: 600;
    white-space: nowrap;
    margin-right: 4px;
}

.dong-tab {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: var(--surface-500);
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.dong-tab:hover {
    color: var(--surface-300);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.dong-tab.active {
    color: #ffffff;
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    font-weight: 600;
}

/* ===== Complex Section (전체 보기 시 단지 그룹) ===== */
.complex-section {
    margin-bottom: 48px;
}

.complex-section:last-child {
    margin-bottom: 0;
}

.complex-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.complex-section-logo img {
    display: block;
}

.complex-section-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.complex-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.complex-section-count {
    font-size: 13px;
    color: var(--surface-400);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px 12px;
    border-radius: 100px;
}

.complex-section-accent {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    border-radius: 3px;
}

.complex-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 24px;
}

/* ===== Listings Grid (단지 선택 시) ===== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
    gap: 24px;
}

/* 전체 보기에서 섹션 모드일 때 그리드 해제 */
.listings-grid:has(.complex-section) {
    display: block;
    grid-template-columns: none;
    gap: 0;
}

/* ===== 단지 공통사항 (의무 표시) ===== */
.common-info-box {
    margin-top: 28px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow-x: auto;
}

.common-info-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--surface-400);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.common-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 6px 24px;
    margin-bottom: 14px;
}

.common-info-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 3px 0;
}

.common-info-item.ci-full {
    grid-column: 1 / -1;
}

.ci-label {
    font-size: 11px;
    color: var(--surface-500);
    min-width: 62px;
    flex-shrink: 0;
}

.ci-value {
    font-size: 11px;
    color: var(--surface-300);
}

.common-info-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--surface-500);
    margin-bottom: 8px;
}

.common-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.common-info-table th {
    padding: 5px 4px;
    text-align: center;
    color: var(--surface-400);
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.common-info-table td {
    padding: 4px 4px;
    text-align: center;
    color: var(--surface-400);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    white-space: nowrap;
    letter-spacing: -0.3px;
}

/* ===== Property Card ===== */
.property-card {
    position: relative;
    background: linear-gradient(145deg, rgba(36, 51, 82, 0.6), rgba(26, 34, 54, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease, border-color 0.5s ease;
    cursor: pointer;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.property-card.reveal-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Card hover effect */
.property-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
}

/* Card image area */
.card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card:hover .card-image {
    transform: scale(1.08);
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(26, 34, 54, 1), transparent);
}

.card-body {
    padding: 24px 32px 32px;
}

/* Card without image fallback */
.property-card:not(:has(.card-image)) .card-body {
    padding: 32px;
}

/* 전용면적 / 공급면적 표시 */
.card-area {
    font-size: 13px;
    color: var(--surface-400);
    margin-top: 2px;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

/* Complex-specific card top accent colors */
.card-theme-berhill { border-top: 4px solid #e8231a; }
.card-theme-junghung { border-top: 4px solid #c9a227; }
.card-theme-first { border-top: 4px solid #ECC3B2; }
.card-theme-granluche { border-top: 4px solid #041E42; }
.card-theme-default { border-top: 4px solid var(--primary-500); }

/* Card hover - theme glow */
.card-theme-berhill:hover { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(232, 35, 26, 0.2); border-color: rgba(232, 35, 26, 0.5); }
.card-theme-junghung:hover { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(201, 162, 39, 0.2); border-color: rgba(201, 162, 39, 0.5); }
.card-theme-first:hover { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(236, 195, 178, 0.2); border-color: rgba(236, 195, 178, 0.5); }
.card-theme-granluche:hover { box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 40px rgba(147, 197, 253, 0.2); border-color: rgba(147, 197, 253, 0.5); }

/* Modal logo */
.modal-logo {
    margin-bottom: 12px;
}

.modal-logo img {
    max-height: 40px;
    object-fit: contain;
}

/* ===== Detail Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #1a2540, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

.modal-card::-webkit-scrollbar {
    width: 6px;
}
.modal-card::-webkit-scrollbar-track {
    background: transparent;
}
.modal-card::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--surface-400);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.modal-header {
    padding: 40px 36px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-complex-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 15px;
    color: var(--surface-400);
    font-weight: 400;
}

.modal-body {
    padding: 28px 36px 36px;
}

/* Modal price hero */
.modal-price-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(212, 160, 35, 0.08));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 16px;
    margin-bottom: 28px;
}

.modal-price-label {
    font-size: 14px;
    color: var(--surface-400);
    font-weight: 500;
}

.modal-price-value {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, var(--accent-300));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Modal info grid */
.modal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.modal-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.modal-info-label {
    font-size: 12px;
    color: var(--surface-500);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.modal-info-value {
    font-size: 17px;
    color: #ffffff;
    font-weight: 700;
}

/* Modal options */
.modal-options {
    margin-bottom: 24px;
}

.modal-options-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--surface-300);
    margin-bottom: 12px;
}

.modal-options-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 13px;
    color: #6ee7b7;
    font-weight: 500;
}

/* Modal price breakdown */
.modal-price-breakdown {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    margin-bottom: 28px;
}

.breakdown-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--surface-300);
    margin-bottom: 16px;
}

.breakdown-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.breakdown-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.breakdown-label {
    font-size: 14px;
    color: var(--surface-400);
}

.breakdown-value {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.breakdown-value.highlight {
    color: var(--accent-400);
    font-size: 18px;
}

/* Modal loan notice */
.modal-loan-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(212, 160, 35, 0.08);
    border: 1px solid rgba(212, 160, 35, 0.2);
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--accent-400);
}

.modal-loan-notice strong {
    font-weight: 700;
}

/* Modal CTA */
.modal-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
    color: var(--primary-900);
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(212, 160, 35, 0.3);
    margin-bottom: 12px;
}

.modal-cta:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(212, 160, 35, 0.4);
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cta-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
    letter-spacing: 1px;
}

.cta-number {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.modal-broker-note {
    text-align: center;
    font-size: 13px;
    color: var(--surface-500);
}

/* Modal responsive */
@media (max-width: 768px) {
    .modal-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .modal-card {
        max-height: 85vh;
        border-radius: 24px 24px 12px 12px;
    }

    .modal-header {
        padding: 32px 24px 20px;
    }

    .modal-body {
        padding: 20px 24px 28px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-price-value {
        font-size: 26px;
    }

    .modal-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-cta {
        font-size: 17px;
        padding: 16px;
    }
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-400), var(--primary-500));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.property-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(37, 99, 235, 0.1);
}

.property-card:hover::before {
    opacity: 1;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card complex tag */
.card-complex-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.card-complex-tag.berhill {
    background: rgba(232, 35, 26, 0.12);
    color: #f87171;
    border: 1px solid rgba(232, 35, 26, 0.2);
}

.card-complex-tag.junghung {
    background: rgba(201, 162, 39, 0.12);
    color: var(--accent-400);
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.card-complex-tag.first {
    background: rgba(197, 153, 149, 0.15);
    color: #eabfb9;
    border: 1px solid rgba(197, 153, 149, 0.25);
}

.card-complex-tag.granluche {
    background: rgba(30, 58, 138, 0.25);
    color: #93c5fd;
    border: 1px solid rgba(30, 58, 138, 0.4);
}

.card-complex-tag.default {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-400);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Card title */
.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Card description - 동/층 | 프리미엄 | 방향 */
.card-desc {
    font-size: 15px;
    color: var(--surface-300);
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Card price */
.card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-price-label {
    font-size: 14px;
    color: var(--surface-400);
    font-weight: 500;
}

.card-price {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, var(--accent-300));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-unit {
    font-size: 13px;
    font-weight: 400;
    color: var(--surface-500);
    -webkit-text-fill-color: var(--surface-500);
    margin-left: 2px;
}

/* Card inquiry tag */
.card-inquiry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding: 12px 18px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    font-size: 14px;
    color: var(--primary-300);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-inquiry:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
    color: #ffffff;
}

.card-inquiry svg {
    transition: transform 0.3s ease;
}

.property-card:hover .card-inquiry svg {
    transform: translateX(4px);
}

.card-inquiry a {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--surface-500);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    font-weight: 400;
}

/* ===== Broker Section ===== */
.broker-section {
    scroll-margin-top: 30px;
    padding: var(--section-padding) 0;
    position: relative;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(37, 99, 235, 0.08) 0%, transparent 60%),
        var(--primary-900);
}

.broker-card {
    position: relative;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 64px;
    text-align: center;
    overflow: hidden;
}

.broker-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.broker-content {
    position: relative;
    z-index: 1;
}

.broker-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(212, 160, 35, 0.1);
    border: 1px solid rgba(212, 160, 35, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-400);
    margin-bottom: 28px;
}

.broker-name {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 32px;
}

.broker-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 40px;
}

.broker-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--surface-400);
}

.detail-icon {
    font-size: 20px;
}

/* Phone button */
.broker-phone {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 48px;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
    color: var(--primary-900);
    text-decoration: none;
    border-radius: 100px;
    font-size: 28px;
    font-weight: 900;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(212, 160, 35, 0.3);
    margin-bottom: 20px;
}

.broker-phone:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(212, 160, 35, 0.4);
}

.phone-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 100px;
    border: 2px solid var(--accent-400);
    animation: phonePulse 2s ease-in-out infinite;
}

@keyframes phonePulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.06);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.broker-phone svg {
    stroke: var(--primary-900);
}

.phone-number {
    letter-spacing: 1px;
}

.broker-note {
    font-size: 15px;
    color: var(--surface-500);
    font-weight: 300;
}

/* Broker Social/External Links */
.broker-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.broker-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--surface-300);
    text-decoration: none;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.broker-link-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.broker-link-btn svg {
    flex-shrink: 0;
    transition: stroke 0.3s ease;
}

/* 네이버 지도 - 초록 */
.broker-link-btn.naver-map:hover {
    border-color: rgba(3, 199, 90, 0.5);
    box-shadow: 0 4px 20px rgba(3, 199, 90, 0.2);
    color: #03c75a;
}
.broker-link-btn.naver-map:hover svg { stroke: #03c75a; }

/* 네이버 부동산 - 네이비 블루 */
.broker-link-btn.naver-realty:hover {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
    color: var(--primary-300);
}
.broker-link-btn.naver-realty:hover svg { stroke: var(--primary-300); }

/* 네이버 블로그 - 라임 그린 */
.broker-link-btn.naver-blog:hover {
    border-color: rgba(3, 199, 90, 0.5);
    box-shadow: 0 4px 20px rgba(3, 199, 90, 0.2);
    color: #03c75a;
}
.broker-link-btn.naver-blog:hover svg { stroke: #03c75a; }

/* 인스타그램 - 그라데이션 핑크/퍼플 */
.broker-link-btn.instagram:hover {
    border-color: rgba(225, 48, 108, 0.5);
    box-shadow: 0 4px 20px rgba(225, 48, 108, 0.2);
    color: #e1306c;
}
.broker-link-btn.instagram:hover svg { stroke: #e1306c; }

/* 유튜브 - 레드 */
.broker-link-btn.youtube:hover {
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.2);
    color: #ff0000;
}
.broker-link-btn.youtube:hover svg { stroke: #ff0000; }

/* ===== Listing Submit (매물접수) Section ===== */
.listing-submit-section {
    scroll-margin-top: 30px;
    padding: 80px 0;
    position: relative;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(212, 160, 35, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(37, 99, 235, 0.04) 0%, transparent 60%),
        var(--primary-900);
}

.listing-submit-card {
    position: relative;
    background: linear-gradient(145deg, rgba(212, 160, 35, 0.08), rgba(30, 41, 59, 0.6));
    border: 1px solid rgba(212, 160, 35, 0.2);
    border-radius: 28px;
    padding: 64px;
    text-align: center;
    overflow: hidden;
    transition: border-color 0.4s ease;
}

.listing-submit-card:hover {
    border-color: rgba(212, 160, 35, 0.35);
}

.listing-submit-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 160, 35, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: submitGlow 6s ease-in-out infinite alternate;
}

@keyframes submitGlow {
    0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.listing-submit-content {
    position: relative;
    z-index: 1;
}

.listing-submit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(212, 160, 35, 0.15), rgba(212, 160, 35, 0.05));
    border: 1px solid rgba(212, 160, 35, 0.25);
    border-radius: 20px;
    margin-bottom: 28px;
    color: var(--accent-400);
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.listing-submit-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(212, 160, 35, 0.1);
    border: 1px solid rgba(212, 160, 35, 0.2);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent-400);
    margin-bottom: 24px;
}

.listing-submit-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.listing-submit-desc {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--surface-400);
    line-height: 1.9;
    margin-bottom: 36px;
    font-weight: 300;
}

.listing-submit-highlight {
    color: var(--accent-300);
    font-weight: 500;
    font-size: 0.9em;
}

.listing-submit-features {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.submit-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 14px;
    color: var(--surface-300);
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-feature:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 160, 35, 0.2);
    color: #ffffff;
}

.feature-icon {
    font-size: 18px;
}

.listing-submit-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 48px;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
    color: var(--primary-900);
    text-decoration: none;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 28px rgba(212, 160, 35, 0.3);
    margin-bottom: 16px;
}

.listing-submit-cta:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 40px rgba(212, 160, 35, 0.4);
}

.listing-submit-cta svg {
    stroke: var(--primary-900);
}

.listing-submit-note {
    font-size: 14px;
    color: var(--surface-500);
    font-weight: 300;
}

/* ===== 유튜브 쇼츠 모달 플레이어 ===== */
.modal-youtube-container {
    margin: 20px 0 32px 0;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
}

.yt-shorts-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 177.77%; /* 16:9 거꾸로 (세로형 쇼츠) */
}

.yt-shorts-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== 모달 내 실거래 비교 ===== */
.modal-real-trade {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(74,222,128,0.06), rgba(34,197,94,0.03));
    border: 1px solid rgba(74,222,128,0.15);
    border-radius: 16px;
}

.modal-rt-title {
    font-size: 16px;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 14px;
}

.modal-rt-table {
    width: 100%;
    border-collapse: collapse;
}

.modal-rt-table thead tr {
    border-bottom: 1px solid rgba(74,222,128,0.2);
}

.modal-rt-table th {
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--surface-400);
    text-align: center;
}

.modal-rt-table td {
    padding: 9px 6px;
    font-size: 13px;
    color: var(--surface-300);
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.modal-rt-table td.rt-td-price {
    font-weight: 700;
    color: #4ade80;
    text-align: right;
    white-space: nowrap;
}

.modal-rt-summary {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(74,222,128,0.15);
    font-size: 13px;
    color: var(--surface-400);
    text-align: center;
    font-weight: 500;
}

/* ===== 강서구 실거래 신고 섹션 ===== */
.real-trade-section {
    scroll-margin-top: 30px;
    padding: 80px 0 60px;
}

.rt-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    width: 100%;
}

.rt-dong-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    max-width: 100%;
    min-width: 0;
}
.rt-dong-filters::-webkit-scrollbar { display: none; }

.rt-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--surface-300);
    margin-right: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.rt-dong-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    color: var(--surface-400);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.rt-dong-tab:hover {
    color: var(--surface-200);
    background: rgba(255,255,255,0.06);
}

.rt-dong-tab.active {
    color: #fff;
    background: var(--accent-500);
    border-color: var(--accent-400);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(212,160,35,0.3);
}

.rt-filters {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    max-width: 100%;
    min-width: 0;
}

.rt-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    color: var(--surface-400);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.rt-tab:hover {
    color: var(--surface-300);
    background: rgba(255,255,255,0.06);
}

.rt-tab.active {
    color: #fff;
    background: #4ade80;
    border-color: #22c55e;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(74,222,128,0.3);
}

.rt-type-filters {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    max-width: 100%;
    min-width: 0;
}
.rt-type-filters::-webkit-scrollbar { display: none; }

.rt-type-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 100px;
    color: var(--surface-400);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.rt-type-tab:hover {
    color: var(--surface-200);
    background: rgba(255,255,255,0.08);
}

.rt-type-tab.active {
    color: #fff;
    background: var(--primary-500);
    border-color: var(--primary-400);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.rt-table-wrapper {
    border-radius: 16px;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(12px);
    max-height: 600px;
    overflow-y: auto;
    width: 100%;
}

.rt-table {
    width: 100%;
    border-collapse: collapse;
}

.rt-table thead tr {
    background: linear-gradient(135deg, rgba(74,222,128,0.1), rgba(34,197,94,0.06));
    border-bottom: 1px solid rgba(74,222,128,0.15);
}

.rt-table th {
    padding: 14px 12px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--surface-300);
    text-align: center;
    letter-spacing: 0.5px;
}

.rt-table td.rt-td-date {
    color: var(--surface-200);
    font-weight: 500;
}

.rt-table td.rt-td-floor {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--surface-100);
}

.rt-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.2s ease;
}

.rt-table tbody tr:hover {
    background: rgba(74,222,128,0.04);
}

.rt-month-divider {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(4px);
    font-weight: 600;
    color: var(--accent-400);
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.rt-group-divider {
    background: rgba(37, 99, 235, 0.15);
    font-weight: 700;
    color: #fff;
    text-align: left;
    border-bottom: 2px solid var(--primary-500);
}
.rt-group-divider td {
    padding: 18px 20px !important;
    font-size: 17.5px;
    letter-spacing: 0.5px;
}
.rt-month-divider td {
    padding: 16px 20px !important;
    font-size: 16.5px;
    letter-spacing: 0.5px;
}

.rt-table td {
    padding: 13px 12px;
    font-size: 14px;
    color: var(--surface-400);
    text-align: center;
    vertical-align: middle;
}

.rt-table td.rt-td-apt {
    text-align: left;
    color: var(--surface-200);
    font-weight: 500;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 확장 모드에서 단지명 숨기기 & 글자 크기 키우기 */
.hide-apt-col .rt-th-apt,
.hide-apt-col .rt-td-apt {
    display: none;
}

.hide-apt-col td {
    font-size: 15.5px;
}

.hide-apt-col .rt-price-value {
    font-size: 17px;
}

.rt-table td.rt-td-price {
    text-align: right;
    font-weight: 700;
    color: #4ade80;
    font-size: 14px;
    white-space: nowrap;
}

.rt-table td.rt-td-type {
    font-size: 12.5px;
}

.rt-table td.rt-td-atype {
    text-align: center;
    font-size: 12px;
    color: var(--surface-500);
}

.rt-atype-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(129, 140, 248, 0.1);
    color: #818cf8;
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.rt-th-atype {
    width: 70px;
}

.rt-gonggeup {
    font-size: 10px;
    color: var(--surface-500);
    font-weight: 400;
}

.rt-td-area {
    white-space: nowrap;
    line-height: 1.4;
}

.rt-type-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.rt-type-badge.sale {
    background: rgba(239,68,68,0.12);
    color: #f87171;
}

.rt-type-badge.presale {
    background: rgba(168,85,247,0.12);
    color: #c084fc;
}

.rt-type-badge.jeonse {
    background: rgba(59,130,246,0.12);
    color: #60a5fa;
}

.rt-type-badge.wolse {
    background: rgba(245,158,11,0.12);
    color: #fbbf24;
}

.rt-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.rt-badges-wrapper {
    display: flex;
    gap: 4px;
}

.rt-direct-badge {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.rt-high-badge {
    display: inline-block;
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.5);
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.rt-highest-row {
    background: rgba(255, 215, 0, 0.04) !important;
}

.rt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.rt-more-btn {
    padding: 10px 32px;
    background: rgba(74,222,128,0.08);
    border: 1px solid rgba(74,222,128,0.2);
    border-radius: 12px;
    color: #4ade80;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rt-more-btn:hover {
    background: rgba(74,222,128,0.15);
    border-color: rgba(74,222,128,0.4);
    transform: translateY(-1px);
}

.rt-info {
    font-size: 12px;
    color: var(--surface-600);
}

/* ===== Footer ===== */
.footer {
    padding-bottom: 25vh;
    padding: 48px 0;
    border-top: 1px solid var(--glass-border);
    background: var(--primary-900);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    font-size: 14px;
    font-weight: 600;
    color: var(--surface-500);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 13px;
    color: var(--surface-600);
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--surface-700);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-divider {
        height: 30px;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .broker-card {
        padding: 40px 24px;
    }

    .broker-phone {
        font-size: 22px;
        padding: 16px 36px;
    }

    .broker-detail-item {
        font-size: 14px;
    }

    .broker-links {
        gap: 8px;
    }

    .broker-link-btn {
        padding: 10px 16px;
        font-size: 12px;
        gap: 6px;
    }

    .broker-link-btn svg {
        width: 16px;
        height: 16px;
    }

    .listing-submit-card {
        padding: 40px 24px;
    }

    .listing-submit-features {
        gap: 12px;
    }

    .submit-feature {
        padding: 10px 18px;
        font-size: 12px;
    }

    .listing-submit-cta {
        padding: 16px 36px;
        font-size: 16px;
    }

    .filter-tabs {
        padding: 4px 8px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .type-filters {
        padding-bottom: 4px;
    }

    .sort-controls {
        justify-content: flex-end;
    }

    .property-card {
        padding: 0;
    }
}

@media (max-width: 420px) {
    .hero-badge {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .card-price {
        font-size: 20px;
    }

    .broker-phone {
        font-size: 18px;
        padding: 14px 28px;
        gap: 10px;
    }

    .broker-phone svg {
        width: 22px;
        height: 22px;
    }
}

/* ===== 실거래 테이블 모바일 반응형 ===== */
@media (max-width: 768px) {
    .rt-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .rt-table {
        min-width: 600px;
    }

    .rt-table th,
    .rt-table td {
        padding: 10px 6px;
        font-size: 12px;
    }

    .rt-table td.rt-td-apt {
        max-width: 120px;
    }

    .rt-table td.rt-td-price {
        font-size: 13px;
    }

    .rt-dong-tab,
    .rt-type-tab,
    .rt-tab {
        padding: 8px 16px;
        font-size: 15px;
    }

    .rt-controls {
        gap: 8px;
    }

    .real-trade-section {
    scroll-margin-top: 30px;
        padding: 50px 0 40px;
    }
}

@media (max-width: 480px) {
    .rt-table {
        min-width: 520px;
    }

    .rt-table th,
    .rt-table td {
        padding: 8px 4px;
        font-size: 11px;
    }

    .rt-th-atype {
        width: 50px;
    }

    .rt-table td.rt-td-apt {
        max-width: 90px;
        font-size: 11px;
    }

    .rt-table td.rt-td-floor {
        font-size: 13px;
    }

    .rt-dong-tab,
    .rt-type-tab,
    .rt-tab {
        padding: 8px 14px;
        font-size: 14.5px;
    }
}

/* ===== Floating CTA ===== */
.floating-cta {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
    color: var(--primary-900);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(212, 160, 35, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: floatBounce 2s infinite ease-in-out;
}

.floating-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(212, 160, 35, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    animation-play-state: paused;
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 768px) {
    .floating-cta {
        bottom: 20px;
        right: 16px;
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* Floating CTA Shrunk State */
.floating-cta {
    overflow: hidden;
    white-space: nowrap;
    max-width: 200px; /* safe max width */
}

.floating-cta .floating-text {
    transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    max-width: 150px;
    opacity: 1;
}

.floating-cta.shrunk {
    padding: 14px; /* Make it a circle */
    border-radius: 50%;
}

.floating-cta.shrunk .floating-text {
    max-width: 0;
    opacity: 0;
    margin: 0;
}

@media (max-width: 768px) {
    .floating-cta.shrunk {
        padding: 12px;
    }
}

/* ===== Hero Quick Links ===== */
.hero-quick-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.quick-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.quick-badge.highlight {
    background: rgba(212, 160, 35, 0.15);
    border-color: rgba(212, 160, 35, 0.3);
    color: var(--accent-400);
}

.quick-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.quick-badge.highlight:hover {
    background: rgba(212, 160, 35, 0.25);
    box-shadow: 0 4px 12px rgba(212, 160, 35, 0.2);
}

/* ===== SEO (Screen Reader Only) ===== */
.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;
}
