/* ================================================
   EDP Global Map - 样式文件
   ================================================ */

.edp-global-map-container {
    --edp-map-ocean:    #d4e6f1;
    --edp-map-land:     #cbd5e1;
    --edp-map-heat:     #1d4ed8;
    --edp-marker-color: #ff3c00;
    --edp-marker-size:  7px;
    --edp-pulse-scale:  3.5;
    --edp-line-color:   #3b82f6;
    --edp-line-width:   1.5px;
    --edp-tt-bg:        rgba(33, 33, 33, 0.95);
    --edp-tt-title:     #ffffff;
    --edp-tt-desc:      #cccccc;
}

/* ================================================
   地图容器
   ================================================ */

.edp-global-map-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.edp-global-map-container {
    width: 100%;
    height: 450px;
    position: relative;
    background-color: var(--edp-map-ocean);
}

.edp-global-map-container svg {
    width: 100%;
    height: 100%;
}

/* ================================================
   jsvectormap 缩放按钮
   ================================================ */

.edp-global-map-container .jvm-zoom-btn {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edp-global-map-container .jvm-zoom-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ================================================
   jsvectormap Tooltip
   ================================================ */

.jvm-tooltip {
    border-radius: 8px !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    max-width: 280px !important;
    overflow: hidden !important;
    pointer-events: none;
}

/* ================================================
   Tooltip 内容结构
   ================================================ */

.edp-map-tooltip {
    padding: 14px 16px;
    min-width: 180px;
    max-width: 280px;
    border-radius: 8px;
    overflow: hidden;
}

.edp-map-tooltip-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
}

.edp-map-tooltip-desc {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

/* ================================================
   SVG 呼吸灯动画
   ================================================ */

.edp-pulse-ring {
    fill: var(--edp-marker-color);
    opacity: 0.7;
    pointer-events: none;
    transform-origin: center center;
    -webkit-transform-origin: center center;
    transform-box: fill-box;
    -webkit-transform-box: fill-box;
    will-change: transform, opacity;
    animation: edp-svg-pulse 2s ease-out infinite;
    -webkit-animation: edp-svg-pulse 2s ease-out infinite;
}

.edp-pulse-ring-delay {
    animation-delay: 1s;
    -webkit-animation-delay: 1s;
}

@keyframes edp-svg-pulse {
    0%   { transform: scale(1);                           opacity: 0.7; }
    100% { transform: scale(var(--edp-pulse-scale, 3.5)); opacity: 0;   }
}

@-webkit-keyframes edp-svg-pulse {
    0%   { -webkit-transform: scale(1);                           opacity: 0.7; }
    100% { -webkit-transform: scale(var(--edp-pulse-scale, 3.5)); opacity: 0;   }
}

/* ================================================
   Elementor 编辑器
   ================================================ */

.elementor-editor-active .edp-global-map-wrapper {
    pointer-events: auto;
}

/* ================================================
   响应式
   ================================================ */

@media (max-width: 768px) {
    .edp-map-tooltip {
        min-width: 160px;
        max-width: 240px;
        padding: 12px 14px;
    }

    .edp-map-tooltip-title { font-size: 14px; }
    .edp-map-tooltip-desc  { font-size: 12px; }
}