:root {
    /* Backgrounds */
    --globe-bg-color: rgb(20, 22, 36);
    /* Globe Colour */
    --globe-fill: rgb(6, 6, 9);
    /* Country Inactive */
    --globe-country-inactive-fill: rgba(46, 72, 96, 0.4);
    --globe-country-inactive-stroke: rgb(14, 17, 25);
    /* Country Active */
    --globe-country-active-fill: rgba(52, 81, 108, 0.97);
    --globe-country-active-stroke: rgb(14, 17, 25);
    /* Pins - Polygons */
    --globe-pin-default: rgb(254, 107, 91);
    --globe-pin-active: rgb(255, 255, 255);
    /* Pins - Custom SVG's */
    --globe-pin-svg-default: rgb(254, 107, 91);
    --globe-pin-svg-active: rgb(255, 255, 255);
    /* Graticules */
    --globe-graticule-color: rgba(36, 39, 65, 0.8);
    --globe-graticule-color: rgba(52, 81, 108, 0.3);
    /* State Lines */
    --globe-state-line-color: rgba(14, 17, 25, 0.4);
    /* Major Roads */
    --globe-major-roads-color: rgba(36, 56, 87, 1);
    /* Water */
    --globe-water-color: rgb(45, 77, 99);
}

.wp-globe-viewer-wrapper {
    position: relative;
    display: block;
    flex-direction: row;
    width: 100%;
    height: 85vh;
    min-height: 500px;
    overflow: clip;
    background: var(--globe-bg-color);
}
@media (max-width: 767px) {
    .wp-globe-viewer-wrapper {
        min-height: 350px;
        max-height: 700px;
    }
}

#globe-drag-blocker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9;
    display: none;
    cursor: pointer;
}
#globe-drag-blocker.active {
    display: block;
}

#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10 !important;
    width: 100%;
    height: 100%;
    background: var(--globe-bg-color);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    opacity: 1;
    visibility: visible;
}
#loading-text {
    color: #fff;
    font-size: 1em;
    font-weight: 300;
    letter-spacing: 0px;
}
#globe-container {
    width: 100%;
    height: 100%;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.globe-main {
    width: 90dvw;
    margin-left: auto;
    margin-right: 0px;
}
@media (max-width: 1400px) {
    .globe-main {
        padding-left: 0px;
        width: 100dvw;
    }
}
.globe-grad {
    --grad-clr-one: var(--globe-bg-color);
    --grad-clr-two: transparent;
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
}
.globe-grad__left {
    left: 0;
    top: 0;
    bottom: 0;
    width: clamp(300px, 40vw, 500px);
    height: 100%;
    background: linear-gradient(90deg, var(--grad-clr-one), var(--grad-clr-two));
}
.globe-grad__right {
    right: 0;
    top: 0;
    bottom: 0;
    width: clamp(250px, 10vw, 400px);
    height: 100%;
    background: linear-gradient(-90deg, var(--grad-clr-one), var(--grad-clr-two));
    display: none;
}
.globe-grad__top {
    left: 0;
    top: 0;
    right: 0;
    width: 100%;
    height: clamp(150px, 10vh, 250px);
    background: linear-gradient(180deg, var(--grad-clr-one), var(--grad-clr-two));
}
.globe-grad__bottom {
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: clamp(150px, 10vh, 250px);
    background: linear-gradient(0deg, var(--grad-clr-one), var(--grad-clr-two));
    /* display: none; */
}

.wp-globe-viewer-wrapper.loaded #loading-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.wp-globe-viewer-wrapper.loaded #globe-container {
    opacity: 1;
}
/* Sidebar Toggle */
/* #toggle-location-list {
    padding-block: 1.35rem;
    padding-inline: 2rem;
    margin-bottom: 4rem;
    font-size: var(--cf-text-s);
    font-weight: 400;
    color: var(--cf-white);
    background: var(--cf-primary);
    border: 2px solid var(--cf-accent);
    border-radius: 50vw;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
#toggle-location-list .icon {
    display: inline-flex;
    align-items: center;
} */

/* Sidebar Toggle */
#toggle-location-list {
    padding-block: 1.35rem;
    padding-inline: 0rem;
    margin-bottom: 4rem;
    font-size: var(--cf-text-s);
    font-weight: 400;
    color: var(--cf-white);
    background: transparent;
    border-top: 1px solid var(--cf-tertiary-01-40);
    border-bottom: 1px solid var(--cf-tertiary-01-40);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
#toggle-location-list .icon {
    display: inline-flex;
    align-items: center;
}
#toggle-location-list .icon path {
    stroke: var(--cf-accent) !important;
}

/* Sidebar Styling */
.globe-sidebar {
    position: absolute;
    left: var(--bbg-stage-padding);
    top: var(--bbg-stage-padding);
    z-index: 15;
    width: 300px;
    display: flex;
    flex-direction: column;
    padding: 0rem;
}
@media (max-width: 767px) {
    .globe-sidebar {
        left: var(--bbg-stage-padding);
        right: var(--bbg-stage-padding);
        width: auto;
    }
}
#globe-location-list {
    max-height: 700px;
    overflow-y: auto;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 1;
    scrollbar-color: var(--cf-white-20) var(--cf-primary);
    scrollbar-width: 15px;
}
#globe-location-list.hidden {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}
.globe-sidebar .list-header {
    padding: 15px;
    display: none;
}
.globe-sidebar h3 {
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--cf-tertiary-01-40);
}
.globe-sidebar ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 3rem;
}
.globe-sidebar li {
    padding-inline: 0rem;
    padding-block: 0.15rem;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}
.globe-sidebar li:hover {
    color: #30a5d2;
}
.globe-sidebar li.active {
    color: #30a5d2;
}

/* Globe Container */
.globe-main {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#globe-container:active {
    cursor: grabbing;
}

/* Info Panel Styling */
.info-panel {
    position: absolute;
    top: calc(var(--bbg-stage-padding) + 90px);
    left: var(--bbg-stage-padding);
    z-index: 2;
    width: 300px;
    max-width: 90%;
    background: rgb(255, 255, 255);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    color: #141624;
    border-radius: 0rem;
    box-shadow: 0 4px 20px rgba(18, 18, 25, 0.75);
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 100;
    overflow: clip;
    padding-bottom: 2rem;
    cursor: move;
    user-select: none;
}
@media (max-width: 767px) {
    .info-panel {
        left: var(--bbg-stage-padding);
        right: var(--bbg-stage-padding);
        width: auto;
        max-width: 75%;
        margin-inline: auto;
    }
}
.info-panel.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.info-panel .panel-content img {
    aspect-ratio: 16/10;
    object-fit: cover;
    margin-bottom: 12px;
    pointer-events: none;
}
.info-panel .panel-content h4 {
    margin: 0;
    margin-top: 1.5rem;
    margin-bottom: 0.1rem;
    font-size: 1.3em;
    font-weight: 500;
    color: #133358;
    padding-inline: 2rem;
}
.info-panel .panel-content p {
    margin: 0 0 15px 0;
    font-size: 0.75em;
    color: #133358;
    line-height: 1.5;
    padding-inline: 2rem;
    opacity: 0.8;
}
.info-panel .panel-content ul {
    padding-inline: 0px;
    margin-top: 5px;
    margin-bottom: 10px;
}
.info-panel .panel-content li {
    margin-left: 4rem;
    font-size: 0.75em;
    color: #133358;
    line-height: 1.5;
    padding-right: 2rem;
    opacity: 0.8;
    list-style: outside;
}
.info-panel .panel-content a {
    display: grid;
    align-items: center;
    justify-content: center;
    color: #007fb0;
    text-decoration: none;
    width: 40px;
    height: 40px;
    border-radius: 50vw;
    border: 1px solid #007fb0;
    margin-left: auto;
    margin-right: 2rem;
}
.info-panel .panel-content a:hover {
    text-decoration: underline;
}
.info-panel .panel-close {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s;
    background: rgba(19, 21, 34, 0.6);
    display: grid;
    align-items: center;
    justify-content: center;
}
.info-panel .panel-close:hover {
    background: rgba(0, 0, 0, 1);
}
@media (max-width: 767px) {
    .info-panel .panel-content h4 {
        margin-bottom: 0.3rem;
        font-size: 1.5em;
    }
    .info-panel .panel-content p {
        font-size: 1em;
        line-height: 1.5;
    }
    .info-panel .panel-content li {
        font-size: 1em;
        line-height: 1.5;
    }
}
