#map {
  flex: 1;
  height: 100vh;
  position: relative;
}

#map::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 20%, rgba(60, 140, 220, 0.22), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(40, 220, 140, 0.18), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55)),
    linear-gradient(rgba(110, 180, 170, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 180, 170, 0.08) 1px, transparent 1px);
  mix-blend-mode: screen;
  z-index: 1;
  animation: mapGlowDrift 18s ease-in-out infinite;
  background-size: 140% 140%, 140% 140%, 140% 140%, 48px 48px, 48px 48px;
}

#map::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.45;
  z-index: 1;
}

.marker-hh,
.marker-special {
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35)) drop-shadow(0 0 8px rgba(70, 180, 255, 0.15));
  transform: translateY(-2px);
}

@keyframes mapGlowDrift {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 60% 40%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* --- Markers --- */

.marker-hh-active {
}

.marker-star-active {
}

/* --- Popup --- */
.venue-popup .mapboxgl-popup-content {
  background: #fff;
  color: #222;
  border: none;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  max-height: 400px;
  overflow: hidden;
  min-width: 220px;
}

/* --- Map Controls (Zoom + Geolocate) --- */
.mapboxgl-ctrl-group {
  background: rgba(10, 14, 20, 0.9);
  border: 1px solid rgba(120, 200, 170, 0.25);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  overflow: hidden;
}

.mapboxgl-ctrl-group button {
  background: transparent;
  color: #cfe6ff;
  border: none;
}

.mapboxgl-ctrl-group button:hover {
  background: rgba(140, 220, 190, 0.12);
}

.mapboxgl-ctrl-group button:focus {
  outline: none;
}

.mapboxgl-ctrl-group button + button {
  border-top: 1px solid rgba(120, 200, 170, 0.18);
}

/* Our custom geolocation button */
.geo-btn {
  background: rgba(10, 14, 20, 0.9);
  border: 1px solid rgba(120, 200, 170, 0.25);
  color: #cfe6ff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.geo-btn:hover {
  background: rgba(140, 220, 190, 0.12);
  color: #e6f2ff;
}

.venue-popup .mapboxgl-popup-tip {
  border-top-color: #fff;
}

/* Hide default close button — we use a custom one in the header */
.venue-popup .mapboxgl-popup-close-button {
  display: none;
}

/* --- Header banner --- */
.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 12px 12px 0 0;
}

.popup-header--hh {
  background: #f9c922;
}

.popup-header--special {
  background: #22b822;
}

.popup-header-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: var(--font-mono);
  color: #fff;
}

.popup-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.popup-header-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}

.popup-header-close:hover {
  color: #fff;
}

.popup-header-close:focus,
.popup-header-close:focus-visible {
  outline: none;
  box-shadow: none;
}

/* --- Body --- */
.popup-body {
  padding: 14px 14px 12px;
  overflow-y: auto;
  max-height: 320px;
  position: relative;
}

.popup-venue-name {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin: 0 0 4px 0;
  line-height: 1.2;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.popup-description {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.4;
  font-family: var(--font-body);
}

.popup-promo-description {
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.4;
  font-family: var(--font-body);
}

.popup-menu-link {
  display: none;
  font-size: 13px;
  color: #222;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-bottom: 8px;
  transition: color 0.15s;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.popup-menu-link:hover {
  color: #555;
}

.popup-special-name {
  font-size: 14px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-display);
}

.popup-special-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.popup-special-link:hover {
  color: #555;
}

.popup-notes {
  font-size: 12px;
  color: #888;
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.4;
  font-family: var(--font-body);
}

.popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid #eee;
}

.popup-footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.popup-time-status {
  font-size: 12px;
  color: #000;
  font-style: italic;
  font-family: var(--font-mono);
}

.popup-ig-link,
.popup-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #222;
  background: transparent;
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.popup-menu-icon {
  background: rgba(0, 0, 0, 0.03);
  color: #222;
}

.popup-ig-link:hover,
.popup-menu-icon:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.popup-time-status--active {
  color: #000;
}

.popup-time-status--soon {
  color: #c32020;
}

 

/* --- Scrollbar for popup body --- */
.popup-body::-webkit-scrollbar {
  width: 4px;
}

.popup-body::-webkit-scrollbar-track {
  background: transparent;
}

.popup-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
