/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

#map {
    width: 100%;
    height: 100vh;
}

/* Legend styles */
#legend {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-size: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.legend-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
}

.legend-dot.green {
    background-color: green;
}

.legend-dot.orange {
    background-color: orange;
}

.legend-dot.red {
    background-color: red;
}

.legend-dot.black {
    background-color: black;
}

/* Marker dot styles */
.marker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

.marker-dot.on {
    background-color: green;
}

.marker-dot.nq {
    background-color: orange;
}

.marker-dot.off {
    background-color: red;
}

.marker-dot.gon {
    background-color: black;
}

/* Popup styles */
.leaflet-popup-content {
    font-size: 14px;
    line-height: 1.6;
    max-width: 250px;
}

.leaflet-popup-content b {
    color: #333;
}

.leaflet-popup-content small {
    font-size: 12px;
    color: #777;
}

/* Adding a small shadow to the search input for better visibility */
        .controls { margin: 10px; padding: 10px; background: #fff; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
        .controls input, .controls select, .controls button { margin: 5px 0; padding: 5px; width: 100%; }
        .controls button { cursor: pointer; background-color: #007bff; color: white; border: none; }
        .controls button:hover { background-color: #0056b3; }
