html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* =========================
   MAIN LAYOUT
========================= */

#wpm-wrap {
    display: flex;
    width: 100%;
    gap: 20px;
    align-items: stretch;
}

/* =========================
   SIDEBAR
========================= */

#wpm-sidebar {
    width: 320px;
    min-width: 320px;
    max-height: 750px;

    overflow-y: auto;

    background: #111;
    border-radius: 20px;

    padding: 15px;
    box-sizing: border-box;
}

/* Scrollbar */

#wpm-sidebar::-webkit-scrollbar {
    width: 8px;
}

#wpm-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.2);
    border-radius: 999px;
}

/* =========================
   SIDEBAR ITEM
========================= */

.wpm-side-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px;

    margin-bottom: 10px;

    border-radius: 12px;

    cursor: pointer;

    transition: .2s ease;

    background: rgba(255,255,255,.03);
}

.wpm-side-item:hover {
    background: rgba(255,255,255,.08);
}

.wpm-side-item.active {
    background: rgba(255,255,255,.15);
}

.wpm-side-thumb {
    width: 58px;
    height: 58px;

    border-radius: 50%;

    object-fit: cover;

    flex-shrink: 0;

    border: 2px solid rgba(255,255,255,.2);
}

.wpm-side-name {
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

/* =========================
   GLOBE
========================= */

#world-globe {
    flex: 1;
    height: 750px;

    background: #000;

    border-radius: 20px;

    overflow: hidden;

    position: relative;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    #wpm-wrap {
        flex-direction: column;
        gap: 15px;
    }

    #wpm-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 280px;
        border-radius: 12px;
    }

    #world-globe {
        height: 100vh;
        border-radius: 12px;
    }
}

/* =========================
   MARKERS
========================= */

.wpm-marker {
    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;

    cursor: pointer;

    z-index: 9999;

    pointer-events: auto;

    will-change: transform;
}

.wpm-pin-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wpm-thumb {
    width: 20px;
    height: 20px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid rgba(255,255,255,.9);

    box-shadow: 0 0 18px rgba(255,255,255,.25);

    pointer-events: none !important;

    user-select: none;
    -webkit-user-drag: none;

    transition: .25s ease;
}

.wpm-pin {
    font-size: 10px;

    pointer-events: auto;
}

/* =========================
   LABEL
========================= */

.wpm-label {
    margin-top: 6px;

    padding: 6px 12px;

    color: #fff;
    font-size: 13px;

    text-decoration: none;

    background: rgba(0,0,0,.65);

    border-radius: 999px;

    opacity: 0;

    transform: translateY(-4px);

    transition: .2s ease;

    pointer-events: auto;
}

.wpm-marker.active .wpm-label {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   EXPANDED MARKER
========================= */

.wpm-marker.expanded .wpm-thumb {
    width: 200px;
    height: 200px;

    border: 3px solid #fff;

    box-shadow: 0 0 25px rgba(255,255,255,.35);
}

/* =========================
   CANVAS FIX
========================= */

#world-globe canvas {
    pointer-events: auto !important;
}