/* =========================================================================
 * Mapa de Setores de Coleta — estilos
 * Namespace .ffmap-* para não conflitar com o restante do site.
 * ========================================================================= */

.ffmap-wrap {
  position: relative;
}

.ffmap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ffmap-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border, #e5e7eb);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  background: #fff;
}

#setoresMap {
  width: 100%;
  height: var(--ffmap-height, 520px);
  z-index: 1;
}

/* Rótulos dos setores (tooltip permanente) */
.ffmap-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #1f2933;
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 1px 2px #fff, 0 0 3px #fff, 0 0 6px #fff;
  padding: 0 !important;
}
.ffmap-label::before {
  display: none !important; /* remove a seta do tooltip */
}
.ffmap-label-point {
  font-size: 12px;
  font-weight: 600;
}

/* Marcadores de ponto (Área Industrial, Fapig...) */
.ffmap-pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

/* Legenda */
.ffmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 14px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px;
  background: #fff;
  margin-top: 12px;
}
.ffmap-legend-title {
  width: 100%;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #667085);
  margin-bottom: 2px;
}
.ffmap-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  margin: 0;
}
.ffmap-leg-item input {
  cursor: pointer;
  accent-color: #1e7a3a;
}
.ffmap-leg-swatch {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.ffmap-leg-swatch.is-point {
  border-radius: 50%;
}
.ffmap-leg-item input:not(:checked) ~ .ffmap-leg-name {
  text-decoration: line-through;
  color: var(--muted, #98a2b3);
}
.ffmap-leg-item input:not(:checked) ~ .ffmap-leg-swatch {
  opacity: 0.3;
}

.ffmap-error {
  padding: 40px;
  text-align: center;
  color: #b42318;
}

@media (max-width: 576px) {
  #setoresMap {
    height: 380px;
  }
}
