:root {
    --background: #10141c;
    --panel: #050505;
    --panel-secondary: #11151d;
    --border: #353b45;
    --text: #f4f4f4;
    --muted: #aaaeb5;
    --worsening: #ed6636;
    --improving: #43c49a;
    --unchanged: #6f9fd7;
    --developing: #b9bbc0;
    --accent: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--background);
    color: var(--text);
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

#application {
    display: grid;
    grid-template-columns: 410px minmax(0, 1fr);
    width: 100%;
    height: 100%;
}

#sidebar {
    position: relative;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: var(--panel);
    border-right: 1px solid #20242a;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.32);
}

.brand-header {
    padding: 22px 20px 20px;
    border-bottom: 1px solid var(--border);
}

.brand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-mark {
    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #d7d7d7;
    font-size: 11px;
    letter-spacing: 1.2px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #e54a3c;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(229, 74, 60, 0.8);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 74, 60, 0.75);
    }

    70% {
        box-shadow: 0 0 0 9px rgba(229, 74, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 74, 60, 0);
    }
}

.brand-header h1 {
    margin: 25px 0 7px;
    font-family: Georgia, serif;
    font-size: 25px;
    font-weight: 500;
}

.subtitle {
    margin: 0;
    color: #9d9d9d;
    font-family: Georgia, serif;
    font-size: 13px;
    font-style: italic;
    line-height: 1.5;
}

.control-section {
    padding: 17px 20px;
    border-bottom: 1px solid #262a30;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.control-section h2,
.control-section h3 {
    margin: 0;
    color: #bebebe;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.2px;
}

.control-section h2 {
    color: #f0f0f0;
    font-size: 13px;
}

.text-button {
    padding: 4px;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 12px;
    letter-spacing: 1px;
}

.text-button:hover {
    color: #fff;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 0 15px;
    height: 44px;
    border: 1px solid #d5d5d5;
    border-radius: 24px;
}

.search-icon {
    color: #d6d6d6;
    font-size: 25px;
    line-height: 1;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #999da3;
}

.filter-list {
    display: grid;
    gap: 7px;
    margin-top: 13px;
}

.status-filter-grid {
    grid-template-columns: 1fr 1fr;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c8c8c8;
    font-size: 13px;
    cursor: pointer;
}

.filter-option input {
    appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    border: 1px solid #a0a0a0;
    border-radius: 2px;
    background: transparent;
}

.filter-option input:checked {
    background:
        linear-gradient(
            135deg,
            transparent 0 40%,
            #fff 40% 58%,
            transparent 58%
        ),
        linear-gradient(
            45deg,
            transparent 0 55%,
            #fff 55% 70%,
            transparent 70%
        );
}

.filter-color-dot {
    width: 8px;
    height: 8px;
    margin-left: -2px;
    border-radius: 50%;
}

.conflict-list-section {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #444 #090909;
}

.region-group {
    margin-top: 21px;
}

.region-title {
    margin-bottom: 8px;
    color: #989898;
    font-size: 12px;
    letter-spacing: 1.1px;
}

.conflict-list-item {
    display: block;
    width: 100%;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #c9c9c9;
    text-align: left;
    font-size: 13px;
    line-height: 1.35;
}

.conflict-list-item:hover,
.conflict-list-item.active {
    color: var(--worsening);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sidebar-footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    border-top: 1px solid #292d33;
    background: #080808;
    color: #777;
    font-size: 9px;
    letter-spacing: 0.7px;
}

#map-area {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    background: var(--background);
}

.leaflet-tile-pane {
    filter: none;
}

.leaflet-tile {
    image-rendering: auto;
}

.leaflet-control-attribution {
    background: rgba(8, 10, 14, 0.78) !important;
    color: #898f98 !important;
    font-size: 9px !important;
}

.leaflet-control-attribution a {
    color: #b5bcc7 !important;
}

.leaflet-control-zoom {
    border: 0 !important;
    box-shadow: none !important;
}

.leaflet-control-zoom a {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 43px !important;
    height: 43px !important;
    margin: 7px 8px !important;
    border: 1px solid #d3d3d3 !important;
    border-radius: 50% !important;
    background: rgba(18, 22, 29, 0.95) !important;
    color: #fff !important;
    font-size: 23px !important;
}

#top-bar {
    position: absolute;
    z-index: 700;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    padding: 0 23px;
    pointer-events: none;
    background:
        linear-gradient(
            to bottom,
            rgba(14, 17, 23, 0.94),
            rgba(14, 17, 23, 0)
        );
}

.top-title {
    color: #c8cbd0;
    font-size: 11px;
    letter-spacing: 1.6px;
}

.top-actions {
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.top-actions button {
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 3px;
    background: rgba(12, 15, 20, 0.72);
    color: #eee;
    font-size: 11px;
    letter-spacing: 1px;
}

.top-actions button:hover {
    background: #fff;
    color: #111;
}

.conflict-marker-wrapper {
    background: transparent;
    border: 0;
}

.conflict-marker {
    position: relative;
    width: 25px;
    height: 25px;
    border: 2px solid #111820;
    border-radius: 50%;
    box-shadow:
        0 2px 9px rgba(0, 0, 0, 0.75),
        inset 0 0 0 1px rgba(255,255,255,0.15);
    transition:
        transform 150ms ease,
        box-shadow 150ms ease;
}

.conflict-marker:hover {
    transform: scale(1.25);
    box-shadow:
        0 0 0 6px rgba(255,255,255,0.10),
        0 3px 12px rgba(0,0,0,0.8);
}

.conflict-marker.worsening {
    background: var(--worsening);
}

.conflict-marker.improving {
    background: var(--improving);
}

.conflict-marker.unchanged {
    background: var(--unchanged);
}

.conflict-marker.developing {
    background: var(--developing);
}

.conflict-marker.critical::after {
    content: "";
    position: absolute;
    inset: -9px;
    border: 2px solid currentColor;
    border-radius: 50%;
    animation: markerPulse 2.2s infinite;
}

@keyframes markerPulse {
    0% {
        transform: scale(0.65);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.leaflet-popup-content-wrapper {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 0 !important;
    background: #f2efed !important;
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.65) !important;
}

.leaflet-popup-content {
    width: 385px !important;
    margin: 0 !important;
}

.leaflet-popup-tip {
    display: none;
}

.leaflet-popup-close-button {
    z-index: 20;
    top: 9px !important;
    right: 9px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 39px !important;
    height: 39px !important;
    padding: 0 !important;
    border: 2px solid #fff !important;
    border-radius: 50%;
    background: #050505 !important;
    color: #fff !important;
    font-size: 30px !important;
    line-height: 1 !important;
}

.conflict-card {
    color: #171717;
}

.card-image {
    position: relative;
    width: 100%;
    height: 205px;
    overflow: hidden;
    background: #272b31;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.42),
            transparent 47%
        );
}

.card-body {
    padding: 20px 22px 22px;
}

.card-body h2 {
    margin: 0 0 14px;
    font-family: Georgia, serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.card-data-row {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 15px;
    padding: 11px 0;
    border-top: 1px solid #d5d0cd;
    font-size: 12px;
}

.card-label {
    font-weight: 700;
    letter-spacing: 0.8px;
}

.card-value {
    text-align: right;
    line-height: 1.5;
}

.status-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-pill.worsening {
    background: var(--worsening);
}

.status-pill.improving {
    background: var(--improving);
}

.status-pill.unchanged {
    background: #557aa5;
}

.status-pill.developing {
    background: #7b7d83;
}

.card-summary {
    margin: 17px 0;
    font-size: 13px;
    line-height: 1.45;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    color: #666;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-actions {
    display: flex;
    gap: 9px;
}

.card-button {
    padding: 11px 17px;
    border: 1px solid #171717;
    border-radius: 24px;
    background: transparent;
    color: #171717;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.card-button.primary {
    background: #171717;
    color: #fff;
}

.card-button:hover {
    opacity: 0.72;
}

#map-legend {
    position: absolute;
    z-index: 600;
    right: 20px;
    bottom: 25px;
    width: 145px;
    padding: 13px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(8, 10, 14, 0.84);
    backdrop-filter: blur(8px);
    color: #d8d8d8;
    font-size: 11px;
}

.legend-title {
    margin-bottom: 9px;
    color: #fff;
    letter-spacing: 1px;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.worsening {
    background: var(--worsening);
}

.legend-dot.improving {
    background: var(--improving);
}

.legend-dot.unchanged {
    background: var(--unchanged);
}

.legend-dot.developing {
    background: var(--developing);
}

.information-panel {
    position: absolute;
    z-index: 900;
    top: 80px;
    right: 25px;
    width: min(430px, calc(100% - 50px));
    padding: 28px;
    border: 1px solid #4b5058;
    background: rgba(4, 5, 7, 0.96);
    box-shadow: 0 18px 50px rgba(0,0,0,0.7);
}

.information-panel.hidden {
    display: none;
}

.information-panel h2 {
    margin: 0 0 18px;
    font-family: Georgia, serif;
    font-size: 25px;
}

.information-panel p {
    color: #c9c9c9;
    font-size: 14px;
    line-height: 1.6;
}

.panel-close {
    position: absolute;
    top: 9px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 29px;
}

@media (max-width: 920px) {
    #application {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .leaflet-popup-content {
        width: 320px !important;
    }

    .card-image {
        height: 165px;
    }
}

@media (max-width: 700px) {
    body {
        overflow: auto;
    }

    #application {
        display: block;
        height: auto;
        min-height: 100%;
    }

    #sidebar {
        width: 100%;
        height: 46vh;
        border-right: 0;
        border-bottom: 1px solid #333;
    }

    #map-area {
        height: 54vh;
    }

    #map-legend {
        display: none;
    }

    .leaflet-popup-content {
        width: 280px !important;
    }

    .card-image {
        height: 135px;
    }

    .card-data-row {
        grid-template-columns: 90px 1fr;
    }
}


/* ============================================================
   GLOBAL CONFLICT — LA911 ORIGINAL INTELLIGENCE THEME
   Midnight navy, electric blue, cyan, amber and violet
   ============================================================ */

:root {
    --background: #07111f;
    --panel: #0d1b2a;
    --panel-secondary: #13293d;
    --border: #29475f;
    --text: #f3f7fb;
    --muted: #9fb3c8;

    --worsening: #ffb000;
    --improving: #00d4a6;
    --unchanged: #4da3ff;
    --developing: #d76dff;

    --accent: #73e0ff;
    --accent-dark: #16799b;
    --danger: #ff5c5c;
}

html,
body {
    background:
        radial-gradient(
            circle at 70% 20%,
            rgba(29, 88, 125, 0.20),
            transparent 45%
        ),
        #07111f;
}

#sidebar {
    background:
        linear-gradient(
            180deg,
            #10263a 0%,
            #0b1a29 45%,
            #07121e 100%
        );
    border-right: 1px solid #31546f;
    box-shadow:
        10px 0 35px rgba(0, 0, 0, 0.42),
        inset -1px 0 rgba(115, 224, 255, 0.08);
}

.brand-header {
    background:
        linear-gradient(
            135deg,
            rgba(20, 57, 82, 0.96),
            rgba(8, 29, 46, 0.96)
        );
    border-bottom: 1px solid #31546f;
}

.brand-mark {
    color: #73e0ff;
    text-shadow:
        0 0 14px rgba(115, 224, 255, 0.32);
}

.brand-header h1 {
    color: #ffffff;
}

.subtitle {
    color: #9fc5d9;
}

.live-indicator {
    color: #d7edf7;
}

.live-dot {
    background: #00e5a8;
    box-shadow: 0 0 9px rgba(0, 229, 168, 0.8);
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 229, 168, 0.75);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 229, 168, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 168, 0);
    }
}

.control-section {
    border-bottom: 1px solid rgba(75, 118, 148, 0.40);
}

.control-section h2,
.control-section h3,
.region-title {
    color: #81cce8;
}

.search-box {
    border-color: #4f7f9e;
    background: rgba(4, 17, 29, 0.55);
    box-shadow:
        inset 0 0 16px rgba(0, 0, 0, 0.22);
}

.search-box:focus-within {
    border-color: #73e0ff;
    box-shadow:
        0 0 0 2px rgba(115, 224, 255, 0.13),
        inset 0 0 16px rgba(0, 0, 0, 0.22);
}

.search-icon {
    color: #73e0ff;
}

.search-box input {
    color: #f5fbff;
}

.search-box input::placeholder {
    color: #7896aa;
}

.filter-option {
    color: #d2e2eb;
}

.filter-option input {
    border-color: #6b91aa;
    background: rgba(5, 20, 33, 0.75);
}

.filter-option input:checked {
    border-color: #73e0ff;
    background-color: #16799b;
}

.conflict-list-item {
    color: #cadce6;
}

.conflict-list-item:hover,
.conflict-list-item.active {
    color: #73e0ff;
    text-decoration-color: #73e0ff;
}

.sidebar-footer {
    background: #06101a;
    border-top-color: #29475f;
    color: #66869a;
}

#map-area,
#map {
    background:
        radial-gradient(
            circle at center,
            #102337 0%,
            #07111f 62%
        );
}

#top-bar {
    background:
        linear-gradient(
            to bottom,
            rgba(5, 18, 31, 0.98),
            rgba(5, 18, 31, 0.68) 62%,
            transparent
        );
}

.top-title {
    color: #73e0ff;
    text-shadow:
        0 0 10px rgba(115, 224, 255, 0.25);
}

.top-actions button {
    border-color: #4b7793;
    background: rgba(11, 35, 54, 0.84);
    color: #cde8f5;
}

.top-actions button:hover {
    border-color: #73e0ff;
    background: #16799b;
    color: #ffffff;
}

.leaflet-control-zoom a {
    border-color: #5d8ca8 !important;
    background:
        linear-gradient(
            145deg,
            rgba(17, 49, 70, 0.98),
            rgba(6, 23, 37, 0.98)
        ) !important;
    color: #73e0ff !important;
    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.42) !important;
}

.leaflet-control-zoom a:hover {
    background: #16799b !important;
    color: #ffffff !important;
}

.conflict-marker {
    border-color: #06111c;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.85),
        inset 0 0 0 2px rgba(255, 255, 255, 0.20);
}

.conflict-marker:hover {
    box-shadow:
        0 0 0 7px rgba(115, 224, 255, 0.18),
        0 3px 15px rgba(0, 0, 0, 0.90);
}

.conflict-marker.worsening {
    background: #ffb000;
}

.conflict-marker.improving {
    background: #00d4a6;
}

.conflict-marker.unchanged {
    background: #4da3ff;
}

.conflict-marker.developing {
    background: #d76dff;
}

#map-legend {
    border: 1px solid #436c86;
    background:
        linear-gradient(
            145deg,
            rgba(14, 42, 62, 0.94),
            rgba(5, 19, 31, 0.94)
        );
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.40);
    color: #d4e7f1;
}

.legend-title {
    color: #73e0ff;
}

.legend-dot.worsening {
    background: #ffb000;
}

.legend-dot.improving {
    background: #00d4a6;
}

.legend-dot.unchanged {
    background: #4da3ff;
}

.legend-dot.developing {
    background: #d76dff;
}

.leaflet-popup-content-wrapper {
    border: 1px solid #4b7793;
    background: #eaf3f7 !important;
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(115, 224, 255, 0.12) !important;
}

.conflict-card {
    color: #102433;
}

.card-body {
    background:
        linear-gradient(
            180deg,
            #f5fafc,
            #e6f0f5
        );
}

.card-body h2 {
    color: #102b3e;
}

.card-data-row {
    border-top-color: #bfd0da;
}

.card-label {
    color: #16799b;
}

.status-pill.worsening {
    background: #c78300;
    color: #ffffff;
}

.status-pill.improving {
    background: #008e73;
    color: #ffffff;
}

.status-pill.unchanged {
    background: #2679c9;
    color: #ffffff;
}

.status-pill.developing {
    background: #9144aa;
    color: #ffffff;
}

.card-button {
    border-color: #143d55;
    color: #143d55;
}

.card-button.primary {
    border-color: #16799b;
    background: #16799b;
    color: #ffffff;
}

.card-button:hover {
    border-color: #0c607e;
    background: #0c607e;
    color: #ffffff;
    opacity: 1;
}

.information-panel {
    border-color: #416d89;
    background:
        linear-gradient(
            145deg,
            rgba(16, 48, 70, 0.98),
            rgba(5, 20, 33, 0.98)
        );
}

.information-panel h2 {
    color: #73e0ff;
}

.information-panel p {
    color: #d0e2eb;
}

.leaflet-control-attribution {
    background: rgba(5, 18, 30, 0.90) !important;
    color: #7191a4 !important;
}

.leaflet-control-attribution a {
    color: #73e0ff !important;
}


/* ============================================================
   LOCAL VECTOR WORLD MAP AND HOTSPOT VISIBILITY
   ============================================================ */

#map {
    background:
        radial-gradient(
            circle at 52% 45%,
            #102f48 0%,
            #071a2b 46%,
            #04101c 100%
        );
}

.leaflet-tile-pane {
    display: none !important;
}

.leaflet-overlay-pane svg {
    overflow: visible;
}

.country-tooltip {
    padding: 6px 9px;
    border: 1px solid #5fa5c9;
    border-radius: 3px;
    background: rgba(5, 23, 36, 0.96);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.5);
    color: #d9f5ff;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.country-tooltip::before {
    display: none;
}

.conflict-marker-wrapper {
    z-index: 1000 !important;
}

.conflict-marker {
    width: 29px;
    height: 29px;
    border: 3px solid #06101a;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.72),
        0 4px 14px rgba(0, 0, 0, 0.9);
}

.conflict-marker:hover {
    transform: scale(1.38);
    box-shadow:
        0 0 0 5px rgba(115, 224, 255, 0.24),
        0 5px 20px rgba(0, 0, 0, 0.95);
}

.conflict-marker.critical::after {
    inset: -12px;
    border-width: 3px;
}

.map-load-warning {
    position: absolute;
    z-index: 1500;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 18px;
    border: 1px solid #ffb000;
    background: #251900;
    color: #ffe5a3;
    font-size: 13px;
}


/* ============================================================
   HOTSPOT LAYER REPAIR
   Countries remain below markers.
   Compact dots prevent nearby conflicts from overlapping.
   ============================================================ */

.leaflet-worldMapPane-pane {
    z-index: 200 !important;
}

.leaflet-hotspotPane-pane {
    z-index: 700 !important;
    pointer-events: auto !important;
}

.leaflet-popup-pane {
    z-index: 900 !important;
}

.leaflet-hotspotPane-pane .leaflet-marker-icon {
    z-index: 700 !important;
    overflow: visible !important;
}

.conflict-marker-wrapper {
    width: 18px !important;
    height: 18px !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
}

.conflict-marker {
    position: absolute;
    top: 2px;
    left: 2px;

    width: 14px;
    height: 14px;

    border: 2px solid #eaf8ff;
    border-radius: 50%;

    box-shadow:
        0 0 0 2px rgba(3, 14, 24, 0.92),
        0 2px 7px rgba(0, 0, 0, 0.90);

    transform-origin: center;
    transition:
        transform 120ms ease,
        box-shadow 120ms ease;

    pointer-events: auto;
}

.conflict-marker:hover {
    transform: scale(1.42);

    box-shadow:
        0 0 0 2px rgba(3, 14, 24, 0.95),
        0 0 0 5px rgba(115, 224, 255, 0.18),
        0 3px 10px rgba(0, 0, 0, 0.95);
}

/*
   Critical conflicts remain the same compact center-dot size.
   Only the faint pulse extends beyond the dot.
*/

.conflict-marker.critical::after {
    content: "";
    position: absolute;

    top: 50%;
    left: 50%;

    width: 20px;
    height: 20px;

    border: 1px solid currentColor;
    border-radius: 50%;

    transform:
        translate(-50%, -50%)
        scale(0.65);

    opacity: 0;
    pointer-events: none;

    animation: compactHotspotPulse 2.4s infinite;
}

@keyframes compactHotspotPulse {
    0% {
        transform:
            translate(-50%, -50%)
            scale(0.62);

        opacity: 0.62;
    }

    75% {
        transform:
            translate(-50%, -50%)
            scale(1.25);

        opacity: 0;
    }

    100% {
        transform:
            translate(-50%, -50%)
            scale(1.25);

        opacity: 0;
    }
}

/*
   Ensure vector countries cannot visually cover hotspot icons,
   even during hover.
*/

.leaflet-worldMapPane-pane svg,
.leaflet-worldMapPane-pane path {
    z-index: 200 !important;
}

.leaflet-hotspotPane-pane {
    isolation: isolate;
}


/* SAFE COMPACT HOTSPOT OVERRIDE */

.leaflet-worldMapPane-pane {
    z-index: 200 !important;
}

.leaflet-hotspotPane-pane {
    z-index: 700 !important;
    pointer-events: auto !important;
}

.leaflet-popup-pane {
    z-index: 900 !important;
}

.conflict-marker-wrapper {
    width: 16px !important;
    height: 16px !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
}

.conflict-marker {
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 12px !important;
    height: 12px !important;
    border: 2px solid #eefaff !important;
    border-radius: 50% !important;
    box-shadow:
        0 0 0 2px rgba(2, 12, 20, 0.95),
        0 2px 6px rgba(0, 0, 0, 0.95) !important;
}

.conflict-marker:hover {
    transform: scale(1.35) !important;
}

.conflict-marker.critical::after {
    width: 18px !important;
    height: 18px !important;
    inset: auto !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.65);
    border-width: 1px !important;
}


/* GLOBAL CONFLICT FINAL MAP LAYER OVERRIDE */

.leaflet-worldMapPane-pane {
    z-index: 200 !important;
}

.leaflet-hotspotPane-pane {
    z-index: 650 !important;
    pointer-events: auto !important;
}

.leaflet-popup-pane {
    z-index: 900 !important;
}

.conflict-marker-wrapper {
    width: 16px !important;
    height: 16px !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
}

.conflict-marker {
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 12px !important;
    height: 12px !important;
    border: 2px solid #f2fbff !important;
    border-radius: 50% !important;
    box-shadow:
        0 0 0 2px rgba(2, 12, 20, 0.95),
        0 2px 7px rgba(0, 0, 0, 0.95) !important;
}

.conflict-marker:hover {
    transform: scale(1.45) !important;
}

.conflict-marker.critical::after {
    content: "";
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    width: 19px !important;
    height: 19px !important;
    inset: auto !important;
    border: 1px solid currentColor !important;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: compactHotspotPulse 2.4s infinite;
    pointer-events: none;
}

@keyframes compactHotspotPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.65;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 0;
    }
}


/* GLOBAL CONFLICT FINAL MAP LAYER OVERRIDE */

.leaflet-worldMapPane-pane {
    z-index: 200 !important;
}

.leaflet-hotspotPane-pane {
    z-index: 650 !important;
    pointer-events: auto !important;
}

.leaflet-popup-pane {
    z-index: 900 !important;
}

.conflict-marker-wrapper {
    width: 16px !important;
    height: 16px !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
}

.conflict-marker {
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    width: 12px !important;
    height: 12px !important;
    border: 2px solid #f2fbff !important;
    border-radius: 50% !important;
    box-shadow:
        0 0 0 2px rgba(2, 12, 20, 0.95),
        0 2px 7px rgba(0, 0, 0, 0.95) !important;
}

.conflict-marker:hover {
    transform: scale(1.45) !important;
}

.conflict-marker.critical::after {
    content: "";
    position: absolute;
    top: 50% !important;
    left: 50% !important;
    width: 19px !important;
    height: 19px !important;
    inset: auto !important;
    border: 1px solid currentColor !important;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: compactHotspotPulse 2.4s infinite;
    pointer-events: none;
}

@keyframes compactHotspotPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0.65;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.35);
        opacity: 0;
    }
}


/* ============================================================
   FINAL LAYER ORDER — MAP BELOW, HOTSPOTS ABOVE
   ============================================================ */

#map .leaflet-pane {
    transform: translateZ(0);
}

/* Country polygons and world outline */
#map .leaflet-worldMapPane-pane {
    z-index: 100 !important;
    pointer-events: none !important;
}

/* Every SVG and path belonging to the world map */
#map .leaflet-worldMapPane-pane svg,
#map .leaflet-worldMapPane-pane path {
    z-index: 100 !important;
    pointer-events: none !important;
}

/* Default Leaflet overlay layer also remains below hotspots */
#map .leaflet-overlay-pane {
    z-index: 200 !important;
}

/* Dedicated conflict-hotspot pane */
#map .leaflet-hotspotPane-pane {
    z-index: 1000 !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

/* Marker containers */
#map .leaflet-hotspotPane-pane .leaflet-marker-icon,
#map .leaflet-hotspotPane-pane .conflict-marker-wrapper {
    z-index: 10000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

/* Popup cards above absolutely everything */
#map .leaflet-popup-pane {
    z-index: 2000 !important;
}

/* Compact visible conflict dot */
#map .conflict-marker-wrapper {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

#map .conflict-marker {
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;

    width: 12px !important;
    height: 12px !important;

    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    border: 2px solid #ffffff !important;
    border-radius: 50% !important;

    box-shadow:
        0 0 0 2px #06111c,
        0 2px 7px rgba(0, 0, 0, 0.95) !important;

    pointer-events: auto !important;
}

/* Status colors */
#map .conflict-marker.worsening {
    background: #ffb000 !important;
}

#map .conflict-marker.improving {
    background: #00d4a6 !important;
}

#map .conflict-marker.unchanged {
    background: #4da3ff !important;
}

#map .conflict-marker.developing {
    background: #d76dff !important;
}

#map .conflict-marker:hover {
    transform: scale(1.55) !important;
    z-index: 20000 !important;
}

/* Small pulse only; it cannot cover neighboring dots */
#map .conflict-marker.critical::after {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;

    width: 18px !important;
    height: 18px !important;

    border: 1px solid currentColor !important;
    border-radius: 50% !important;

    transform: translate(-50%, -50%) scale(0.7);
    pointer-events: none !important;

    animation: finalCompactPulse 2.2s infinite !important;
}

@keyframes finalCompactPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.65);
        opacity: 0.65;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0;
    }
}


/* ============================================================
   DEFINITIVE LEAFLET STACKING ORDER
   Countries: 400
   Markers:   600
   Popups:    700
   ============================================================ */

#map .leaflet-map-pane,
#map .leaflet-pane {
    transform-style: flat !important;
}

/* Country GeoJSON */
#map .leaflet-overlay-pane {
    z-index: 400 !important;
    pointer-events: none !important;
}

#map .leaflet-overlay-pane svg,
#map .leaflet-overlay-pane path {
    pointer-events: none !important;
}

/* Conflict markers */
#map .leaflet-marker-pane {
    z-index: 600 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

#map .leaflet-marker-pane .leaflet-marker-icon {
    z-index: 10000 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

/* Popup cards */
#map .leaflet-popup-pane {
    z-index: 700 !important;
    pointer-events: auto !important;
}

/* Tooltips */
#map .leaflet-tooltip-pane {
    z-index: 650 !important;
}

/* Compact conflict dots */
#map .conflict-marker-wrapper {
    width: 16px !important;
    height: 16px !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    pointer-events: auto !important;
}

#map .conflict-marker {
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;

    width: 12px !important;
    height: 12px !important;

    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    border: 2px solid #ffffff !important;
    border-radius: 50% !important;

    box-shadow:
        0 0 0 2px #03101b,
        0 2px 7px rgba(0, 0, 0, 0.95) !important;

    pointer-events: auto !important;
}

#map .conflict-marker.worsening {
    background: #ffb000 !important;
}

#map .conflict-marker.improving {
    background: #00d4a6 !important;
}

#map .conflict-marker.unchanged {
    background: #4da3ff !important;
}

#map .conflict-marker.developing {
    background: #d76dff !important;
}

#map .conflict-marker:hover {
    transform: scale(1.55) !important;
}


/* ============================================================
   CLEAN HOTSPOT SVG LAYER
   ============================================================ */

#map .leaflet-countries-pane {
    z-index: 200 !important;
    pointer-events: none !important;
}

#map .leaflet-hotspots-pane {
    z-index: 900 !important;
    pointer-events: auto !important;
}

#map .leaflet-hotspots-pane svg {
    z-index: 900 !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

#map .leaflet-hotspots-pane path {
    pointer-events: auto !important;
    cursor: pointer !important;
}

#map .leaflet-popup-pane {
    z-index: 1200 !important;
}

.gc-popup {
    padding: 20px;
    color: #102433;
    background: #eef6f9;
}

.gc-popup-header {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #537184;
    font-size: 11px;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.gc-popup h2 {
    margin: 14px 0;
    color: #102f43;
    font-family: Georgia, serif;
    font-size: 23px;
}

.gc-popup p {
    font-size: 14px;
    line-height: 1.55;
}

.gc-popup h3 {
    margin: 18px 0 8px;
    color: #176f91;
    font-size: 11px;
    letter-spacing: 1px;
}

.gc-popup ul {
    margin: 0 0 18px;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.6;
}

.gc-popup-details {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px 14px;
    padding: 12px 0;
    border-top: 1px solid #bfd1dc;
    border-bottom: 1px solid #bfd1dc;
    font-size: 12px;
}

.gc-popup-status {
    padding: 4px 9px;
    border-radius: 12px;
    color: #ffffff;
}

.gc-popup-status.worsening {
    background: #b97b00;
}

.gc-popup-status.improving {
    background: #008b70;
}

.gc-popup-status.unchanged {
    background: #2677bd;
}

.gc-popup-status.developing {
    background: #9144aa;
}

.gc-popup-actions {
    display: flex;
    gap: 9px;
}

.gc-popup-actions button {
    padding: 10px 15px;
    border: 1px solid #176f91;
    border-radius: 20px;
    background: transparent;
    color: #176f91;
    font-size: 11px;
    font-weight: 700;
}

.gc-popup-actions .gc-learn-more {
    background: #176f91;
    color: #ffffff;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.leaflet-popup-content-wrapper {
    padding: 0 !important;
    overflow: hidden;
}
