/* =========================================================
   HYRO TECHNOLOGIES FZE
   GLOBAL ACTIVITY MAP
========================================================= */

.global-activity-section {
    position: relative;
    overflow: hidden;

    width: 100%;

    padding: 55px 0 65px;

    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(229,43,135,.07),
            transparent 28%
        ),
        radial-gradient(
            circle at 94% 85%,
            rgba(132,87,232,.09),
            transparent 30%
        ),
        #ffffff;
}


/* =========================================================
   FORCE THIS SECTION FULL BROWSER WIDTH
========================================================= */

.global-activity-section > .container {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   HEADING
========================================================= */

.global-activity-heading {
    max-width: 850px;

    margin: 0 auto 28px;
    padding: 0 24px;

    text-align: center;
}

.global-activity-heading .eyebrow {
    display: inline-block;

    margin-bottom: 13px;

    color: #d62f83;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.global-activity-heading h2 {
    margin: 0;

    color: #182033;

    font-size: clamp(36px,4.3vw,52px);
    line-height: 1.14;

    letter-spacing: -1.6px;
}

.global-activity-heading h2 span {
    color: transparent;

    background: linear-gradient(
        100deg,
        #df2b83,
        #865fea
    );

    -webkit-background-clip: text;
    background-clip: text;
}

.global-activity-heading p {
    max-width: 700px;

    margin: 18px auto 0;

    color: #667085;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   FULL WIDTH LAYOUT
========================================================= */

.global-activity-layout {
    position: relative;

    width: 100%;
    max-width: none;

    margin: 0;

    display: block;
}


/* =========================================================
   MAP CARD
========================================================= */
.global-map-card {
    position: relative;

    width: 100%;

    min-height: 440px;
    height: clamp(440px, 54vh, 560px);

    margin: 0;

    overflow: hidden;

    border-top: 1px solid #e4e5ec;
    border-bottom: 1px solid #e4e5ec;

    border-left: 0;
    border-right: 0;

    border-radius: 0;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #faf9fd
        );

    box-shadow:
        0 20px 55px rgba(31,40,70,.05);
}

/* =========================================================
   WORLD MAP - IMAGE BASED POSITIONING
========================================================= */

.global-world-map {
    position: absolute;

    left: 25px;
    right: 370px;

    top: 50%;
    transform: translateY(-50%);

    height: auto;

    opacity: .98;

    z-index: 1;
}


/* ACTUAL MAP IMAGE */

.global-world-map-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;

    user-select: none;
    pointer-events: none;
}
/* =========================================================
   MARKERS
========================================================= */

.activity-marker {
    position: absolute;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    transform:
        translate(-50%,-50%);

    z-index: 3;
}

.activity-marker::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    transform:
        translate(-50%,-50%);

    animation:
        hyroMapPulse 2.2s infinite;
}


/* Gym */

.activity-marker.gym {
    background: #20b358;

    box-shadow:
        0 0 0 4px rgba(32,179,88,.16);
}

.activity-marker.gym::before {
    background: rgba(32,179,88,.30);
}


/* Spa */

.activity-marker.spa {
    background: #d92e90;

    box-shadow:
        0 0 0 4px rgba(217,46,144,.15);
}

.activity-marker.spa::before {
    background: rgba(217,46,144,.30);
}


/* Accounting */

.activity-marker.accounting {
    background: #686eea;

    box-shadow:
        0 0 0 4px rgba(104,110,234,.15);
}

.activity-marker.accounting::before {
    background: rgba(104,110,234,.30);
}


/* =========================================================
   PULSE
========================================================= */

@keyframes hyroMapPulse {

    0% {
        width: 13px;
        height: 13px;
        opacity: .8;
    }

    70% {
        width: 38px;
        height: 38px;
        opacity: 0;
    }

    100% {
        width: 38px;
        height: 38px;
        opacity: 0;
    }

}


/* =========================================================
   MAP LEGEND
========================================================= */

.global-map-legend {
    position: absolute;

    left: 32px;
    bottom: 24px;

    z-index: 12;

    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}

.global-map-legend span {
    padding: 8px 11px;

    background: rgba(255,255,255,.94);

    border: 1px solid #e4e5ec;
    border-radius: 999px;

    color: #4f5d73;

    font-size: 11px;

    box-shadow:
        0 6px 18px rgba(31,40,70,.06);
}


/* =========================================================
   LIVE ACTIVITY PANEL
========================================================= */

.global-live-card {
    position: absolute;

    top: 50%;
    right: 28px;

    transform: translateY(-50%);

    z-index: 20;

    width: 315px;
    max-height: 640px;

    overflow: hidden;

    padding: 26px 22px;

    border: 1px solid rgba(229,229,238,.95);
    border-radius: 24px;

    background: rgba(255,255,255,.95);

    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 22px 60px rgba(31,40,70,.13);

    color: #182033;
}

.global-live-card h3 {
    margin: 0 0 7px;

    color: #182033;

    font-size: 22px;
}

.global-live-card > p {
    margin: 0 0 22px;

    color: #667085;

    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   LIVE FEED
========================================================= */

.global-live-feed {
    display: grid;

    gap: 10px;
}

.global-live-item {
    display: flex;
    align-items: center;

    gap: 11px;

    padding: 12px;

    background: #ffffff;

    border: 1px solid #e6e6ee;
    border-radius: 14px;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.global-live-item.active {
    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(31,40,70,.08);
}

.global-live-dot {
    width: 11px;
    height: 11px;

    flex: 0 0 11px;

    border-radius: 50%;
}

.global-live-dot.gym {
    background: #20b358;
}

.global-live-dot.spa {
    background: #d92e90;
}

.global-live-dot.accounting {
    background: #686eea;
}

.global-live-copy strong {
    display: block;

    margin-bottom: 2px;

    color: #182033;

    font-size: 12px;
}

.global-live-copy span {
    display: block;

    color: #667085;

    font-size: 11px;
}


/* =========================================================
   STATUS
========================================================= */

.global-live-status {
    margin-top: 18px;

    padding-top: 15px;

    border-top: 1px solid #ececf2;

    color: #667085;

    font-size: 10px;
    line-height: 1.6;
}

.global-live-status strong {
    color: #20a858;
}


/* =========================================================
   MAP HOVER TOOLTIP
========================================================= */

.global-map-tooltip {
    position: fixed;
    z-index: 9999;

    min-width: 180px;
    max-width: 260px;

    padding: 12px 14px;

    pointer-events: none;

    opacity: 0;
    visibility: hidden;

    transform: translateY(8px);

    background:
        rgba(24,32,51,.96);

    color: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 14px 35px rgba(24,32,51,.22);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.global-map-tooltip.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.global-map-tooltip strong {
    display: block;

    margin-bottom: 4px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
}

.global-map-tooltip span {
    display: block;

    color: rgba(255,255,255,.78);

    font-size: 10px;
    line-height: 1.5;
}

.global-map-tooltip .tooltip-product {
    margin-top: 5px;

    font-size: 11px;
    font-weight: 700;
}


/* Product colors */

.global-map-tooltip.gym .tooltip-product {
    color: #67cf73;
}

.global-map-tooltip.spa .tooltip-product {
    color: #ff79bc;
}

.global-map-tooltip.accounting .tooltip-product {
    color: #9ea3ff;
}

/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1600px) {

    .global-map-card {
        min-height: 500px;
        height: 560px;
    }

    .global-world-map {
        left: 40px;
        right: 400px;
    }

    .global-live-card {
        right: 40px;
        width: 330px;
    }

}


/* =========================================================
   HYRO GLOBAL NETWORK STATUS
========================================================= */

.global-network-status {
    width: calc(100% - 48px);

    margin: 0 auto 18px;

    padding: 14px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    background: rgba(255,255,255,.90);

    border: 1px solid #e5e5ee;
    border-radius: 16px;

    box-shadow:
        0 10px 28px rgba(31,40,70,.05);
}

.global-network-status > div:first-child {
    display: flex;
    align-items: center;

    gap: 13px;
}

.global-network-eyebrow {
    color: #182033;

    font-size: 13px;
    font-weight: 700;
}

.global-live-indicator {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #20a858;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .7px;
}

.global-live-pulse {
    position: relative;

    width: 9px;
    height: 9px;

    display: inline-block;

    background: #20b358;

    border-radius: 50%;
}

.global-live-pulse::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 9px;
    height: 9px;

    transform: translate(-50%,-50%);

    border-radius: 50%;

    background: rgba(32,179,88,.35);

    animation:
        globalNetworkPulse 1.6s infinite;
}

@keyframes globalNetworkPulse {

    0% {
        transform:
            translate(-50%,-50%)
            scale(1);

        opacity: .8;
    }

    100% {
        transform:
            translate(-50%,-50%)
            scale(3);

        opacity: 0;
    }

}

.global-last-updated {
    color: #667085;

    font-size: 11px;
}


/* =========================================================
   STRONG NEW ACTIVITY MARKER
========================================================= */

.activity-marker.just-active {
    z-index: 20;

    animation:
        globalNewActivity 1.2s ease;
}

.activity-marker.just-active::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 14px;
    height: 14px;

    transform: translate(-50%,-50%);

    border: 2px solid currentColor;
    border-radius: 50%;

    animation:
        globalActivityRing 1.2s ease-out;
}

@keyframes globalNewActivity {

    0% {
        transform:
            translate(-50%,-50%)
            scale(.6);
    }

    40% {
        transform:
            translate(-50%,-50%)
            scale(1.7);
    }

    100% {
        transform:
            translate(-50%,-50%)
            scale(1);
    }

}

@keyframes globalActivityRing {

    0% {
        width: 14px;
        height: 14px;

        opacity: 1;
    }

    100% {
        width: 60px;
        height: 60px;

        opacity: 0;
    }

}


/* Mobile */

@media (max-width:640px) {

    .global-network-status {
        width: calc(100% - 24px);

        flex-direction: column;
        align-items: flex-start;

        gap: 8px;
    }

    .global-network-status > div:first-child {
        flex-wrap: wrap;
    }

}


/* =========================================================
   TABLET
========================================================= */
@media (max-width: 980px) {

    .global-world-map {
        left: 20px;
        right: 20px;

        top: 50%;
        bottom: auto;

        transform: translateY(-50%);
    }

    .global-live-card {
        position: relative;

        top: auto;
        right: auto;

        transform: none;

        width: calc(100% - 32px);

        max-height: none;

        margin: 20px auto 0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .global-world-map {
        left: 5px;
        right: 5px;

        top: 50%;
        bottom: auto;

        transform: translateY(-50%);
    }

}
/* =========================================================
   HYRO GLOBAL ACTIVITY - OFFLINE MODE
========================================================= */


/* MAP OFFLINE MESSAGE */

.global-offline-map-message {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        scale(.96);

    z-index: 100;

    /* rest of your existing CSS */
}


/* MAP OFFLINE MESSAGE */

.global-offline-map-message {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        scale(.96);

    z-index: 100;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: min(420px, 80%);

    padding: 25px 28px;

    text-align: center;

    background:
        rgba(255,255,255,.96);

    border:
        1px solid #e4e6ee;

    border-radius: 18px;

    box-shadow:
        0 18px 50px
        rgba(31,40,70,.14);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .25s ease,
        transform .25s ease,
        visibility .25s ease;
}


.global-offline-map-message.show {
    opacity: 1;
    visibility: visible;

    transform:
        translate(-50%, -50%)
        scale(1);
}


.global-offline-map-message strong {
    color: #182033;

    font-size: 17px;

    margin-bottom: 7px;
}


.global-offline-map-message span {
    color: #667085;

    font-size: 12px;
    line-height: 1.6;
}


/* OFFLINE FEED */

.global-offline-feed-message {
    padding: 25px 18px;

    background: #fafafa;

    border:
        1px solid #e7e8ef;

    border-radius: 14px;

    text-align: center;
}


.global-offline-feed-message strong {
    display: block;

    margin-bottom: 7px;

    color: #182033;

    font-size: 13px;
}


.global-offline-feed-message span {
    color: #667085;

    font-size: 11px;
    line-height: 1.6;
}


/* OFFLINE STATUS */

.global-offline-dot {
    width: 8px;
    height: 8px;

    display: inline-block;

    margin-right: 6px;

    border-radius: 50%;

    background: #98a2b3;
}


/* ABSOLUTELY STOP BLINKING */

.global-activity-offline
.activity-marker {
    display: none !important;

    animation: none !important;
}


/* REMOVE LIVE PULSE */

.global-activity-offline
.global-live-pulse {
    display: none !important;
}


/* HIDE TOOLTIP WHILE OFFLINE */

.global-activity-offline
~ .global-map-tooltip,
.global-activity-offline
.global-map-tooltip {
    display: none !important;
}