.nnu-tour-map {
  width: 100%;
  height: 500px;
  margin: 2rem 0;
  max-height: 80vh;
}

.leaflet-control-attribution a:first-child,
.leaflet-control-attribution span {
  display: none;
}

.nnu-tour-map__marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.nnu-tour-map__marker.state-future:hover {
  box-shadow:
    0 0 12px rgba(196, 0, 58, 0.8);
}
.nnu-tour-map__marker.state-past:hover {
  box-shadow:
    0 0 12px rgba(253, 186, 59, 0.9);
}

.nnu-tour-map__marker--bus {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../images/bus.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: marker-pulse 5s ease-in-out infinite;
}

.nnu-tour-map__legend {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  padding: 6px 10px;
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.nnu-tour-map__legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nnu-tour-map__legend-swatch {
  display: inline-block;
  width: 20px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.nnu-tour-map__popup {
  min-width: 180px;
  max-width: 260px;
}

.nnu-tour-map__popup-title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.nnu-tour-map__popup-address,
.nnu-tour-map__popup-description {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: #444;
}

.paragraph {
  .nnu-tour-map__popup-link {
    font-size: 0.85rem;
    font-weight: 600;

    .field--name-field-more-link2 a:hover {
      color: white !important;
    }
  }
}

/* glowing pulse ring */
/* animated glow */
.nnu-tour-map__marker--bus::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  z-index: -1;
  animation: marker-glow 3s ease-in-out infinite;
}

@keyframes marker-glow {
  0%,
  100% {
    transform: scale(0.9);
    background: rgba(253, 186, 59, 0.4);
    box-shadow:
      0 0 12px rgba(253, 186, 59, 0.45);
  }

  50% {
    transform: scale(1);
    background: rgba(196, 0, 58, 0.3);
    box-shadow:
      0 0 18px rgba(196, 0, 58, 0.4);
  }
}

.view-display-id-block_tour_map {
  padding: 2.5rem;
}

.paragraph--view-mode--default:has(.view-tours) {
  background-color: #fff;
}
