.camerge-mapa-widget {
  width: 100%;
  box-sizing: border-box;
  font-family: "Lato", Arial, sans-serif;
}

.camerge-mapa-widget *,
.camerge-mapa-widget *::before,
.camerge-mapa-widget *::after {
  box-sizing: border-box;
}

.camerge-mapa-widget .mapa-camerge {
  position: relative;
  width: 100%;
  max-width: var(--camerge-mapa-max-width, 520px);
  margin: 0 auto;
}

.camerge-mapa-widget .camerge-mapa-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.camerge-mapa-widget .camerge-mapa-svg path[data-name],
.camerge-mapa-widget .camerge-mapa-svg polygon[data-name] {
  fill: var(--cor-base, #015d7f) !important;
  stroke: rgba(255, 255, 255, 0.16) !important;
  stroke-width: 0.9px !important;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  outline: none;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    fill 0.22s ease,
    transform 0.15s ease,
    stroke 0.22s ease,
    stroke-width 0.22s ease,
    filter 0.22s ease;
}

.camerge-mapa-widget .camerge-mapa-svg path[data-ativos="0"],
.camerge-mapa-widget .camerge-mapa-svg polygon[data-ativos="0"] {
  fill: #aac9d4 !important;
  stroke: rgba(1, 93, 127, 0.22) !important;
  stroke-width: 1px !important;
}

.camerge-mapa-widget .camerge-mapa-svg path[data-name]:hover,
.camerge-mapa-widget .camerge-mapa-svg polygon[data-name]:hover,
.camerge-mapa-widget .camerge-mapa-svg path[data-active="1"],
.camerge-mapa-widget .camerge-mapa-svg polygon[data-active="1"],
.camerge-mapa-widget .camerge-mapa-svg path[data-name]:focus-visible,
.camerge-mapa-widget .camerge-mapa-svg polygon[data-name]:focus-visible {
  fill: #0f7095 !important;
  stroke: rgba(255, 255, 255, 0.64) !important;
  stroke-width: 1.35px !important;
  filter: brightness(0.98);
  transform: scale(1.018);
}

.camerge-mapa-widget .camerge-mapa-svg path[data-ativos="0"]:hover,
.camerge-mapa-widget .camerge-mapa-svg polygon[data-ativos="0"]:hover,
.camerge-mapa-widget .camerge-mapa-svg path[data-ativos="0"][data-active="1"],
.camerge-mapa-widget .camerge-mapa-svg polygon[data-ativos="0"][data-active="1"],
.camerge-mapa-widget .camerge-mapa-svg path[data-ativos="0"]:focus-visible,
.camerge-mapa-widget .camerge-mapa-svg polygon[data-ativos="0"]:focus-visible {
  fill: #177da0 !important;
  stroke: rgba(255, 255, 255, 0.68) !important;
  stroke-width: 1.4px !important;
}

#camerge-mapa-tooltip-global {
  position: fixed;
  display: none;
  min-width: 190px;
  max-width: min(280px, calc(100vw - 20px));
  padding: 11px 13px;
  border: 1px solid rgba(1, 93, 127, 0.1);
  border-radius: 10px;
  background: #fff;
  color: #015d7f;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 2147483647;
  font-family: "Lato", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
}

#camerge-mapa-tooltip-global .tt-top,
.camerge-mapa-mobile-panel .tt-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

#camerge-mapa-tooltip-global .tt-uf,
.camerge-mapa-mobile-panel .tt-uf {
  font-weight: 800;
}

#camerge-mapa-tooltip-global .tt-regiao,
.camerge-mapa-mobile-panel .tt-regiao {
  font-size: 12px;
  opacity: 0.75;
}

#camerge-mapa-tooltip-global .tt-linha,
.camerge-mapa-mobile-panel .tt-linha {
  margin-top: 4px;
  color: #167da0;
}

#camerge-mapa-tooltip-global .tt-linha b,
.camerge-mapa-mobile-panel .tt-linha b {
  color: #015d7f;
}

.camerge-mapa-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.camerge-mapa-loading.is-visible {
  opacity: 1;
  visibility: visible;
}

.camerge-mapa-loading__box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(1, 93, 127, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  color: #015d7f;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.camerge-mapa-loading__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(1, 93, 127, 0.18);
  border-top-color: #015d7f;
  border-radius: 50%;
  animation: camergeMapaSpin 0.8s linear infinite;
}

@keyframes camergeMapaSpin {
  to { transform: rotate(360deg); }
}

.camerge-mapa-status {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  display: none;
  padding: 7px 10px;
  border: 1px solid rgba(1, 93, 127, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  color: #015d7f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.camerge-mapa-status.is-visible {
  display: block;
}

.camerge-mapa-mobile-panel {
  display: none;
}

@media (max-width: 767px) {
  .camerge-mapa-widget .mapa-camerge {
    max-width: min(var(--camerge-mapa-max-width, 520px), 100%);
  }

  .camerge-mapa-widget .camerge-mapa-svg path[data-name]:hover,
  .camerge-mapa-widget .camerge-mapa-svg polygon[data-name]:hover {
    transform: none;
  }

  .camerge-mapa-mobile-panel {
    display: block;
    min-height: 92px;
    margin: 12px auto 0;
    padding: 13px 14px;
    border: 1px solid rgba(1, 93, 127, 0.1);
    border-radius: 12px;
    background: #fff;
    color: #015d7f;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.35;
  }

  .camerge-mapa-mobile-panel.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(1, 93, 127, 0.72);
    font-weight: 700;
  }

  .camerge-mapa-status {
    right: 10px;
    bottom: 10px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .camerge-mapa-widget .camerge-mapa-svg path[data-name],
  .camerge-mapa-widget .camerge-mapa-svg polygon[data-name],
  .camerge-mapa-loading {
    transition: none;
  }

  .camerge-mapa-loading__spinner {
    animation: none;
  }
}
