/* 전기차 충전소 서비스 - unified_search 스타일 기반 */

/* CSS 변수 */
:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --charging-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --dc-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --ac-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --available-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --charging-color: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --unavailable-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 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;
}

/* 컬러풀 배경 */
.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;
    pointer-events: none;
}

@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(59, 130, 246, 0.1);
}

.blob-3 {
    width: 150px;
    height: 150px;
    bottom: 5%;
    left: 40%;
    animation-delay: 6s;
    background: rgba(245, 158, 11, 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);
    pointer-events: none;
}

.main-wrapper > * {
    pointer-events: auto;
}

/* 히어로 섹션 */
.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: #10b981;
}

.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, #10b981 0%, #059669 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 {
    padding-top: 70px !important;
}


/* PC 검색 인터페이스 - 2열 레이아웃 */
.pc-search-interface {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    max-width: 1400px;
    margin: 0 0 0 0px;  /* 상단 마진을 더 줄여서 위로 올림 */
    height: calc(100vh - 180px);
    align-items: start;
}

/* 검색 사이드바 */
.search-sidebar {
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    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: calc(77vh - 40px); /* 고정 높이로 변경 */
    max-height: none;
    overflow: hidden; /* 전체 스크롤 제거 */
    position: sticky;
    top: 20px;
}

.search-sidebar-header {
    margin-bottom: 25px;
}

.header-with-back {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.back-btn:hover {
    transform: translateX(-2px);
    box-shadow: var(--shadow-md);
}

.back-btn i {
    font-size: 16px;
}

.header-text {
    flex: 1;
}

.header-text h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 2px;
    line-height: 1.2;
}

.header-text p {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
}

.search-form-container {
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--charging-gradient);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.input-with-button {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-button .form-control {
    padding-right: 50px;
}

.input-btn {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--charging-gradient);
    color: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.input-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.search-btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: var(--charging-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.search-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.info-section {
    margin-top: 20px;
}

.info-card {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    width: 36px;
    height: 36px;
    background: var(--charging-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: white;
    font-size: 16px;
}

.info-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.tip-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tip-list li {
    font-size: 12px;
    color: var(--gray-600);
    margin-bottom: 4px;
    position: relative;
    padding-left: 8px;
}

.tip-list li::before {
    content: '•';
    color: var(--charging-gradient);
    position: absolute;
    left: 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);
    padding: 10px 20px 20px 20px;  /* 상단 패딩 줄임 */
    box-shadow: var(--shadow-xl);
    height: calc(90vh - 200px);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 10;
    position: relative;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.results-title-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.results-summary {
    display: flex;
    gap: 20px;
}

.summary-item {
    text-align: center;
}

.summary-item .label {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.summary-item .value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
}

.results-content {
    position: relative;
    flex: 1;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 지도 영역 */
.map-container {
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: relative;
    width: 100%;
    z-index: 1;
}

.map-header {
    display: none;  /* 헤더 숨기기 - 지도 영역 확대 */
}

.map-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-header i {
    color: var(--charging-gradient);
}

.map-toggle-btn {
    padding: 6px 12px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.map-toggle-btn:hover {
    background: var(--gray-200);
}

/* 중복된 #map 스타일 제거 - 아래 더 상세한 스타일 사용 */

/* 기존 current-location-btn 스타일 제거됨 */

/* 🔧 로딩 상태 - 마우스 이벤트 차단 방지 */
.loading-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* 기본값을 none으로 변경 */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    margin: 0;
    padding: 0;
    pointer-events: none; /* 🚨 핵심: 마우스 이벤트 차단 방지 */
}

/* 로딩이 활성화될 때만 표시 */
.loading-state.active {
    display: flex;
    pointer-events: auto; /* 활성화될 때만 이벤트 허용 */
}

.loading-animation {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.loading-dots {
    display: flex;
    gap: 4px;
}

.loading-dots div {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--charging-gradient);
    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 {
    font-size: 16px !important;
    color: var(--gray-800) !important;
    margin: 0 !important;
    font-weight: 500 !important;
}

/* 충전소 결과 리스트 - 컴팩트 버전 */
.charging-results {
    flex: 1;
    overflow: hidden;
    margin-top: 8px; /* 여백 줄임 */
    display: flex;
    flex-direction: column;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 6px; /* 카드 간격 최소화 */
}

.charging-station-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px; /* 패딩 줄임 */
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.charging-station-card:hover {
    border-color: var(--charging-gradient);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 충전소 카드 개선된 스타일 */
.charger-type-row {
    margin: 8px 0;
}

.charger-badge-compact {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.station-status-row {
    margin: 10px 0;
}

.status-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
    min-width: fit-content;
    text-align: center;
}

.status-item.status-available {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
}

.status-item.status-charging {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
}

.status-item.status-unavailable {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
}

.status-item i {
    font-size: 16px;
    margin-right: 2px;
}

.status-item.status-available i {
    color: #10b981;
}

.status-item.status-charging i {
    color: #f59e0b;
    animation: charging-pulse 2s ease-in-out infinite;
}

.status-item.status-unavailable i {
    color: #ef4444;
}

.status-item span {
    font-weight: 700;
    font-size: 14px;
}

@keyframes charging-pulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1);
    }
}

.station-info-row {
    display: flex;
    gap: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #6b7280;
    flex: 1;
}

.info-item i {
    font-size: 11px;
    color: #9ca3af;
    width: 12px;
    text-align: center;
}

.parking-info i {
    color: #3b82f6;
}

.time-info i {
    color: #8b5cf6;
}

.limit-warning-row {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.limit-warning {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 6px;
    font-size: 11px;
    color: #dc2626;
}

.limit-warning i {
    font-size: 12px;
    color: #f59e0b;
}

/* 기존 스타일과의 호환성을 위한 추가 스타일 */
.station-card-compact {
    padding: 12px;
}

.station-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.station-name-compact {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.2;
    flex: 1;
}

.station-distance-compact {
    font-size: 11px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 8px;
    font-weight: 500;
}

.station-address-compact {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* 반응형 개선 */
@media (max-width: 768px) {
    .status-info {
        flex-direction: column;
        gap: 6px;
    }
    
    .status-item {
        flex: none;
        justify-content: center;
    }
    
    .station-info-row {
        flex-direction: column;
        gap: 6px;
    }
    
    .info-item {
        justify-content: center;
    }
}

/* 무한스크롤 최적화 - 높이 증가 */
.results-list {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.results-list::-webkit-scrollbar {
    width: 4px;
}

.results-list::-webkit-scrollbar-track {
    background: var(--gray-100);
}

.results-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

/* 필터와 결과 사이 여백 최소화 */
.filter-row {
    margin-bottom: 8px; /* 기존 여백 줄임 */
}

.results-header {
    padding: 8px 0; /* 헤더 패딩 줄임 */
}

/* 로딩 더보기 표시 */
.loading-more {
    text-align: center;
    padding: 8px;
    font-size: 12px;
    color: var(--gray-500);
}

/* 에러 상태 */
.error-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-lg);
}

.error-icon {
    font-size: 48px;
    color: #dc2626;
    margin-bottom: 16px;
}

.error-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #7f1d1d;
    margin-bottom: 8px;
}

.error-content p {
    font-size: 14px;
    color: #991b1b;
    margin-bottom: 16px;
}

.retry-btn {
    background: var(--unavailable-gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 페이지네이션 */
.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-200);
    background: white;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.pagination button:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.pagination button.active {
    background: var(--charging-gradient);
    color: white;
    border-color: transparent;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .pc-search-interface {
        grid-template-columns: 320px 1fr;
        gap: 16px;
    }
}

@media (max-width: 1024px) {
    .pc-search-interface {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .search-sidebar {
        position: static;
        max-height: none;
    }
    
    .chargers-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 30px 0 15px;
    }
    
    .main-content {
        padding: 15px 0;
    }
    
    .search-sidebar,
    .search-results-area {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .results-summary {
        align-self: stretch;
        justify-content: space-around;
    }
    
    .chargers-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .charging-station-card {
        padding: 16px;
    }
    
    /* 모바일 #map 스타일 제거 - 메인 스타일 사용 */
    
    /* 모바일에서만 현위치 버튼 표시 */
    .current-location-btn {
        display: flex;
        width: 48px;
        height: 48px;
        font-size: 18px;
        bottom: 20px;
        right: 20px;
    }
}

/* 스크롤바 커스터마이징 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--charging-gradient);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--charging-gradient);
}

/* 필터 행 스타일 */
.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-item {
    flex: 1;
    min-width: 0;
}

.filter-item label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--gray-600);
    margin-bottom: 4px;
    line-height: 1.2;
}

.form-control-small {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 11px;
    background: var(--white);
    transition: var(--transition-fast);
    line-height: 1.2;
}

.form-control-small:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* 🚀 캐시 상태 인디케이터 */
.cache-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--available-gradient);
    border: 2px solid var(--white);
    opacity: 0;
    transition: var(--transition-fast);
    z-index: 10;
}

.cache-indicator.active {
    opacity: 1;
    animation: cache-pulse 1.5s ease-in-out infinite;
}

.cache-indicator.hit {
    background: var(--available-gradient);
}

.cache-indicator.miss {
    background: var(--dc-gradient);
}

@keyframes cache-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.cache-stats {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 10px;
    color: var(--gray-500);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: var(--transition-fast);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-row:hover .cache-stats {
    opacity: 1;
}

/* 최적화 안내 스타일 */
.optimization-info {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.optimization-icon {
    width: 36px;
    height: 36px;
    background: var(--charging-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.optimization-icon i {
    color: white;
    font-size: 16px;
}

.optimization-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.optimization-text {
    font-size: 12px;
    color: var(--gray-600);
    margin: 0;
    line-height: 1.4;
}

.optimization-text strong {
    color: var(--gray-800);
    font-weight: 600;
}

/* 중복 제거됨 - 위에서 통합 관리 */

/* 카카오맵 타일 영역 강제 제어 */
/* 🗺️ 카카오맵 기본 스타일 (OpenLayers 스타일 제거) */
#map .kakao-map-div,
#map .map-tiles,
#map .tiles {
    width: 100%;
    height: 100%;
    transform: none;
}

/* 🗺️ 카카오맵 제어 클래스 (하드코딩 제거) */
.kakao-map-force-resize #map {
    height: 100%;
    width: 100%;
    position: relative;
}

.kakao-map-force-resize #map * {
    box-sizing: border-box;
}

.kakao-map-force-resize #map canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-optimized {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.map-optimized #map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* 카카오맵 컨테이너 기본 스타일 */
.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: visible;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    z-index: 100;
    isolation: isolate;
}

.map-container.expanded {
    height: 700px;
}

/* 🗺️ 카카오맵 강제 스타일 제어 - 기본 */
#map {
    position: relative;
    height: 100%;
    width: 100%;
    border-radius: 8px;
    overflow: visible;
    background: #f5f5f5;
    display: block;
    pointer-events: auto !important;
    user-select: none;
    touch-action: manipulation;
    z-index: 50;
    cursor: grab;
}

#map:active {
    cursor: grabbing;
}

/* 카카오맵 드래그 중 커서 변경 */
#map.dragging {
    cursor: grabbing !important;
}

/* 🚨 카카오맵 내부 요소 클릭 차단 해결 */
#map > div {
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

/* 🚨 카카오맵 투명 요소 강력 차단 시스템 */

/* 1. 모든 투명 DIV 차단 */
#map div[style*="position: absolute"]:not([class]):not([id]) {
    pointer-events: none !important;
    z-index: 1 !important;
}

/* 2. z-index 2인 모든 요소 차단 */
#map div[style*="z-index: 2"] {
    pointer-events: none !important;
}

/* 3. 투명 배경 요소 차단 */
#map div[style*="background: rgba(0, 0, 0, 0)"] {
    pointer-events: none !important;
}

/* 4. 커서 auto인 절대위치 요소 차단 */
#map div[style*="cursor: auto"][style*="position: absolute"] {
    pointer-events: none !important;
}

/* 🔧 카카오맵 중요 요소들은 클릭 활성화 */
#map .CustomOverlayMap,
#map .InfoWindow,
#map .control,
#map .zoom,
#map .map_type,
#map img,
#map canvas,
#map svg,
#map [class*="marker"],
#map [class*="control"],
#map [class*="overlay"] {
    pointer-events: auto !important;
    z-index: 999 !important;
}

/* 🔧 카카오맵 기본 배경 및 타일은 클릭 가능 */
#map > div:first-child {
    pointer-events: auto !important;
}

/* 🔧 카카오맵 전체 이벤트 강제 활성화 */
#map {
    pointer-events: auto !important;
    user-select: none !important;
    touch-action: manipulation !important;
    cursor: grab !important;
}

/* 카카오맵 캔버스 요소 */
#map canvas {
    display: block;
    pointer-events: auto;
    touch-action: manipulation;
}

/* 카카오맵 기본 뷰포트 */
#map .DaumMap {
    width: 100%;
    height: 100%;
    pointer-events: auto;
    touch-action: manipulation;
}

/* 카카오맵 컨트롤 버튼들 */
#map .control {
    pointer-events: auto;
    z-index: 10;
}

/* 카카오맵 줌 컨트롤 */
#map .zoom {
    pointer-events: auto;
    z-index: 10;
}

/* 카카오맵 지도 타입 컨트롤 */
#map .map_type {
    pointer-events: auto;
    z-index: 10;
}

/* 지도 버튼들 스타일 - 좌측 나란히 배치 */
.map-center-search-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #4f46e5;
    color: #4f46e5;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 100;
    gap: 2px;
    pointer-events: auto;
}

.map-center-search-btn:hover {
    background: #4f46e5;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.current-location-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #10b981;
    color: #10b981;
    border-radius: 50%;
    cursor: pointer;
    display: none; /* PC에서는 기본적으로 숨김 */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 100;
    font-size: 18px;
    pointer-events: auto;
}

.current-location-btn:hover {
    background: #10b981;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

/* 슬라이드 패널 스타일 */
.slide-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.slide-panel.active {
    right: 0;
}

.slide-panel-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
    position: sticky;
    top: 0;
    z-index: 10;
}

.slide-panel-header h4 {
    margin: 0 0 10px 0;
    color: var(--gray-800);
    font-size: 18px;
    font-weight: 600;
}

.slide-panel-header .result-summary {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 0;
}

.slide-panel-header .highlight {
    color: #10b981;
    font-weight: 700;
}

.close-panel {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-panel:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* 슬라이드 패널 내부 결과 컨테이너 */
.slide-panel .result-container {
    padding: 20px;
    max-height: none;
    overflow-y: visible;
}

.slide-panel .search-guide {
    margin: 40px 0;
}

/* 기존 charging-results 스타일 오버라이드 */
.charging-results.slide-panel {
    flex: none;
    margin-top: 0;
}

/* 백업 파일 기반 추가 스타일 */
.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.result-summary {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.result-summary .highlight {
    color: #059669;
    font-weight: 700;
}

.result-filters {
    display: flex;
    gap: 10px;
}

.result-filters select {
    padding: 6px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 12px;
    background: white;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition-fast);
}

.result-filters select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

.search-guide {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-500);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-300);
}

.search-guide i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.search-guide p {
    margin: 0;
    font-size: 14px;
}

/* 검색 결과 컨테이너 (사이드바 내부) */
.search-results-container {
    flex: 1;
    overflow: hidden;
}

.search-results-container .charging-results {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.search-results-container .results-header {
    padding: 15px;
    border-bottom: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px 12px 0 0;
}

.search-results-container .results-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 5px;
}

.search-results-container .result-summary {
    font-size: 14px;
    color: var(--gray-600);
}

.search-results-container .result-summary .highlight {
    font-weight: 600;
    color: var(--gray-800);
}

.search-results-container .result-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 0 0 12px 12px;
}

.search-results-container .search-guide {
    text-align: center;
    padding: 30px 20px;
    color: var(--gray-500);
    background: transparent;
    border: none;
}

.search-results-container .search-guide i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

.search-results-container .pagination {
    padding: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-top: 1px solid var(--gray-200);
}

/* 기본 정보 뱃지 스타일 */
.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    background: var(--gray-100);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.info-badge i {
    font-size: 10px;
}

/* 주차 정보 뱃지 */
.parking-badge {
    background: #e0f2fe;
    color: #0277bd;
    border: 1px solid #b3e5fc;
}

/* 시간 정보 뱃지 */
.time-badge {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

/* 충전기 타입 뱃지 */
.charger-badge-ultra {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

/* 상태 뱃지 */
.status-badge-ultra {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge-ultra.status-available {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-badge-ultra.status-charging {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-badge-ultra.status-unavailable {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* 컴팩트 카드 레이아웃 */
.station-card-ultra-compact {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
}

.station-header-ultra {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.station-name-ultra {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    flex: 1;
}

.station-distance-ultra {
    font-size: 11px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.station-address-ultra {
    font-size: 11px;
    color: var(--gray-600);
    margin-bottom: 8px;
    line-height: 1.3;
}

/* 주소 행 - 주소와 빠른 상태 표시 */
.station-address-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.station-address-ultra {
    flex: 1;
    font-size: 11px;
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.3;
}

.quick-status-inline {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    align-items: center;
}

.quick-status {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    min-width: 24px;
    justify-content: center;
}

.quick-status.available {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.quick-status.charging {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.quick-status.unavailable {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.quick-status i {
    font-size: 10px;
}

/* 스테이션 정보 행 - 충전기 타입, 주차, 시간, 경고 */
.station-info-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

/* 경고 아이콘 전용 스타일 (왼쪽 검색 결과용) */
.warning-icon-only {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    padding: 4px 6px !important;
    min-width: auto !important;
    width: auto !important;
    cursor: help;
    transition: all 0.2s ease;
}

.warning-icon-only i {
    color: #dc2626 !important;
    font-size: 12px;
}

.warning-icon-only:hover {
    background: #fee2e2 !important;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.2);
}

/* 기본 limit-badge 스타일 */
.info-badge.limit-badge {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* warning-icon-only가 적용될 때 우선 */
.info-badge.limit-badge.warning-icon-only {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
}

/* CustomOverlay 마커 인포박스 스타일 */
.marker-info-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 0;
    min-width: 320px;
    max-width: 380px;
    overflow: hidden;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
    user-select: none;
}

.marker-info-box * {
    pointer-events: auto;
}

/* 버튼들만 클릭 가능하도록 */
.marker-close-btn,
.marker-navigation-btn {
    pointer-events: auto !important;
}

/* CustomOverlay 기본 스타일 제거 */
.CustomOverlayMap {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    pointer-events: auto !important;
}

/* 화살표 추가 */
.marker-info-box::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #e2e8f0;
    z-index: 999;
}

.marker-info-box::before {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ffffff;
    z-index: 1001;
}

.marker-info-header {
    background: linear-gradient(135deg, #7da9eb 0%, #06b6d4 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    position: relative;
}

.marker-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 12px;
    z-index: 1010;
    pointer-events: auto;
}

.marker-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.marker-close-btn:active {
    transform: scale(0.95);
}

.marker-info-body {
    padding: 16px;
}

.marker-station-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.marker-station-address {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.marker-charger-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
    backdrop-filter: blur(10px);
}

.marker-charger-type i {
    font-size: 11px;
}

.marker-warning-section {
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.marker-warning-section i {
    color: #dc2626;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.marker-warning-text {
    color: #991b1b;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}

.marker-station-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.marker-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #475569;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.marker-info-item i {
    font-size: 10px;
}

.marker-info-item.parking {
    background: #e0f2fe;
    color: #0277bd;
    border-color: #b3e5fc;
}

.marker-info-item.time {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #e1bee7;
}

.marker-navigation-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    width: 100%;
    pointer-events: auto;
    z-index: 1005;
}

.marker-navigation-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.marker-navigation-btn:active {
    transform: translateY(0);
}

.marker-navigation-btn i {
    margin-right: 6px;
}

/* 충전상태 뱃지 스타일 */
.station-status-badges {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.available {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-badge.charging {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* getStatusClass 함수 반환값에 따른 스타일 */
.status-badge.status-available {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-badge.status-charging {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-badge.status-unavailable {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.status-badge i {
    font-size: 11px;
}

.status-badge span {
    font-size: 12px;
    font-weight: 500;
}

/* ===============================================
   모바일 인터페이스 스타일
   =============================================== */

/* 모바일 검색 인터페이스 - 기본 숨김 */
.mobile-search-interface {
    display: none;
}

/* 모바일 헤더 - 기본 숨김 */
.mobile-header {
    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-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: 65vh;
    overflow-y: auto;
    display: none;
    visibility: hidden;
    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;
}

.bottom-sheet-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 18px;
}

.close-btn:hover {
    background: rgba(239, 246, 255, 0.8);
    color: var(--primary-color);
}

/* 하단 검색창 컨텐츠 */
.bottom-sheet-content {
    padding: 20px;
    padding-bottom: 30px;
    max-height: calc(65vh - 80px);
    overflow-y: auto;
}

/* 모바일 검색 폼 */
.mobile-search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.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: var(--gray-700);
    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: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* 모바일 필터 행 */
.mobile-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mobile-filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-filter-item label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
}

/* 모바일 검색 버튼들 */
.mobile-search-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.mobile-search-btn {
    flex: 1;
    padding: 14px;
    background: var(--charging-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-search-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.mobile-search-btn.secondary {
    background: var(--gray-500);
}

.mobile-search-btn.secondary:hover {
    background: var(--gray-600);
    box-shadow: 0 8px 20px rgba(107, 114, 128, 0.3);
}

/* 모바일 플로팅 검색 버튼 */
.mobile-floating-search {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--charging-gradient);
    color: white;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    z-index: 99999;
    display: none;
    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, #059669, #047857);
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.mobile-floating-search:active {
    transform: scale(0.95);
}

/* 모바일 결과 컨테이너 */
.mobile-results-container {
    display: none;
    padding: 16px;
    gap: 16px;
    flex-direction: column;
    background: var(--gray-50);
    min-height: calc(100vh - 60px);
}

/* 모바일 환경에서 PC 인터페이스 숨김 및 모바일 인터페이스 표시 */
@media (max-width: 768px) {
    .container {
        padding: 0;
        max-width: 100%;
    }
    
    .hero-section {
        display: block;
        padding: 60px 20px 40px;
        min-height: calc(100vh - 140px);
        text-align: center;
    }
    
    .main-content {
        min-height: 100vh;
    }
    
    /* PC 인터페이스 완전 숨김 */
    .pc-search-interface {
        display: none !important;
    }
    
    /* 모바일 인터페이스 활성화 */
    .mobile-search-interface {
        display: block !important;
    }
    
    /* 모바일 헤더 표시 */
    .mobile-header {
        display: flex !important;
        position: sticky;
        top: 0;
        background: var(--white);
        z-index: 100;
        border-bottom: 1px solid var(--gray-200);
        padding: 12px 16px;
        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;
    }

}

/* 작은 모바일 화면 대응 */
@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;
    }
}

/* 모바일 지도 컨테이너 스타일 */
.mobile-map-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* 모바일 결과 슬라이드업 패널 */
.mobile-results-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-results-panel.active {
    transform: translateY(0);
}

.mobile-results-panel-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-results-panel-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.mobile-results-list {
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* 모바일 플로팅 버튼 개선 */
.mobile-floating-search {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: #4A90E2;
    color: white;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-floating-search:active {
    transform: scale(0.95);
}

/* 모바일 검색 바텀시트 개선 */
.mobile-search-bottom-sheet {
    height: auto;
    max-height: 90vh;
}

/* 모바일 미디어 쿼리 개선 */
@media (max-width: 768px) {
    .pc-search-interface {
        display: none;
    }

    .mobile-search-interface {
        display: block;
    }

    .mobile-map-container {
        height: 100vh;
    }

    #map {
        height: 100% !important;
    }

    .mobile-results-panel {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* 모바일 결과 카드 스타일 개선 */
.mobile-station-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    contain: layout style paint;
    will-change: auto;
    transform: translateZ(0);
}

.mobile-station-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.mobile-station-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.mobile-station-distance {
    font-size: 14px;
    color: #666;
}

.mobile-station-status {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.mobile-status-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mobile-status-badge.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.mobile-status-badge.charging {
    background: #fff3e0;
    color: #f57c00;
}

.mobile-status-badge.unavailable {
    background: #ffebee;
    color: #c62828;
}

/* 모바일 인터페이스 기본 스타일 */
.mobile-search-interface {
    display: none;
}

/* 모바일 지도 래퍼 */
.mobile-map-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.mobile-map-wrapper .map-container {
    height: 100% !important;
    margin: 0;
    border-radius: 0;
}

.mobile-map-wrapper .map-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
}

/* 모바일 검색 바텀시트 개선 */
.mobile-search-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
}

.mobile-search-bottom-sheet.active {
    transform: translateY(0);
}

.bottom-sheet-handle {
    width: 40px;
    height: 4px;
    background: #E0E0E0;
    border-radius: 2px;
    margin: 0 auto 15px;
}

/* 모바일 결과 패널 개선 */
.mobile-results-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    z-index: 999;
    max-height: 70vh;
    overflow-y: auto;
}

.mobile-results-panel.active {
    transform: translateY(0);
}

/* 모바일 미디어 쿼리 개선 */
@media (max-width: 768px) {
    .pc-search-interface {
        display: none;
    }

    .mobile-search-interface {
        display: block;
    }

    .container {
        padding: 0;
        margin: 0;
        max-width: none;
    }

    #map-container {
        border-radius: 0;
        margin: 0;
    }

    .mobile-search-bottom-sheet,
    .mobile-results-panel {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-floating-search {
        bottom: calc(24px + env(safe-area-inset-bottom));
    }
}

/* 모바일 폼 스타일 개선 */
.mobile-search-bottom-sheet .search-form-container {
    margin-bottom: 20px;
}

.mobile-search-bottom-sheet .form-group {
    margin-bottom: 15px;
}

.mobile-search-bottom-sheet .filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.mobile-search-bottom-sheet .filter-item {
    margin-bottom: 0;
}

.mobile-search-buttons {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 20px;
}

/* 모바일 결과 카드 스타일 개선 */
.mobile-results-list {
    padding: 10px 0;
}

.mobile-station-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
}

.mobile-station-card:active {
    transform: scale(0.98);
}

/* 안전 영역 대응 */
@supports (padding: max(0px)) {
    .mobile-search-bottom-sheet,
    .mobile-results-panel {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .mobile-floating-search {
        bottom: max(24px, calc(24px + env(safe-area-inset-bottom)));
    }
}