.agri-weather-map-container {
    position: relative;
    margin: 20px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.agri-weather-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.weather-legend {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    font-family: Arial, sans-serif;
}

.weather-legend h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #2271b1;
    padding-bottom: 8px;
}

.weather-legend p {
    margin: 8px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

.weather-legend strong {
    color: #2271b1;
}

.weather-legend .legend-note {
    margin-top: 12px;
    font-size: 11px;
    font-style: italic;
    color: #888;
    border-top: 1px solid #eee;
    padding-top: 8px;
}

.weather-legend.farmer-friendly h4 {
    font-size: 18px;
    color: #2d5016;
    border-bottom-color: #5a9216;
}

.weather-legend.farmer-friendly .legend-item {
    margin: 12px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
    border-left: 4px solid #5a9216;
}

.weather-legend.farmer-friendly .legend-item strong {
    display: block;
    font-size: 15px;
    color: #2d5016;
    margin-bottom: 5px;
}

.weather-legend.farmer-friendly .legend-item p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #666;
}

.weather-legend .legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #999;
}

.farmer-friendly-mode .leaflet-control-layers {
    font-size: 16px;
}

.farmer-friendly-mode .leaflet-control-layers label {
    padding: 8px 10px;
}

.farmer-friendly-mode .leaflet-control-zoom a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 24px;
}

.leaflet-control-layers-toggle {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzNiIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDM2IDM2Ij48cGF0aCBkPSJNMCAwaDM2djM2SDB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTEyIDhsMTIgMTAtMTIgMTB6IiBmaWxsPSIjMzMzIi8+PC9zdmc+');
}

@media (max-width: 768px) {
    .weather-legend {
        max-width: 250px;
        padding: 12px;
        font-size: 12px;
    }
    
    .weather-legend h4 {
        font-size: 14px;
    }
    
    .weather-legend p {
        font-size: 11px;
    }
    
    .weather-legend.farmer-friendly .legend-item {
        padding: 8px;
    }
    
    .weather-legend.farmer-friendly .legend-item strong {
        font-size: 13px;
    }
    
    .agri-weather-map {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .weather-legend {
        max-width: 200px;
        padding: 10px;
    }
    
    .weather-legend h4 {
        font-size: 13px;
    }
    
    .weather-legend p {
        font-size: 10px;
    }
}

.leaflet-control-layers {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.leaflet-control-layers-expanded {
    padding: 10px;
}

.leaflet-control-layers label {
    padding: 5px;
    font-size: 14px;
}

.leaflet-popup-content {
    font-family: Arial, sans-serif;
    font-size: 14px;
}
