body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#map {
    height: 100vh;
    width: 100vw;
}

.seismograph-icon {
    position: relative;
    background: white;
    width: 30px;
    height: 30px;
    animation: beat 1s infinite;
    box-shadow: 0 0 15px #ff4500, 0 0 15px #ff4500;
    border: 2px solid #ff4500;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.seismograph-icon i {
    color: #ff4500;
    font-size: 16px;
}

@keyframes beat {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    100% { transform: scale(0.9); }
}

.seismograph-container {
    position: relative;
    z-index: 1000;
}

.radius-effect {
    position: absolute;
    border-radius: 50%;
    background-color: transparent;
    transform-origin: center;
    z-index: 999;
    pointer-events: none;
    box-sizing: border-box;
}

@keyframes pulse {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}

.legend {
    padding: 10px;
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    line-height: 1.5;
    display: none;
    z-index: 1000;
    max-width: 200px;
}

.menu {
    padding: 10px;
    background: white;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
    line-height: 1.5;
    display: none;
    z-index: 1000;
    max-width: 200px;
}

.legend-section, .menu-section {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.legend-section:last-child, .menu-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legend-toggle, .menu-toggle {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
}

.recent-event-popup {
    z-index: 2001;
}

.recent-event-popup .leaflet-popup-content-wrapper {
    background-color: white;
    border-left: 4px solid #ef4444;
}

.recent-event-popup .leaflet-popup-tip {
    background-color: white;
}

.leaflet-pane {
    z-index: 400;
}

.leaflet-popup {
    z-index: 1001;
}

.center-point {
    background: #0099cc;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    border: 2px solid white;
    box-shadow: 0 0 5px #ff0000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-point i {
    color: white;
    font-size: 10px;
}

.legend-center-point {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #0099cc;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 5px #ff0000;
    margin-right: 5px;
}

.legend-center-point i {
    color: white;
    font-size: 10px;
}

.logo-container {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
    padding: 5px;
}

.logo-container a {
    display: inline-block;
}

.logo-container img {
    height: 65px;
    width: auto;
}

.recent-event-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #ef4444;
    font-weight: bold;
}

.recent-event-header i {
    font-size: 1.2em;
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 5px 0;
}

.toggle-label {
    font-size: 13px;
    margin-right: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #4CAF50;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zoom-btn {
    padding: 5px 10px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
}

.zoom-btn:hover {
    background: #e0e0e0;
}

.main-menu-link {
    display: block;
    margin-top: 10px;
    padding: 5px;
    text-align: center;
    background: #f0f0f0;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

.main-menu-link:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .legend, .menu {
        font-size: 12px;
        max-width: 150px;
    }
    
    .leaflet-control-attribution {
        font-size: 10px;
        padding: 2px 5px;
        max-width: 90%;
        white-space: normal;
        line-height: 1.2;
    }
    
    .legend-toggle, .menu-toggle {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .leaflet-control-layers {
        font-size: 12px;
    }
}

.map-labels {
    filter: brightness(1.1) contrast(1.1) opacity(0.9);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.leaflet-tile-pane {
    z-index: 200 !important;
}

.leaflet-overlay-pane {
    z-index: 400 !important;
}

.leaflet-shadow-pane {
    z-index: 500 !important;
}

.leaflet-marker-pane {
    z-index: 600 !important;
}

.leaflet-tooltip-pane {
    z-index: 650 !important;
}

.leaflet-popup-pane {
    z-index: 700 !important;
}