/* =========================================
   PENROSE PARTICLES — BLUE PARTICLE MAP
   ========================================= */

* {
    box-sizing: border-box;
}

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

body {
    overflow: hidden;
    background: #020713;
    color: white;

    font-family:
        "Helvetica Neue",
        Arial,
        sans-serif;
}


/* =========================================
   MAP
   ========================================= */

.map-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;

    background:
        radial-gradient(circle at 50% 50%,
            #071a36 0%,
            #020713 60%,
            #01040a 100%);
}

#map {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 1;

    background: #020713;
}


/* =========================================
   DARK BLUE MAP
   ========================================= */

/* Dark blue ocean/background */
#map {
    background: #031426;
}

/* Lighter blue land/map details */
.leaflet-tile-pane {
    filter:
        grayscale(1) invert(1) sepia(1) hue-rotate(165deg) saturate(1.8) brightness(0.85) contrast(1.3);
}

/* =========================================
   HEADER
   ========================================= */

.map-header {
    position: absolute;

    top: 30px;
    left: 34px;

    z-index: 1000;

    padding: 16px 20px;

    background:
        rgba(3, 12, 28, 0.68);

    border:
        1px solid rgba(64, 160, 255, 0.20);

    border-radius: 12px;

    backdrop-filter: blur(14px);

    box-shadow:
        0 0 30px rgba(0, 100, 255, 0.08);

    pointer-events: none;
}

.map-header h1 {
    margin: 0;

    color: #eaf6ff;

    font-size: 25px;
    font-weight: 400;

    letter-spacing: 0.06em;

    text-shadow:
        0 0 15px rgba(80, 180, 255, 0.35);
}

.map-header p {
    margin: 8px 0 0;

    color:
        rgba(125, 195, 255, 0.65);

    font-size: 10px;

    letter-spacing: 0.22em;

    text-transform: uppercase;
}


/* =========================================
   STATS
   ========================================= */

.stats {
    position: absolute;

    top: 30px;
    right: 34px;

    z-index: 1000;

    display: flex;
    gap: 10px;

    pointer-events: none;
}

.stat {
    display: flex;
    flex-direction: column;

    min-width: 110px;

    padding: 14px 17px;

    background:
        rgba(3, 12, 28, 0.68);

    border:
        1px solid rgba(64, 160, 255, 0.20);

    border-radius: 12px;

    backdrop-filter: blur(14px);

    box-shadow:
        0 0 30px rgba(0, 100, 255, 0.08);
}

.stat-number {
    color: #dff4ff;

    font-size: 22px;
    font-weight: 500;

    text-shadow:
        0 0 12px rgba(65, 170, 255, 0.5);
}

.stat-label {
    margin-top: 4px;

    color:
        rgba(125, 195, 255, 0.55);

    font-size: 9px;

    letter-spacing: 0.15em;

    text-transform: uppercase;
}


/* =========================================
   PARTICLE MARKERS
   ========================================= */

.leaflet-interactive {
    filter:
        drop-shadow(0 0 3px rgba(40, 150, 255, 0.9)) drop-shadow(0 0 8px rgba(0, 110, 255, 0.55));

    transition:
        fill-opacity 0.2s ease,
        stroke-width 0.2s ease;
}


/* =========================================
   POPUPS
   ========================================= */

.leaflet-popup-content-wrapper {
    background:
        rgba(2, 10, 25, 0.94);

    color: #ffffff;

    border:
        1px solid rgba(75, 170, 255, 0.3);

    border-radius: 10px;

    box-shadow:
        0 0 35px rgba(0, 110, 255, 0.18);

    backdrop-filter: blur(15px);
}

.leaflet-popup-tip {
    background:
        rgba(2, 10, 25, 0.94);
}

.leaflet-popup-content {
    margin: 15px 18px;
}

.popup-city {
    color: #e8f6ff;

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

    letter-spacing: 0.03em;
}

.popup-region {
    margin-top: 4px;

    color:
        rgba(105, 185, 255, 0.65);

    font-size: 10px;

    letter-spacing: 0.05em;
}

.popup-users {
    margin-top: 11px;

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 11px;
}

.popup-users strong {
    margin-right: 4px;

    color: #6bc4ff;

    font-size: 19px;

    text-shadow:
        0 0 10px rgba(60, 170, 255, 0.8);
}


/* =========================================
   LEAFLET CONTROLS
   ========================================= */

.leaflet-control-zoom {
    border: none !important;

    box-shadow:
        0 0 25px rgba(0, 100, 255, 0.12) !important;
}

.leaflet-control-zoom a {
    background:
        rgba(2, 10, 25, 0.92) !important;

    color:
        #76caff !important;

    border-color:
        rgba(80, 170, 255, 0.15) !important;
}

.leaflet-control-zoom a:hover {
    background:
        rgba(12, 45, 80, 0.95) !important;

    color: white !important;
}

.leaflet-control-attribution {
    background:
        rgba(1, 5, 12, 0.7) !important;

    color:
        rgba(100, 160, 210, 0.45) !important;

    font-size: 9px !important;
}

.leaflet-control-attribution a {
    color:
        rgba(100, 185, 255, 0.6) !important;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 700px) {

    .map-header {
        top: 16px;
        left: 16px;

        padding: 12px 15px;
    }

    .map-header h1 {
        font-size: 19px;
    }

    .stats {
        top: auto;

        right: 16px;
        bottom: 16px;
        left: 16px;
    }

    .stat {
        flex: 1;
        min-width: 0;
    }
}