/* Mapa de Santa Catarina em bloco de terra 3D — compartilhado: página inicial e Cadastros (home/includes/mapa_3d.html).
   Tamanho do ponto = --tam-ponto (tela) × --peso (quantidade de clientes, só no mapa interno). */
.mapa-cena{position:relative;perspective:1700px;padding:10px 0 40px}
.mapa-3d{position:relative;width:100%;transform:rotateX(50deg) rotateZ(-9deg);transform-style:preserve-3d;margin-top:-30px}
.mapa-3d::before{content:'';position:absolute;inset:8% 4%;border-radius:50%;background:radial-gradient(closest-side,rgba(0,0,0,.6),rgba(0,0,0,0));
  transform:translateZ(-70px);filter:blur(14px)}
.mapa-3d svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.mapa-3d .pulsos{pointer-events:none}
.mapa-3d .camada{transform:translateZ(calc(var(--z) * -4px))}
.camada path{fill:#3a2718;stroke:#24170e;stroke-width:1.2}
.topo .estado{fill:url(#gramado);stroke:rgba(238,248,226,.35);stroke-width:1.4;stroke-linejoin:round}
.topo .estado.vizinho{fill:url(#gramadoVizinho)}
.ponto{cursor:pointer}
.ponto .marca,.pulsos .marca{transform:scale(calc(var(--tam-ponto,1.5) * var(--peso,1)))}
.ponto.casa,.pulsos .casa{--tam-ponto:1.7}
.ponto .nucleo{fill:#fff3d6;stroke:#fff;stroke-width:1.5;transition:fill .2s}
.ponto.ativo .nucleo{fill:#fff}
.ponto.selecionado .nucleo{fill:#f4c95d;stroke:#fff}
.ponto.casa .nucleo{fill:#f4c95d;stroke:#fff7dc}
.pulsos .onda{fill:none;stroke:#fff3d6;stroke-width:2.5;transform-box:fill-box;transform-origin:center;animation:pulso 2.6s ease-out infinite}
.pulsos .casa .onda{stroke:#f4c95d}
.mapa-rotulo{position:absolute;z-index:3;transform:translate(-50%,-100%);background:#f5efe3;color:#24502a;font-weight:800;font-size:.86rem;
  padding:.35rem .7rem;border-radius:10px;white-space:nowrap;pointer-events:none;box-shadow:0 10px 24px -10px rgba(0,0,0,.7)}
.mapa-rotulo::after{content:'';position:absolute;left:50%;bottom:-5px;width:10px;height:10px;background:#f5efe3;transform:translateX(-50%) rotate(45deg)}
.mapa-cena.pausado .pulsos .onda{animation-play-state:paused}
@keyframes pulso{0%{transform:scale(.5);opacity:.95}100%{transform:scale(2.6);opacity:0}}

@media (max-width:960px){
  .mapa-3d{transform:rotateX(42deg) rotateZ(-7deg);margin-top:-10px}
  .ponto .marca,.pulsos .marca{--tam-ponto:2.6}
  .ponto.casa .marca,.pulsos .casa .marca{--tam-ponto:3}
}
@media (prefers-reduced-motion:reduce){
  .pulsos{display:none}
}
