/* ============================================
   Global server map — homepage (professional)
   ============================================ */

.dc-map-section-pro {
    padding: 96px 0 100px;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #f8fafc 100%);
    position: relative;
}

.dc-map-section-pro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 38% at 50% 0%, rgba(56, 189, 248, 0.07), transparent 65%);
    pointer-events: none;
}

.dc-map-header-pro {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
}

.dc-map-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0ea5e9;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(45, 212, 191, 0.1));
    border: 1px solid rgba(14, 165, 233, 0.22);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.dc-map-header-pro h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.dc-map-header-pro p {
    font-size: 17px;
    line-height: 1.65;
    color: #64748b;
    margin: 0;
}

/* Stats bar */
.dc-map-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}

.dc-map-stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dc-map-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.dc-map-stat-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #0ea5e9;
    background: linear-gradient(145deg, #f0f9ff 0%, #ecfeff 100%);
    border: 1px solid rgba(14, 165, 233, 0.15);
}

.dc-map-stat-card__text {
    min-width: 0;
}

.dc-map-stat-card__val {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dc-map-stat-card__lbl {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.35;
}

/* Map container */
.global-map-container.dc-map-global-wrap {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.world-map-wrapper--pro {
    position: relative;
    padding: 1px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.45), rgba(15, 23, 42, 0.95) 42%, rgba(45, 212, 191, 0.35));
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.dc-map-canvas {
    position: relative;
    border-radius: 27px;
    overflow: hidden;
    min-height: 520px;
    background: linear-gradient(165deg, #0b1220 0%, #0f172a 40%, #020617 100%);
}

.dc-map-canvas__glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 65% 50% at 56% 42%, rgba(34, 211, 238, 0.09), transparent 58%),
        radial-gradient(ellipse 45% 42% at 24% 42%, rgba(99, 102, 241, 0.07), transparent 55%);
}

.dc-map-canvas__noise {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.dc-map-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.dc-route {
    animation: dc-route-flow 26s linear infinite;
}

.dc-route--2 {
    animation-delay: -7s;
}

.dc-route--3 {
    animation-delay: -14s;
}

.dc-route--4 {
    animation-delay: -3s;
    animation-duration: 34s;
}

@keyframes dc-route-flow {
    to {
        stroke-dashoffset: -220;
    }
}

/* Map points */
.dc-map-section-pro .map-point {
    position: absolute;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.3s ease;
}

.dc-map-section-pro .map-point:hover {
    z-index: 20;
    transform: scale(1.04);
}

.dc-map-section-pro .map-point.active .point-pulse {
    animation: pulse 2.2s ease-out infinite;
}

.dc-map-section-pro .map-point:not(.active) .point-pulse {
    display: none;
}

.point-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.28);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.6);
        opacity: 0;
    }
}

.point-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2dd4bf;
    border: 3px solid #020617;
    box-shadow:
        0 0 0 2px rgba(45, 212, 191, 0.35),
        0 6px 18px rgba(45, 212, 191, 0.35);
    z-index: 2;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dc-map-section-pro .map-point.active .point-dot {
    box-shadow:
        0 0 0 3px rgba(45, 212, 191, 0.45),
        0 0 28px rgba(45, 212, 191, 0.55);
    animation: dotPulse 2.2s ease-in-out infinite;
}

.dc-map-section-pro .map-point:not(.active) .point-dot {
    background: #64748b;
    box-shadow: 0 0 0 2px rgba(100, 116, 139, 0.35);
}

@keyframes dotPulse {
    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.dc-map-section-pro .point-label {
    position: absolute;
    bottom: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
    min-width: 240px;
    max-width: min(280px, 85vw);
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
    text-align: left;
}

.dc-map-section-pro .map-point:hover .point-label,
.dc-map-section-pro .map-point.active .point-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

.dc-map-section-pro .point-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(30, 41, 59, 0.92);
    filter: drop-shadow(0 1px 0 rgba(148, 163, 184, 0.15));
}

.dc-map-section-pro .label-flag {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 0;
    flex-shrink: 0;
}

.dc-map-section-pro .label-content {
    text-align: left;
    min-width: 0;
}

.dc-map-section-pro .label-content strong {
    display: block;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.dc-map-section-pro .label-content span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

/* Geographic positions (viewBox 1000×500) */
.point-istanbul {
    top: 44%;
    left: 56%;
}

.point-frankfurt {
    top: 36%;
    left: 50.5%;
}

.point-london {
    top: 34%;
    left: 48%;
}

.point-newyork {
    top: 39%;
    left: 24.5%;
}

/* Bottom chrome */
.dc-map-chrome {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 8;
    pointer-events: none;
}

.dc-map-chrome__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
    letter-spacing: 0.01em;
}

.dc-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.35);
    animation: dc-live-blink 2.2s ease-in-out infinite;
}

@keyframes dc-live-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.dc-map-chrome__meta {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

/* Legend */
.map-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 24px;
}

.map-legend--pro {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 999px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.map-legend--pro .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #94a3b8;
    border: 2px solid #f1f5f9;
    flex-shrink: 0;
}

.legend-dot.active {
    background: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.28);
}

.legend-line {
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, #2dd4bf, #22d3ee);
    position: relative;
    flex-shrink: 0;
    border-radius: 2px;
}

.legend-line::before,
.legend-line::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #22d3ee;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.legend-line::before {
    left: 0;
}

.legend-line::after {
    right: 0;
}

/* Entrance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dc-map-global-wrap {
    animation: fadeInUp 0.75s ease both;
}

.dc-map-section-pro .map-point {
    animation: fadeInUp 0.7s ease both;
}

.dc-map-section-pro .map-point.point-istanbul {
    animation-delay: 0.08s;
}

.dc-map-section-pro .map-point.point-frankfurt {
    animation-delay: 0.16s;
}

.dc-map-section-pro .map-point.point-london {
    animation-delay: 0.24s;
}

.dc-map-section-pro .map-point.point-newyork {
    animation-delay: 0.32s;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .dc-map-stats-bar {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .dc-map-canvas {
        min-height: 460px;
    }

    .dc-map-section-pro .point-label {
        min-width: 200px;
        padding: 12px 14px;
    }

    .dc-map-section-pro .label-content strong {
        font-size: 14px;
    }

    .point-istanbul {
        top: 46%;
        left: 54%;
    }

    .point-frankfurt {
        top: 38%;
        left: 50%;
    }

    .point-london {
        top: 36%;
        left: 47%;
    }

    .point-newyork {
        top: 41%;
        left: 22%;
    }
}

@media (max-width: 767px) {
    .dc-map-section-pro {
        padding: 72px 0 80px;
    }

    .dc-map-header-pro {
        margin-bottom: 28px;
    }

    .dc-map-canvas {
        min-height: 400px;
    }

    .point-dot {
        width: 14px;
        height: 14px;
    }

    .dc-map-section-pro .point-label {
        min-width: 180px;
        padding: 10px 12px;
        gap: 10px;
    }

    .dc-map-section-pro .label-flag {
        font-size: 24px;
    }

    .dc-map-section-pro .label-content strong {
        font-size: 13px;
    }

    .dc-map-section-pro .label-content span {
        font-size: 11px;
    }

    .map-legend--pro {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        gap: 12px;
    }

    .map-legend--pro .legend-item {
        justify-content: flex-start;
    }

    .dc-map-chrome {
        flex-direction: column;
        align-items: flex-start;
    }

    .point-istanbul {
        top: 47%;
        left: 52%;
    }

    .point-frankfurt {
        top: 40%;
        left: 49%;
    }

    .point-london {
        top: 37%;
        left: 46%;
    }

    .point-newyork {
        top: 42%;
        left: 20%;
    }
}

/* -----------------------------------------------------------------
   Legacy inline map (template-datacenter.php — classic .world-map-wrapper)
   Overrides generic .map-point rules from corporate-pages.css
   ----------------------------------------------------------------- */

.network-section-v3 .global-map-container {
    margin-top: 48px;
    position: relative;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .world-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .map-land {
    fill: #334155;
    stroke: #475569;
    stroke-width: 1;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .connection-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .connection-line {
    stroke-dasharray: 5, 5;
    animation: dcLegacyDashMove 20s linear infinite;
}

@keyframes dcLegacyDashMove {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 100;
    }
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .map-point {
    display: block;
    align-items: unset;
    flex-direction: unset;
    position: absolute;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease, z-index 0s;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .map-point:hover {
    z-index: 20;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .map-point.active .point-pulse {
    animation: pulse 2.2s ease-out infinite;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .map-point:not(.active) .point-pulse {
    display: none;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .point-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 212, 170, 0.3);
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .point-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00d4aa;
    border: 3px solid #0f172a;
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.3), 0 4px 12px rgba(0, 212, 170, 0.4);
    z-index: 2;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .map-point.active .point-dot {
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.5), 0 0 20px rgba(0, 212, 170, 0.6);
    animation: dotPulse 2.2s ease-in-out infinite;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .map-point:not(.active) .point-dot {
    background: #64748b;
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.3);
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .point-label {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 200px;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .map-point:hover .point-label,
.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .map-point.active .point-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .point-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(15, 23, 42, 0.95);
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .label-flag {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 8px;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .label-content strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .label-content span {
    display: block;
    color: #94a3b8;
    font-size: 12px;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .point-istanbul {
    top: 42%;
    left: 52%;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .point-frankfurt {
    top: 38%;
    left: 48%;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .point-london {
    top: 35%;
    left: 45%;
}

.network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) .point-newyork {
    top: 40%;
    left: 22%;
}

.network-section-v3 .global-map-container > .map-legend:not(.map-legend--pro) {
    margin-top: 30px;
}

.network-section-v3 .global-map-container > .map-legend:not(.map-legend--pro) .legend-item {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .network-section-v3 .world-map-wrapper:not(.world-map-wrapper--pro) {
        height: 400px;
    }
}
