/* ATLAS V18. Corrige controles reais, libera altura do mapa empresarial e drill-down municipal.
   Mantém topbar global e SVG geográfico anteriores. */

/* O V17 errava o alvo (#explorar-page.atlas-real-map não recebe essa classe na versão de produção).
   Aplique aos IDs efetivos no DOM, impedindo que .atlas-map-zoom herde a largura da coluna. */
#explorar-page .atlas-map-actions{align-items:flex-end!important;gap:7px!important}
#explorar-page .atlas-map-zoom{
  width:33px!important;max-width:33px!important;min-width:33px!important;
  height:auto!important;align-self:flex-end!important;flex:0 0 auto!important;
  border-radius:11px!important;display:flex!important;flex-direction:column!important;
  box-sizing:border-box!important;overflow:hidden!important;
}
#explorar-page #atlas-map-plus,
#explorar-page #atlas-map-minus{
  box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:31px!important;min-width:31px!important;max-width:31px!important;
  height:31px!important;min-height:31px!important;max-height:31px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
  font:500 18px/1 'Space Grotesk',sans-serif!important;letter-spacing:0!important;
  flex:0 0 31px!important;box-shadow:none!important;
}
#explorar-page #atlas-map-minus{border-top:1px solid #dce8e4!important;font-size:19px!important}
#explorar-page #atlas-map-plus:hover,#explorar-page #atlas-map-minus:hover{background:#e8f5ef!important}
#explorar-page #atlas-map-plus:focus-visible,#explorar-page #atlas-map-minus:focus-visible{outline:2px solid #078675!important;outline-offset:-3px!important}

/* 01. Empresas: remove todo o bloco de abertura SEM remover os IDs dos dados usados no JS. */
#empresas-page .business-head.atlas-biz-head-v14,
#empresas-page.atlas-biz-live .business-head.atlas-biz-head-v14,
#empresas-page.atlas-biz-preparing .business-head.atlas-biz-head-v14{display:none!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important}
#empresas-page.atlas-biz-live{padding-top:94px!important}
#empresas-page.atlas-biz-live .business-filters{
  padding:8px clamp(16px,2.4vw,33px)!important;
  background:linear-gradient(100deg,#09252f,#0c303a)!important;
  border-top:1px solid rgba(153,216,197,.12)!important;
}
#empresas-page.atlas-biz-live .biz-layout{min-height:0!important}
#empresas-page.atlas-biz-live .biz-map-panel{min-height:0!important}

/* 02. Município selecionado: contorno amarelo e nada de quadrado preto, sombra ou fill escuro. */
#empresas-page .atlas-biz-viewport svg .atlas-biz-polygon.selected,
#empresas-page .atlas-biz-viewport svg .atlas-biz-polygon.selected:hover,
#empresas-page .atlas-biz-viewport svg .atlas-biz-polygon.selected:focus,
#empresas-page .atlas-biz-viewport svg .atlas-biz-polygon.selected:focus-visible{
  fill-opacity:.025!important;stroke:#ffca53!important;stroke-width:3.2px!important;
  stroke-opacity:1!important;outline:none!important;box-shadow:none!important;filter:none!important;
}
#empresas-page .atlas-biz-viewport svg .atlas-biz-polygon{outline:0!important;box-shadow:none!important;filter:none!important}
#empresas-page .atlas-biz-viewport{outline:none!important}
#empresas-page .atlas-biz-viewport:focus-visible{outline:2px solid rgba(31,123,112,.35)!important;outline-offset:-2px!important}

/* 03. CTA dentro do painel municipal e diretório. */
#empresas-page .atlas-v18-enter{
  display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:13px 15px;margin:0 0 15px;
  background:linear-gradient(125deg,#b2ebd1,#7acdb8)!important;color:#0a3238!important;
  border:1px solid rgba(236,255,244,.38);border-radius:13px;font-weight:800;font-size:12px;
  cursor:pointer;box-shadow:0 8px 18px rgba(0,10,12,.15);text-align:left;
}
#empresas-page .atlas-v18-enter:hover{filter:brightness(1.08)}
#empresas-page .atlas-v18-enter[hidden],#empresas-page #atlas-v18-municipal-directory[hidden]{display:none!important}
#empresas-page.atlas-v18-municipal-mode .atlas-biz-aside-inner>.biz-detail-stats,
#empresas-page.atlas-v18-municipal-mode .atlas-biz-aside-inner>.biz-dimension-head,
#empresas-page.atlas-v18-municipal-mode .atlas-biz-aside-inner>.biz-sector-bars,
#empresas-page.atlas-v18-municipal-mode .atlas-biz-aside-inner>.biz-detail-actions,
#empresas-page.atlas-v18-municipal-mode .atlas-biz-place-hero,
#empresas-page.atlas-v18-municipal-mode #biz-detail-label,
#empresas-page.atlas-v18-municipal-mode #atlas-v18-enter-city{display:none!important}
#empresas-page.atlas-v18-municipal-mode .atlas-biz-aside-inner{padding-top:10px}
#empresas-page .atlas-v18-directory{color:#e7f5ee;font-family:'DM Sans',sans-serif}
#empresas-page .atlas-v18-back{background:rgba(139,208,183,.1);color:#a5e4cd;border:1px solid rgba(160,230,202,.17);border-radius:12px;padding:10px 13px;cursor:pointer;font-weight:800;font-size:11px;margin:3px 0 17px}
#empresas-page .atlas-v18-directory-head{border-bottom:1px solid rgba(165,218,200,.16);padding-bottom:16px}
#empresas-page .atlas-v18-directory-head>span{font-size:9px;letter-spacing:1.2px;font-weight:800;color:#8db6ae}
#empresas-page .atlas-v18-directory-head h4{font:600 30px/1.1 'Space Grotesk',sans-serif;margin:9px 0;color:#e7fbf3;letter-spacing:-1.1px}
#empresas-page .atlas-v18-directory-head p{font-size:11px;line-height:1.55;margin:0;color:#b0ceca}
#empresas-page .atlas-v18-city-filters{display:flex;flex-direction:column;gap:8px;padding:17px 0 12px}
#empresas-page .atlas-v18-city-filters label{font-size:9px;color:#a4cec3;font-weight:700;letter-spacing:.5px}
#empresas-page .atlas-v18-city-filters input,#empresas-page .atlas-v18-city-filters select{width:100%;min-width:0;box-sizing:border-box;height:39px;padding:0 12px;background:#09242e;border:1px solid rgba(146,211,190,.23);border-radius:10px;color:white;outline-offset:1px;font-size:12px}
#empresas-page .atlas-v18-city-filters button{height:41px;border-radius:11px;background:#a6e1cb;color:#092c2d;font-size:12px;font-weight:800;cursor:pointer;margin-top:3px}
#empresas-page .atlas-v18-city-count{font-size:10px;line-height:1.5;color:#afd7cb;padding:6px 0 10px}
#empresas-page .atlas-v18-city-results{display:flex;flex-direction:column;gap:9px}
#empresas-page .atlas-v18-record{padding:12px 11px;border-radius:13px;border:1px solid rgba(133,185,174,.18);background:rgba(178,226,202,.045);overflow-wrap:anywhere}
#empresas-page .atlas-v18-record-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:6px}
#empresas-page .atlas-v18-record-top strong{font-size:12px;line-height:1.35;color:#eafaf1}
#empresas-page .atlas-v18-record-top span{font-size:9px;color:#95dbc1;white-space:nowrap}
#empresas-page .atlas-v18-record small{display:block;color:#a7bbb9;font-size:9px;line-height:1.6}
#empresas-page .atlas-v18-record p{font-size:10px;color:#bed7d1;line-height:1.5;margin:7px 0 3px}
#empresas-page .atlas-v18-record a{font-size:10px;color:#93dfc5;display:inline-block;margin-top:7px;font-weight:700}
#empresas-page .atlas-v18-no-results,#empresas-page .atlas-v18-city-disclaimer{font-size:10px;line-height:1.6;color:#9fbbb7;padding:9px 0}
.atlas-v18-verified-point{pointer-events:visiblePainted;cursor:pointer;filter:drop-shadow(0 2px 3px #173b38aa)}
@media(max-width:780px){
 #empresas-page.atlas-biz-live{padding-top:132px!important}
 #empresas-page.atlas-biz-live .biz-map-panel{height:clamp(450px,69dvh,680px)!important;min-height:450px!important}
 #empresas-page.atlas-biz-live .business-filters{padding:8px 13px!important}
 #explorar-page .atlas-map-zoom{width:32px!important;min-width:32px!important;max-width:32px!important}
 #explorar-page #atlas-map-plus,#explorar-page #atlas-map-minus{height:30px!important;min-height:30px!important;max-height:30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;flex-basis:30px!important;font-size:17px!important}
}
