/* Restyle the Mapbox GL popup close button to match the app's design
   (the vendored mapbox-gl.css default renders it as a plain, unstyled
   square "x" button). Selector is scoped with an extra class so it wins
   over the vendored rule regardless of stylesheet load order. */
.mapboxgl-popup .mapboxgl-popup-close-button {
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 16px;
  line-height: 1;
  color: #6b7280;
  background-color: transparent;
}

.mapboxgl-popup .mapboxgl-popup-close-button:hover {
  background-color: #f3f4f6;
  color: #111827;
}

/* Mapbox focuses the popup's first link ("Voir la fiche") when it opens,
   which triggers the browser's default square focus outline. Replace it
   with a rounded ring that follows the pill shape instead. */
.mapboxgl-popup-content a:focus-visible {
  outline: none;
}

.mapboxgl-popup-content {
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.15);
  padding: 14px;
}

.adherents-map-marker {
  cursor: pointer;
}

.adherents-map-marker:hover {
  cursor: pointer;
}

.adherents-map-popup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.adherents-map-popup__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #111827;
}

.adherents-map-popup__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.adherents-map-popup__category-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #374151;
  background-color: #f3f4f6;
}

.adherents-map-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.adherents-map-popup__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.adherents-map-popup__action:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.adherents-map-popup__action:active {
  transform: translateY(0);
}

.adherents-map-popup__action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(251, 123, 113, 0.28);
}

.adherents-map-popup__action--primary {
  border: none;
}

.adherents-map-popup__action--primary:hover {
  opacity: 0.9;
}

.adherents-map-popup__action--secondary {
  padding: 0.625rem 1.125rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
}

.adherents-map-popup__action--secondary:hover {
  color: #ffffff;
}
