/* ============================================================
   Custom map (js/italy-map.js): black, zoom locked in,
   Google-style red pin with address box. Leaflet base styles: css/vendor/leaflet.css
   ============================================================ */

.italy-map.leaflet-container,
.italy-map {
  background: #0d0d0d;
  font: inherit;
}

/* Pin: tip sits on the address (icon anchor = bottom centre) */
.italy-map__marker {
  position: relative;
  display: block;
  fill: #e5322d;
  animation: italy-map-glow 2s ease-in-out infinite;
}

/* Ripple on the ground under the tip, flattened into an ellipse */
.italy-map__pulse {
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(229, 50, 45, 0.9);
  background: rgba(229, 50, 45, 0.25);
  animation: italy-map-pulse 2s ease-out infinite;
}

@keyframes italy-map-pulse {
  from { transform: scale(0.3, 0.12); opacity: 1; }
  to { transform: scale(2, 0.8); opacity: 0; }
}

@keyframes italy-map-glow {
  0%, 100% { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 4px rgba(229, 50, 45, 0.35)); }
  50% { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 12px rgba(229, 50, 45, 0.85)); }
}

/* Address box above the pin */
.italy-map__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 11px;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #b9b4a8;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
}

.italy-map__label span:first-child {
  color: #f4f1e9;
  font-size: 12px;
  font-weight: 500;
}

.italy-map__label::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .italy-map__marker {
    animation: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 8px rgba(229, 50, 45, 0.6));
  }

  .italy-map__pulse {
    animation: none;
    transform: scale(1.2, 0.48);
    opacity: 0.4;
  }
}

/* Controls in the site's dark palette */
.italy-map .leaflet-bar {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0;
  box-shadow: none;
}

.italy-map .leaflet-bar a {
  background: rgba(10, 10, 10, 0.9);
  color: #d9d4c7;
  border-bottom-color: rgba(255, 255, 255, 0.14);
  border-radius: 0 !important;
  transition: color 0.2s ease, background 0.2s ease;
}

.italy-map .leaflet-bar a:hover,
.italy-map .leaflet-bar a:focus-visible {
  background: #161616;
  color: #5ea399;
}

.italy-map .leaflet-bar a.leaflet-disabled {
  background: rgba(10, 10, 10, 0.9);
  color: #444;
}

.italy-map .leaflet-control-attribution {
  background: rgba(0, 0, 0, 0.6);
  color: #777;
  font-size: 10px;
}

.italy-map .leaflet-control-attribution a {
  color: #999;
}
