/* LM-CLIMA-MAPAS-GEOGRAFICOS-V3 */
#lm-clima .lc-map-pair {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:20px;align-items:start;
}
#lm-clima .lc-map-pair > section {min-width:0}
#lm-clima .lc-map-controls {
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;
}
#lm-clima .lc-map-controls label:nth-child(2) {
 grid-column:1/-1;grid-row:2;
}
#lm-clima select {
 display:block;width:100%;box-sizing:border-box;
 min-height:52px!important;height:auto!important;
 margin:8px 0 14px;padding:12px 36px 12px 14px!important;
 font-size:15px!important;line-height:1.5!important;
 text-transform:none!important;letter-spacing:normal!important;
 border:1px solid #8996a855;border-radius:9px;
 background:var(--lc-panel);color:inherit;
}
#lm-clima .lc-geo-stage {
 position:relative;overflow:hidden;border-radius:10px;
 background:rgba(110,150,175,.10);
}
#lm-clima .lc-geo-stage svg {
 display:block;width:100%;height:auto;aspect-ratio:600/640;
 touch-action:none;cursor:grab;
}
#lm-clima .lc-geo-stage svg:active {cursor:grabbing}
#lm-clima .lc-geo-land {fill:rgba(140,150,155,.25)}
#lm-clima .lc-geo-coast {stroke:currentColor;stroke-width:.8;opacity:.7}
#lm-clima .lc-geo-labels {fill:currentColor;pointer-events:none}
#lm-clima .lc-geo-labels text {
 font-size:11px;paint-order:stroke;
 stroke:var(--lc-panel,#fff);stroke-width:3px;stroke-linejoin:round;
}
#lm-clima .lc-geo-toolbar {
 position:absolute;top:10px;left:10px;z-index:2;
 display:flex;gap:5px;
}
#lm-clima .lc-geo-toolbar button {
 display:grid;place-items:center;width:38px;height:38px;
 margin:0;padding:0;line-height:1;font-size:22px;
 border:1px solid #8996a866;border-radius:7px;
 background:var(--lc-panel,#fff);color:inherit;cursor:pointer;
}
#lm-clima .lc-map-legend {
 display:flex;flex-wrap:wrap;gap:8px 12px;margin:16px 0;font-size:12px;
}
#lm-clima .lc-map-legend span {display:inline-flex;align-items:center;gap:5px}
#lm-clima .lc-map-legend i {width:16px;height:12px;border-radius:2px}
#lm-clima :is(#lc-map-valor,#lc-state-valor) {min-height:42px}
@media(max-width:900px){
 #lm-clima .lc-map-pair {grid-template-columns:1fr}
}
@media(max-width:480px){
 #lm-clima .lc-map-controls {grid-template-columns:1fr}
 #lm-clima .lc-map-controls label:nth-child(2){grid-column:auto;grid-row:auto}
}

/* LM-CLIMA-MAPAS-V4 */
#lm-clima .lc-map-heading{box-sizing:border-box}
#lm-clima .lc-map-pair > section{align-self:start}
#lm-clima .lc-geo-tooltip{
 position:absolute;right:10px;bottom:10px;z-index:3;
 max-width:calc(100% - 20px);box-sizing:border-box;
 padding:10px 12px;border:1px solid #8996a866;border-radius:9px;
 background:var(--lc-panel,#fff);color:inherit;
 box-shadow:0 4px 16px #0002;font-size:13px;line-height:1.5;
 pointer-events:none;
}
#lm-clima .lc-geo-tooltip[hidden]{display:none!important}
#lm-clima .lc-geo-stage svg:focus-visible{
 outline:2px solid #1686a2;outline-offset:-2px;
}

/* LM-CLIMA-LEGENDA-TOOLTIP-V5 */
#lm-clima .lc-map-legend {
 display:flex;
 flex-wrap:nowrap !important;
 gap:6px !important;
 overflow-x:auto;
 padding:4px 0 8px;
 font-size:10px;
}
#lm-clima .lc-map-legend span {
 flex:0 0 auto;
 white-space:nowrap;
 gap:3px;
}
#lm-clima .lc-map-legend i {
 width:10px;
 height:10px;
 flex:0 0 10px;
}
#lm-clima .lc-geo-tooltip {
 right:auto;
 bottom:auto;
 max-width:calc(100% - 16px);
 font-size:13px;
 white-space:normal;
 pointer-events:none;
}
#lm-clima #lc-map-valor,
#lm-clima #lc-state-valor {
 display:none !important;
}

/* LM-CLIMA-SOLO-IFS-V1 */
#lm-clima .lc-geo-tooltip{
 white-space:pre-line!important;
 max-width:min(340px,calc(100% - 16px));
 line-height:1.4;
}

/* LM-CLIMA-GRADIENTE-TOQUE-V6 */
#lm-clima .lc-map-legend{
 display:flex!important;
 flex-wrap:nowrap!important;
 align-items:center!important;
 gap:8px!important;
 width:100%;
 min-width:0;
 overflow:visible!important;
 box-sizing:border-box;
 padding:8px 0!important;
}
#lm-clima .lc-gradient-bar{
 position:relative;
 flex:1 1 0;
 min-width:0;
 height:29px;
 border-radius:6px;
 border:1px solid #718096;
 box-sizing:border-box;
}
#lm-clima .lc-gradient-mark{
 position:absolute;
 top:50%;
 transform:translate(-50%,-50%);
 display:block!important;
 white-space:nowrap;
 font-size:11px!important;
 line-height:16px;
 padding:0 3px;
 color:#182433!important;
 background:#ffffff!important;
 border-radius:3px;
}
#lm-clima .lc-gradient-mark.is-first{transform:translate(2px,-50%)}
#lm-clima .lc-gradient-mark.is-last{
 transform:translate(calc(-100% - 2px),-50%);
}
#lm-clima .lc-gradient-unit{
 flex:0 0 auto;
 white-space:nowrap;
 font-size:11px;
}
#lm-clima .lc-geo-stage{position:relative}
#lm-clima .lc-geo-tooltip{
 position:absolute!important;
 z-index:80!important;
 background:#ffffff!important;
 background-image:none!important;
 color:#182433!important;
 opacity:1!important;
 backdrop-filter:none!important;
 -webkit-backdrop-filter:none!important;
 border:1px solid #718096!important;
 border-radius:8px;
 box-shadow:0 5px 18px #0003;
 padding:10px 12px!important;
 max-width:min(290px,calc(100% - 16px))!important;
 box-sizing:border-box;
 font-size:13px!important;
 line-height:1.45!important;
 white-space:pre-line!important;
 pointer-events:none!important;
}
#lm-clima .lc-geo-tooltip[hidden]{display:none!important}
html:is(.s-dark,.site-s-dark,[data-theme="dark"])
 #lm-clima .lc-geo-tooltip,
body:is(.s-dark,.site-s-dark) #lm-clima .lc-geo-tooltip{
 background:#17283f!important;
 color:#f2f6fc!important;
 border-color:#64748b!important;
}

/* LM-AGROMETEOROLOGIA-DIRETA-V2 */
#lm-clima #lc-agrometeorologia{
 display:block;clear:both;width:100%;
 box-sizing:border-box;margin-top:24px;
}
#lm-clima #lc-agrometeorologia h2{margin:0 0 18px}
#lm-clima .lc-agro-viewer{width:100%;max-width:640px;margin:0 auto}
#lm-clima .lc-agro-controls{
 display:flex;flex-direction:column;gap:8px;margin-bottom:12px;
}
#lm-clima #lc-agro-var{
 display:block;width:100%;min-width:0;min-height:52px;
 padding:12px 38px 12px 14px;font-size:16px;line-height:1.4;
 box-sizing:border-box;
 background:var(--lc-panel,#fff);color:var(--lc-text,#182433);
}
#lm-clima #lc-agro-status{min-height:24px;margin:10px 0 14px}
#lm-clima #lc-agro-valor{
 position:absolute!important;width:1px!important;height:1px!important;
 padding:0!important;margin:-1px!important;overflow:hidden!important;
 clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}

/* LM-AGRO-LARGURA-SELECAO-V3 */
#lm-clima #lc-agro-row{
 display:grid;
 grid-template-columns:minmax(0,1fr);
 gap:var(--lc-agro-gap,20px);
 width:100%;
 margin-top:24px;
 align-items:start;
}
#lm-clima #lc-agro-row #lc-agrometeorologia{
 width:100%!important;
 min-width:0;
 margin:0!important;
 grid-column:1;
}
#lm-clima #lc-agro-row .lc-agro-viewer{
 width:100%!important;
 max-width:none!important;
 margin:0!important;
}
@media(min-width:901px){
 #lm-clima #lc-agro-row{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
#lm-clima #lc-agro-var{
 height:52px!important;
 min-height:52px!important;
 font-size:16px!important;
 padding:12px 38px 12px 14px!important;
}
#lm-clima .lc-geo-labels text{
 fill:#142033!important;
 stroke:#ffffff!important;
 stroke-width:2.5px!important;
 paint-order:stroke fill!important;
 stroke-linejoin:round;
}
#lm-clima .lc-geo-labels circle{
 fill:#142033!important;
 stroke:#ffffff!important;
 stroke-width:1px;
}
#lm-clima .lc-geo-selection{
 pointer-events:none!important;
}

/* LM-CLIMA-LEGENDAS-CENTRADAS-V1 */
#lm-clima :is(
 #lc-map-legenda,
 #lc-state-legenda,
 #lc-agro-legenda,
 #lc-evo-legend
){
 width:100%;
 box-sizing:border-box;
 display:flex !important;
 justify-content:center !important;
 align-items:center;
 margin-inline:auto !important;
}
#lm-clima :is(
 #lc-map-legenda,
 #lc-state-legenda,
 #lc-agro-legenda,
 #lc-evo-legend
) .lc-gradient-bar{
 flex:1 1 auto;
 min-width:0;
}

/* LM-LEGENDAS-CENTRO-V2 */
#lm-clima :is(
 #lc-map-legenda,#lc-state-legenda,
 #lc-agro-legenda,#lc-evo-legend
){
 display:grid !important;
 grid-template-columns:minmax(0,1fr) max-content !important;
 gap:12px !important;
 align-items:center !important;
 width:calc(100% - 48px) !important;
 max-width:520px !important;
 margin:12px auto !important;
 padding-inline:0 !important;
 box-sizing:border-box !important;
}
#lm-clima :is(
 #lc-map-legenda,#lc-state-legenda,
 #lc-agro-legenda,#lc-evo-legend
) .lc-gradient-bar{
 width:100% !important;
 min-width:0 !important;
 max-width:none !important;
 margin-inline:0 !important;
 justify-self:stretch !important;
}
#lm-clima :is(
 #lc-map-legenda,#lc-state-legenda,
 #lc-agro-legenda,#lc-evo-legend
) .lc-gradient-unit{
 margin:0 !important;
 white-space:nowrap !important;
 justify-self:end !important;
}
@media(max-width:600px){
 #lm-clima :is(
  #lc-map-legenda,#lc-state-legenda,
  #lc-agro-legenda,#lc-evo-legend
 ){
  width:calc(100% - 24px) !important;
  gap:8px !important;
 }
}


/* LM-CLIMA-LEGENDAS-EIXO-MAPA-V3 */
html body #lm-clima :is(
 #lc-map-legenda,#lc-state-legenda,
 #lc-agro-legenda,#lc-evo-legend
){
 display:grid!important;
 grid-template-columns:minmax(0,1fr) minmax(0,4fr) minmax(0,1fr)!important;
 align-items:start!important;
 gap:8px!important;
 width:100%!important;
 max-width:none!important;
 height:46px!important;
 min-height:46px!important;
 margin:12px auto 0!important;
 padding:0!important;
 box-sizing:border-box!important;
 overflow:visible!important;
}
html body #lm-clima :is(
 #lc-map-legenda,#lc-state-legenda,
 #lc-agro-legenda,#lc-evo-legend
) .lc-gradient-bar{
 grid-column:2!important;
 grid-row:1!important;
 width:100%!important;
 max-width:none!important;
 min-width:0!important;
 height:12px!important;
 margin:0!important;
 justify-self:stretch!important;
}
html body #lm-clima :is(
 #lc-map-legenda,#lc-state-legenda,
 #lc-agro-legenda,#lc-evo-legend
) .lc-gradient-unit{
 grid-column:3!important;
 grid-row:1!important;
 width:auto!important;
 min-width:0!important;
 margin:0!important;
 padding:0!important;
 justify-self:end!important;
 text-align:right!important;
 font-size:11px!important;
 line-height:12px!important;
 white-space:nowrap!important;
}



/* LM-CLIMA-RODAPE-NATIVO-V3 */
html body.page-template-lm-clima-portugal{
 --lm-clima-fundo:var(--c-main-bg,#ffffff);
 background-color:var(--lm-clima-fundo)!important;
}
html:is(.s-dark,.site-s-dark,[data-theme="dark"])
 body.page-template-lm-clima-portugal,
html body.page-template-lm-clima-portugal:is(.s-dark,.site-s-dark){
 --lm-clima-fundo:#0e1a2f;
}
html body.page-template-lm-clima-portugal :is(
 .main-wrap,.main,.content-wrap
){
 background-color:var(--lm-clima-fundo)!important;
 background-image:none!important;
 padding-bottom:0!important;
 margin-bottom:0!important;
}
html body.page-template-lm-clima-portugal #lm-clima{
 margin-bottom:0!important;
 padding-bottom:24px!important;
}
html body.page-template-lm-clima-portugal :is(
 .main-footer,.footer-wrap,.site-footer
){
 margin-top:0!important;
}
