* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #f0f2f5;
}

.header {
    background-color: #e74c3c;
    color: white;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.location-status {
    background-color: #fff;
    padding: 10px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.nav-buttons {
    display: flex;
    padding: 15px;
    gap: 15px;
    background-color: white;
    overflow-x: auto;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

#allServices {
    background-color: #e74c3c;
}

#medical {
    background-color: #2ecc71;
}

#rescue {
    background-color: #f1c40f;
}

#shelters {
    background-color: #3498db;
}

#floodZones {
    background-color: #9b59b6;
}

.map-container {
    margin: 10px;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#map {
    height: 100%;
    width: 100%;
}

.legend {
    position: absolute;
    bottom: 30px;
    right: 10px;
    z-index: 1000;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 3px;
}

.service-card {
    margin: 10px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-info h2 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #2c3e50;
}

.service-info p {
    color: #666;
    margin: 2px 0;
}

.distance {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    font-weight: bold;
}

.services-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.popup-content {
    padding: 10px;
    max-width: 200px;
}

.popup-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 16px;
}

.popup-details {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.popup-contact {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 5px;
}

.flood-alert {
    background-color: #ff6b6b;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 12px;
    display: inline-block;
}