/* Map Photo — styles isolés de la feuille principale du site */
.photo-map-section {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 72px;
}

.photo-map-figure {
  margin: 0;
}

.photo-map {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #111;
}

.photo-map > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-map > svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.map-point,
.map-zone {
  cursor: pointer;
}

.map-hotspot:focus-visible {
  outline: none;
}

/* Point précis : 10 px de diamètre sur l'image source 1200 × 1200 */
.map-point {
  fill: #d71920;
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* Zone approximative : 40 px de diamètre sur l'image source */
.map-zone {
  fill: #d71920;
  fill-opacity: 0.12;
  stroke: #d71920;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.map-popup-link {
  stroke: #d71920;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.map-popup-link.is-hidden {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .map-point:hover {
    fill: #ff222b;
  }

  .map-zone:hover {
    fill-opacity: 0.22;
  }
}

.map-popup {
  position: absolute;
  z-index: 4;
  width: min(250px, calc(100% - 24px));
  background: rgba(10, 10, 10, 0.94);
  border: 2px solid #d71920;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.map-popup[hidden] {
  display: none;
}

.map-popup-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.map-popup-body {
  padding: 10px 14px 12px;
}

.map-popup-title {
  margin: 0 0 4px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.map-popup-gallery {
  margin: 0 0 3px;
  font-size: 0.78rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.62;
}

.map-popup-caption {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  opacity: 0.82;
}

.map-popup-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(215, 25, 32, 0.9);
  background: rgba(12, 12, 12, 0.82);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.map-popup-close:hover,
.map-popup-close:focus-visible {
  background: rgba(215, 25, 32, 0.22);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  margin-top: 14px;
  font-size: 0.9rem;
  opacity: 0.82;
}

.map-legend-item {
  display: inline-flex;
  gap: 9px;
  align-items: center;
}

.map-legend-point {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d71920;
  border: 1px solid #fff;
  box-sizing: border-box;
}

.map-legend-zone {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(215, 25, 32, 0.12);
  border: 1px solid #d71920;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .photo-map-section {
    width: min(100%, calc(100% - 20px));
    margin-bottom: 48px;
  }

  .map-popup {
    width: min(250px, calc(100% - 16px));
  }
}
