body, html, .leaflet-container {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}

#map {
    width: 100%;
    height: 100vh;
}

#darkModeToggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background-color: #2c3e50;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#darkModeToggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.leaflet-control-zoom a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: #2c3e50 !important;
    transition: all 0.3s ease;
}

.custom-popup .leaflet-popup-content-wrapper,
.custom-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.custom-popup .leaflet-popup-content {
    margin: 15px;
    line-height: 1.6;
}

.popup-title {
    font-weight: 700;
    font-size: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.popup-data {
    font-size: 13px;
    color: #34495e;
    transition: all 0.3s ease;
}

.highlight { font-weight: 700; }

.legend-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-size: 13px;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.legend-box h4 {
    font-weight: 700;
    margin: 0 0 10px 0;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.legend-item { margin-bottom: 6px; }

.legend-item i {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    border: 2px solid white;
    vertical-align: middle;
    margin-right: 5px;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

/* Sötét mód szabályok */
body.dark-mode .leaflet-bar a {
    background-color: #2c3e50;
    color: #ecf0f1 !important;
    border-bottom: 1px solid #34495e;
}

body.dark-mode .leaflet-bar a:hover {
    background-color: #34495e;
}

body.dark-mode .leaflet-control-attribution {
    background-color: rgba(44, 62, 80, 0.85) !important;
    color: #ecf0f1 !important;
}

body.dark-mode .leaflet-control-attribution a {
    color: #3498db !important;
}

body.dark-mode .custom-popup .leaflet-popup-content-wrapper,
body.dark-mode .custom-popup .leaflet-popup-tip {
    background: #2c3e50;
}

body.dark-mode .popup-title {
    color: #ecf0f1;
    border-bottom: 2px solid #e74c3c;
}

body.dark-mode .popup-data {
    color: #bdc3c7;
}

body.dark-mode .legend-box {
    background: #2c3e50;
    color: #ecf0f1;
}

body.dark-mode .legend-box h4 {
    border-bottom: 2px solid #34495e;
}

body.dark-mode .legend-item i {
    border-color: #2c3e50;
}