/* ============================================
   GLOBE SECTION - Full Updated CSS
   ============================================ */


.globe-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
    flex-wrap: wrap;
    background: #EAE7E1;
}

#globeMount::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 45%, rgba(255,255,255,0.95), transparent 40%),
        radial-gradient(circle at 50% 60%, rgba(16,57,70,0.12), transparent 45%);
    pointer-events: none;
    z-index: -1;
}

/* ---- MAIN GRID LAYOUT ---- */
.globe-layout {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: unset;
    width: 100%;
    height: 100%;
    padding-top: 20px;
}

.globe-left {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.globe-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    min-width: 70%;
}

.globe-text-block h2 {
    color: #103946;
}

.globe-text-block .globe-sub {
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgb(16,57,70);
}

.globe-text-block .globe-desc {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.55;
    color: rgb(16,57,70);
}


/* ---- LOCATION LIST - SCROLLABLE ---- */
.globe-locations {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-top: 14px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(16,57,70,0.12) transparent;
}

.globe-locations::-webkit-scrollbar { width: 3px; }
.globe-locations::-webkit-scrollbar-track { background: transparent; }
.globe-locations::-webkit-scrollbar-thumb { background: rgba(16,57,70,0.12); border-radius: 3px; }

.globe-loc-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(16,57,70,0.08);
}

.globe-loc-item:first-child { padding-top: 0; }
.globe-loc-item:last-child { border-bottom: none; padding-bottom: 0; }

.globe-loc-item button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #12303a;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.globe-loc-item button:hover,
.globe-loc-item button.active {
    color: #c48e64;
}

.globe-loc-item button img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}


.globe-loc-desc {
    margin-top: 3px;
    padding-left: 44px;
}

.globe-loc-desc p {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: rgb(16,57,70);
}

@media (min-width: 768px) {
    .globe-loc-item button { font-size: 15px; gap: 12px; }
    .globe-loc-item button img { width: 36px; height: 36px; }
    .globe-loc-desc { padding-left: 48px; }
    .globe-loc-desc p { font-size: 12px; }
}

/* ---- STATS - FIXED TO BOTTOM ---- */
.globe-stats-fixed {
    position: absolute;
    top: 20px;
    right: 60px;
    z-index: 25;
    display: flex;
    gap: 10px;
}

.globe-stats-fixed .globe-stat-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px;
    background: #f9f8f6;
    border: 1px solid rgba(16,57,70,0.08);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.globe-stats-fixed .globe-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.globe-stats-fixed .globe-stat-card b {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #103946;
}

.globe-stats-fixed .globe-stat-card span {
    font-size: 10px;
    color: rgb(16,57,70);
    white-space: nowrap;
}

@media (min-width: 768px) {
    .globe-stats-fixed .globe-stat-card { padding: 12px 18px; }
    .globe-stats-fixed .globe-stat-card b { font-size: 20px; }
    .globe-stats-fixed .globe-stat-card span { font-size: 11px; }
}

@media (max-width: 1000px) {
    #globeMount {
        top: unset;
        bottom: 0;
    }
    #videoCard {
        top: 0;
        bottom: unset;
    }
}
@media (max-width: 768px) {
    .globe-visual-wrap .globe-glow {
        position: static !important;
    }
    #videoCard {
        left: unset !important;
        right: 0 !important;
    }
    .globe-right {
        min-height: 500px;
    }
    .globe-visual-wrap {
        width: calc(100% - 280px);
    }
    #globeMount {
        right: 0 !important;
        left: unset !important;
    }

    .globe-left {
        max-height: none;      
        min-height: unset !important;
        overflow: visible;     /* stop clipping */
    }
    .globe-locations {
        overflow-y: visible;   /* no scrollbar */
        flex: none;            /* don't force grow */
    }

}
@media (max-width: 480px) {
    .globe-stats-fixed .globe-stat-card { padding: 8px; }
    .globe-stats-fixed .globe-stat-card b { font-size: 16px; }
    .globe-stats-fixed .globe-stat-card span { font-size: 9px; }
}

/* ---- GLOBE VISUAL ---- */
.globe-visual-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-visual-wrap .globe-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16,57,70,0.06), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
}

#globeCanvas {
    position: relative;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    cursor: grab;
    transition: filter 0.3s ease;
}

#globeCanvas:active {
    cursor: grabbing;
}

.globe-office-card-inner {
    overflow: hidden;
    background: rgba(17,57,70,0.85);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.globe-office-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.globe-office-card-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.35);
}

.globe-office-card-close {
    border: none;
    background: none;
    font-size: 16px;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.globe-office-card-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.globe-office-card-body {
    padding: 14px 16px 18px;
}

.globe-office-card-body .office-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.3);
}

.globe-office-card-body h3 {
    margin-top: 8px;
    font-size: 22px;
    font-weight: 900;
    color: #e6a776;
}

.globe-office-card-body .office-region {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.35);
}

.globe-office-card-body .office-desc {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
}

.globe-office-card-body .office-divider {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.globe-office-card-body .office-addr-label,
.globe-office-card-body .office-contact-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.25);
}

.globe-office-card-body .office-address {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.5;
    color: rgba(255,255,255,0.5);
}

.globe-office-card-body .office-phone {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.globe-office-card-body .office-glow-line {
    margin-top: 14px;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, #e6a776, rgba(230,167,118,0.4), transparent);
    box-shadow: 0 0 8px rgba(230,167,118,0.3);
}

/* ---- MOBILE BADGE ---- */
.globe-mobile-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    border-radius: 50px;
    border: 1px solid rgba(16,57,70,0.08);
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 16px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: rgba(16,57,70,0.45);
    pointer-events: none;
}

/* ---- VIDEO CARD PLAYER ---- */
.video-card-player {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #0a1a24;
}

.video-card-player video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(230,167,118,0.85);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card-player:hover .video-card-play-btn {
    opacity: 1;
    pointer-events: auto;
}

.video-card-play-btn:not(.paused) {
    opacity: 1;
    pointer-events: auto;
}

.video-card-play-btn.paused {
    opacity: 0;
    pointer-events: none;
}

.video-card-player:hover .video-card-play-btn.paused {
    opacity: 1;
    pointer-events: auto;
}

.video-card-play-btn:hover {
    background: #e6a776;
    transform: translate(-50%, -50%) scale(1.08);
}

.video-card-play-btn svg {
    width: 18px;
    height: 18px;
    margin-left: 3px;
    color: #103946;
}

.video-card-play-btn.paused svg {
    margin-left: 0;
}

.video-card-fullscreen-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 6;
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.7);
    opacity: 0;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.video-card-player:hover .video-card-fullscreen-btn {
    opacity: 1;
}

.video-card-fullscreen-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.video-card-fullscreen-btn svg {
    width: 14px;
    height: 14px;
}

/* ---- GLOBE SEQUENCE ANIMATIONS ---- */
.global-network-sequence .gFlobe-sequence-visual {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22,1,0.36,1), visibility 0s linear 0.9s;
}

.global-network-sequence.globe-sequence-globe-visible .globe-sequence-visual {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22,1,0.36,1), visibility 0s;
}

.global-network-sequence .globe-sequence-buttons {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1), visibility 0s linear 0.6s;
}

.global-network-sequence.globe-sequence-buttons-visible .globe-sequence-buttons {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1), visibility 0s;
}
#globeMount {
    top: 0;right: 0;
}

@media (prefers-reduced-motion: reduce) {
    .global-network-sequence .globe-sequence-visual,
    .global-network-sequence .globe-sequence-buttons {
        transition: none;
        transform: none;
    }
}

/* ---- FULLSCREEN VIDEO CARD ---- */
#videoCard.fullscreen {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 99999 !important;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translate(-50%, -50%) !important;
}

#videoCard.fullscreen .globe-office-card-inner {
    border-radius: 0;
}

#videoCard.fullscreen .globe-office-card-header,
#videoCard.fullscreen .globe-office-card-body {
    display: none;
}

#videoCard.fullscreen .video-card-player {
    aspect-ratio: 16/9;
}

#videoCard:fullscreen,
#videoCard:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    background: #000;
}

#videoCard:fullscreen video,
#videoCard:-webkit-full-screen video,
#videoCard.fullscreen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== VIDEO CARD VISIBILITY FIX ===== */

/* Make sure #videoCard is properly styled for show/hide */
#videoCard {
    position: absolute;
    z-index: 30;
    width: 280px;
    top: 16px;
    left: 16px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#videoCard.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: block !important;
}

@media (max-width: 1300px) {
    #videoCard {
        top: unset;
    }
}
@media (max-width: 1080px) {
    #videoCard , .globe-office-card-inner{
        width: 100% !important;
        display: flex;
    }
    #videoCard {
        bottom: 140px !important;
        left: -30%;
        z-index: 100;
    }
    #videoCardPlayer, #officeCardInfo {
        width: 50% !important;
    }
    .globe-office-card-header {
        position: absolute;
        top: 0;
        right: 0px;
        z-index: 100000;
    }
    #videoCardClose {
        color:  var(--sn-peach);
        font-size: 36px;
    }
    .globe-office-card-label {
        display: none;
    }
}

@media (max-width: 900px) {
    #videoCard {
        bottom: 140px !important;
        left: -25%;
        z-index: 100;
    }
}

/* ---- RESPONSIVE - MOBILE ---- */
@media (max-width: 767px) {

    #globeMount {
        max-width: 400px !important;
        max-height: 400px !important;
    }
    .globe-layer {
        display: none !important;
    }
}

@media (max-width: 650px) {
    .globe-loc-desc {
        padding-left: 0 !important;
    }
    #videoCard {
        bottom: -200px !important;
    }
    .globe-stats-fixed .globe-stat-card b {
        font-size: 14px;
    }
    .globe-stats-fixed {
        right: 20px !important;
    }
}

@media (max-width: 480px) {

    #globeMount {
        max-width: 240px !important;
        max-height: 240px !important;
    }

    .globe-loc-item button {
        font-size: 13px;
    }

    .globe-loc-item button img {
        width: 30px;
        height: 30px;
    }

    .globe-loc-desc {
        padding-left: 40px;
    }

    .globe-loc-desc p {
        font-size: 10px;
    }
}


/* Ensure inner sections can be shown/hidden by jQuery */
#videoCard .video-card-player,
#videoCard #officeCardInfo {
    transition: none;
}

/* Override jQuery hide() which sets display:none */
#videoCard.visible .video-card-player,
#videoCard.visible #officeCardInfo {
    display: block !important;
}

/* Make sure office info is always visible when card is visible */
#videoCard.visible #officeCardInfo {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}



@media (max-width: 767px) {
    .globe-section {
        height: auto !important;        
        overflow: visible;    
        flex-direction: column;
        justify-content: start !important;
    }

    .globe-layout {
        height: auto;         /* was 100% — match the section */
    }

    .globe-left {
        max-height: none;     /* remove any height cap */
        overflow: visible;
    }
    .globe-right {
        position: static !important;
        height: auto !important;
    }
    #videoCard {
        top: unset !important;
        bottom: 0px !important;
    }

    .globe-locations {
        overflow-y: visible;  /* no inner scrollbar */
        flex: none;
    }
    .globe-stats-fixed {
        z-index: unset !important;
        top: unset !important;
        bottom: 25px;
    }
    .globe-locations {
        margin-top: 15px !important;
    }
}

#videoCard.no-video .video-card-player,
#videoCard.no-video .video-card-fullscreen-btn {
    display: none !important;
}

@media (max-width: 550px) {
    #globeMount {
        max-width: 300px !important;
        max-height: 300px !important;
    }
    .globe-stats-fixed {
        display: flex;
        flex-direction: column;
    }
}
