/**
 * A.M TRADERS - Wholesale Network & Supply Cities
 * Section: Section 1.6
 */

.elementor-widget-am_network_map,
.elementor-widget-am_network_map .elementor-widget-container,
.elementor-widget-shortcode:has(.am-network-section),
.elementor-widget-shortcode:has(.am-network-section) .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}

.am-network-section {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    background-color: #1a191d;
    padding: clamp(60px, 6vw, 110px) 0;
    box-sizing: border-box !important;
    overflow: hidden;
    font-family: var(--am-font-body, 'Raleway', sans-serif);
    color: var(--am-white, #ffffff);
}

body.elementor-editor-active .am-network-section {
    left: 0 !important;
    right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ambient Blue Gradient Orbs */
.am-net-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.12;
}

.am-net-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--am-blue, #3858e9) 0%, rgba(56,88,233,0) 70%);
    top: -100px;
    left: 5%;
}

.am-net-orb-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--am-blue, #3858e9) 0%, rgba(56,88,233,0) 70%);
    top: 30%;
    right: -200px;
}

.am-net-orb-3 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--am-blue, #3858e9) 0%, rgba(56,88,233,0) 70%);
    bottom: -200px;
    left: -150px;
}

/* Header */
.am-network-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 clamp(20px, 4vw, 80px);
    margin-bottom: clamp(40px, 5vw, 60px);
}

.am-network-title {
    font-family: var(--am-font-heading, 'Megante', serif);
    font-size: clamp(32px, 4vw, 56px);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.am-network-title span {
    color: var(--am-blue, #3858e9);
}

.am-network-subtitle {
    font-size: clamp(16px, 1.2vw, 20px);
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto;
}

/* Map Container */
.am-network-map-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: clamp(400px, 50vw, 700px);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* The uploaded map image */
.am-network-map-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
}

/* SVG Overlay for Connection Lines */
.am-network-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.am-network-line {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.9;
}

/* Map Nodes (Cities) */
.am-network-node {
    position: absolute;
    z-index: 3;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
}

.am-node-dot {
    width: 12px;
    height: 12px;
    background-color: var(--am-blue, #3858e9);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--am-blue);
}

/* Ripple Animation for Hub/Nodes */
.am-node-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: 2px solid var(--am-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    animation: am-ripple 2s infinite ease-out;
}

/* Original static hub styling OR dynamically chosen random origin */
.am-network-node.is-hub .am-node-dot::after,
.am-network-node.is-active-origin .am-node-dot::after {
    animation-duration: 1.5s;
    width: 45px;
    height: 45px;
    border-color: #fff;
}
.am-network-node.is-hub .am-node-dot,
.am-network-node.is-active-origin .am-node-dot {
    background-color: #fff;
    box-shadow: 0 0 15px #fff;
    width: 16px;
    height: 16px;
}

@keyframes am-ripple {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Responsive Map Visibility */
@media (max-width: 768px) {
    .am-network-map-container {
        display: none !important;
    }
    .am-network-stats {
        margin-top: clamp(20px, 4vw, 40px);
    }
}

.am-node-label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    background: rgba(21, 21, 22, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.am-network-node:hover .am-node-label {
    transform: translateY(-5px);
    background: var(--am-blue);
}

/* Stats Counter Section */
.am-network-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(30px, 5vw, 60px);
    margin-top: clamp(40px, 6vw, 80px);
    padding: 0 20px;
}

.am-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Odometer Styles */
.am-odometer {
    display: flex;
    font-family: var(--am-font-heading, 'Megante', serif);
    font-size: clamp(40px, 5vw, 72px);
    color: var(--am-blue, #3858e9);
    line-height: 1;
    overflow: hidden;
    height: clamp(40px, 5vw, 72px); /* Must match font-size exactly to hide other numbers */
}

.am-odo-digit-col {
    display: flex;
    flex-direction: column;
    transition: transform cubic-bezier(0.2, 0.8, 0.2, 1); /* Custom ease-out */
    will-change: transform;
}

.am-odo-digit-col span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(40px, 5vw, 72px); /* Must match font-size */
}

.am-stat-suffix {
    font-family: var(--am-font-heading, 'Megante', serif);
    font-size: clamp(40px, 5vw, 72px);
    color: var(--am-blue, #3858e9);
    line-height: 1;
}

.am-stat-label {
    margin-top: 12px;
    font-size: clamp(14px, 1.2vw, 18px);
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 1px;
}
. a m - n e t w o r k - s t a t s   {   p o s i t i o n :   r e l a t i v e ;   z - i n d e x :   1 ;   }  
 