.auranite-map,
.leaflet-container {
    background: #05111c;
    color: var(--text, #e9fff8);
    font: inherit;
    overflow: hidden;
    touch-action: pan-x pan-y;
}

.auranite-map {
    position: relative;
}

/* Shared fallback for Leaflet's required layout rules if CDN CSS loads slowly. */
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
    position: absolute;
    left: 0;
    top: 0;
}

.leaflet-pane {
    z-index: 400;
}

.leaflet-tile-pane {
    z-index: 200;
}

.leaflet-overlay-pane {
    z-index: 400;
}

.leaflet-shadow-pane {
    z-index: 500;
}

.leaflet-marker-pane {
    z-index: 600;
}

.leaflet-tooltip-pane {
    z-index: 650;
}

.leaflet-popup-pane {
    z-index: 700;
}

.leaflet-map-pane canvas {
    z-index: 100;
}

.leaflet-map-pane svg {
    z-index: 200;
}

.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
    position: absolute;
    z-index: 800;
    pointer-events: none;
}

.leaflet-top {
    top: 0;
}

.leaflet-right {
    right: 0;
}

.leaflet-bottom {
    bottom: 0;
}

.leaflet-left {
    left: 0;
}

.leaflet-control {
    position: relative;
    z-index: 800;
    float: left;
    clear: both;
    pointer-events: auto;
}

.leaflet-right .leaflet-control {
    float: right;
    margin-right: 20px;
}

.leaflet-left .leaflet-control {
    margin-left: 20px;
}

.leaflet-bottom .leaflet-control {
    margin-bottom: 10px;
}

.auranite-map--explore .leaflet-bottom {
    bottom: 94px;
}

.auranite-map--explore .leaflet-bottom.leaflet-left {
    left: 356px;
    transition: left 180ms ease;
}

body.filters-collapsed .auranite-map--explore .leaflet-bottom.leaflet-left {
    left: 0;
}

.leaflet-popup {
    position: absolute;
    margin-bottom: 20px;
    text-align: center;
}

.leaflet-popup-content-wrapper {
    text-align: left;
}

.leaflet-popup-tip-container {
    position: absolute;
    left: 50%;
    width: 40px;
    height: 20px;
    margin-left: -20px;
    overflow: hidden;
    pointer-events: none;
}

.leaflet-popup-tip {
    width: 17px;
    height: 17px;
    margin: -10px auto 0;
    padding: 1px;
    transform: rotate(45deg);
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
    user-select: none;
    -webkit-user-drag: none;
}

.leaflet-tile {
    filter: brightness(0.62) invert(1) contrast(1.08) hue-rotate(178deg) saturate(0.52);
}

.leaflet-control-zoom,
.leaflet-control-layers {
    overflow: hidden;
    border: 1px solid rgba(172, 231, 226, 0.22) !important;
    border-radius: var(--radius, 18px) !important;
    background: rgba(4, 13, 22, 0.78) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(12px);
}

.leaflet-control-zoom a {
    display: flex !important;
    width: 46px !important;
    height: 46px !important;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(172, 231, 226, 0.18) !important;
    color: var(--text, #e9fff8) !important;
    background: transparent !important;
}

.leaflet-control-zoom a:hover,
.leaflet-control-zoom a:focus-visible {
    color: var(--accent, #83e6cf) !important;
    background: rgba(131, 230, 207, 0.08) !important;
}

.leaflet-layer-button {
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    border: 1px solid rgba(172, 231, 226, 0.22);
    border-radius: var(--radius, 18px);
    color: var(--text, #e9fff8);
    background: rgba(4, 13, 22, 0.78);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.leaflet-layer-button:hover,
.leaflet-layer-button:focus-visible {
    color: var(--accent, #83e6cf);
    background: rgba(131, 230, 207, 0.08);
}

.leaflet-layer-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.leaflet-control-attribution {
    max-width: calc(100vw - 40px);
    margin: 0 0 12px 20px !important;
    padding: 4px 8px !important;
    border: 1px solid rgba(172, 231, 226, 0.16);
    border-radius: 6px;
    color: rgba(210, 249, 240, 0.88) !important;
    background: rgba(3, 11, 18, 0.68) !important;
    backdrop-filter: blur(8px);
    font-size: 10px !important;
    line-height: 1.25 !important;
    white-space: nowrap;
}

.auranite-map--explore .leaflet-control-attribution {
    margin-left: 0 !important;
}

.leaflet-control-attribution a {
    color: var(--accent, #83e6cf) !important;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    border: 1px solid rgba(172, 231, 226, 0.24);
    color: var(--text, #e9fff8);
    background: rgba(5, 15, 25, 0.94);
    box-shadow: var(--shadow, 0 24px 70px rgba(0, 0, 0, 0.42));
}

.leaflet-popup-content {
    margin: 12px 14px;
}

.leaflet-popup.public-case-map-popup .leaflet-popup-content {
    display: grid;
    gap: 4px;
}

.leaflet-popup.public-case-map-popup strong {
    color: var(--text, #e9fff8);
}

.leaflet-popup.public-case-map-popup span {
    color: var(--muted, rgba(210, 249, 240, 0.7));
    font-size: 13px;
}

.auranite-marker,
.auranite-user-marker {
    border: 0;
    background: transparent;
}

.auranite-marker-shell {
    position: relative;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    color: var(--marker-color, var(--accent, #83e6cf));
}

.auranite-marker-shell::before,
.auranite-marker-shell::after {
    content: "";
    position: absolute;
    inset: 6px;
    pointer-events: none;
    border-radius: 50%;
    border: 1px solid currentColor;
    opacity: 0;
    transform: scale(0.46);
    animation: auraniteMarkerPulse 3.1s ease-out infinite;
    animation-delay: var(--marker-delay, 0s);
}

.auranite-marker-shell::before {
    box-shadow:
        0 0 18px color-mix(in srgb, currentColor 38%, transparent),
        inset 0 0 18px color-mix(in srgb, currentColor 16%, transparent);
}

.auranite-marker-shell::after {
    animation-delay: calc(var(--marker-delay, 0s) + 0.85s);
    opacity: 0;
}

.auranite-marker-core {
    position: relative;
    z-index: 1;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid color-mix(in srgb, currentColor 62%, white 20%);
    border-radius: 50%;
    color: inherit;
    background:
        radial-gradient(circle at 38% 32%, color-mix(in srgb, currentColor 42%, white 14%) 0 9%, transparent 10%),
        radial-gradient(circle, color-mix(in srgb, currentColor 24%, #07131d 76%) 0%, color-mix(in srgb, currentColor 10%, #06101a 90%) 72%);
    box-shadow:
        0 0 0 9px color-mix(in srgb, currentColor 8%, transparent),
        0 0 24px color-mix(in srgb, currentColor 42%, transparent),
        inset 0 0 18px color-mix(in srgb, currentColor 16%, transparent);
}

.auranite-marker-core svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auranite-map-marker--plain .auranite-marker-shell {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(165, 255, 240, 0.72);
    border-radius: 50%;
    background: rgba(4, 13, 22, 0.76);
    box-shadow: 0 0 28px rgba(131, 230, 207, 0.34);
}

.auranite-map-marker--plain .auranite-marker-core {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #a5fff0, #62d7bf);
    box-shadow: 0 0 20px rgba(131, 230, 207, 0.7);
}

.auranite-user-marker-core {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    border: 3px solid #ecfffb;
    border-radius: 50%;
    background: var(--accent, #83e6cf);
    box-shadow: 0 0 0 8px rgba(131, 230, 207, 0.16), 0 0 36px rgba(131, 230, 207, 0.75);
}

.auranite-user-marker-core::after {
    content: "";
    position: absolute;
    inset: -18px;
    border: 1px solid rgba(131, 230, 207, 0.7);
    border-radius: 50%;
    animation: auraniteMarkerPulse 2s ease-out infinite;
}

@keyframes auraniteMarkerPulse {
    0% {
        opacity: 0.38;
        transform: scale(0.54);
    }

    66% {
        opacity: 0.14;
    }

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

@media (max-width: 980px) {
    .auranite-map--explore .leaflet-bottom {
        bottom: 112px;
    }

    .auranite-map--explore .leaflet-bottom.leaflet-left,
    body.filters-collapsed .auranite-map--explore .leaflet-bottom.leaflet-left {
        left: 0;
    }

    .auranite-map--explore .leaflet-control-attribution {
        max-width: calc(100vw - 24px);
        margin-left: 12px !important;
    }
}
