/* 2024 Modern Unified Service Platform - Compact & Colorful Design */

/* CSS 변수 - 다양한 색상 팔레트 */
:root {
    /* 메인 컬러 팔레트 - 더 다양하고 밝은 색상 */
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --real-estate-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --car-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --insurance-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --life-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --accent-gradient: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    
    /* 뉴트럴 컬러 */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* 컬러풀 배경 */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    
    /* 블러 & 그림자 */
    --glass-blur: blur(12px);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 크기 & 간격 - 더 컴팩트하게 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
    
    /* 애니메이션 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    --bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* 🎨 unified-search-page 컨테이너 설정 - 페이지 전체 높이 배경 */
.unified-search-page {
    /* 헤더 공간 확보 */
    padding-top: 70px;
    /* 폰트 설정 */
    font-family: 'Pretendard', sans-serif;
    /* 기본 레이아웃 - 푸터 포함한 전체 높이 */
    min-height: 100vh;
    position: relative;
    /* 성능 최적화 */
    transform: translateZ(0);
    will-change: scroll-position;
    /* Flexbox 레이아웃으로 푸터를 하단에 고정 */
    display: flex;
    flex-direction: column;
    /* 배경이 전체 페이지를 커버하도록 높이 보장 */
    height: auto;
}

.unified-search-page .main-wrapper {
    flex: 1; /* 남은 공간 모두 사용 */
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1; /* 배경 위에 표시 */
}

.unified-search-page .main-content {
    flex: 1; /* 메인 콘텐츠가 남은 공간 사용 */
}

/* 푸터를 하단에 고정 - 배경 확장 포함 */
footer, .footer, .page-footer {
    flex-shrink: 0; /* 푸터 크기 고정 */
    margin-top: auto; /* 푸터를 하단으로 밀어내기 */
    position: relative;
    z-index: 1; /* 배경 위에 표시하지만 모바일 UI보다 낮음 */
}

.unified-search-page footer,
.unified-search-page .footer,
.unified-search-page .page-footer {
    margin-top: auto;
    position: relative;
    bottom: 0;
    z-index: 1; /* 글래스 배경 위에 표시 */
}

/* 컬러풀 배경 - 페이지 전체 높이 커버 */
.glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    z-index: -1;
    background: var(--bg-gradient);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur);
    animation: float 8s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    top: 5%;
    left: 5%;
    animation-delay: 0s;
    background: rgba(16, 185, 129, 0.1);
}

.blob-2 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 5%;
    animation-delay: 3s;
    background: rgba(245, 158, 11, 0.1);
}

.blob-3 {
    width: 150px;
    height: 150px;
    bottom: 5%;
    left: 40%;
    animation-delay: 6s;
    background: rgba(59, 130, 246, 0.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(3deg); }
    66% { transform: translateY(8px) rotate(-3deg); }
}

/* 메인 래퍼 - 푸터까지 배경 확장 */
.main-wrapper {
    position: relative;
    flex: 1; /* Flexbox로 남은 공간 모두 사용 */
    min-height: 100vh; /* 전체 뷰포트 높이 사용 */
    backdrop-filter: var(--glass-blur);
}

/* 히어로 섹션 - 헤더 공간 확보됨으로 패딩 조정 */
.hero-section {
    padding: 20px 0 20px; /* 헤더 공간이 확보되어 상단 패딩 감소 */
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-content {
    max-width: 500px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--glass-blur);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #fbbf24;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    line-height: 1.5;
}

/* 메인 컨텐츠 - 헤더와 푸터 사이 적절한 여백 */
.main-content {
    padding: 65px 0 80px 0; /* 하단 여백을 늘려서 푸터와 충분한 간격 확보 */
    flex: 1; /* Flexbox로 남은 공간 사용 */
    min-height: calc(100vh - 400px); /* 전체 높이에서 헤더+푸터+패딩 제외 */
}

/* 카테고리 섹션 - 더 컴팩트하게 */
.category-section {
    margin-bottom: 30px;
}

.category-container {
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 800px;
    width: 100%;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 카테고리별 고유 색상 */
.category-card[data-category="realestate"] .category-icon {
    background: var(--real-estate-gradient);
}

.category-card[data-category="car"] .category-icon {
    background: var(--car-gradient);
}

.category-card[data-category="insurance"] .category-icon {
    background: var(--insurance-gradient);
}

.category-card[data-category="life"] .category-icon {
    background: var(--life-gradient);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.category-card[data-category="realestate"]::before {
    background: var(--real-estate-gradient);
}

.category-card[data-category="car"]::before {
    background: var(--car-gradient);
}

.category-card[data-category="insurance"]::before {
    background: var(--insurance-gradient);
}

.category-card[data-category="life"]::before {
    background: var(--life-gradient);
}

.category-card:hover::before {
    opacity: 0.05;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card.active {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.category-card.active::before {
    opacity: 0.08;
}

.category-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.category-icon i {
    font-size: 20px;
    color: var(--white);
}

.category-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
}

.category-card p {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    line-height: 1.4;
}

.category-badge-count {
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.category-card[data-category="realestate"] .category-badge-count {
    background: var(--real-estate-gradient);
}

.category-card[data-category="car"] .category-badge-count {
    background: var(--car-gradient);
}

.category-card[data-category="insurance"] .category-badge-count {
    background: var(--insurance-gradient);
}

.category-card[data-category="life"] .category-badge-count {
    background: var(--life-gradient);
}

/* 서비스 섹션 - 더 컴팩트하게 */
.services-section {
    margin-bottom: 30px;
}

.services-container {
    padding: 0 15px;
}

.service-group {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
}

.service-group.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.service-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    min-height: 70px;
}

/* 서비스별 색상 구분 */
.service-item[data-service*="real_estate"],
.service-item[data-service*="building"] {
    border-left: 4px solid #10b981;
}

.service-item[data-service*="car"],
.service-item[data-service*="charging"],
.service-item[data-service*="flooded"],
.service-item[data-service*="tire"],
.service-item[data-service*="fuel"] {
    border-left: 4px solid #f59e0b;
}

.service-item[data-service*="insurance"],
.service-item[data-service*="surgery"],
.service-item[data-service*="disaster"],
.service-item[data-service*="lift"],
.service-item[data-service*="disease"],
.service-item[data-service*="insu"],
.service-item[data-service*="growth"] {
    border-left: 4px solid #3b82f6;
}

.service-item[data-service*="flooded_car"] .service-icon,
.service-item[data-service*="tire_efficiency"] .service-icon,
.service-item[data-service*="fuel_station"] .service-icon {
    background: var(--car-gradient);
}

.service-item[data-service*="weather_info"] .service-icon,
.service-item[data-service*="dust_info"] .service-icon,
.service-item[data-service*="public_facility"] .service-icon {
    background: var(--life-gradient);
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-item:hover::before {
    opacity: 0.03;
}

.service-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

/* 서비스 아이콘 색상 */
.service-item[data-service*="real_estate"] .service-icon,
.service-item[data-service*="building"] .service-icon {
    background: var(--real-estate-gradient);
}

.service-item[data-service*="car"] .service-icon,
.service-item[data-service*="charging"] .service-icon,
.service-item[data-service*="flooded"] .service-icon,
.service-item[data-service*="tire"] .service-icon,
.service-item[data-service*="fuel"] .service-icon {
    background: var(--car-gradient);
}

.service-item[data-service*="insurance"] .service-icon,
.service-item[data-service*="disease"] .service-icon,
.service-item[data-service*="lift_insu"] .service-icon,
.service-item[data-service*="disaster_insurance"] .service-icon,
.service-item[data-service*="surgery_search"] .service-icon,
.service-item[data-service*="insu_callcenter"] .service-icon,
.service-item[data-service*="insurance_papers"] .service-icon,
.service-item[data-service*="insurance_terms"] .service-icon {
    background: var(--insurance-gradient);
}

.service-item[data-service*="flooded_car"] .service-icon,
.service-item[data-service*="tire_efficiency"] .service-icon,
.service-item[data-service*="fuel_station"] .service-icon {
    background: var(--car-gradient);
}

.service-item[data-service*="weather_info"] .service-icon,
.service-item[data-service*="dust_info"] .service-icon,
.service-item[data-service*="public_facility"] .service-icon,
.service-item[data-service*="growth_chart"] .service-icon {
    background: var(--life-gradient);
}

.service-icon i {
    font-size: 16px;
    color: var(--white);
}

.service-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.service-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.service-info p {
    font-size: 12px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.3;
}

.service-arrow {
    color: var(--gray-400);
    font-size: 14px;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
}

.service-item:hover .service-arrow {
    color: var(--gray-600);
    transform: translateX(3px);
}

/* 검색 인터페이스 - 더 컴팩트하게 */
.search-interface {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: var(--glass-blur);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.search-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    animation: slideIn 0.25s var(--bounce);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.search-header {
    padding: 18px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gray-50);
}

.back-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--gray-600);
}

.back-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.search-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 2px;
}

.search-title p {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
}

.search-form {
    padding: 20px;
    overflow-y: auto;
    max-height: 350px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-control:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}

.search-btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* 검색 결과 */
.search-results {
    border-top: 1px solid var(--gray-200);
}

.results-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-200);
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.results-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.result-count {
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.results-content {
    padding: 16px 20px;
    max-height: 250px;
    overflow-y: auto;
}

.result-item {
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 10px;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.result-item:hover {
    background: var(--gray-100);
    transform: translateX(3px);
    border-left-color: #4f46e5;
}

.result-item:last-child {
    margin-bottom: 0;
}

/* 로딩 상태 */
.loading-state {
    padding: 40px 20px;
    text-align: center;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.loading-dots {
    display: flex;
    gap: 6px;
}

.loading-dots div {
    width: 10px;
    height: 10px;
    background: #667eea;
    border-radius: 50%;
    animation: bounce 1.2s ease-in-out infinite both;
}

.loading-dots div:nth-child(1) { animation-delay: -0.24s; }
.loading-dots div:nth-child(2) { animation-delay: -0.12s; }

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    } 
    40% { 
        transform: scale(1.1);
        opacity: 1;
    }
}

.loading-animation p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0;
}

/* 미디어 쿼리 제거됨 - 480px 충돌 해결 */

/* 미디어 쿼리 제거됨 - 480px 충돌 해결 */

/* 480px 이하 - 매우 작은 화면 최적화 */
@media (max-width: 480px) {
    /* 🎯 모바일에서만 모바일 관련 요소들 활성화 (480px 이하) */
    .mobile-only-elements {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        z-index: auto !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
        clip: auto !important;
        white-space: normal !important;
        border: initial !important;
        margin: initial !important;
        padding: initial !important;
    }

    .hero-description {
        display: none;
    }
    
    /* 🎯 모바일 검색 결과 오버레이 (헤더 제외 전체화면) */
    .mobile-only-elements .mobile-search-results-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: white !important;
        z-index: -1 !important;
        display: none !important;
        visibility: hidden !important;
        flex-direction: column !important;
        opacity: 0 !important;
        transform: translateY(100%) !important;
        transition: all 0.3s ease !important;
        pointer-events: none !important;
        width: 100% !important;
        height: 100% !important;
        clip: auto !important;
        white-space: normal !important;
        border: initial !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .mobile-only-elements .mobile-search-results-overlay.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
    }
    
    .container {
        /* 작은 화면에서 최대 너비 활용 */
        max-width: 100% ;
        width: 100% ;
        box-sizing: border-box;
    }
    
    .main-content {
        margin-top: 5px ;
    }
    
    .unified-search-page {
        padding-top: 50px;
    }
    
    .hero-section {
        padding: 15px 0 5px; /* 헤더 공간 확보로 패딩 감소 */
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .main-content {
        padding: 15px 0 50px 0; /* 작은 화면에서도 푸터와 충분한 간격 */
        min-height: calc(100vh - 280px); /* 작은 화면에서도 충분한 높이 확보 */
    }
    
    /* 🎯 480px 이하에서 PC와 동일한 카테고리/서비스 UI 유지 */
    .category-section,
    .services-section {
        display: block ;
    }
    
    /* 480px 이하에서 PC 검색 인터페이스 숨기기 */
    .pc-search-interface {
        display: none ;
    }
    
    /* 480px 이하에서 기존 모바일 검색 인터페이스 숨기기 */
    .mobile-search-interface {
        display: none ;
    }
    
    .category-container {
        padding: 0 10px;
    }
    
    .category-cards {
        gap: 4px;
    }
    
    .category-card {
        min-height: 65px;
        padding: 8px 4px;
    }
    
    .category-icon {
        width: 28px;
        height: 28px;
     }
    
    .category-icon i {
        font-size: 12px;
    }
    
    .category-card h3 {
        font-size: 14px;
        margin-bottom: 0;
    }
    
    .category-card p {
        font-size: 11px;
        margin-bottom: 2px;
        line-height: 1.2;
    }
    
    .category-badge-count {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }
    
    /* 🎯 모바일 최적화 - 플로팅 검색 버튼 (검색 결과가 있을 때만 표시) */
    .mobile-search-floating {
        position: fixed;
        bottom: 30px;
        right: 20px;
        width: 56px;
        height: 56px;
        background: var(--primary-gradient);
        border-radius: 50%;
        display: none ; /* 기본적으로 숨김 - 검색 결과가 있을 때만 표시 */
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        z-index: 10051; /* 하단 검색 시트보다 높은 z-index */
        cursor: pointer;
        transition: all var(--transition-normal);
        border: none;
        color: white;
        font-size: 18px;
        /* 화면 경계에서 안전한 거리 확보 */
        min-width: 56px;
        min-height: 56px;
    }
    
    /* 검색결과가 있을 때만 검색 버튼 표시 - 하단에 통합 정의됨 */
    
    /* 검색 결과 표시 시 hero-section 숨기기 */
    body.mobile-search-results-active .hero-section {
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .mobile-search-floating:hover {
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    }
    
    .mobile-search-floating.active {
        background: #dc3545;
        transform: rotate(45deg);
    }
    
    /* 트리거 버튼 아이콘 전환 애니메이션 */
    .mobile-search-floating i {
        transition: all 0.3s ease;
    }
    
    .mobile-search-floating.active i {
        transform: rotate(180deg);
    }
    
    /* 🎯 모바일 필터 전용 트리거 버튼 (검색 결과가 있을 때만 표시) */
    .mobile-filter-trigger {
        position: fixed;
        bottom: 20px;
        right: 90px;
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #10b981 0%, #059669 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
        z-index: 10050;
        cursor: pointer;
        transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
        border: none;
        color: white;
        font-size: 18px;
        min-width: 56px;
        min-height: 56px;
        opacity: 0;
        transform: translateY(20px) scale(0.8);
        visibility: hidden;
    }
    
    /* 검색결과가 있을 때 자연스럽게 나타남 - 하단에 통합 정의됨 */
    
    .mobile-filter-trigger:hover {
        transform: translateY(0) scale(1.1);
        box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
    }
    
    .mobile-filter-trigger.active {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
        transform: translateY(0) scale(1);
    }
    
    .mobile-filter-trigger.active:hover {
        transform: translateY(0) scale(1.1);
    }
    
    .mobile-filter-trigger i {
        transition: transform 0.3s ease;
    }
    
    .mobile-filter-trigger.active i {
        transform: rotate(180deg);
    }

    /* 모바일 동 필터 자연스러운 표시 */
    #mobileDongFilter,
    #mobileDongFilterResults {
        display: none;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    #mobileDongFilter.filter-visible,
    #mobileDongFilterResults.filter-visible {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
    
    #mobileDongFilter.filter-hidden,
    #mobileDongFilterResults.filter-hidden {
        display: none;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
    }

    /* 모바일 동 버튼 - 향상된 반응형 레이아웃 */
    .mobile-dong-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 4px;
        max-height: 200px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(59, 130, 246, 0.2) transparent;
    }
    
    .mobile-dong-buttons::-webkit-scrollbar {
        width: 3px;
    }
    
    .mobile-dong-buttons::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .mobile-dong-buttons::-webkit-scrollbar-thumb {
        background: rgba(59, 130, 246, 0.2);
        border-radius: 2px;
    }
    
    .mobile-dong-buttons::-webkit-scrollbar-thumb:hover {
        background: rgba(59, 130, 246, 0.4);
    }
    
    .mobile-dong-btn {
        min-width: 0;
        padding: 10px 14px;
        background: rgba(255, 255, 255, 0.95);
        border: 1.5px solid rgba(59, 130, 246, 0.15);
        border-radius: 22px;
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        box-sizing: border-box;
        position: relative;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .mobile-dong-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(29, 78, 216, 0.1));
        border-radius: 22px;
        opacity: 0;
        transition: opacity 0.25s ease;
    }
    
    .mobile-dong-btn:hover::before {
        opacity: 1;
    }
    
    .mobile-dong-btn:hover {
        border-color: rgba(59, 130, 246, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    }
    
    .mobile-dong-btn.active {
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        border-color: #1d4ed8;
        color: white;
        box-shadow: 0 3px 12px rgba(59, 130, 246, 0.4);
        transform: translateY(-1px);
    }
    
    .mobile-dong-btn.active::before {
        opacity: 0;
    }
    
    .mobile-dong-btn.active:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
    }
    
    /* 🎯 모바일 풀스크린 검색 인터페이스 - 480px 이하에서만 활성화 */
    .mobile-fullscreen-search {
        /* 기본적으로 숨김 - 480px 이하에서 재정의됨 */
        display: none;
    }
    
    .mobile-fullscreen-search.active {
        /* 기본적으로 숨김 - 480px 이하에서 재정의됨 */
        display: none;
    }
    
    /* 🎯 모바일 검색 헤더 */
    .mobile-search-header {
        padding: 20px 15px 15px;
        background: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 70px;
    }
    
    .mobile-search-close {
        width: 40px;
        height: 40px;
        background: var(--gray-100);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all var(--transition-fast);
        color: var(--gray-600);
        font-size: 18px;
    }
    
    .mobile-search-close:hover {
        background: var(--gray-200);
        transform: scale(1.1);
    }
    
    .mobile-search-title {
        flex: 1;
    }
    
    .mobile-search-title h3 {
        font-size: 16px;
        font-weight: 600;
        color: var(--gray-800);
        margin: 0;
    }
    
    .mobile-search-title p {
        font-size: 12px;
        color: var(--gray-600);
        margin: 2px 0 0 0;
    }
    
    /* 🎯 모바일 검색 폼 컨테이너 */
    .mobile-search-form-container {
        padding: 20px 15px;
        background: rgba(255, 255, 255, 0.9);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .mobile-search-form-container .form-group {
        margin-bottom: 15px;
    }
    
    .mobile-search-form-container .form-group label {
        font-size: 14px;
        font-weight: 600;
        color: var(--gray-700);
        margin-bottom: 6px;
        display: block;
    }
    
    .mobile-search-form-container .form-control {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid var(--gray-200);
        border-radius: var(--radius-md);
        font-size: 16px; /* iOS 자동 줌 방지 */
        background: white;
        transition: all var(--transition-fast);
    }
    
    .mobile-search-form-container .form-control:focus {
        outline: none;
        border-color: var(--primary-gradient);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
    
    .mobile-search-form-container .search-btn-primary {
        width: 100%;
        padding: 15px;
        background: var(--primary-gradient);
        color: white;
        border: none;
        border-radius: var(--radius-md);
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition-normal);
        margin-top: 10px;
    }
    
    .mobile-search-form-container .search-btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }
    
    /* 🎯 모바일 검색 결과 영역 */
    .mobile-search-results-container {
        flex: 1;
        overflow-y: auto;
        /* padding: 15px; */
        background: rgba(255, 255, 255, 0.95);
    }
    
    .mobile-search-results-container .results-header {
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .mobile-search-results-container .results-header h4 {
        font-size: 16px;
        font-weight: 600;
        color: var(--gray-800);
        margin: 0 0 5px 0;
    }
    
    .mobile-search-results-container .result-count {
        font-size: 12px;
        color: var(--gray-600);
        background: var(--gray-100);
        padding: 4px 8px;
        border-radius: 12px;
        display: inline-block;
    }
    
    /* 🎯 모바일 결과 카드 스타일 */
    .mobile-result-card {
        background: white;
        border-radius: 8px;
        padding: 0;
        margin-bottom: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(226, 232, 240, 0.6);
        overflow: hidden;
        transition: all 0.2s ease;
    }
    
    .mobile-result-card:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
    }
    
    .mobile-result-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 12px 14px 8px;
        background: #f8fafc;
        border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    }
    
    .mobile-result-card-title {
        font-size: 15px;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
        flex: 1;
        line-height: 1.3;
        margin-right: 8px;
    }
    
    .mobile-result-card-price {
        font-size: 16px;
        font-weight: 800;
        color: #dc2626;
        text-align: right;
        margin: 0;
        white-space: nowrap;
    }
    
    .mobile-result-card-details {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 8px;
        row-gap: 6px;
        padding: 10px 14px;
    }
    
    .mobile-result-detail-item {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .mobile-result-detail-label {
        font-size: 11px;
        font-weight: 500;
        color: #6b7280;
    }
    
    .mobile-result-detail-value {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        line-height: 1.2;
    }
    
    /* 🎯 모바일 카드 특정 영역 스타일 */
    .mobile-result-detail-item.area-info .mobile-result-detail-value {
        font-size: 12px;
        line-height: 1.3;
        white-space: pre-line;
    }
    
    .mobile-result-detail-item.dong-info .mobile-result-detail-value {
        color: #4338ca;
        font-weight: 600;
    }
    
    .mobile-result-detail-item.year-info .mobile-result-detail-value {
        color: #059669;
        font-weight: 600;
    }
    
         /* 🎯 모바일 동 필터 - 기본 스타일 (범용) */
     .mobile-dong-filter {
         padding: 15px;
         background: rgba(249, 250, 251, 0.9);
         border-bottom: 1px solid var(--gray-200);
         overflow-x: auto;
     }
     
     .mobile-dong-filter-title {
         font-size: 14px;
         font-weight: 600;
         color: var(--gray-800);
         margin-bottom: 10px;
     }
     
     .mobile-dong-buttons {
         display: flex;
         gap: 8px;
         min-width: max-content;
     }
     
     .mobile-dong-btn {
         padding: 8px 12px;
         background: white;
         border: 1px solid var(--gray-300);
         border-radius: 20px;
         font-size: 12px;
         font-weight: 500;
         color: var(--gray-700);
         cursor: pointer;
         transition: all var(--transition-fast);
         white-space: nowrap;
     }
     
     .mobile-dong-btn:hover {
         background: var(--gray-50);
         border-color: var(--gray-400);
     }
     
     .mobile-dong-btn.active {
         background: var(--primary-gradient);
         color: white;
         border-color: transparent;
     }
    
    /* 🎯 모바일 로딩 상태 */
    .mobile-loading-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 50px 20px;
        text-align: center;
    }
    
    .mobile-loading-spinner {
        width: 40px;
        height: 40px;
        border: 3px solid var(--gray-200);
        border-top: 3px solid var(--primary-gradient);
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-bottom: 15px;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    .mobile-loading-text {
        font-size: 14px;
        color: var(--gray-600);
        margin: 0;
    }
    
    /* 🎯 모바일 검색 인터페이스 숨김 */
    .mobile-search-interface {
        display: none ;
    }
    
    /* 🎯 PC 검색 인터페이스 숨김 */
    .pc-search-interface {
        display: none ;
    }
    
    /* 🎯 모바일 동별 필터 - 기본 숨김 */
    #mobileDongFilter,
    #mobileDongFilterResults {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        overflow-y: auto;
        padding: 20px;
        box-sizing: border-box;
    }
    
    #mobileDongFilter.filter-visible,
    #mobileDongFilterResults.filter-visible {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    #mobileDongFilter.filter-hidden,
    #mobileDongFilterResults.filter-hidden {
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    /* 🎯 모바일 하단 검색 시트 - 기본 숨김 */
    .mobile-only-elements .mobile-bottom-search-sheet {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15) !important;
        z-index: 10001 !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s ease !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        padding-bottom: 40px !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 100% !important;
        height: auto !important;
        clip: auto !important;
        white-space: normal !important;
        border: initial !important;
        margin: 0 !important;
        top: auto !important;
    }
    
    .mobile-only-elements .mobile-bottom-search-sheet.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    
    /* 🎯 모바일 필터 하단 시트 - 기본 숨김 */
    .mobile-only-elements .mobile-bottom-filter-sheet {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15) !important;
        z-index: 10002 !important;
        transform: translateY(100%) !important;
        transition: transform 0.3s ease !important;
        max-height: 80vh !important;
        overflow-y: auto !important;
        padding-bottom: 20px !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 100% !important;
        height: auto !important;
        clip: auto !important;
        white-space: normal !important;
        border: initial !important;
        margin: 0 !important;
        top: auto !important;
    }
    
    .mobile-only-elements .mobile-bottom-filter-sheet.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    
    /* 🎯 모바일 필터 하단 시트 헤더 스타일 */
    .mobile-bottom-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px 16px;
        background: #ffffff;
        border-radius: 20px 20px 0 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        position: relative;
    }
    
    .mobile-bottom-filter-drag-handle {
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(0, 0, 0, 0.2);
        border-radius: 2px;
    }
    
    .mobile-bottom-filter-title {
        font-size: 18px;
        font-weight: 700;
        color: #1f2937;
        margin: 0;
        flex: 1;
        text-align: center;
    }
    
    .mobile-bottom-filter-close {
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.05);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: #6b7280;
    }
    
    .mobile-bottom-filter-close:hover {
        background: rgba(0, 0, 0, 0.1);
        color: #374151;
        transform: scale(1.1);
    }
    
    /* 🎯 모바일 필터 하단 시트 컨텐츠 스타일 */
    .mobile-bottom-filter-content {
        padding: 20px;
        background: #ffffff;
        max-height: 60vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .mobile-bottom-filter-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .mobile-bottom-filter-content::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .mobile-bottom-filter-content::-webkit-scrollbar-thumb {
        background: rgba(59, 130, 246, 0.2);
        border-radius: 2px;
    }
    
    .mobile-bottom-filter-content .mobile-dong-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 10px;
        margin-bottom: 20px;
        width: 100%;
    }
    
    .mobile-bottom-filter-content .mobile-dong-btn {
        padding: 12px 16px;
        background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
        border: 2px solid rgba(59, 130, 246, 0.1);
        border-radius: 12px;
        color: #475569;
        font-size: 14px;
        font-weight: 500;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-bottom-filter-content .mobile-dong-btn:hover {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        border-color: rgba(59, 130, 246, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    }
    
    .mobile-bottom-filter-content .mobile-dong-btn.active {
        background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
        border-color: #2563eb;
        color: #ffffff;
        transform: translateY(0);
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    }
    
    .mobile-bottom-filter-content .mobile-dong-btn.active:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    }
    
    /* 🎯 모바일 하단 검색바 내부 스타일링 */
    .mobile-bottom-search-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px 16px;
        border-bottom: 1px solid rgba(226, 232, 240, 0.6);
        position: relative;
    }
    
    .mobile-bottom-search-header::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(156, 163, 175, 0.4);
        border-radius: 2px;
    }
    
    .mobile-bottom-search-title {
        font-size: 18px;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
    }
    
    .mobile-bottom-search-close {
        background: none;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #6b7280;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .mobile-bottom-search-close:hover {
        background: rgba(239, 246, 255, 0.8);
        color: #3b82f6;
    }
    
    .mobile-bottom-search-close i {
        font-size: 18px;
    }
    
    .mobile-bottom-search-content {
        padding: 24px;
        padding-bottom: 50px;
        max-height: calc(85vh - 80px);
        overflow-y: auto;
    }
    
    .mobile-bottom-search-form {
        display: flex;
        flex-direction: column;
        gap: 1px;
        padding-bottom: 30px;
    }
    
    .mobile-bottom-search-form .form-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-bottom-search-form .form-group label {
        font-size: 14px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 4px;
    }
    
    .mobile-bottom-search-form .form-control {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid rgba(226, 232, 240, 0.8);
        border-radius: 12px;
        font-size: 16px;
        background: white;
        transition: all 0.2s ease;
        box-sizing: border-box;
    }
    
    .mobile-bottom-search-form .form-control:focus {
        outline: none;
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    .mobile-bottom-search-form .search-btn-primary {
        width: 100%;
        padding: 16px;
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-top: 8px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .mobile-bottom-search-form .search-btn-primary:hover {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    }
    
    .mobile-bottom-search-form .search-btn-primary:active {
        transform: translateY(0);
    }
    
    .mobile-bottom-search-form .search-btn-primary i {
        font-size: 18px;
    }
    
    .mobile-bottom-search-form .search-notice {
        margin-top: 8px;
        margin-bottom: 10px;
        font-size: 12px;
        color: #6b7280;
        text-align: center;
    }
    
    /* 🎯 모바일 하단 검색바 로딩 상태 */
    .mobile-bottom-search-loading {
        display: none;
        align-items: center;
        justify-content: center;
        padding: 40px 24px;
        flex-direction: column;
        gap: 16px;
    }
    
    .mobile-bottom-search-loading.active {
        display: flex;
    }
    
    .mobile-bottom-search-loading .loading-spinner {
        width: 32px;
        height: 32px;
        border: 3px solid rgba(59, 130, 246, 0.2);
        border-top: 3px solid #3b82f6;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    .mobile-bottom-search-loading .loading-text {
        font-size: 14px;
        color: #6b7280;
        text-align: center;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* 미디어 쿼리 제거됨 - 480px 충돌 해결 */
    
    /* 🎯 키보드 표시 시 하단 검색바 조정 */
    body.keyboard-visible .mobile-bottom-search-sheet {
        max-height: 65vh;
    }
    
         body.keyboard-visible .mobile-bottom-search-content {
         max-height: calc(65vh - 80px);
         padding-bottom: 60px;
     }
     
     /* 🎯 PC에서 모바일 관련 요소들 완전 숨김 (480px 초과) */
     .mobile-only-elements {
         display: none !important;
         visibility: hidden !important;
         opacity: 0 !important;
         pointer-events: none !important;
         position: fixed !important;
         top: -9999px !important;
         left: -9999px !important;
         right: -9999px !important;
         bottom: -9999px !important;
         z-index: -9999 !important;
         width: 0 !important;
         height: 0 !important;
         overflow: hidden !important;
         clip: rect(0, 0, 0, 0) !important;
         white-space: nowrap !important;
         border: 0 !important;
         margin: 0 !important;
         padding: 0 !important;
     }
     
     /* 🎯 모바일 검색 결과 컨테이너 */
     .mobile-search-results-container {
         display: flex;
         flex-direction: column;
         height: 100vh;
         max-height: 100vh;
         overflow: hidden; /* 전체 컨테이너는 overflow hidden 유지 */
     }
     
     /* 🎯 모바일 검색 결과 상단 바 */
     .mobile-search-results-bar {
         background: linear-gradient(135deg, #3b82f6, #2563eb);
         color: white;
         padding: 12px 0;
         box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
         position: relative;
         z-index: 10000;
         display: flex;
         justify-content: space-between;
         align-items: center;
     }
     
     .mobile-search-results-info {
         flex: 1;
         text-align: center;
         font-size: 16px;
         font-weight: 600;
         color: white;
     }
     
     .mobile-search-results-close {
         background: rgba(255, 255, 255, 0.2);
         border: none;
         width: 32px;
         height: 32px;
         border-radius: 50%;
         display: flex;
         align-items: center;
         justify-content: center;
         color: white;
         cursor: pointer;
         transition: all 0.2s ease;
         margin-right: 12px;
     }
     
     .mobile-search-results-close:hover {
         background: rgba(255, 255, 255, 0.3);
     }
     
     .mobile-search-results-close i {
         font-size: 16px;
     }
     
     /* 🎯 모바일 검색 결과 오버레이 내 지역별 필터 - 전용 스타일 */
     .mobile-search-results-overlay .mobile-dong-filter,
     .mobile-search-results-overlay #mobileDongFilter,
     .mobile-search-results-overlay #mobileDongFilterResults {
         background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
         padding: 20px 24px;
         border-bottom: 1px solid rgba(59, 130, 246, 0.1);
         backdrop-filter: blur(8px);
         -webkit-backdrop-filter: blur(8px);
         display: none;
         visibility: hidden;
         opacity: 0;
         position: static;
         transform: none;
     }
     
     /* 🎯 필터가 활성화되었을 때만 표시 */
     .mobile-search-results-overlay .mobile-dong-filter.filter-visible,
     .mobile-search-results-overlay #mobileDongFilter.filter-visible,
     .mobile-search-results-overlay #mobileDongFilterResults.filter-visible {
         display: block;
         visibility: visible;
         opacity: 1;
     }
     
     .mobile-search-results-overlay .mobile-dong-filter h4,
     .mobile-search-results-overlay #mobileDongFilter h4,
     .mobile-search-results-overlay #mobileDongFilterResults h4 {
         font-size: 16px;
         font-weight: 700;
         color: #1f2937;
         margin: 0 0 16px 0;
         display: flex;
         align-items: center;
         gap: 8px;
         padding: 0;
         border: none;
         background: none;
         text-transform: none;
         letter-spacing: normal;
         line-height: 1.2;
     }
     
     .mobile-search-results-overlay .mobile-dong-filter h4::before {
         content: '🏘️';
         font-size: 14px;
         margin-right: 0;
     }
     
     /* 지역별 필터 헤더 강제 적용 */
     .mobile-search-results-overlay .mobile-dong-filter > h4,
     .mobile-search-results-overlay #mobileDongFilter > h4,
     .mobile-search-results-overlay #mobileDongFilterResults > h4,
     .mobile-search-results-overlay .mobile-dong-filter .dong-filter-title {
         font-size: 16px;
         font-weight: 700;
         color: #1f2937;
         margin: 0 0 16px 0;
         display: flex;
         align-items: center;
         gap: 8px;
         padding: 0;
         border: none;
         background: none;
         text-transform: none;
         letter-spacing: normal;
         line-height: 1.2;
     }
     
     .mobile-search-results-overlay .mobile-dong-filter > h4::before,
     .mobile-search-results-overlay #mobileDongFilter > h4::before,
     .mobile-search-results-overlay #mobileDongFilterResults > h4::before,
     .mobile-search-results-overlay .mobile-dong-filter .dong-filter-title::before {
         content: '🏘️';
         font-size: 14px;
         margin-right: 0;
     }
     
     .mobile-search-results-overlay .mobile-dong-buttons {
         display: grid;
         grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
         gap: 10px;
         margin-bottom: 8px;
         max-height: none;
         overflow-y: visible;
         width: 100%;
         box-sizing: border-box;
         padding: 0;
         grid-auto-rows: min-content;
         scrollbar-width: thin;
         scrollbar-color: rgba(59, 130, 246, 0.2) transparent;
     }
     
     .mobile-search-results-overlay .mobile-dong-buttons::-webkit-scrollbar {
         width: 3px;
     }
     
     .mobile-search-results-overlay .mobile-dong-buttons::-webkit-scrollbar-track {
         background: transparent;
     }
     
     .mobile-search-results-overlay .mobile-dong-buttons::-webkit-scrollbar-thumb {
         background: rgba(59, 130, 246, 0.2);
         border-radius: 2px;
     }
     
     .mobile-search-results-overlay .mobile-dong-buttons::-webkit-scrollbar-thumb:hover {
         background: rgba(59, 130, 246, 0.4);
     }
     
     .mobile-search-results-overlay .mobile-dong-btn {
         padding: 10px 12px;
         background: rgba(255, 255, 255, 0.9);
         border: 1.5px solid rgba(59, 130, 246, 0.15);
         border-radius: 20px;
         font-size: 13px;
         font-weight: 600;
         color: #374151;
         cursor: pointer;
         transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
         text-align: center;
         box-sizing: border-box;
         position: relative;
         backdrop-filter: blur(4px);
         -webkit-backdrop-filter: blur(4px);
         white-space: nowrap;
         overflow: hidden;
         text-overflow: ellipsis;
     }
     
     .mobile-search-results-overlay .mobile-dong-btn::before {
         content: '';
         position: absolute;
         top: 0;
         left: 0;
         right: 0;
         bottom: 0;
         background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(29, 78, 216, 0.08));
         border-radius: 20px;
         opacity: 0;
         transition: opacity 0.25s ease;
     }
     
     .mobile-search-results-overlay .mobile-dong-btn:hover::before {
         opacity: 1;
     }
     
     .mobile-search-results-overlay .mobile-dong-btn:hover {
         border-color: rgba(59, 130, 246, 0.3);
         transform: translateY(-1px);
         box-shadow: 0 3px 8px rgba(59, 130, 246, 0.12);
     }
     
     .mobile-search-results-overlay .mobile-dong-btn.active {
         background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
         border-color: #1d4ed8;
         color: white;
         font-weight: 700;
         transform: translateY(-1px);
         box-shadow: 0 3px 12px rgba(59, 130, 246, 0.3);
     }
     
     .mobile-search-results-overlay .mobile-dong-btn.active::before {
         opacity: 0;
     }
     
     .mobile-search-results-overlay .mobile-dong-btn.active:hover {
         transform: translateY(-2px);
         box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
     }
     
     .mobile-search-results-overlay .dong-count {
         font-size: 11px;
         opacity: 0.85;
         margin-top: 2px;
     }
     
     /* 🎯 모바일 검색 결과 컨텐츠 영역 */
     .mobile-search-results-content {
         background: #f8fafc;
         padding: 8px;
         padding-bottom: 40px;
         position: relative;
         width: 100%;
         flex: 1; /* 남은 공간 모두 차지 */
         overflow-y: auto; /* 세로 스크롤 가능하게 */
         -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
     }
     
     /* 🎯 모바일 건축물대장 전용 스타일 */
     .mobile-search-results-content .mobile-building-result {
         background: white;
         border-radius: 12px;
         overflow: hidden;
         box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
     }
     
     .mobile-search-results-content .search-address-display {
         background: #f8fafc;
         padding: 12px 16px;
         border-bottom: 1px solid #e5e7eb;
         font-size: 14px;
     }
     
     /* 🎯 모바일 탭 네비게이션 - 1행 가로 배열 */
     .mobile-search-results-content .tab-navigation {
         background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
         padding: 12px;
         margin: 8px;
         border-radius: 12px;
         border: 1px solid #e5e7eb;
         box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
         display: flex;
         flex-direction: row;
         align-items: center;
         gap: 8px;
         flex-wrap: nowrap;
         overflow-x: auto;
     }
     
     .mobile-search-results-content .dong-select-wrapper {
         flex: 0 0 auto;
         min-width: 80px;
     }
     
     .mobile-search-results-content .unit-input-wrapper {
         flex: 1;
         min-width: 60px;
     }
     
     /* 🎯 건축물대장 컨트롤 영역 개선 */
     .mobile-search-results-content .building-controls {
         background: white;
         border-radius: 12px;
         padding: 16px;
         margin: 8px;
         box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
         border: 1px solid #e5e7eb;
     }
     
     .mobile-search-results-content .building-controls h4 {
         margin: 0 0 12px 0;
         font-size: 16px;
         font-weight: 600;
         color: #1f2937;
         text-align: center;
         padding-bottom: 8px;
         border-bottom: 1px solid #e5e7eb;
     }
     
     /* 🎯 모바일 1행 배열 개별 요소 스타일 */
     .mobile-search-results-content .dong-select {
         padding: 10px 8px;
         border: 1px solid #d1d5db;
         border-radius: 8px;
         font-size: 13px;
         background: white;
         height: 40px;
         min-width: 80px;
         cursor: pointer;
         transition: all 0.2s ease;
     }
     
     .mobile-search-results-content .dong-select:focus {
         outline: none;
         border-color: #3b82f6;
         box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
     }
     
     .mobile-search-results-content .unit-input {
         padding: 10px 12px;
         border: 1px solid #d1d5db;
         border-radius: 8px;
         font-size: 13px;
         background: white;
         height: 40px;
         width: 100%;
         transition: all 0.2s ease;
     }
     
     .mobile-search-results-content .unit-input:focus {
         outline: none;
         border-color: #3b82f6;
         box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
     }
     
     .mobile-search-results-content .unit-search-btn {
         background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
         color: white;
         border: none;
         padding: 0 12px;
         border-radius: 8px;
         font-size: 12px;
         font-weight: 600;
         cursor: pointer;
         transition: all 0.3s ease;
         display: flex;
         align-items: center;
         gap: 4px;
         white-space: nowrap;
         height: 40px;
         flex: 0 0 auto;
         min-width: 60px;
     }
     
     .mobile-search-results-content .unit-search-btn:hover {
         transform: translateY(-1px);
         box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
     }
     
     .mobile-search-results-content .floor-info-btn {
         background: linear-gradient(135deg, #10b981 0%, #059669 100%);
         color: white;
         border: none;
         padding: 0 12px;
         border-radius: 8px;
         font-size: 12px;
         font-weight: 600;
         cursor: pointer;
         transition: all 0.3s ease;
         white-space: nowrap;
         height: 40px;
         flex: 0 0 auto;
         min-width: 70px;
     }
     
     .mobile-search-results-content .floor-info-btn:hover {
         transform: translateY(-1px);
         box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
     }
     
     /* 🎯 전유면적 결과 - 기본정보 상단에 출력 */
     .mobile-search-results-content .exclusive-area-result {
         background: linear-gradient(135deg, #eff6ff, #f0f9ff);
         border: 2px solid #3b82f6;
         border-radius: 12px;
         margin: 8px;
         padding: 16px;
         box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
         position: relative;
         overflow: hidden;
     }
     
     .mobile-search-results-content .exclusive-area-result::before {
         content: '';
         position: absolute;
         top: 0;
         left: 0;
         right: 0;
         height: 4px;
         background: linear-gradient(90deg, #3b82f6, #1d4ed8);
     }
     
     .mobile-search-results-content .exclusive-area-result h5 {
         margin: 0 0 12px 0;
         font-size: 16px;
         font-weight: 700;
         color: #1e40af;
         text-align: center;
         padding-bottom: 8px;
         border-bottom: 1px solid rgba(59, 130, 246, 0.2);
     }
     
     /* 🎯 모바일 전유면적 컴팩트 결과 스타일 */
     .mobile-search-results-content .exclusive-area-compact {
         background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
         border: 2px solid #3b82f6;
         border-radius: 12px;
         padding: 16px;
         margin: 8px;
         margin-bottom: 16px;
         position: relative;
         box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
         overflow: hidden;
     }
     
     /* 🎯 전유면적 결과 표시 후에도 탭 네비게이션 유지 */
     .mobile-search-results-content .tab-navigation {
         display: flex;
         visibility: visible;
         opacity: 1;
         position: relative;
         z-index: 10;
     }
     
     .mobile-search-results-content #exclusive-area-result {
         margin-bottom: 12px;
     }
     
     /* 🎯 정보 카드 컨테이너 - 세로 배치 */
     .mobile-search-results-content .info-cards-container {
         display: flex;
         flex-direction: column;
         gap: 12px;
         padding: 8px;
     }
     
     .mobile-search-results-content .info-card {
         background: white;
         border-radius: 12px;
         box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
         overflow: hidden;
         border: 1px solid #e5e7eb;
         transition: all 0.2s ease;
     }
     
     .mobile-search-results-content .info-card:hover {
         transform: translateY(-2px);
         box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
     }
     
     .mobile-search-results-content .info-card .card-header {
         background: linear-gradient(135deg, #f8fafc, #e2e8f0);
         padding: 14px 16px;
         border-bottom: 1px solid #e5e7eb;
         position: relative;
     }
     
     .mobile-search-results-content .info-card .card-header::before {
         content: '';
         position: absolute;
         top: 0;
         left: 0;
         right: 0;
         height: 3px;
         background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b);
     }
     
     .mobile-search-results-content .info-card .card-header h3 {
         margin: 0;
         font-size: 16px;
         font-weight: 700;
         color: #1f2937;
         text-align: center;
         text-transform: uppercase;
         letter-spacing: 0.5px;
     }
     
     .mobile-search-results-content .info-card .card-content {
         padding: 16px;
         background: #fafafa;
     }
     
     .mobile-search-results-content .info-row {
         display: flex;
         justify-content: space-between;
         align-items: flex-start;
         padding: 10px 0;
         border-bottom: 1px solid #f3f4f6;
         font-size: 14px;
     }
     
     .mobile-search-results-content .info-row:last-child {
         border-bottom: none;
     }
     
     .mobile-search-results-content .info-label {
         font-weight: 600;
         color: #6b7280;
         flex: 0 0 auto;
         margin-right: 12px;
         min-width: 80px;
     }
     
     .mobile-search-results-content .info-value {
         font-weight: 500;
         color: #1f2937;
         text-align: right;
         flex: 1;
         line-height: 1.4;
     }
     
     /* 🎯 층별정보 결과 - 맨 아래에 출력 */
     .mobile-search-results-content .floor-info-result {
         background: white;
         border-radius: 12px;
         margin: 8px;
         padding: 16px;
         box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
         border: 1px solid #e5e7eb;
         margin-top: 20px;
     }
     
     .mobile-search-results-content .floor-info-result h5 {
         margin: 0 0 16px 0;
         font-size: 16px;
         font-weight: 700;
         color: #1f2937;
         text-align: center;
         padding-bottom: 8px;
         border-bottom: 2px solid #e5e7eb;
     }
     
     .mobile-search-results-content .floor-info-table {
         width: 100%;
         border-collapse: collapse;
         font-size: 13px;
         margin-top: 8px;
     }
     
     .mobile-search-results-content .floor-info-table th,
     .mobile-search-results-content .floor-info-table td {
         padding: 8px;
         text-align: center;
         border: 1px solid #e5e7eb;
     }
     
     .mobile-search-results-content .floor-info-table th {
         background: #f8fafc;
         font-weight: 600;
         color: #374151;
         font-size: 12px;
         position: sticky;
         top: 0;
         z-index: 10;
     }
     
     .mobile-search-results-content .floor-info-table td {
         color: #475569;
         font-size: 12px;
         background: white;
     }
     
     .mobile-search-results-content .floor-info-table tbody tr:hover {
         background: #f1f5f9;
     }
     
     /* 🎯 모바일 검색 결과 카드 */
     .mobile-result-card {
         background: white;
         border-radius: 8px;
         margin-bottom: 8px;
         box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
         overflow: hidden;
         transition: all 0.2s ease;
         border: 1px solid rgba(226, 232, 240, 0.6);
     }
     
     .mobile-result-card:hover {
         box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
         transform: translateY(-1px);
     }
     
     .mobile-result-card-header {
         padding: 12px 14px 8px;
         border-bottom: 1px solid rgba(226, 232, 240, 0.4);
         background: #f8fafc;
         display: flex;
         justify-content: space-between;
         align-items: flex-start;
     }
     
     .mobile-result-card-title {
         font-size: 15px;
         font-weight: 700;
         color: #1e293b;
         margin: 0;
         line-height: 1.3;
         flex: 1;
         margin-right: 8px;
     }
     
     .mobile-result-card-price {
         font-size: 16px;
         font-weight: 800;
         color: #dc2626;
         margin: 0;
         white-space: nowrap;
         text-align: right;
     }
     
     .mobile-result-card-details {
         padding: 10px 14px;
         display: grid;
         grid-template-columns: 1fr 1fr 1fr;
         gap: 8px;
         row-gap: 6px;
     }
     
     .mobile-result-detail-item {
         display: flex;
         flex-direction: column;
         gap: 2px;
     }
     
     .mobile-result-detail-label {
         font-size: 11px;
         color: #6b7280;
         font-weight: 500;
     }
     
     .mobile-result-detail-value {
         font-size: 13px;
         color: #374151;
         font-weight: 600;
         line-height: 1.2;
     }
     
     /* 🎯 모바일 카드 특정 영역 스타일 */
     .mobile-result-detail-item.area-info .mobile-result-detail-value {
         font-size: 12px;
         line-height: 1.3;
     }
     
     .mobile-result-detail-item.dong-info .mobile-result-detail-value {
         color: #4338ca;
         font-weight: 600;
     }
     
     .mobile-result-detail-item.year-info .mobile-result-detail-value {
         color: #059669;
         font-weight: 600;
     }
     
     /* 🎯 트리거 버튼들 (검색 결과 화면에서만 표시) */
     .mobile-search-floating,
     .mobile-filter-trigger {
         position: fixed;
         bottom: 24px;
         width: 56px;
         height: 56px;
         border-radius: 50%;
         background: linear-gradient(135deg, #3b82f6, #2563eb);
         color: white;
         border: none;
         box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
         display: none;
         align-items: center;
         justify-content: center;
         cursor: pointer;
         transition: all 0.3s ease;
         z-index: 10001;
         font-size: 20px;
     }
     
     .mobile-search-floating {
         right: 24px; /* 가장 오른쪽 */
     }
     
     .mobile-filter-trigger {
         right: 96px; /* 오른쪽에서 두 번째 */
         background: linear-gradient(135deg, #10b981, #059669);
     }
     
     .mobile-search-floating:hover,
     .mobile-filter-trigger:hover {
         transform: translateY(-2px);
         box-shadow: 0 12px 24px rgba(59, 130, 246, 0.5);
     }
     
     .mobile-filter-trigger:hover {
         box-shadow: 0 12px 24px rgba(16, 185, 129, 0.5);
     }
     
     /* 검색결과 표시 시 플로팅 버튼들 표시 - 기본 숨김 상태를 덮어쓰려면 !important 필요 */
     .mobile-search-floating.show-for-results {
         display: flex !important;
         animation: slideUpFade 0.3s ease forwards;
     }
     
     .mobile-filter-trigger.show-for-results {
         display: flex !important;
         opacity: 1 !important;
         transform: translateY(0) scale(1) !important;
         visibility: visible !important;
         animation: slideUpFade 0.3s ease forwards;
     }
     
     /* 건축물대장용 특별 숨김 클래스 - !important로 강제 숨김 */
     .mobile-filter-trigger.hide-for-building {
         display: none !important;
         opacity: 0 !important;
         visibility: hidden !important;
         pointer-events: none !important;
     }
     
     @keyframes slideUpFade {
         from {
             opacity: 0;
             transform: translateY(20px);
         }
         to {
             opacity: 1;
             transform: translateY(0);
         }
     }
     
     /* 🎯 모바일 검색 로딩 및 에러 상태 */
     .mobile-search-loading,
     .mobile-search-error {
         display: none;
         flex-direction: column;
         align-items: center;
         justify-content: center;
         padding: 40px 24px;
         text-align: center;
         background: white;
     }
     
     .mobile-search-loading .spinner {
         width: 32px;
         height: 32px;
         border: 3px solid rgba(59, 130, 246, 0.2);
         border-top: 3px solid #3b82f6;
         border-radius: 50%;
         animation: spin 1s linear infinite;
         margin-bottom: 16px;
     }
     
     .mobile-search-loading p {
         font-size: 14px;
         color: #6b7280;
         margin: 0;
     }
     
     .mobile-search-error h4 {
         font-size: 16px;
         font-weight: 600;
         color: #dc2626;
         margin: 0 0 8px 0;
     }
     
     .mobile-search-error p {
         font-size: 14px;
         color: #6b7280;
         margin: 0;
         line-height: 1.5;
     }
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 0px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* 선택 색상 */
::selection {
    background: rgba(79, 70, 229, 0.2);
    color: var(--gray-800);
}

/* 포커스 스타일 */
button:focus,
input:focus,
select:focus {
    outline: 2px solid rgba(79, 70, 229, 0.5);
    outline-offset: 2px;
}

/* 결과 테이블 스타일 */
.results-table-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: auto;
    min-height: 0;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.results-table thead th {
    background: #f8fafc;
    color: #1f2937;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.8rem;
    white-space: nowrap;
}

.results-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
}

.results-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.results-table tbody td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    border: none;
    color: #1f2937;
}

.date-cell {
    font-size: 0.8rem;
    color: #4a5568;
    text-align: center;
    white-space: nowrap;
}

.apt-cell {
    min-width: 150px;
}

.apt-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.apt-dong {
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 0.1rem;
}

.dong-name {
    font-size: 0.75rem;
    color: #a0aec0;
}

/* 건축물대장 전용 스타일 */
.building-cell {
    text-align: left;
}

.building-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.price-cell {
    text-align: right;
    min-width: 100px;
}

.price-main {
    font-weight: 700;
    color: #3182ce;
    font-size: 0.9rem;
}

.area-cell {
    text-align: center;
    min-width: 80px;
}

.area-main {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.8rem;
}

.area-sub {
    font-size: 0.75rem;
    color: #718096;
}

.price-per-pyeong-cell {
    text-align: right;
    min-width: 90px;
}

.price-per-pyeong {
    font-weight: 600;
    color: #38a169;
    font-size: 0.8rem;
}

.floor-cell, .year-cell {
    text-align: center;
    font-size: 0.8rem;
    color: #4a5568;
    white-space: nowrap;
}

/* 결과 헤더 스타일 */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--gray-200);
    border-radius: 12px 12px 0 0;
}

.results-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-back-to-menu {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back-to-menu:hover {
    background: #c53030;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

.results-header h3 {
    margin: 0;
    color: #2d3748;
    font-size: 1.2rem;
    font-weight: 700;
}

.results-summary {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.summary-item .label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.summary-item .value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.dong-filter {
    padding: 16px 24px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    max-height: 140px;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dong-filter-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dong-filter-title::before {
    content: '📍';
    font-size: 14px;
}

.dong-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    max-height: 90px;
    overflow-y: auto;
    align-content: flex-start;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.2) transparent;
}

.dong-buttons::-webkit-scrollbar {
    width: 4px;
}

.dong-buttons::-webkit-scrollbar-track {
    background: transparent;
}

.dong-buttons::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 2px;
}

.dong-buttons::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.4);
}

.dong-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1.5px solid rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.dong-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(29, 78, 216, 0.08));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.dong-btn:hover::before {
    opacity: 1;
}

.dong-btn:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(59, 130, 246, 0.12);
}

.dong-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.3);
}

.dong-btn.active::before {
    opacity: 0;
}

.dong-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

/* PC 검색 결과 레이아웃 - 플로팅 스타일 */
.pc-search-interface {
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    bottom: 10px;
    margin: auto;
    width: 95vw;
    max-width: 1400px;
    height: calc(100vh - 20px); /* 화면 전체 높이 - 상하 여백 */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1); /* 전체 배경을 더 투명하게 */
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* 하드웨어 가속 및 레이아웃 안정성 */
    will-change: opacity, transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    contain: layout style paint;
}

/* 미디어 쿼리 제거됨 - 480px 충돌 해결 */

.pc-search-interface .row {
    height: 100%;
    margin: 0;
    gap: 0; /* Bootstrap gap 제거 */
    /* 좌우 레이아웃 강제 설정 */
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

/* Bootstrap 컬럼 클래스 강제 설정 */
.pc-search-interface .col-lg-4,
.pc-search-interface .col-xl-3 {
    flex: 0 0 32%; /* 좌측 사이드바 32% (마진 고려) */
    max-width: 32%;
}

.pc-search-interface .col-lg-8,
.pc-search-interface .col-xl-9 {
    flex: 0 0 68%; /* 우측 결과 영역 68% (마진 고려) */
    max-width: 68%;
}

/* Bootstrap 패딩 클래스 */
.pc-search-interface .pe-0 {
    padding-right: 0 ;
}

.pc-search-interface .ps-0 {
    padding-left: 0 ;
}



.pc-search-interface .search-sidebar {
    height: 100%;
    overflow-y: auto;
    border-right: none; /* 우측 경계선 제거 */
    padding: 0;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 전체 그림자 효과 */
    border-radius: 15px; /* 전체 모서리 둥글게 */
    margin-right: 20px; /* 우측 마진으로 공간 확보 */
    /* 레이아웃 안정성 */
    will-change: auto;
    backface-visibility: hidden;
    contain: layout style;
}

.pc-search-interface .search-results-area {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 전체 그림자 효과 */
    border-radius: 15px; /* 전체 모서리 둥글게 */
    margin-left: 20px; /* 좌측 마진으로 공간 확보 */
    /* 레이아웃 안정성 */
    will-change: auto;
    backface-visibility: hidden;
    contain: layout style;
}

.pc-search-interface .search-results {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.pc-search-interface .results-header {
    flex-shrink: 0;
    height: 70px;
    margin: 0;
    margin-top: 30px; /* 상단 여백 30px 추가 */
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(248, 250, 252, 0.9);
    border-bottom: 2px solid rgba(229, 231, 235, 0.8); /* 구분선 강화 */
    position: relative;
    z-index: 100;
}

/* PC 검색 사이드바 헤더 스타일 */
.pc-search-interface .search-sidebar-header {
    padding: 20px;
    background: rgba(248, 250, 252, 0.9);
    border-bottom: 2px solid rgba(229, 231, 235, 0.8); /* 구분선 강화 */
    backdrop-filter: blur(10px);
}

.pc-search-interface .search-form-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.pc-search-interface .dong-filter {
    flex-shrink: 0;
    min-height: 60px;
    max-height: 120px; /* 최대 높이 제한 */
    height: auto;
    padding: 12px 20px;
    background: rgba(249, 250, 251, 0.9);
    border-bottom: 2px solid rgba(229, 231, 235, 0.8); /* 구분선 강화 */
    position: relative;
    z-index: 90;
    margin-top: -1px; /* 헤더와 겹치도록 */
    backdrop-filter: blur(10px);
    overflow-y: auto; /* 스크롤 가능 */
    /* 스크롤바 스타일 */
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
}

.pc-search-interface .dong-filter::-webkit-scrollbar {
    width: 4px;
}

.pc-search-interface .dong-filter::-webkit-scrollbar-track {
    background: transparent;
}

.pc-search-interface .dong-filter::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.pc-search-interface .dong-filter::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.pc-search-interface .results-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 0;
    margin-top: -1px; /* 필터와 겹치도록 */
}

.pc-search-interface .results-table-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 400px; /* 최소 높이 보장 */
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.pc-search-interface .results-table {
    font-size: 0.9rem;
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.pc-search-interface .results-table thead th,
.pc-search-interface .results-table tbody td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
    color: #1f2937;
    word-wrap: break-word;
    position: relative;
    z-index: 10;
}

.pc-search-interface .results-table thead th {
    position: sticky;
    top: 0;
    background: rgba(248, 250, 252, 0.95);
    color: #1f2937;
    font-weight: 600;
    z-index: 80;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
    height: 45px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(15px);
}

/* 컬럼 너비 최적화 */
.pc-search-interface .results-table thead th:nth-child(1) { width: 10%; } /* 거래일 */
.pc-search-interface .results-table thead th:nth-child(2) { width: 25%; } /* 아파트명 */
.pc-search-interface .results-table thead th:nth-child(3) { width: 13%; } /* 거래금액 */
.pc-search-interface .results-table thead th:nth-child(4) { width: 11%; } /* 면적 */
.pc-search-interface .results-table thead th:nth-child(5) { width: 13%; } /* 평당가 */
.pc-search-interface .results-table thead th:nth-child(6) { width: 7%; }  /* 층수 */
.pc-search-interface .results-table thead th:nth-child(7) { width: 9%; } /* 건축년도 */
.pc-search-interface .results-table thead th:nth-child(8) { width: 12%; } /* 상세정보 */

.pc-search-interface .apt-cell {
    max-width: 0;
    overflow: hidden;
}

.pc-search-interface .apt-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
    margin-bottom: 2px;
    line-height: 1.2;
}

.pc-search-interface .apt-dong {
    font-size: 0.75rem;
    color: #718096;
    margin-bottom: 2px;
    line-height: 1.1;
}

.pc-search-interface .dong-name {
    font-size: 0.75rem;
    color: #a0aec0;
    line-height: 1.1;
}

/* PC 건축물대장 전용 스타일 */
.pc-search-interface .building-cell {
    text-align: left;
}

.pc-search-interface .building-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.pc-search-interface .price-cell,
.pc-search-interface .price-per-pyeong-cell {
    text-align: right;
    font-weight: 600;
}

.pc-search-interface .date-cell,
.pc-search-interface .floor-cell,
.pc-search-interface .year-cell {
    text-align: center;
    font-size: 0.85rem;
}

.pc-search-interface .area-cell {
    text-align: center;
    font-size: 0.8rem;
}

/* 플레이스홀더 스타일 */
.pc-search-interface .search-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

/* 결과 테이블 높이 최적화 - 플로팅 컨테이너에 맞게 조정 */
.pc-search-interface .search-results {
    height: 100%;
}

.pc-search-interface .results-content {
    min-height: calc(100vh - 200px); /* 전체 화면 높이에 맞게 조정 */
    max-height: calc(100vh - 200px);
}

/* 미디어 쿼리 제거됨 - 480px 충돌 해결 */

/* 검색 폼 스타일 개선 */
.search-form .form-group {
    margin-bottom: 1.5rem;
}

.search-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.search-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.search-form .form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(255, 255, 255, 1);
}

.search-form .search-btn-primary {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.search-form .search-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.search-form .search-btn-primary:active {
    transform: translateY(0);
}

/* 로딩 애니메이션 개선 */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
}

.loading-dots div {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #667eea 0%, #b12dbd 100%);
    border-radius: 50%;
    animation: loading-bounce 1.4s infinite ease-in-out both;
}

.loading-dots div:nth-child(1) { animation-delay: -0.32s; }
.loading-dots div:nth-child(2) { animation-delay: -0.16s; }

@keyframes loading-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.loading-animation p {
    margin: 0;
    color: #4a5568;
    font-weight: 500;
}

/* 건축물대장 전용 스타일 */
.building-detail-cards {
    padding: 20px;
}

.building-header-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.building-header-card h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.building-address {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.building-controls {
    background: rgba(248, 250, 252, 0.9);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: nowrap;
}

.dong-select-wrapper,
.unit-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
}

.dong-select-wrapper {
    min-width: 140px;
}

.unit-input-wrapper {
    min-width: 120px;
}

.dong-select-wrapper label,
.unit-input-wrapper label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.dong-select,
.unit-input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100%;
}

.unit-search-btn,
.floor-info-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.unit-search-btn:hover,
.floor-info-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.exclusive-area-result,
.floor-info-result {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.building-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.building-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.building-card h4 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.building-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.building-info-row:last-child {
    border-bottom: none;
}

.building-info-row .label {
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.building-info-row .value {
    color: #1f2937;
    font-size: 0.9rem;
    text-align: right;
}

.floor-info-section {
    background: rgba(248, 250, 252, 0.9);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

/* 미디어 쿼리 제거됨 - 480px 충돌 해결 */

/* 전유면적 및 층별정보 결과 스타일 */
.area-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.area-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 6px;
}

.area-info-item .label {
    font-weight: 600;
    color: #374151;
    font-size: 0.85rem;
}

.area-info-item .value {
    font-weight: 700;
    color: #1f2937;
    font-size: 0.9rem;
}

.floor-info-table {
    margin-top: 12px;
    overflow-x: auto;
}

.floor-info-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.floor-info-table th,
.floor-info-table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.floor-info-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.floor-info-table td {
    background: rgba(255, 255, 255, 0.8);
    color: #1f2937;
}

.floor-info-table tbody tr:hover {
    background: rgba(248, 250, 252, 0.5);
}

.error-message {
    text-align: center;
    padding: 16px;
    color: #dc2626;
    background: rgba(254, 226, 226, 0.8);
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.error-message p {
    margin: 4px 0;
    font-size: 0.9rem;
}

/* 상세보기 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-gradient));
    color: white;
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
}

.detail-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-section {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: -20px -20px 15px -20px;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    word-break: break-word;
}

.price-highlight {
    color: #dc3545 ;
    font-weight: 700 ;
    font-size: 1.1rem ;
}

.price-per-pyeong-highlight {
    color: #007bff ;
    font-weight: 700 ;
}

/* 상세보기 버튼 스타일 */
.btn-detail {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-detail:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-detail i {
    font-size: 0.9rem;
}

.action-cell {
    text-align: center;
    width: 80px;
}


/* 건축물대장 전용 스타일 - 기존 building_register.css에서 가져옴 */
.search-address-display {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    white-space: nowrap;
}

.address-value {
    font-weight: 500;
    color: #1e293b;
    font-size: 14px;
    flex: 1;
}

.tab-navigation {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 24px;
    padding: 4px;
    background: rgba(241, 245, 249, 0.8);
    border-radius: 6px;
    align-items: center;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-item:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #2563eb;
}

.dong-select-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dong-select-wrapper label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    white-space: nowrap;
}

.dong-select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    flex-shrink: 0;
}

.dong-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}



/* 검색 결과 없음 메시지 스타일 */
.no-results-message {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 16px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.no-results-message p {
    margin: 0;
    font-weight: 500;
}

/* 동 없는 경우 스타일 제거됨 */

.unit-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    flex-direction: row;
}

.unit-input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    font-size: 14px;
    width: 120px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.unit-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.unit-search-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.unit-search-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.unit-search-btn i {
    font-size: 12px;
}

.floor-info-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: 1px solid #10b981;
    padding: 8px 12px;
    flex-shrink: 0;
}

.floor-info-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.content-area {
    margin-top: 20px;
}

.info-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.info-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    padding: 16px;
    backdrop-filter: blur(10px);
}

.info-card .card-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.info-card .card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.info-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #64748b;
    font-size: 13px;
}

.info-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 13px;
    text-align: right;
}

.floor-info-container {
    margin-top: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    max-height: 400px;
    overflow-y: auto;
}

.floor-info-container h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 0;
    backdrop-filter: blur(10px);
}

/* 간소화된 1줄 전유면적 출력 스타일 */
.area-result-compact {
    display: flex;
    gap: 20px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.area-toggle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.area-toggle-item:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-1px);
}

.area-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.area-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.area-error {
    padding: 12px 16px;
    margin-top: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    text-align: center;
}

.floor-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 13px;
}

.floor-info-table th,
.floor-info-table td {
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.floor-info-table th {
    background: #f8fafc;  /* 불투명한 배경색으로 변경 */
    font-weight: 600;
    color: #334155;
    font-size: 12px;
    position: sticky;
    top: 44px;
    z-index: 10;  /* z-index 값 증가 */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);  /* 구분선 효과 추가 */
}

.floor-info-table td {
    color: #475569;
    font-size: 12px;
    background: #ffffff;  /* 셀 배경색 추가 */
}

.floor-info-table tbody tr:hover {
    background: #f1f5f9;  /* hover 배경색을 불투명하게 변경 */
}

/* 기존 복잡한 area-info 스타일 제거됨 */

/* 모바일 스타일 제거 - PC 전용 */ 

/* 전유면적 컴팩트 표시 스타일 */
.exclusive-area-compact {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.area-compact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.area-compact-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.area-compact-header h5 i {
    color: #3b82f6;
    font-size: 14px;
}

.search-info-compact {
    display: flex;
    align-items: center;
    gap: 8px;
}

.building-type-small {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.building-type-small.apartment {
    background: linear-gradient(135deg, #10b981, #059669);
}

.building-type-small.villa {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.search-detail-small {
    padding: 3px 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #1e40af;
}

.area-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.area-compact-item {
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid transparent;
}

.area-compact-item.exclusive {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.area-compact-item.public {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.2);
}

.area-compact-item.total {
    background: rgba(156, 163, 175, 0.1);
    border-color: rgba(156, 163, 175, 0.3);
}

.area-compact-item .area-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.area-compact-item .area-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.area-compact-item .area-pyeong {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}

/* 기존 상세 표시 스타일 백업 (필요시 사용) */
.exclusive-area-container {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
}

.area-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.area-header h4 i {
    color: #3b82f6;
    font-size: 20px;
}

.search-info-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.building-type {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.building-type.apartment {
    background: linear-gradient(135deg, #10b981, #059669);
}

.building-type.villa {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.search-detail {
    padding: 6px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #1e40af;
}

.area-result-table {
    margin-bottom: 20px;
}

.area-result-table .result-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.area-result-table .result-table thead th {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    color: #334155;
    font-weight: 600;
    font-size: 13px;
    padding: 15px 12px;
    text-align: center;
    border-bottom: 2px solid #e2e8f0;
}

.area-result-table .result-table tbody td {
    padding: 15px 12px;
    text-align: center;
    font-size: 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.area-result-table .exclusive-row td {
    background: rgba(34, 197, 94, 0.05);
    border-left: 4px solid #22c55e;
}

.area-result-table .public-row td {
    background: rgba(59, 130, 246, 0.05);
    border-left: 4px solid #3b82f6;
}

.area-result-table .total-row td {
    background: rgba(156, 163, 175, 0.1);
    border-left: 4px solid #6b7280;
    font-weight: 700;
    color: #1e293b;
}

.area-details {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(249, 250, 251, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 8px;
}

.area-details h5 {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.area-details h5 i {
    color: #6b7280;
    font-size: 14px;
}

.area-details ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.area-details li {
    padding: 6px 0;
    font-size: 13px;
    color: #4b5563;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.area-details li:last-child {
    border-bottom: none;
}

.area-note {
    background: rgba(147, 197, 253, 0.1);
    border: 1px solid rgba(147, 197, 253, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
}

.area-note p {
    margin: 6px 0;
    font-size: 13px;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.area-note p:last-child {
    margin-bottom: 0;
}

.area-note i {
    color: #3b82f6;
    font-size: 14px;
    flex-shrink: 0;
}



/* 정렬 기능 스타일 */
.sortable {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    position: relative;
}

.sortable:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.sort-icon {
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.5;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.sortable:hover .sort-icon {
    opacity: 0.8;
}

.sort-icon.active {
    opacity: 1;
    color: #3b82f6;
    font-weight: bold;
}

/* 테이블 헤더 스타일 개선 */
.results-table th.sortable {
    position: relative;
    padding-right: 25px;
}

.results-table th.sortable::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.results-table th.sortable:hover::after {
    opacity: 0.3;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid currentColor;
}


/* 🔧 body가 overflow: hidden일 때도 필터 시트가 정상적으로 표시되도록 보장 */
body.filter-sheet-open {
    overflow: hidden ;
}

body.filter-sheet-open .mobile-bottom-filter-sheet {
    display: block !important;
    position: fixed !important;
    z-index: 10002 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* 🎯 모바일 필터 하단 시트 스타일 */

    /* 🔧 모바일 작은 화면에서 필터 버튼 최적화 */

    


