/* Mapa Leaflet — campings en España */

.mc-map-section {
  margin: 0 0 2.5rem;
}

.mc-map-section__header {
  margin-bottom: 1rem;
  text-align: left;
}

.mc-map-section__header h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.mc-map-section__header p {
  margin: 0.4rem 0 0;
  color: rgba(232, 240, 236, 0.7);
  font-size: 0.95rem;
}

.mc-map-wrap {
  border-radius: 1.15rem;
  border: 1px solid rgba(110, 231, 183, 0.22);
  background: #061612;
  box-shadow:
    0 0 0 1px rgba(222, 255, 154, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

#campings-map.mc-leaflet-map {
  width: 100%;
  height: clamp(22rem, 52vh, 32rem);
  min-height: 320px;
  z-index: 1;
  background: #061612;
}

/* Tono oscuro acorde a Mundo Camping */
.mc-leaflet-map .leaflet-tile-pane {
  filter: brightness(0.72) contrast(1.08) saturate(0.85) hue-rotate(8deg);
}

.mc-leaflet-map .leaflet-control-zoom a {
  background: rgba(8, 16, 13, 0.92);
  color: #deff9a;
  border-color: rgba(110, 231, 183, 0.35);
}

.mc-leaflet-map .leaflet-control-zoom a:hover {
  background: rgba(16, 32, 26, 0.95);
  color: #fff;
}

.mc-leaflet-map .leaflet-control-attribution {
  background: rgba(2, 4, 3, 0.72);
  color: rgba(232, 240, 236, 0.55);
  font-size: 0.62rem;
}

.mc-leaflet-map .leaflet-control-attribution a {
  color: #6ee7b7;
}

/* Pin personalizado */
.mc-leaflet-pin-wrap {
  background: transparent;
  border: 0;
}

.mc-leaflet-pin {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
}

.mc-leaflet-pin__ring {
  position: absolute;
  inset: 2px;
  border-radius: 9999px;
  border: 2px solid rgba(222, 255, 154, 0.75);
  animation: mc-leaflet-pulse 2s ease-out infinite;
}

.mc-leaflet-pin__core {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 9999px;
  border: 3px solid #fff;
  background: linear-gradient(145deg, #deff9a 0%, #22c55e 55%, #059669 100%);
  box-shadow:
    0 0 12px rgba(222, 255, 154, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.45);
}

@keyframes mc-leaflet-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* Popup Leaflet */
.mc-leaflet-popup-shell .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 0.85rem;
  border: 1px solid rgba(222, 255, 154, 0.25);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%),
    #0a1410;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  color: #f8faf9;
}

.mc-leaflet-popup-shell .leaflet-popup-content {
  margin: 0;
  width: min(280px, calc(100vw - 3rem)) !important;
}

.mc-leaflet-popup-shell .leaflet-popup-tip {
  background: #0a1410;
  border: 1px solid rgba(222, 255, 154, 0.2);
  box-shadow: none;
}

.mc-leaflet-popup-shell .leaflet-popup-close-button {
  color: #deff9a !important;
  font-size: 1.25rem;
  padding: 0.35rem 0.5rem;
}

.mc-leaflet-popup__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.85rem 0.85rem 0 0;
  background: #07100d;
}

.mc-leaflet-popup__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mc-leaflet-popup__body {
  padding: 0.75rem 0.85rem 0.85rem;
}

.mc-leaflet-popup__meta {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6ee7b7;
}

.mc-leaflet-popup__title {
  margin: 0.28rem 0 0;
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.mc-leaflet-popup__desc {
  margin: 0.42rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(232, 240, 236, 0.82);
}

.mc-leaflet-popup__cta {
  display: inline-flex;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #deff9a;
  text-decoration: none;
}

.mc-leaflet-popup__cta:hover {
  text-decoration: underline;
}

.mc-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(110, 231, 183, 0.18);
  background: rgba(110, 231, 183, 0.05);
  font-size: 0.72rem;
  color: rgba(232, 240, 236, 0.78);
}

.mc-map-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.mc-map-legend__dot {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  border: 2px solid #fff;
  background: linear-gradient(145deg, #deff9a, #22c55e);
  box-shadow: 0 0 8px rgba(222, 255, 154, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .mc-leaflet-pin__ring {
    animation: none;
    opacity: 0.45;
  }
}

@media (max-width: 640px) {
  #campings-map.mc-leaflet-map {
    height: clamp(18rem, 45vh, 24rem);
    min-height: 288px;
  }
}
