* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    overflow-x: hidden;
}

.header {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 20px;
    text-align: center;
    border-bottom: 3px solid #8b0000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header h1 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.subtitle {
    color: #b0b0b0;
    font-size: 1.1em;
    font-style: italic;
}

.info-panel {
    background: #2c2c2c;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    flex-wrap: wrap;
}

.stats {
    font-size: 1.2em;
    color: #ffffff;
}

#location-count {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.3em;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section label {
    color: #b0b0b0;
}

#search-input {
    padding: 8px 15px;
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 1em;
    min-width: 200px;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #8b0000;
    background: #2c2c2c;
}

#search-input::placeholder {
    color: #888;
}

#category-filter, #killer-filter {
    padding: 8px 15px;
    background: #1a1a1a;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

#category-filter:hover, #killer-filter:hover {
    border-color: #8b0000;
    background: #2c2c2c;
}

#map {
    width: 100%;
    height: calc(100vh - 220px);
    background: #0d0d0d;
}

.legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(44, 44, 44, 0.9);
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #555;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    min-width: 140px;
    font-size: 0.85em;
}

.legend h3 {
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 0.95em;
    border-bottom: 1px solid #8b0000;
    padding-bottom: 3px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 4px 0;
    color: #e0e0e0;
}

.legend-item .marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid #fff;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.marker.serial-killers {
    background: #ff0000;
}

.marker.school-shootings {
    background: #ff8800;
}

.marker.mass-shootings {
    background: #ffdd00;
}

.marker.terrorism {
    background: #9c27b0;
}

.marker.assassinations {
    background: #ff00ff;
}

.marker.holocaust-genocide {
    background: #424242;
}

.marker.war-battlefields {
    background: #5d4037;
}

.marker.nuclear-disasters {
    background: #ffa000;
}

.marker.ship-disasters {
    background: #0277bd;
}

.marker.historical-ancient {
    background: #8b4513;
}

.marker.prisons-executions {
    background: #2c2c2c;
}

.marker.haunted-paranormal {
    background: #4a148c;
}

.marker.cults {
    background: #6a1b9a;
}

.marker.museums {
    background: #1976d2;
}

.marker.cemeteries-burial {
    background: #616161;
}

/* Custom Leaflet Popup Styling */
.leaflet-popup-content-wrapper {
    background: #2c2c2c;
    color: #e0e0e0;
    border-radius: 8px;
    border: 2px solid #555;
}

.leaflet-popup-content {
    margin: 15px;
    line-height: 1.6;
}

.leaflet-popup-content h3 {
    color: #ff6b6b;
    margin-bottom: 8px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.leaflet-popup-content p {
    margin: 5px 0;
    font-size: 0.95em;
}

.leaflet-popup-content strong {
    color: #ffffff;
}

.leaflet-popup-tip {
    background: #2c2c2c;
}

.leaflet-popup-close-button {
    color: #ffffff !important;
}

.leaflet-popup-close-button:hover {
    color: #ff6b6b !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8em;
    }

    .info-panel {
        flex-direction: column;
        gap: 10px;
    }

    .legend {
        bottom: 10px;
        left: 10px;
        font-size: 0.75em;
        min-width: 120px;
        padding: 8px;
    }

    #map {
        height: calc(100vh - 260px);
    }
}
