/* Atlas V19: correções geográficas isoladas, sem modificar a malha de PE */
/* Destaca Empresas como módulo distinto do catálogo científico */
.topbar .top-nav .nav-item[data-page="empresas"]{background:rgba(31,157,125,.17)!important;color:#a4f2d1!important;border:1px solid rgba(113,233,186,.24)!important;border-radius:12px!important;font-weight:800!important;letter-spacing:.1px!important}
.topbar .top-nav .nav-item[data-page="empresas"]:hover{background:rgba(40,180,134,.31)!important;color:#f3fff8!important}
.topbar .top-nav .nav-item[data-page="empresas"].is-active{background:linear-gradient(120deg,#1e9f81,#0a776c)!important;color:white!important;border-color:rgba(178,255,217,.52)!important;box-shadow:0 5px 18px rgba(11,122,101,.2)!important}
/* Explorar: evita destaque retangular escuro do foco SVG e qualquer resíduo da cena antiga. */
#explorar-page #atlas-geo-overlay,
#explorar-page #atlas-geo-world,
#explorar-page #atlas-geo-polygons,
#explorar-page .atlas-municipality,
#explorar-page .atlas-municipality:focus,
#explorar-page .atlas-municipality:focus-visible,
#explorar-page .atlas-municipality.is-chosen{outline:0!important;box-shadow:none!important;filter:none!important}
#explorar-page .atlas-municipality.is-chosen{stroke:#f2c664!important;stroke-opacity:1!important;stroke-width:2.7px!important;fill-opacity:.18!important}
#explorar-page .atlas-geo-viewport{background:#dcebe5!important;outline:0!important;box-shadow:none!important}
#explorar-page .atlas-map-tile{background:transparent!important}
/* Empresas: verde contínuo também ao selecionar município; somente contorno amarelo no escolhido */
#empresas-page #atlas-business-viewport{background:#c5ded4!important}
#empresas-page .atlas-biz-overlay, #empresas-page #atlas-business-world,#empresas-page #atlas-business-polygons{outline:none!important;box-shadow:none!important;filter:none!important}
#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:.13!important;opacity:1!important;stroke:#ffcb55!important;stroke-opacity:1!important;stroke-width:3.2px!important;outline:none!important;box-shadow:none!important;filter:none!important}
#empresas-page .atlas-biz-viewport svg .atlas-biz-polygon:not(.selected){opacity:1!important}
#empresas-page .atlas-v19-geocoded-point{pointer-events:visiblePainted;cursor:pointer;filter:drop-shadow(0 2px 2px rgba(6,57,47,.22))}
#empresas-page .atlas-v18-directory-head p{color:#cde8de!important}
@media(max-width:680px){.topbar .top-nav .nav-item[data-page="empresas"]{padding-inline:12px!important}}


/* Atlas V22: refinamentos finais de controles e foco municipal */
/* Explorar: controles mais compactos e proporcionais */
#explorar-page .atlas-map-actions{align-items:flex-end!important;gap:7px!important}
#explorar-page .atlas-map-zoom{width:30px!important;min-width:30px!important;max-width:30px!important;border-radius:11px!important;overflow:hidden!important;background:rgba(248,252,251,.96)!important;border:1px solid rgba(28,95,87,.12)!important;box-shadow:0 10px 24px rgba(8,35,42,.14)!important}
#explorar-page #atlas-map-plus,#explorar-page #atlas-map-minus{width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important;font:600 17px/1 'Space Grotesk',sans-serif!important}
#explorar-page #atlas-map-minus{border-top:1px solid rgba(29,96,87,.11)!important;font-size:18px!important}
#explorar-page #atlas-map-fit{height:34px!important;min-height:34px!important;width:34px!important;min-width:34px!important;padding:0!important;border-radius:12px!important;display:grid!important;place-items:center!important;background:rgba(248,252,251,.96)!important;border:1px solid rgba(28,95,87,.12)!important;box-shadow:0 10px 24px rgba(8,35,42,.14)!important;color:#134e4c!important;font-size:16px!important}
#explorar-page #atlas-map-fit:hover,#explorar-page #atlas-map-plus:hover,#explorar-page #atlas-map-minus:hover{background:#eef7f3!important;color:#0a7068!important}

/* Empresas: botões laterais no padrão novo */
#empresas-page .atlas-biz-actions{top:14px!important;right:14px!important;gap:8px!important}
#empresas-page .atlas-biz-actions>button,#empresas-page .atlas-biz-zoom{background:rgba(8,22,31,.78)!important;border:1px solid rgba(153,219,200,.18)!important;box-shadow:0 16px 34px rgba(6,22,28,.22)!important;color:#ecfff8!important;backdrop-filter:blur(18px)!important}
#empresas-page #atlas-business-layers{height:38px!important;min-width:38px!important;padding:0 12px!important;font-size:12px!important;font-weight:800!important;border-radius:14px!important}
#empresas-page #atlas-business-layers span{font-size:11px!important}
#empresas-page .atlas-biz-zoom{display:flex!important;flex-direction:column!important;overflow:hidden!important;border-radius:13px!important}
#empresas-page #atlas-business-zoom-in,#empresas-page #atlas-business-zoom-out{width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important;font:600 18px/1 'Space Grotesk',sans-serif!important;color:#ecfff8!important;background:transparent!important}
#empresas-page #atlas-business-zoom-out{border-top:1px solid rgba(171,230,210,.12)!important}
#empresas-page #atlas-business-reset{width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:14px!important;display:grid!important;place-items:center!important;font-size:16px!important}
#empresas-page .atlas-biz-actions button:hover,#empresas-page .atlas-biz-actions button:focus-visible{background:rgba(14,42,49,.94)!important;color:white!important}
#empresas-page .atlas-v18-back{background:linear-gradient(135deg,#da4b58,#b91c3f)!important;color:#fff7f8!important;border:1px solid rgba(255,210,217,.24)!important;box-shadow:0 14px 30px rgba(121,14,36,.24)!important;padding:11px 14px!important;border-radius:13px!important}
#empresas-page .atlas-v18-back:hover{filter:brightness(1.06)!important}

/* Pontos geocodificados: leitura mais limpa */
#empresas-page .atlas-v19-geocoded-point{filter:drop-shadow(0 2px 3px rgba(7,39,37,.18))!important}
@media(max-width:780px){
  #explorar-page .atlas-map-zoom{width:29px!important;min-width:29px!important;max-width:29px!important}
  #explorar-page #atlas-map-plus,#explorar-page #atlas-map-minus{width:29px!important;min-width:29px!important;max-width:29px!important;height:29px!important;min-height:29px!important;max-height:29px!important;font-size:16px!important}
  #explorar-page #atlas-map-fit{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important}
  #empresas-page #atlas-business-layers{height:36px!important}
  #empresas-page #atlas-business-reset{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important}
  #empresas-page #atlas-business-zoom-in,#empresas-page #atlas-business-zoom-out{width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;font-size:17px!important}
}

/* V23 - correção real do esticamento: a coluna flex antiga aplicava align-items:stretch.
   Agora o CONTAINER não amplia os filhos até a largura do botão Camadas. */
#empresas-page #atlas-business-map .atlas-biz-actions{
  display:flex!important;flex-direction:column!important;align-items:flex-end!important;
  width:max-content!important;max-width:max-content!important;min-width:0!important;
  gap:7px!important;
}
#empresas-page #atlas-business-map .atlas-biz-zoom{
  display:flex!important;flex-direction:column!important;align-self:flex-end!important;
  flex:0 0 auto!important;box-sizing:content-box!important;
  width:32px!important;min-width:32px!important;max-width:32px!important;
  height:64px!important;min-height:64px!important;max-height:64px!important;
  padding:0!important;margin:0!important;overflow:hidden!important;
}
#empresas-page #atlas-business-map .atlas-biz-zoom > button{
  box-sizing:border-box!important;display:grid!important;place-items:center!important;
  flex:0 0 32px!important;align-self:flex-start!important;
  width:32px!important;min-width:32px!important;max-width:32px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
  font:600 18px/1 'Space Grotesk',sans-serif!important;
}
#empresas-page #atlas-business-map #atlas-business-zoom-out{border-top:1px solid rgba(171,230,210,.18)!important}
#empresas-page #atlas-business-map #atlas-business-reset{align-self:flex-end!important;flex:0 0 36px!important;box-sizing:border-box!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important}
#empresas-page #atlas-business-map #atlas-business-layers{align-self:flex-end!important;flex:0 0 auto!important}
/* Explorar: impedir que a coluna estique a caixa de zoom ao tamanho de Camadas */
#explorar-page .atlas-map-actions{align-items:flex-end!important;width:max-content!important;max-width:max-content!important;min-width:0!important}
#explorar-page .atlas-map-zoom{align-self:flex-end!important;flex:0 0 auto!important;box-sizing:content-box!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:60px!important;min-height:60px!important;max-height:60px!important;padding:0!important}
#explorar-page .atlas-map-zoom > button{box-sizing:border-box!important;flex:0 0 30px!important;align-self:flex-start!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;padding:0!important}
#explorar-page #atlas-map-fit{align-self:flex-end!important}
/* Detalhe de agrupamentos: permite identificar empresas no zoom máximo */
#empresas-page #atlas-business-map .atlas-biz-cluster-detail{
  position:absolute;z-index:30;top:12px;right:116px;width:min(310px,calc(100% - 150px));
  max-height:min(460px,calc(100% - 82px));display:flex;flex-direction:column;
  padding:14px;background:rgba(8,31,39,.97);border:1px solid rgba(178,226,206,.3);
  border-radius:18px;box-shadow:0 22px 55px rgba(2,22,30,.35);color:#eafff7;
  box-sizing:border-box;backdrop-filter:blur(16px);
}
#empresas-page .atlas-biz-cluster-detail[hidden]{display:none!important}
#empresas-page .atlas-biz-cluster-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
#empresas-page .atlas-biz-cluster-head small{display:block;font-size:9px;letter-spacing:1.1px;color:#91c6b7;font-weight:800}
#empresas-page .atlas-biz-cluster-head strong{display:block;font:700 20px/1.2 'Space Grotesk',sans-serif;margin-top:4px}
#empresas-page #atlas-business-cluster-close{width:28px;height:28px;flex:0 0 28px;background:rgba(219,245,235,.11);color:#d9fcf3;border:1px solid rgba(219,245,235,.13);border-radius:9px;cursor:pointer;font-size:22px;line-height:1}
#empresas-page #atlas-business-cluster-explain{font-size:10px;line-height:1.5;color:#c0d6d2;margin:10px 0}
#empresas-page .atlas-biz-cluster-records{min-height:0;overflow-y:auto;overscroll-behavior:contain;border-top:1px solid rgba(177,231,209,.15);scrollbar-color:#688d81 transparent}
#empresas-page .atlas-biz-cluster-record{padding:10px 4px;border-bottom:1px solid rgba(177,231,209,.12);overflow-wrap:anywhere}
#empresas-page .atlas-biz-cluster-record.is-highlighted{background:rgba(255,215,116,.16)}
#empresas-page .atlas-biz-cluster-record strong{display:block;font-size:11px;line-height:1.35;color:white}
#empresas-page .atlas-biz-cluster-record small{display:block;font-size:10px;line-height:1.45;color:#b5d9ca;margin-top:3px}
#empresas-page .atlas-biz-cluster-footer{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-top:12px;flex-wrap:wrap}
#empresas-page .atlas-biz-cluster-footer button{border-radius:9px;padding:8px 10px;background:#14786b;color:#eafff5;cursor:pointer;font-size:10px;font-weight:800;border:1px solid rgba(158,235,207,.18)}
#empresas-page .atlas-biz-cluster-footer button:first-child{background:rgba(221,245,233,.12)}
#empresas-page #atlas-business-cluster-closer[hidden],#empresas-page #atlas-business-cluster-more[hidden]{display:none!important}
#empresas-page .atlas-biz-spider-point{cursor:pointer;filter:drop-shadow(0 2px 3px rgba(9,39,35,.3))}
#empresas-page .atlas-biz-spider-point:hover,#empresas-page .atlas-biz-spider-point:focus{fill:#fff1ac;stroke:#0e7270;stroke-width:3}
@media(max-width:780px){
 #empresas-page #atlas-business-map .atlas-biz-zoom{width:30px!important;min-width:30px!important;max-width:30px!important;height:60px!important;min-height:60px!important;max-height:60px!important}
 #empresas-page #atlas-business-map .atlas-biz-zoom > button{flex-basis:30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;font-size:17px!important}
 #explorar-page .atlas-map-zoom{width:29px!important;min-width:29px!important;max-width:29px!important;height:58px!important;min-height:58px!important;max-height:58px!important}
 #explorar-page .atlas-map-zoom > button{flex-basis:29px!important;width:29px!important;min-width:29px!important;max-width:29px!important;height:29px!important;min-height:29px!important;max-height:29px!important}
 #empresas-page #atlas-business-map .atlas-biz-cluster-detail{top:auto;bottom:45px;left:10px;right:10px;width:auto;max-height:65%;padding:12px}
}
