/* Mapa meteorológico — extensão visual do Clima Brasil */
#view-mapa .page-header{margin-bottom:20px}
.map-title-row{align-items:center}
.map-summary-bar{background:#fff;border:1px solid var(--border);border-radius:13px;padding:12px 18px;display:flex;gap:24px;flex-wrap:wrap;align-items:center;color:#758399;font-size:12px;margin-bottom:16px}
.map-summary-bar .map-live{display:flex;align-items:center;color:#178974;font-weight:700;gap:8px}
.map-summary-bar .online-dot{flex:none}
.map-workspace{display:grid;grid-template-columns:minmax(0,1fr) 306px;gap:16px;align-items:stretch}
.map-main-panel,.map-sidebar{background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.map-main-panel{min-width:0}
.map-toolbar{display:flex;gap:5px;padding:12px;flex-wrap:wrap;border-bottom:1px solid var(--border);background:#fdfefe}
.map-layer-btn{color:#627286;background:transparent;border:1px solid transparent;padding:9px 12px;font-size:12px;font-weight:750;border-radius:8px;white-space:nowrap;transition:.18s}
.map-layer-btn:hover{background:#f0f4f9;color:#1f3e5e}
.map-layer-btn.active{color:#fff;border-color:#162941;background:#162941;box-shadow:0 2px 5px #1b314820}
.map-layer-btn.radar-btn.active{background:#147aab;border-color:#147aab}
.map-container{height:610px;position:relative;background:#dbe9ee}
#weather-map{height:100%;width:100%;z-index:1}
.map-loader{position:absolute;left:50%;top:17px;transform:translateX(-50%);z-index:500;pointer-events:none;padding:11px 17px;text-align:center;max-width:90%;width:max-content;border:1px solid #b9d0e0;border-radius:10px;color:#0e3b57;background:#effaffee;box-shadow:0 6px 25px #122e4340;font-weight:650;font-size:12px}
.map-loader[hidden]{display:none}
.map-loader.map-loader-error{background:#fff3ef;color:#a54232;border-color:#f8cfc8}
.map-corner-help{position:absolute;bottom:12px;left:12px;z-index:400;color:#223c57;font-size:11px;font-weight:650;background:#ffffffed;padding:8px 12px;border-radius:7px;max-width:calc(100% - 25px);pointer-events:none}
.map-legend-row{padding:15px 16px;display:flex;flex-direction:column;gap:10px;border-top:1px solid var(--border)}
.map-legend{display:flex;gap:11px;align-items:center;flex-wrap:wrap;font-size:11px;color:#647487}
.map-legend strong{color:#20334b;font-size:12px;margin-right:7px}
.map-legend-item{display:inline-flex;gap:5px;align-items:center;white-space:nowrap}
.key-color{display:inline-block;width:12px;height:12px;border-radius:3px;background:#cbd5e1}
.map-model-note{font-size:11px;color:#8898a7}
.radar-gradient{display:inline-block;width:110px;height:10px;border-radius:3px;background:linear-gradient(90deg,#def4ff,#a0d7ff,#3472d1,#143f8e)}
.map-sidebar{padding:23px;align-self:stretch;min-width:0}
.map-side-head{margin-bottom:17px}
.map-side-head h2{font-size:22px;margin:6px 0;color:#17283f;line-height:1.25}
.map-side-head p{color:#8997a7;font-size:12px;margin:0;line-height:1.6}
.map-featured{background:linear-gradient(145deg,#eaf5ff,#edf9f6);padding:20px;border-radius:13px;display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 20px}
.map-featured div{display:flex;flex-direction:column;align-items:flex-start}
.map-featured span:first-child{color:#60798d;font-size:10px;font-weight:850;letter-spacing:.9px}
.map-featured strong{color:#1a3452;font-size:41px;line-height:1.25;margin:4px 0;font-weight:800}
.map-featured small{color:#65849c;font-size:12px}
.map-big-icon{background:#d7ecfa;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;color:#3889bc}
.map-big-icon .icon{width:26px;height:26px}
.map-metric-list>div{display:flex;justify-content:space-between;gap:9px;align-items:center;padding:11px 0;border-bottom:1px solid #eef2f7;font-size:12px}
.map-metric-list>div span{color:#78879a}.map-metric-list>div b{color:#1f3852;text-align:right;font-weight:800}
.map-observed{display:flex;align-items:center;color:#8696a5;font-size:11px;line-height:1.6;gap:8px;margin:18px 0}.map-observed .icon{width:15px;height:15px}
.map-shortcuts{border-top:1px solid #eef2f7;padding-top:17px}.map-shortcuts>p{font-size:12px;font-weight:750;color:#273d55;margin:0 0 11px}.map-region-grid{display:flex;gap:7px;flex-wrap:wrap}
.map-region-grid button{background:#f3f7fa;border:1px solid #e4eaf1;padding:8px 10px;border-radius:7px;font-size:11px;font-weight:700;color:#436078}
.map-region-grid button:hover{background:#e6f1fa}
.map-disclaimer{margin:16px 0 0;line-height:1.7}
.map-marker-shell,.map-city-shell{background:transparent;border:0}
.map-data-dot{width:60px;height:38px;border-radius:10px;border:2px solid #ffffffef;box-shadow:0 3px 12px #172b416e;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:850;color:#12304d;background:#f1f5f9;cursor:pointer;transition:transform .2s}
.map-data-dot:hover{transform:scale(1.10)}
.grade-cold{background:#69b6f0;color:#0a2950}.grade-cool{background:#a1dbe7;color:#13475d}.grade-mild{background:#c6e8b1;color:#2c503d}.grade-warm{background:#ffd27a;color:#634212}.grade-hot{background:#f38278;color:#722b22}
.grade-dry{background:#e9f2f6;color:#51657a}.grade-light{background:#b3e6e9;color:#155567}.grade-medium{background:#78b6ee;color:#15406d}.grade-heavy{background:#5473d3;color:#fff}.grade-extreme{background:#533ea5;color:#fff}
.grade-calm{background:#ddeee4;color:#315b47}.grade-breeze{background:#b4e5d2;color:#1a604a}.grade-windy{background:#80cbb2;color:#184d42}.grade-strong{background:#edaa78;color:#653b19}.grade-storm{background:#d46b70;color:#fff}
.map-city-pin{width:19px;height:19px;border:4px solid #fff;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#12283d;box-shadow:0 2px 9px #0f20368f;cursor:pointer;display:grid;place-items:center}
.map-city-pin span{width:5px;height:5px;background:#fff;border-radius:50%;display:block}
#weather-map .leaflet-control-zoom{border:0;box-shadow:0 3px 12px #233a5230}#weather-map .leaflet-control-zoom a{color:#15304d}
#weather-map .leaflet-control-attribution{font-size:10px}
@media(max-width:1260px){.map-workspace{grid-template-columns:minmax(0,1fr) 255px}.map-sidebar{padding:18px}.map-featured strong{font-size:35px}}
@media(max-width:1000px){.map-workspace{grid-template-columns:1fr}.map-sidebar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 25px}.map-side-head,.map-featured{margin-bottom:0}.map-metric-list{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.map-observed{grid-column:1/-1;margin:0}.map-shortcuts{grid-column:1/-1}.map-container{height:490px}}
@media(max-width:650px){.map-summary-bar{gap:9px;flex-direction:column;align-items:flex-start;padding:12px}.map-layer-btn{flex:1 0 auto;text-align:center;padding:10px 6px;font-size:11px}.map-container{height:440px}.map-sidebar{display:block;padding:17px}.map-side-head{margin-bottom:14px}.map-featured{margin-bottom:12px}.map-metric-list{display:block}.map-observed{margin:14px 0}.map-corner-help{font-size:10px;bottom:18px}.map-legend{gap:8px}.map-title-row .button{margin-top:12px}}
/* Texto de créditos precisa quebrar em telas pequenas, sem deslocar o viewport */
.map-disclaimer{display:block;overflow-wrap:anywhere}
.map-disclaimer .icon{vertical-align:middle;margin-right:6px}
