/* ==========================================================================
   CENTERCOM GLOBAL MAP WIDGET STYLES
   ========================================================================== */
.centercom-global-map {
    position: relative;
    width: 100%;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.centercom-map-scaler {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    transform-origin: center right;
    overflow: hidden;
}
.centercom-map-panner {
    position: relative;
    min-width: 100%;
    min-height: 100%;
    height: 650px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.centercom-global-map-image {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    flex-shrink: 0;
    display: block;
    pointer-events: none;
}
.centercom-global-map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background: rgba(46, 178, 255, 0.3);
    border: 2px solid rgba(46, 178, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
}
.map-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    background: #2EB2FF;
    border-radius: 50%;
    transition: transform 0.4s ease;
}
.map-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(46, 178, 255, 0.5) 0%, rgba(46, 178, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    filter: blur(4px);
    z-index: -1;
}
.map-marker.active {
    border-color: #2EB2FF;
    background: transparent;
    z-index: 20;
}
.map-marker.active::after { transform: translate(-50%, -50%) scale(1); }
.map-marker.active::before { opacity: 1; animation: markerPulse 3.5s infinite ease-in-out; }
@keyframes markerPulse {
    0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(0.7); opacity: 0.2; }
}

/* ==========================================================================
   TESTIMONIAL CARD (Perfect Continuous Border)
   ========================================================================== */
.centercom-map-card {
    position: absolute;
    width: 372px;
    background: transparent !important; /* Managed by JS now */
    border: none !important; 
    border-radius: 0 !important; /* Managed by JS now */
    padding: 0 !important; 
    color: #fff;
    z-index: 30;
    transition: left 0.8s cubic-bezier(0.25, 1, 0.5, 1), top 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

/* The old card border is handled dynamically in JS via SVG now */
.centercom-map-card::before { display: none !important; }

/* Old pointers handled dynamically via SVG now */
.centercom-map-pointer { display: none !important; }

/* Restore Typography */
.centercom-map-title { font-family:"Montserrat", Sans-serif !important; margin: 0 0 10px 0; font-size: 30px !important; line-height: 35px !important; font-weight: 400 !important; color: #fff; }
.centercom-map-desc { font-family:"Montserrat", Sans-serif !important; margin: 0; font-size: 14px !important; line-height: 20px !important; font-weight: 400 !important; color: rgba(255, 255, 255, 0.9); }


/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 880px) {
    .centercom-global-map { height: auto !important; min-height: 300px !important; max-height: none !important; display: flex !important; align-items: center !important; justify-content: center !important; }
    .elementor-1044 .elementor-element.elementor-element-1ca970a { width: 100%; }
    .centercom-map-scaler, .centercom-map-panner { width: 100% !important; height: auto !important; min-height: 0 !important; display: block !important; }
    .centercom-global-map-image { width: 100% !important; height: auto !important; min-width: 0 !important; min-height: 0 !important; }
    
    /* Cleanly set to 260px. The JS will now natively draw the shape perfectly at 260px! */
    .centercom-map-card { 
        width: 260px !important; 
        padding: 0 !important; /* Inner padding is handled by the new JS */
    }
    
    .centercom-map-card::before { -webkit-mask-image: none !important; mask-image: none !important; }
    
    /* Normal Mobile Text Sizes */
    .centercom-map-title { 
        font-size: 20px !important; 
        margin-bottom: 6px !important; 
        font-weight: 500 !important; 
    }
    .centercom-map-desc { 
        font-size: 13px !important; 
        line-height: 1.4 !important; 
    }
    
    .map-marker { width: 14px !important; height: 14px !important; border-width: 1px !important; }
    .map-marker::after { width: 6px !important; height: 6px !important; }
    .map-marker::before { width: 50px !important; height: 50px !important; }
}

@media (min-width: 1200px) and (max-width: 1500px) { .centercom-map-panner { height: 450px; } }
@media (min-width: 1024px) and (max-width: 1199px) { .centercom-map-panner { height: 350px; } }