/* =====================================================
   network.css — Premium Global Network Map Section
   Light Luxury Gradient (#FAF8F3 → #FFFFFF), Glowing Dubai Hub,
   Ultra-thin smooth curved lines, Hover Pins, Dark Grey Typography.
===================================================== */
.ms-network-sec {
    position: relative;
    padding: 90px 0;
    background: linear-gradient(180deg, #FAF8F3 0%, #FFFFFF 100%);
    overflow: hidden;
}

/* Subtle luxury grid pattern overlay */
.ms-network-sec::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(201, 161, 90, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.6;
}

.ms-network-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 2;
}

.ms-network-label {
    display: inline-block;
    font-family: var(--font-sans) !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #C9A15A;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ms-network-title {
    font-family: var(--font-sans) !important;
    font-size: 3.5rem;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ms-network-desc {
    font-family: var(--font-sans) !important;
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
}

.ms-network-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    z-index: 2;
}

.ms-network-map-host {
    position: relative;
    width: 100%;
    min-height: 400px;
}

/* Map Container Layout */
.ms-network-svg-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
    padding: 0;
}

.ms-network-bg-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.92;
}

.ms-network-overlay-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Ultra-Thin Curved Flight Paths with Gradual Line Draw Effect */
.ms-network-arc-line {
    fill: none;
    stroke: #C9A15A;
    stroke-width: 0.8;
    stroke-linecap: round;
    stroke-dasharray: 250;
    stroke-dashoffset: 250;
    opacity: 0;
    transition: stroke-dashoffset 1.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
}

/* Different Opacities for Clean Overlapping */
.ms-network-arc-line.opt-high { opacity: 0.85; }
.ms-network-arc-line.opt-mid  { opacity: 0.70; }
.ms-network-arc-line.opt-low  { opacity: 0.55; }

.ms-network-svg-container.in-view .ms-network-arc-line {
    stroke-dashoffset: 0;
}

/* Glowing Packet Traveling Along Line */
.ms-network-particle {
    fill: #FFD700;
    opacity: 0;
    filter: drop-shadow(0 0 3px #FFD700);
    transition: opacity 0.6s ease;
}

.ms-network-svg-container.in-view .ms-network-particle {
    opacity: 1;
}

/* Country Pins (Circular Pins, Dark Grey Typography) */
.ms-network-pin-node {
    opacity: 0;
    transform: scale(0);
    transform-origin: center;
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.ms-network-svg-container.in-view .ms-network-pin-node {
    opacity: 1;
    transform: scale(1);
}

.ms-network-pin-circle {
    fill: #FFFFFF;
    stroke: #C9A15A;
    stroke-width: 0.8;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ms-network-pin-dot {
    fill: #C9A15A;
    transition: all 0.3s ease;
}

.ms-network-node-label {
    fill: #222222;
    font-family: var(--font-sans) !important;
    font-size: 3.6px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-anchor: middle;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Pin Hover Interactivity */
.ms-network-pin-node:hover .ms-network-pin-circle {
    stroke: #111111;
    fill: #C9A15A;
    r: 3.5;
}

.ms-network-pin-node:hover .ms-network-pin-dot {
    fill: #FFFFFF;
    r: 1.5;
}

.ms-network-pin-node:hover .ms-network-node-label {
    fill: #111111;
    font-weight: 900;
}

/* Highlight Dubai Hub Location (Glowing Marker & Pulse Waves) */
.ms-network-hub-group {
    cursor: pointer;
}

.ms-network-hub-pulse-1 {
    fill: rgba(201, 161, 90, 0.25);
    animation: msRadarPulse 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.ms-network-hub-pulse-2 {
    fill: rgba(201, 161, 90, 0.15);
    animation: msRadarPulse 2.4s infinite cubic-bezier(0.215, 0.61, 0.355, 1) 0.8s;
}

.ms-network-hub-core-pin {
    fill: #C9A15A;
    stroke: #FFFFFF;
    stroke-width: 0.8;
    filter: drop-shadow(0 0 4px rgba(201, 161, 90, 0.8));
}

.ms-network-hub-label {
    fill: #111111;
    font-family: var(--font-sans) !important;
    font-size: 4.5px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-anchor: middle;
}

@keyframes msRadarPulse {
    0% { r: 3px; opacity: 0.9; }
    100% { r: 14px; opacity: 0; }
}

/* Tooltip Popup on Hover */
.ms-network-tooltip {
    position: absolute;
    display: none;
    background: rgba(17, 17, 17, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 161, 90, 0.4);
    border-radius: 8px;
    padding: 8px 14px;
    color: #ffffff;
    font-family: var(--font-sans) !important;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -120%);
    transition: opacity 0.2s ease;
}

.ms-network-tooltip .tt-title {
    font-weight: 800;
    color: #C9A15A;
    font-size: 12px;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.ms-network-tooltip .tt-desc {
    font-size: 11px;
    color: #e0e0e0;
    line-height: 1.4;
}

/* Mobile Responsive Filtering (Mobile shows key strategic hubs only) */
@media (max-width: 767px) {
    .ms-network-pin-node.is-secondary {
        display: none !important;
    }
    .ms-network-arc-line.is-secondary {
        display: none !important;
    }
    .ms-network-particle.is-secondary {
        display: none !important;
    }
}
