/* 지도 컨테이너 및 배경 */
.map-wrapper {
    width: 100%;
    background: #01163B;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
}

.map-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 지점 위치 */
.map-point {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.point-usa {
    top: 30%;
    left: 29%;
}

.point-korea {
    top: 32.5%;
    right: 16%;
}

.point-label {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 깜빡이는 포인트 */
.pulse-dot {
    width: 20px;
    height: 20px;
    background-color: #00B68C;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px var(--primary);
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--primary);
    border-radius: 50%;
    animation: map-pulse 2s infinite;
}

@keyframes map-pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* 타원형 연결선 스타일 */
.map-svg-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(0, 212, 170, 0.5));
}

.main-arc {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawArc 2s ease-out forwards;
}

@keyframes drawArc {
    to {
        stroke-dashoffset: 0;
    }
}

/* 범례 및 카드 스타일 (이후 동일) */
.map-legend {
    position: absolute;
    right: 0px;
    bottom: 262px;
    background: rgba(13, 27, 62, 0.9);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.map-legend li:last-child {
    margin-bottom: 0;
}

.map-legend li {
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot-hq {
    width: 10px;
    height: 10px;
    background: #00B68C;
    border-radius: 50%;
}

.dot-agent {
    width: 10px;
    height: 10px;
    background: #43FAFC;
    border-radius: 50%;
}

.line-conn {
    width: 15px;
    height: 1px;
    background: var(--primary);
    border-bottom: 1px dashed var(--primary);
}

.stat-card {
    background-color: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 15px 5px;
    text-align: center;
    height: 100%;
    transition: 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
}

.stat-label {
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.stat-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .map-point {
        display: none;
    }

    .map-legend {
        display: none !important;
    }

    .map-svg-line {
        display: none;
    }

    .map-container {
        background-image: url('http://dslg.busytech.net/img/map2.jpg') !important;
        /* 모바일에서 배경 크기가 안 맞으면 아래 속성도 추가하세요 */
        background-size: contain !important;
    }
}