/* 🗺️ 대한민국 확산 애니메이션 스타일 */

/* Canvas 컨테이너 */
.map-canvas-container {
    position: relative;
    width: 100%;
    height: 450px;
    background-color: #1a1a1a;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(212, 175, 55, 0.3);
}

#koreaMapCanvas {
    width: 100%;
    height: 100%;
    display: block;
    background-color: #1a1a1a;
}

/* 완료 배지 */
.map-done-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(600px 400px at 50% 50%, rgba(19, 201, 153, 0.08), transparent 70%);
    z-index: 10;
}

.map-done-overlay.show {
    opacity: 1;
}

.map-done-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #d1f2eb 0%, #ffffff 100%);
    color: #13C999;
    border: 3px solid #13C999;
    box-shadow: 0 12px 40px rgba(19, 201, 153, 0.3);
}

/* 범례 (숨김 - 깔끔하게) */
.map-legend {
    display: none;
}

/* 검색 중인 지역 목록 (오른쪽) */
.searching-regions {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 200px;
    max-height: 380px;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 16px;
    overflow-y: auto;
    z-index: 5;
}

.searching-regions h6 {
    font-size: 14px;
    font-weight: 700;
    color: #D4AF37;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.searching-region-item {
    font-size: 13px;
    color: #f3f4f6;
    padding: 8px 10px;
    margin-bottom: 6px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 6px;
    border-left: 3px solid #D4AF37;
    display: flex;
    align-items: center;
    gap: 8px;
}

.searching-region-item .pulse-dot {
    width: 8px;
    height: 8px;
    background: #D4AF37;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.no-searching {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 20px 0;
}

/* 스크롤바 스타일 */
.searching-regions::-webkit-scrollbar {
    width: 6px;
}

.searching-regions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.searching-regions::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.4);
    border-radius: 3px;
}

.searching-regions::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.6);
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .map-canvas-container {
        height: 300px;
    }
    
    .map-legend {
        top: 10px;
        right: 10px;
        flex-direction: column;
        gap: 8px;
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .legend-dot {
        width: 10px;
        height: 10px;
    }
    
    .map-done-badge {
        font-size: 1.1rem;
        padding: 16px 24px;
    }
    
    .searching-regions {
        width: 160px;
        right: 10px;
        top: 10px;
        max-height: 250px;
        padding: 12px;
    }
    
    .searching-regions h6 {
        font-size: 12px;
    }
    
    .searching-region-item {
        font-size: 11px;
        padding: 6px 8px;
    }
}

