/**
 * Pins carte — style PointFinder (teardrop + Flaticon).
 * Couleurs d’origine : wp-content/uploads/pfstyles/pf-style-custompoints.css
 */

.an-pf-marker.leaflet-div-icon {
  background: transparent !important;
  border: 0 !important;
}

.pf-pinarrow {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 6px 0 6px;
  line-height: 0;
  position: absolute;
  overflow: hidden;
  z-index: 1;
}

/* MAP PIN STYLE 1 — goutte */
.pf-map-pin-1 {
  display: block;
  border-radius: 50% 50% 50% 0;
  position: absolute;
  transform: rotate(-45deg);
  z-index: 1;
  left: 50%;
  top: 50%;
  cursor: pointer;
  overflow: hidden;
}

.pf-map-pin-1::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.pf-map-pin-1 i {
  position: absolute;
  transform: rotate(45deg);
  z-index: 1;
}

.pf-map-pin-1-middle {
  width: 36px;
  height: 36px;
  margin: -41px 0 0 -18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-map-pin-1-middle::after {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  left: 50%;
  top: 50%;
}

.pf-map-pin-1-middle i {
  font-size: 14px;
  line-height: 14px;
}

/* MAP PIN STYLE 2 — carré + flèche */
.pf-map-pin-2 {
  display: block;
  border-radius: 8px;
  position: absolute;
  left: 50%;
  top: 50%;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
}

.pf-map-pin-2::after {
  content: "";
  position: absolute;
  border-radius: 6px;
}

.pf-map-pin-2 i {
  position: absolute;
  z-index: 1;
}

.pf-map-pin-2-middle {
  width: 36px;
  height: 36px;
  margin: -40px 0 0 -18px;
}

.pf-map-pin-2-middle::after {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  left: 50%;
  top: 50%;
}

.pf-map-pin-2-middle i {
  font-size: 17px;
  line-height: 18px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
}

/* Couleurs par type (site d’origine) */
.pfcat13-mapicon { background: #81d742; }
.pfcat13-mapicon::after { background: #fff; }
.pfcat13-mapicon i { color: #3dc662; }

.pfcat14-mapicon { background: #00a8ce; }
.pfcat14-mapicon::after { background: #fff; }
.pfcat14-mapicon i { color: #0087d1; }

.pfcat74-mapicon { background: #a600d8; }
.pfcat74-mapicon::after { background: #fff; }
.pfcat74-mapicon i { color: #7900f2; }

.an-pin--certified {
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.35);
}

.an-map.is-loading {
  position: relative;
  background: var(--an-bg-elevated, #1a1f24);
}

.an-map.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
  animation: an-map-shimmer 1.2s infinite;
}

@keyframes an-map-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.an-map-popup {
  font-size: var(--an-text-sm, 0.875rem);
  line-height: 1.45;
}

.an-map-popup a {
  font-weight: 600;
}

/* ── Clusters par catégorie ── */
.an-map-cluster-wrap {
  background: transparent !important;
  border: 0 !important;
}

.an-map-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--an-cluster-color, #81d742) 88%, #0a0c0f);
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--an-cluster-color, #81d742) 45%, transparent);
  color: #0a0c0e;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.an-map-cluster span {
  transform: translateY(0.5px);
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: transparent !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: transparent !important;
}
