/* 무이자 할부 서비스 - unified_search 스타일 기반 */

/* CSS 변수 */
:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --car-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 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);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.5;
    color: var(--gray-700);
    background: var(--gray-50);
    overflow-x: hidden;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
}

/* 페이지 로딩 시 스크롤 위치 고정 */
html {
    scroll-behavior: smooth;
}

/* 컬러풀 배경 */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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(245, 158, 11, 0.1);
}

.blob-2 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 5%;
    animation-delay: 3s;
    background: rgba(59, 130, 246, 0.1);
}

.blob-3 {
    width: 150px;
    height: 150px;
    bottom: 5%;
    left: 40%;
    animation-delay: 6s;
    background: rgba(16, 185, 129, 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;
    backdrop-filter: var(--glass-blur);
}

/* 히어로 섹션 */
.hero-section {
    padding: 10px 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: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--glass-blur);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge i {
    color: #fbbf24;
}

.hero-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.1;
}

.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.4;
}

/* 메인 컨텐츠 */
.main-content {
    position: relative;
    min-height: 100vh;
    padding-top: 70px; /* 헤더 높이 고려 */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15 20px;
}

/* PC 검색 인터페이스 - 2열 레이아웃 */
.pc-search-interface {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 15 0 0 0px;
    height: calc(100vh - 180px);
    align-items: start;
}

/* 검색 사이드바 */
.search-sidebar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 25px;
    box-shadow: var(--shadow-xl);
    height: 100%;
    overflow-y: auto;
}

.search-sidebar-header {
    margin-bottom: 20px;
}

.header-with-back {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.back-btn {
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-normal);
    flex-shrink: 0;
    margin-top: 2px;
}

.back-btn:hover {
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
    transform: translateX(-2px);
}

.back-btn i {
    color: #4f46e5;
    font-size: 16px;
}

.header-text {
    flex: 1;
}

.header-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
    margin: 0 0 8px 0;
}

.header-text p {
    color: var(--gray-600);
    font-size: 14px;
    margin: 0;
}

/* 검색 폼 */
.search-form-container {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition-normal);
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-btn-primary {
    width: 100%;
    background: var(--car-gradient);
    color: var(--white);
    border: none;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 정보 섹션 */
.info-section {
    border-top: 1px solid var(--gray-200);
    padding-top: 15px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: var(--radius-md);
    border-left: 4px solid #f59e0b;
}

.info-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    color: #f59e0b;
    font-size: 16px;
}

.info-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 6px 0;
}

.info-content p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.4;
    margin: 0;
}

/* 결과 영역 */
.search-results-area {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.results-header {
    padding: 20px 25px 15px 25px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    flex-shrink: 0;
}

.results-title-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.results-summary {
    display: flex;
    gap: 20px;
    align-items: center;
}

.summary-item {
    text-align: center;
}

.summary-item .label {
    font-size: 12px;
    color: var(--gray-500);
    display: block;
}

.summary-item .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

/* 결과 컨텐츠 */
.results-content {
    padding: 20px 25px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* 보험사별 카드 그룹 */
.insurance-group {
    margin-bottom: 20px;
    display: none;
}

.insurance-group.visible {
    display: block;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.insurance-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border-left: 4px solid #f59e0b;
}

.insurance-logo {
    width: 140px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--white);
    padding: 4px;
}

.insurance-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-400);
    margin: 0;
}

.card-count {
    background: #f59e0b;
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

/* 카드 그리드 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.card-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 16px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--car-gradient);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.card-item:hover::before {
    transform: scaleX(1);
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #f59e0b;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.card-company {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
}

.card-months {
    background: var(--car-gradient);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.card-benefit {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 14px;
}

/* 검색 플레이스홀더 */
.search-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
}

.search-placeholder i {
    font-size: 4rem;
    color: var(--gray-300);
    margin-bottom: 20px;
}

.search-placeholder h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.search-placeholder p {
    font-size: 14px;
}

/* 로딩 상태 */
.loading-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-dots {
    display: flex;
    gap: 8px;
}

.loading-dots div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f59e0b;
    animation: loading-bounce 1.4s ease-in-out infinite both;
}

.loading-dots div:nth-child(1) { animation-delay: -0.32s; }
.loading-dots div:nth-child(2) { animation-delay: -0.16s; }
.loading-dots div:nth-child(3) { animation-delay: 0s; }

@keyframes loading-bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.loading-animation p {
    color: var(--gray-600);
    font-size: 16px;
    margin: 0;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .pc-search-interface {
        grid-template-columns: 350px 1fr;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .pc-search-interface {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .search-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0;
        max-width: 100%;
    }
    
    .hero-section {
        display: none; /* 히어로 섹션 숨김 */
    }
    
    .main-content {
        min-height: 100vh;
        padding-top: 50PX;
    }
    
    /* PC 인터페이스 완전 숨김 */
    .pc-search-interface {
        display: none !important;
    }
    
    /* 모바일 헤더 표시 */
    .mobile-header {
        display: flex !important;
    }
    
    /* 모바일 인터페이스 활성화 */
    .mobile-search-interface {
        display: block !important;
    }
    
    /* 모바일 카드 컨테이너를 메인으로 표시 */
    .mobile-cards-container {
        display: flex !important;
        margin: 0;
        min-height: calc(100vh - 60px); /* 헤더 높이 제외 */
        background: var(--gray-50);
    }
    
    .mobile-insurance-group {
        margin-bottom: 16px !important;
    }
    
    /* 모바일 헤더 추가 */
    .mobile-header {
        position: sticky;
        top: 0;
        background: var(--white);
        z-index: 100;
        border-bottom: 1px solid var(--gray-200);
        padding: 12px 16px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-back-btn {
        background: none;
        border: none;
        font-size: 20px;
        color: var(--gray-600);
        cursor: pointer;
        padding: 8px;
        border-radius: var(--radius-md);
        transition: all 0.2s ease;
    }
    
    .mobile-back-btn:hover {
        background: var(--gray-100);
        color: var(--gray-800);
    }
    
    .mobile-header-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--gray-800);
        margin: 0;
    }
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* 모바일 검색 인터페이스 - 항상 표시 */
.mobile-search-interface {
    display: block;
}

/* 모바일 헤더 PC에서 숨김 */
.mobile-header {
    display: none;
}

/* 모바일 검색 트리거 버튼 PC에서 숨김 */
.mobile-search-trigger,
.mobile-floating-search {
    display: none;
}

/* 모바일에서 검색 트리거 버튼 표시 - JavaScript로 제어 */
@media (max-width: 768px) {
    /* 동그라미 플로팅 검색 버튼만 표시 */
    .mobile-search-trigger {
        display: none !important;
    }
    
    .mobile-floating-search {
        /* JavaScript에서 직접 제어하므로 기본 스타일만 설정 */
        position: fixed;
        z-index: 9999;
    }
    
    /* 모바일에서 하단검색창 크기 최적화 */
    .mobile-search-bottom-sheet {
        max-height: 65vh;
    }
    
    .bottom-sheet-content {
        max-height: calc(65vh - 70px);
        padding: 16px;
        padding-bottom: 20px;
    }
    
    .mobile-search-form {
        gap: 12px;
        padding-bottom: 5px;
    }
}

/* 작은 모바일 화면 (480px 이하)에서 더 컴팩트하게 */
@media (max-width: 480px) {
    .mobile-search-bottom-sheet {
        max-height: 60vh;
    }
    
    .bottom-sheet-content {
        max-height: calc(60vh - 70px);
        padding: 14px;
        padding-bottom: 16px;
    }
    
    .mobile-search-btn {
        padding: 12px;
        margin-bottom: 4px;
    }
    
    /* 플로팅 버튼 더 크게 (작은 화면에서 터치 편의성) */
    .mobile-floating-search {
        width: 64px;
        height: 64px;
        font-size: 24px;
        bottom: 25px;
    }
}

/* 모바일 카드 레이아웃 PC에서 숨김 */
.mobile-cards-container {
    display: none;
}

/* 모바일 검색 오버레이 - 완전 투명 (아웃포커싱 없음) */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* 완전 투명 배경 */
    z-index: 9998;
    opacity: 0; /* 초기 상태: 숨김 */
    visibility: hidden; /* 초기 상태: 숨김 */
    transition: all 0.3s ease;
    pointer-events: none; /* 초기 상태: 클릭 불가 */
}

.mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent; /* 활성화 시에도 투명 유지 */
}

.mobile-search-results {
    padding: 20px;
    overflow-y: auto;
    max-height: 100%;
    display: none; /* 사용하지 않는 요소 숨김 */
}

/* 모바일 검색 바텀시트 - 초기 상태 확실히 닫힌 상태로 설정 */
.mobile-search-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top-left-radius: var(--radius-2xl);
    border-top-right-radius: var(--radius-2xl);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transform: translateY(100%); /* 초기 상태: 완전히 숨김 */
    transition: all 0.3s ease;
    max-height: 60vh;
    overflow-y: auto;
    will-change: transform;
    /* 초기 상태 확실히 설정 */
    display: block;
    visibility: visible;
    opacity: 1;
}

.mobile-search-bottom-sheet.active {
    transform: translateY(0); /* 활성화 시: 표시 */
}

/* 모바일 하단 검색바 헤더 - 아파트 실거래가 스타일 */
.bottom-sheet-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;
}

.bottom-sheet-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;
}

.sheet-handle {
    display: none; /* 새로운 handle이 ::before로 대체됨 */
}

.bottom-sheet-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.close-btn {
    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;
    font-size: 18px;
}

.close-btn:hover {
    background: rgba(239, 246, 255, 0.8);
    color: #3b82f6;
}

.bottom-sheet-content {
    padding: 20px;
    padding-bottom: 30px;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
}

/* 모바일 검색 폼 스타일 - 컴팩트한 크기 */
.mobile-search-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 10px;
}

.mobile-search-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-search-form .form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.mobile-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-search-form .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mobile-search-btn {
    width: 100%;
    padding: 14px;
    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: 6px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-search-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.mobile-search-btn:active {
    transform: translateY(0);
}

.mobile-search-btn i {
    font-size: 18px;
}

/* 모바일 검색 트리거 버튼 - 숨김 (동그라미 버튼 사용) */
.mobile-search-trigger {
    display: none !important;
}

/* 모바일 플로팅 검색 버튼 - 메인 트리거 (아파트 실거래가 스타일) */
.mobile-floating-search {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    cursor: pointer;
    z-index: 99999; /* 최상위 레이어 */
    display: none; /* 기본 숨김 - JavaScript에서 제어 */
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    min-width: 60px;
    min-height: 60px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.mobile-floating-search:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.mobile-floating-search:active {
    transform: scale(0.95);
}

/* 모바일 환경에서 플로팅 버튼 표시를 위한 추가 미디어 쿼리 */
@media (max-width: 768px) {
    .mobile-floating-search {   
        /* JavaScript에서 제어하므로 여기서는 기본 스타일만 유지 */
    }
}

@media (max-width: 480px) {
    .mobile-floating-search {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
}

/* 모바일 카드 레이아웃 */
.mobile-cards-container {
    gap: 16px;
    flex-direction: column;
}

.mobile-insurance-group {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 16px;
    margin-bottom: 16px;
}

.mobile-insurance-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-insurance-logo {
    width: 120px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: contain;
    flex-shrink: 0;
}

.mobile-insurance-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    flex: 1;
}

.mobile-card-count {
    font-size: 14px;
    color: var(--black);
    background: var(--gray-400);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    margin-right: 15px;
}

.mobile-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-card-item {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 14px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.mobile-card-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--gray-300);
}

.mobile-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-card-company {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.mobile-card-months {
    font-size: 14px;
    color: var(--white);
    background: var(--car-gradient);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.mobile-card-benefit {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.4;
} 