* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;

    overflow: hidden;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

#map {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;
}

/* =========================
   Loading
   ========================= */

#loading {
    position: fixed;

    top: 20px;
    left: 50%;

    transform: translateX(-50%);

    z-index: 100;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 18px;

    background: rgba(255, 255, 255, 0.95);

    border-radius: 999px;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15);

    font-size: 14px;

    transition: opacity 0.2s ease;
}

.spinner {
    width: 16px;
    height: 16px;

    border: 2px solid #ddd;
    border-top-color: #111;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================
   Markers
   ========================= */

.custom-marker {
    width: 38px;
    height: 38px;

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

    background: #111;

    border: 3px solid white;
    border-radius: 50%;

    color: white;

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

    cursor: pointer;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.custom-marker:hover {
    transform: scale(1.12);

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.4);
}

/*
 * Marker met meerdere personen
 */
.custom-marker.multiple {
    width: 44px;
    height: 44px;

    font-size: 14px;
}

/* =========================
   Popup
   ========================= */

.mapboxgl-popup {
    max-width: 340px !important;
}

.mapboxgl-popup-content {
    padding: 0;

    overflow: hidden;

    border-radius: 16px;

    box-shadow:
        0 8px 35px rgba(0, 0, 0, 0.2);
}

/*
 * Close button
 */

.mapboxgl-popup-close-button {
    position: absolute !important;

    top: 0 !important;
    right: 0 !important;

    width: 40px !important;
    height: 40px !important;

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

    font-size: 28px !important;
    line-height: 40px !important;

    text-align: center !important;

    color: #111 !important;

    background: transparent !important;

    border: 0 !important;

    cursor: pointer !important;

    z-index: 5;
}

/* =========================
   Person card
   ========================= */

.person-card {
    min-width: 250px;

    padding: 18px;
}

.person-name {
    margin: 0 35px 4px 0;

    font-size: 20px;
    font-weight: 700;

    color: #111;
}

.person-city {
    margin-bottom: 16px;

    font-size: 14px;

    color: #777;
}

/* =========================
   People list
   ========================= */

.people-list {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.person {
    padding-bottom: 12px;

    border-bottom: 1px solid #eee;
}

.person:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.person-name-small {
    margin-bottom: 5px;

    font-size: 15px;
    font-weight: 600;

    color: #111;
}

.person-socials {
    display: flex;

    gap: 8px;
}

.person-socials a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 32px;

    padding: 5px 10px;

    border-radius: 8px;

    color: white;

    text-decoration: none;

    font-size: 12px;
    font-weight: 600;

    transition: opacity 0.15s ease;
}

.person-socials a:hover {
    opacity: 0.8;
}

.tiktok {
    background: #111;
}

.instagram {
    background: linear-gradient(45deg,
            #f58529,
            #dd2a7b,
            #8134af,
            #515bd4);
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 600px) {

    #loading {
        top: 12px;

        padding: 10px 15px;

        font-size: 13px;
    }

    .mapboxgl-popup {
        max-width: calc(100vw - 30px) !important;
    }

    .person-card {
        width: calc(100vw - 70px);

        min-width: 0;

        padding: 16px;
    }

    .person-name {
        font-size: 18px;
    }

    .custom-marker {
        width: 36px;
        height: 36px;
    }

    .custom-marker.multiple {
        width: 42px;
        height: 42px;
    }
}
