/* ─── TOUR MAP STYLES ─────────────────────────────────────────────────────── */

.map-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.tour-map {
  height: 420px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.15);
  background: #fff;
}
.map-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.map-legend {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.map-legend-pin {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.map-legend-line {
  width: 24px;
  height: 4px;
  border-radius: 2px;
}
.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tour-map-locked {
  height: 420px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.15);
  background: #fff;
}
/* Blur + desaturate the map when locked for teaser effect */
.tour-map-locked .leaflet-tile-pane {
  filter: blur(6px) saturate(0.6) brightness(1.05);
}
.tour-map-locked .leaflet-marker-icon {
  filter: blur(5px) opacity(0.4);
}
.tour-map-locked .leaflet-overlay-pane {
  filter: blur(5px) opacity(0.4);
}
.tour-map-locked .leaflet-control-zoom,
.tour-map-locked .leaflet-control-attribution {
  display: none;
}
.map-locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-radius: 16px;
}
.map-locked-content {
  text-align: center;
  padding: 2rem;
}
.map-locked-content svg {
  color: #3b82f6;
  margin-bottom: 0.75rem;
}
.map-locked-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1e28;
  margin: 0 0 0.35rem;
  letter-spacing: -0.3px;
}
.map-locked-desc {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 1.25rem;
  font-weight: 400;
}
.map-unlock-btn {
  display: inline-block;
  padding: 0.8rem 2rem !important;
  font-size: 1rem !important;
  box-shadow: 0 4px 16px rgba(232, 168, 56, 0.3);
}

/* Custom Leaflet marker styles */
.custom-stop-marker {
  background: transparent !important;
  border: none !important;
}
/* Light-themed popups with BLUE text */
.leaflet-popup-content-wrapper {
  background: #fff;
  color: #2563eb;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
}
.leaflet-popup-content {
  color: #2563eb;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}
.leaflet-popup-content strong {
  color: #1d4ed8;
}
.leaflet-popup-tip {
  background: #fff;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}
.leaflet-popup-close-button {
  color: #94a3b8 !important;
}
.leaflet-popup-close-button:hover {
  color: #475569 !important;
}
.leaflet-control-attribution {
  background: rgba(255,255,255,0.85) !important;
  font-size: 10px;
  color: #64748b;
}
.leaflet-control-attribution a {
  color: #3b82f6 !important;
}

@media (max-width: 768px) {
  .tour-map, .tour-map-locked {
    height: 320px;
    border-radius: 12px;
  }
  .map-container { border-radius: 12px; }
  .map-locked-overlay { border-radius: 12px; }
  .map-legend {
    gap: 1rem;
  }
  .map-locked-title { font-size: 1.1rem; }
}
