/* =========================================================
   BIO GLOBAL PRESENCE
   PREMIUM / CLEAN / RESPONSIVE
   ========================================================= */


/* =========================================================
   SECTION
   ========================================================= */

.bio-global-section {

    position: relative;

    width: 100%;

    padding:
        100px
        20px
        80px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(247, 147, 26, 0.08),
            transparent 38%
        ),
        #ffffff;

    color: #111827;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.bio-global-container {

    width: 100%;

    max-width: 1550px;

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.bio-global-header {

    max-width: 850px;

    margin:
        0 auto
        45px;

    text-align: center;
}


/* =========================================================
   LIVE BADGE
   ========================================================= */

.bio-live-badge {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        8px
        13px;

    margin-bottom: 20px;

    border:
        1px solid
        rgba(247, 147, 26, 0.18);

    border-radius: 999px;

    background:
        rgba(247, 147, 26, 0.07);

    color: #b45309;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


/* =========================================================
   LIVE DOT
   ========================================================= */

.bio-live-indicator {

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px
        rgba(34, 197, 94, 0.10);

    animation:
        bioLivePulse
        1.8s
        ease-in-out
        infinite;
}


@keyframes bioLivePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.25);
        opacity: .65;
    }
}


/* =========================================================
   TITLE
   ========================================================= */

.bio-global-header h2 {

    margin: 0;

    color: #111827;

    font-size:
        clamp(
            34px,
            4vw,
            58px
        );

    line-height: 1.05;

    letter-spacing: -2px;

    font-weight: 850;
}


.bio-global-header h2 span {

    color: #f7931a;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.bio-global-header p {

    max-width: 650px;

    margin:
        20px
        auto
        0;

    color: #6b7280;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   MAP WRAPPER
   ========================================================= */

.bio-map-wrapper {

    position: relative;

    width: 100%;

    height: 700px;

    overflow: hidden;

    border:
        1px solid
        rgba(17, 24, 39, 0.08);

    border-radius: 30px;

    background: #edf1f4;

    box-shadow:
        0 25px 70px
        rgba(15, 23, 42, 0.10),
        0 8px 25px
        rgba(15, 23, 42, 0.06);
}


/* =========================================================
   MAP
   ========================================================= */

#bioGlobalMap {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 1;
}


#bioGlobalMap .leaflet-container {

    width: 100%;
    height: 100%;

    background: #eef1f3;

    font-family:
        Inter,
        Arial,
        sans-serif;
}


/* =========================================================
   OSM TILES
   ========================================================= */

#bioGlobalMap .leaflet-tile {

    filter:
        saturate(.78)
        contrast(.95)
        brightness(1.035);
}


/* =========================================================
   MAP LIGHT OVERLAY
   ========================================================= */

.bio-map-light {

    position: absolute;

    inset: 0;

    z-index: 300;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% 45%,
            transparent 30%,
            rgba(255, 255, 255, 0.08) 100%
        );
}


/* =========================================================
   REMOVE LEAFLET DEFAULT SHADOW EXCESS
   ========================================================= */

.leaflet-control-zoom {

    border: none !important;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.14) !important;

    border-radius: 12px !important;

    overflow: hidden;
}


.leaflet-control-zoom a {

    width: 38px !important;
    height: 38px !important;

    line-height: 38px !important;

    color: #111827 !important;

    background: rgba(255,255,255,.94) !important;

    border: none !important;
}


.leaflet-control-zoom a:hover {

    background: #ffffff !important;

    color: #f7931a !important;
}


/* =========================================================
   ATTRIBUTION
   ========================================================= */

.leaflet-control-attribution {

    background:
        rgba(255,255,255,.86) !important;

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    border-radius:
        8px
        0
        0
        0;

    padding:
        5px
        8px !important;

    color: #6b7280 !important;

    font-size: 9px !important;
}


/* =========================================================
   BIO MARKERS
   ========================================================= */

.bio-location-marker {

    background: transparent !important;

    border: none !important;
}


.bio-marker {

    position: relative;

    width: 48px;
    height: 48px;
}


/* outer ring */

.bio-marker-ring {

    position: absolute;

    inset: 1px;

    border:
        1px solid
        rgba(247, 147, 26, .50);

    border-radius: 50%;

    animation:
        bioMarkerRing
        2.4s
        ease-out
        infinite;
}


/* pulse */

.bio-marker-pulse {

    position: absolute;

    inset: 7px;

    border-radius: 50%;

    background:
        rgba(247, 147, 26, .13);

    animation:
        bioMarkerPulse
        2s
        ease-out
        infinite;
}


/* center */
.bio-marker-center {
    position: absolute;

    left: 9px;
    top: 9px;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    border: 2px solid #ffffff;

    overflow: hidden;

    box-shadow:
        0 7px 18px rgba(15, 23, 42, .25);
}

.bio-marker-center img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}





.bio-flag {
    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #f7f8fa;

    border: 1px solid rgba(17,24,39,.05);

    overflow: hidden;

    box-shadow:
        0 5px 13px rgba(15,23,42,.08);
}

.bio-flag img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}

@keyframes bioMarkerRing {

    0% {
        transform: scale(.65);
        opacity: .75;
    }

    70% {
        transform: scale(1.15);
        opacity: 0;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}


@keyframes bioMarkerPulse {

    0% {
        transform: scale(.8);
        opacity: .65;
    }

    70% {
        transform: scale(1.25);
        opacity: 0;
    }

    100% {
        transform: scale(1.25);
        opacity: 0;
    }
}


/* =========================================================
   CONNECTION SVG
   ========================================================= */

.bio-connection-layer {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 600;

    pointer-events: none;

    overflow: visible;
}


/* line */

.bio-connection-line {

    fill: none;

    stroke: #f7931a;

    stroke-width: 1.5;

    stroke-linecap: round;

    stroke-dasharray: 5 5;

    opacity: 0;

    filter:
        drop-shadow(
            0 0 4px
            rgba(247,147,26,.25)
        );

    transition:
        opacity .35s ease;
}


/* active line */

.bio-connection-line.is-active {

    opacity: .72;

    animation:
        bioConnectionDash
        1.5s
        linear
        infinite;
}


@keyframes bioConnectionDash {

    to {
        stroke-dashoffset: -20;
    }
}


/* country point */

.bio-connection-point {

    fill: #f7931a;

    stroke: #ffffff;

    stroke-width: 2;

    opacity: 0;

    filter:
        drop-shadow(
            0 0 7px
            rgba(247,147,26,.50)
        );

    transition:
        opacity .35s ease;
}


.bio-connection-point.is-active {

    opacity: 1;

    animation:
        bioConnectionPoint
        1.5s
        ease-in-out
        infinite;
}


@keyframes bioConnectionPoint {

    0%,
    100% {
        r: 4;
    }

    50% {
        r: 6;
    }
}


/* =========================================================
   MAP LIVE LABEL
   ========================================================= */

.bio-map-live-label {

    position: absolute;

    top: 22px;
    left: 22px;

    z-index: 700;

    display: flex;

    align-items: center;

    gap: 11px;

    padding:
        11px
        14px;

    border:
        1px solid
        rgba(255,255,255,.75);

    border-radius: 14px;

    background:
        rgba(255,255,255,.84);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 12px 35px
        rgba(15,23,42,.10);
}


.bio-map-live-label > div {

    display: flex;

    flex-direction: column;

    gap: 2px;
}


.bio-map-live-label strong {

    color: #111827;

    font-size: 11px;

    letter-spacing: 1px;
}


.bio-map-live-label small {

    color: #6b7280;

    font-size: 9px;
}


/* =========================================================
   COUNTER
   ========================================================= */

.bio-presence-counter {

    position: absolute;

    top: 22px;
    right: 22px;

    z-index: 700;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        10px
        14px;

    border:
        1px solid
        rgba(255,255,255,.75);

    border-radius: 14px;

    background:
        rgba(255,255,255,.84);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    box-shadow:
        0 12px 35px
        rgba(15,23,42,.10);
}


.bio-counter-icon {

    width: 35px;
    height: 35px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #111827;

    color: #ffffff;

    font-size: 15px;

    font-weight: 800;
}


.bio-counter-content {

    display: flex;

    flex-direction: column;

    gap: 2px;
}


.bio-counter-content strong {

    color: #111827;

    font-size: 15px;
}


.bio-counter-content small {

    color: #6b7280;

    font-size: 9px;

    font-weight: 600;
}


/* =========================================================
   COUNTRY NOTIFICATION
   ========================================================= */
.bio-country-notification {
    position: absolute;
    z-index: 700;
    pointer-events: none;
}


/* =========================================================
   NOTIFICATION CARD
   ========================================================= */

.bio-notification-card {

    position: absolute;

    width: 245px;
    min-height: 72px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        12px
        14px;

    box-sizing: border-box;

    border:
        1px solid
        rgba(255,255,255,.90);

    border-radius: 17px;

    background:
        rgba(255,255,255,.94);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 20px 45px
        rgba(15,23,42,.16),
        0 5px 18px
        rgba(15,23,42,.08);

    opacity: 0;

    transform:
        translateY(9px)
        scale(.94);

    transition:
        opacity .45s ease,
        transform .45s
        cubic-bezier(.2,.8,.2,1);
}


/* =========================================================
   NOTIFICATION VISIBLE
   ========================================================= */

.bio-country-notification.bio-visible {

    visibility: visible;

    opacity: 1;
}


.bio-country-notification.bio-visible
.bio-notification-card {

    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   NOTIFICATION LEAVING
   ========================================================= */

.bio-country-notification.bio-leaving {

    visibility: visible;

    opacity: 0;
}


.bio-country-notification.bio-leaving
.bio-notification-card {

    opacity: 0;

    transform:
        translateY(-7px)
        scale(.94);
}


/* =========================================================
   FLAG
   ========================================================= */

.bio-flag {

    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #f7f8fa;

    border:
        1px solid
        rgba(17,24,39,.05);

    font-size: 25px;

    box-shadow:
        0 5px 13px
        rgba(15,23,42,.08);
}


/* =========================================================
   NOTIFICATION TEXT
   ========================================================= */

.bio-notification-text {

    display: flex;

    flex-direction: column;

    gap: 5px;

    min-width: 0;
}


.bio-notification-text strong {

    color: #111827;

    font-size: 13px;

    font-weight: 800;

    white-space: nowrap;
}


.bio-notification-text span {

    color: #6b7280;

    font-size: 10px;

    font-weight: 650;

    white-space: nowrap;
}


/* =========================================================
   STATUS
   ========================================================= */

.bio-status-dot {

    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    margin-left: auto;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px
        rgba(34,197,94,.10),
        0 0 13px
        rgba(34,197,94,.45);

    animation:
        bioStatusPulse
        1.8s
        ease-in-out
        infinite;
}


@keyframes bioStatusPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.25);
        opacity: .65;
    }
}


/* =========================================================
   GLOBAL STATS
   ========================================================= */

.bio-global-stats {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 55px;

    margin-top: 38px;
}


.bio-global-stat {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;
}


.bio-global-stat strong {

    color: #111827;

    font-size: 22px;

    font-weight: 850;
}


.bio-global-stat span {

    color: #6b7280;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .5px;

    text-transform: uppercase;
}


.bio-stat-divider {

    width: 1px;

    height: 30px;

    background:
        rgba(17,24,39,.10);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .bio-map-wrapper {

        height: 600px;

        border-radius: 24px;
    }

    .bio-notification-card {

        width: 220px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .bio-global-section {

        padding:
            70px
            12px
            60px;
    }


    .bio-global-header {

        margin-bottom: 30px;
    }


    .bio-global-header h2 {

        font-size: 34px;

        letter-spacing: -1.3px;
    }


    .bio-global-header p {

        font-size: 13px;

        padding:
            0
            12px;
    }


    .bio-map-wrapper {

        height: 510px;

        border-radius: 20px;
    }


    .bio-map-live-label {

        top: 14px;
        left: 14px;

        padding:
            9px
            11px;
    }


    .bio-presence-counter {

        top: 14px;
        right: 14px;

        padding:
            8px
            10px;
    }


    .bio-counter-icon {

        width: 30px;
        height: 30px;

        font-size: 13px;
    }


    .bio-counter-content small {

        display: none;
    }


    .bio-notification-card {

        width: 195px;

        min-height: 65px;

        padding:
            10px
            11px;

        gap: 9px;
    }


    .bio-flag {

        width: 37px;
        height: 37px;

        flex-basis: 37px;

        font-size: 21px;
    }


    .bio-notification-text strong {

        font-size: 11px;
    }


    .bio-notification-text span {

        font-size: 9px;
    }


    .bio-global-stats {

        gap: 22px;
    }


    .bio-global-stat strong {

        font-size: 18px;
    }


    .bio-global-stat span {

        font-size: 8px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 450px) {

    .bio-map-wrapper {

        height: 450px;
    }


    .bio-global-header h2 {

        font-size: 29px;
    }


    .bio-notification-card {

        width: 180px;
    }


    .bio-global-stats {

        gap: 13px;
    }


    .bio-stat-divider {

        height: 24px;
    }
}