/* Incident Map */

.incident-map-page {
    display: flex;
    gap: 16px;
    min-height: 640px;
    margin: 20px auto;
    max-width: 1400px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    box-sizing: border-box;
}

.map-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-stage {
    flex: 1;
    height: 70vh;
    min-height: 520px;
    border: 2px solid #000000;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    position: relative;
}

.map-canvas {
    width: 100%;
    height: 100%;
    min-height: 520px;
}

.map-sidebar {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    overflow-y: auto;
    max-height: none;
    align-self: stretch;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #000000;
}

.map-footer {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 2px solid #000000;
    border-radius: 8px;
}

.map-scale {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.scale-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    color: #000000;
}

.map-legend {
    display: grid;
    gap: 8px;
}

.legend-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    color: #000000;
}

.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid #000000;
    border-radius: 6px;
    background: #ffffff;
}

.group-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #000000;
}

.category-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-details summary {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #000000;
    cursor: pointer;
    list-style: none;
}

.category-details summary::-webkit-details-marker {
    display: none;
}

.category-details summary::after {
    content: '▾';
    float: right;
    font-size: 12px;
}

.category-details[open] summary::after {
    content: '▴';
}

.sidebar-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #000000;
}

.sidebar-group input[type="text"],
.sidebar-group input[type="search"],
.sidebar-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #000000;
    border-radius: 6px;
    font-size: 13px;
    color: #000000;
    background: #ffffff;
    box-sizing: border-box;
}

.sidebar-group input:focus,
.sidebar-group select:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px #000000;
}

.date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.date-range input {
    min-width: 0;
}

.checkbox-list {
    display: grid;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #000000;
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    width: 14px;
    height: 14px;
    border: 1px solid #000000;
}

.sidebar-actions {
    display: flex;
    gap: 8px;
}

.filter-button {
    flex: 1;
    padding: 10px;
    border: 1px solid #000000;
    border-radius: 6px;
    background: #000000;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-button.secondary {
    background: #ffffff;
    color: #000000;
}

.filter-button:hover {
    transform: translateY(-1px);
}

.filter-button:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.legend-group {
    gap: 8px;
}

.legend-list {
    display: grid;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #000000;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #000000;
    flex-shrink: 0;
}

.legend-empty {
    font-size: 12px;
    color: #000000;
}

.scale-value {
    font-size: 14px;
    font-weight: 700;
    color: #000000;
}

.user-location-marker,
.incident-marker {
    background: transparent !important;
    border: none !important;
    z-index: 1000;
}

.user-location-pin {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1e88e5;
    position: relative;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.25), 0 4px 10px rgba(0, 0, 0, 0.25);
    animation: userPulse 2.2s ease-out infinite;
}

.user-location-pin::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(30, 136, 229, 0.4);
    animation: userPulseRing 2.2s ease-out infinite;
}

.user-location-core {
    display: block;
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #ffffff;
}

.incident-marker {
    display: flex;
    align-items: center;
    justify-content: center;
}

.incident-marker .marker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #000000, 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.incident-marker .marker-dot::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.15);
    animation: markerPulse 2.2s ease-out infinite;
}

@keyframes userPulse {
    0% { transform: scale(0.95); }
    70% { transform: scale(1.05); }
    100% { transform: scale(0.95); }
}

@keyframes userPulseRing {
    0% { transform: scale(0.7); opacity: 0.6; }
    70% { transform: scale(1.3); opacity: 0; }
    100% { transform: scale(1.3); opacity: 0; }
}

@keyframes markerPulse {
    0% { transform: scale(0.6); opacity: 0.65; }
    70% { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(1.2); opacity: 0; }
}

.basemap-control .basemap-button {
    background: #ffffff;
    border: 2px solid #000000;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    cursor: pointer;
}

.basemap-control .basemap-button:hover {
    background: #000000;
    color: #ffffff;
}

.map-stage.screenshot-hide .leaflet-control-container,
.map-stage.screenshot-hide .map-tool-control {
    opacity: 0;
    pointer-events: none;
}

.map-column.screenshot-hide .leaflet-control-container,
.map-column.screenshot-hide .map-tool-control {
    opacity: 0;
    pointer-events: none;
}

.map-tool-control {
    display: grid;
    gap: 6px;
    overflow: visible;
}

.map-tool-button {
    width: 34px;
    height: 34px;
    border: 2px solid #000000;
    background: #ffffff;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.map-tool-button::before {
    content: '';
    position: absolute;
    inset: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.map-tool-basemap::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 6.5l6-2.5 6 2.5 6-2.5v13l-6 2.5-6-2.5-6 2.5z'/%3E%3Cpath fill='%23fff' d='M9 4v13l6 2.5v-13z'/%3E%3C/svg%3E");
}

.map-tool-fullscreen::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h6v2H6v4H4zm14 0h-6v2h4v4h2zm-2 14h-4v2h6v-6h-2zm-10 2v-2H6v-4H4v6z'/%3E%3C/svg%3E");
}

.map-tool-screenshot::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 6l1-2h8l1 2h3v14H4V6zm5 3a5 5 0 100 10 5 5 0 000-10z'/%3E%3C/svg%3E");
}

.map-tool-button:hover {
    background-color: #ffffff;
}
/* Leaflet popups */
.incident-popup {
    padding: 10px;
    font-family: Arial, sans-serif;
}

.incident-popup .popup-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #000000;
}

.incident-popup .popup-meta {
    font-size: 12px;
    color: #000000;
    margin-bottom: 8px;
}

.incident-popup .popup-actions {
    display: grid;
    gap: 6px;
    margin-top: 8px;
}

.incident-popup .popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px solid #000000;
    border-radius: 4px;
    color: #000000;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.incident-popup .popup-button:hover,
.incident-popup .popup-button:focus {
    background: #000000;
    color: #ffffff;
}

.incident-popup .popup-note {
    margin-top: 6px;
    font-size: 11px;
    color: #000000;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    border: 2px solid #000000 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
}

.leaflet-control-layers,
.leaflet-control-zoom {
    border: 2px solid #000000 !important;
    border-radius: 0 !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    background: #ffffff !important;
    color: #000000 !important;
    border-bottom: 1px solid #000000 !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Mobile */
@media (max-width: 1024px) {
    .incident-map-page {
        flex-direction: column;
        min-height: auto;
    }

    .map-stage {
        height: 520px;
        min-height: 520px;
    }

    .map-sidebar {
        width: 100%;
        flex: 1 1 auto;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .incident-map-page {
        flex-direction: column;
        min-height: auto;
    }

    .map-stage {
        height: 420px;
        min-height: 420px;
    }

    .map-canvas {
        min-height: 420px;
    }

    .map-sidebar {
        width: 100%;
        max-height: none;
    }
}

/* Overrides */
.category-details summary::after {
    content: 'v';
}

.category-details[open] summary::after {
    content: '^';
}

.scale-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
}

.scale-controls input {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #000000;
    border-radius: 4px;
    font-size: 12px;
}

.scale-controls button {
    padding: 6px 8px;
    border: 1px solid #000000;
    border-radius: 4px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.scale-controls button:hover {
    background: #000000;
    color: #ffffff;
}

.incident-marker {
    transform: scale(var(--marker-scale, 1));
    transform-origin: center;
}

.map-tool-button {
    appearance: none;
    -webkit-appearance: none;
}

.map-tool-button:hover,
.map-tool-button:active {
    background-color: #ffffff !important;
    outline: none;
    box-shadow: none;
}

.map-tool-button:focus,
.map-tool-button:focus-visible {
    background-color: #ffffff !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.2);
}

.map-tool-button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 400 !important;
    font-family: Arial, sans-serif !important;
    line-height: 1.2;
    text-shadow: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    box-sizing: border-box;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 1000;
}

.map-tool-button[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.cluster-wrapper {
    background: transparent;
    border: none;
}

.cluster-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    border: 2px solid #000000;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.cluster-small { width: 28px; height: 28px; background: #1e88e5; }
.cluster-medium { width: 34px; height: 34px; background: #43a047; }
.cluster-large { width: 40px; height: 40px; background: #fb8c00; }
.cluster-xl { width: 46px; height: 46px; background: #8e24aa; }
.cluster-xxl { width: 54px; height: 54px; background: #e53935; }

.map-tool-basemap::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l6-3 6 3 6-3v13l-6 3-6-3-6 3z'/%3E%3Cpath d='M9 4v13'/%3E%3Cpath d='M15 7v13'/%3E%3C/g%3E%3C/svg%3E");
}

.map-tool-fullscreen::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 9V4h5'/%3E%3Cpath d='M20 9V4h-5'/%3E%3Cpath d='M4 15v5h5'/%3E%3Cpath d='M20 15v5h-5'/%3E%3C/g%3E%3C/svg%3E");
}

.map-tool-screenshot::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h4l2-2h4l2 2h4v12H4z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

.map-tool-heat::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s3 3 3 6a3 3 0 01-6 0c0-3 3-6 3-6z'/%3E%3Cpath d='M6 14a6 6 0 0012 0'/%3E%3C/g%3E%3C/svg%3E");
}


.map-tool-measure::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 18h16'/%3E%3Cpath d='M6 6v6'/%3E%3Cpath d='M10 6v4'/%3E%3Cpath d='M14 6v6'/%3E%3Cpath d='M18 6v4'/%3E%3C/g%3E%3C/svg%3E");
}

.map-tool-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.map-tool-button.active {
    box-shadow: 0 0 0 2px #000000 inset;
}

.measure-tooltip {
    background: #ffffff;
    border: 1px solid #000000;
    color: #000000;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 600;
}

.measure-marker {
    background: transparent !important;
    border: none !important;
}

.measure-marker-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.cluster-popup {
    font-family: Arial, sans-serif;
    font-size: 12px;
}

.cluster-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.cluster-row {
    margin-bottom: 4px;
}

.popup-route-line {
    background: #ffffff;
    border: 1px solid #000000;
    cursor: pointer;
}

/* Map tool icon fixes */
.map-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px !important;
    transform: none !important;
    transition: none !important;
    overflow: visible !important;
}

.map-tool-button::before {
    content: none !important;
}

.map-tool-basemap {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l6-3 6 3 6-3v13l-6 3-6-3-6 3z'/%3E%3Cpath d='M9 4v13'/%3E%3Cpath d='M15 7v13'/%3E%3C/g%3E%3C/svg%3E");
}

.map-tool-fullscreen {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 9V4h5'/%3E%3Cpath d='M20 9V4h-5'/%3E%3Cpath d='M4 15v5h5'/%3E%3Cpath d='M20 15v5h-5'/%3E%3C/g%3E%3C/svg%3E");
}

.map-tool-screenshot {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h4l2-2h4l2 2h4v12H4z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

.map-tool-heat {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s3 3 3 6a3 3 0 01-6 0c0-3 3-6 3-6z'/%3E%3Cpath d='M6 14a6 6 0 0012 0'/%3E%3C/g%3E%3C/svg%3E");
}


.map-tool-measure {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 18h16'/%3E%3Cpath d='M6 6v6'/%3E%3Cpath d='M10 6v4'/%3E%3Cpath d='M14 6v6'/%3E%3Cpath d='M18 6v4'/%3E%3C/g%3E%3C/svg%3E");
}

.map-tool-button,
.map-tool-button:hover,
.map-tool-button:active,
.map-tool-button:focus,
.map-tool-button:focus-visible {
    background-color: #ffffff !important;
    transform: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
}


.map-tool-basemap,
.map-tool-basemap:hover,
.map-tool-basemap:active,
.map-tool-basemap:focus,
.map-tool-basemap:focus-visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l6-3 6 3 6-3v13l-6 3-6-3-6 3z'/%3E%3Cpath d='M9 4v13'/%3E%3Cpath d='M15 7v13'/%3E%3C/g%3E%3C/svg%3E") !important;
}

.map-tool-fullscreen,
.map-tool-fullscreen:hover,
.map-tool-fullscreen:active,
.map-tool-fullscreen:focus,
.map-tool-fullscreen:focus-visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 9V4h5'/%3E%3Cpath d='M20 9V4h-5'/%3E%3Cpath d='M4 15v5h5'/%3E%3Cpath d='M20 15v5h-5'/%3E%3C/g%3E%3C/svg%3E") !important;
}

.map-tool-screenshot,
.map-tool-screenshot:hover,
.map-tool-screenshot:active,
.map-tool-screenshot:focus,
.map-tool-screenshot:focus-visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h4l2-2h4l2 2h4v12H4z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/g%3E%3C/svg%3E") !important;
}

.map-tool-heat,
.map-tool-heat:hover,
.map-tool-heat:active,
.map-tool-heat:focus,
.map-tool-heat:focus-visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s3 3 3 6a3 3 0 01-6 0c0-3 3-6 3-6z'/%3E%3Cpath d='M6 14a6 6 0 0012 0'/%3E%3C/g%3E%3C/svg%3E") !important;
}


.map-tool-measure,
.map-tool-measure:hover,
.map-tool-measure:active,
.map-tool-measure:focus,
.map-tool-measure:focus-visible {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 18h16'/%3E%3Cpath d='M6 6v6'/%3E%3Cpath d='M10 6v4'/%3E%3Cpath d='M14 6v6'/%3E%3Cpath d='M18 6v4'/%3E%3C/g%3E%3C/svg%3E") !important;
}

.route-tooltip {
    background: #ffffff;
    border: 1px solid #000000;
    color: #000000;
    padding: 4px 6px;
    font-size: 11px;
    font-weight: 600;
}

.map-watermark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #e53935;
    opacity: 0.65;
    letter-spacing: 0.3px;
    pointer-events: none;
    z-index: 1200;
}

/* Ensure site header stays above the map on the map page */
body.page-template-page-incident-map header,
body.page-template-page-incident-map .site-header,
body.page-template-page-incident-map .main-header,
body.page-template-page-incident-map .navbar,
body.page-template-page-incident-map .top-bar {
    position: relative;
    z-index: 5000;
}

body.page-template-page-incident-map .incident-map-page,
body.page-template-page-incident-map .map-column,
body.page-template-page-incident-map .map-stage,
body.page-template-page-incident-map .map-canvas,
body.page-template-page-incident-map .leaflet-container {
    position: relative;
    z-index: 0;
}
