/* US Precipitation Map Stylesheet */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: aliceblue;
}

h2 {
    text-align: center;
    margin: 8px 0 4px 0;
    font-size: 18px;
    color: #333;
}

.subtitle {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

#map {
    width: 100%;
    height: 320px;
}

.info {
    padding: 8px 12px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    max-width: 220px;
}

.info h4 {
    margin: 0 0 6px;
    color: #333;
    font-size: 15px;
    border-bottom: 2px solid #7ed321;
    padding-bottom: 4px;
}

.info p {
    color: #555;
    font-size: 12px;
    margin: 3px 0;
}

.info .value {
    font-weight: bold;
    color: #006837;
    font-size: 18px;
}

.info .description {
    font-style: italic;
    color: #888;
}

.legend-container {
    background: white;
    padding: 8px 12px;
    text-align: center;
    border-top: 1px solid #ddd;
}

.legend-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
}

.legend-scale {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 10px;
    color: #555;
}

.legend-item i {
    width: 18px;
    height: 12px;
    margin-right: 4px;
    display: inline-block;
    border-radius: 2px;
    border: 1px solid #ccc;
}

.hover-instruction {
    text-align: center;
    font-size: 11px;
    color: #888;
    padding: 4px;
    font-style: italic;
}

@media (max-width: 600px) {
    #map { height: 280px; }
    .info { max-width: 180px; font-size: 11px; }
    .legend-scale { gap: 3px 8px; }
    .legend-item { font-size: 9px; }
}
