/* Clustered Map styles — Cyberpunk + Vapor theme
   - Rounded containers and popups
   - Neon cyan/magenta accents and glows
   - High contrast labels
*/

.cluster-map-wrap {
  --neon-cyan: #00e5ff;
  --neon-magenta: #ea39b8;
  --vapor-cyan: #8be9fd;
  --vapor-magenta: #ff79c6;
  --bg-dark: rgba(10, 10, 20, 0.7);
}

/* Sidebar */
.cluster-sidebar {
  min-width: 240px;
  background: rgba(10, 10, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(139, 233, 253, 0.25);
  box-shadow:
    0 6px 24px rgba(0, 229, 255, 0.2),
    0 0 0 2px rgba(234, 57, 184, 0.08) inset;
}
@media (max-width: 576px) {
  .cluster-sidebar {
    min-width: 0;
    width: 100%;
  }
}
.cluster-sidebar .form-control {
  background-color: rgba(20, 20, 30, 0.8);
  color: #e6f7ff;
  border-radius: 12px;
  border: 1px solid rgba(139, 233, 253, 0.3);
}
.cluster-sidebar .form-control:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 229, 255, 0.25);
}

/* Map container */
#camps-cluster-map.map-container.cluster-map {
  position: relative;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a14;
  box-shadow:
    0 0 0 1px rgba(139, 233, 253, 0.25),
    0 10px 30px rgba(234, 57, 184, 0.25),
    0 0 40px rgba(0, 229, 255, 0.15);
}
#camps-cluster-map.map-container.cluster-map::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      1200px 800px at 10% 10%,
      rgba(234, 57, 184, 0.06),
      transparent 60%
    ),
    radial-gradient(
      800px 600px at 90% 30%,
      rgba(0, 229, 255, 0.06),
      transparent 60%
    ),
    linear-gradient(
      to bottom right,
      rgba(139, 233, 253, 0.025),
      rgba(255, 121, 198, 0.025)
    ),
    repeating-linear-gradient(
      to right,
      rgba(139, 233, 253, 0.06) 0 1px,
      rgba(255, 255, 255, 0) 1px 24px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(234, 57, 184, 0.06) 0 1px,
      rgba(255, 255, 255, 0) 1px 24px
    );
  mix-blend-mode: screen;
}

/* Popups */
.mapboxgl-popup.neon-popup .mapboxgl-popup-content,
.maplibregl-popup.neon-popup .maplibregl-popup-content {
  background: rgba(10, 10, 20, 0.85);
  color: #e6f7ff;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.55);
  box-shadow:
    0 12px 36px rgba(234, 57, 184, 0.25),
    0 0 0 2px rgba(234, 57, 184, 0.08) inset,
    0 0 24px rgba(0, 229, 255, 0.25);
}
.mapboxgl-popup.neon-popup .mapboxgl-popup-tip,
.maplibregl-popup.neon-popup .maplibregl-popup-tip {
  border-top-color: rgba(10, 10, 20, 0.85) !important;
}
.popup-title {
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}
.popup-subtitle {
  color: #b0eaff;
}
.popup-link a {
  color: var(--vapor-magenta);
  font-weight: 600;
  text-decoration: none;
}
.popup-link a:hover {
  color: #ff93d5;
  text-decoration: underline;
}

/* Cluster count */
.cluster-count {
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
/* Map cluster styles */
.cluster-map-wrap {
  min-height: 500px;
}

.cluster-sidebar {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 250px;
}

.cluster-map {
  height: 500px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.map-container {
  position: relative;
}

/* Neon popup styles */
.neon-popup .mapboxgl-popup-content,
.neon-popup .maplibregl-popup-content {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #0bcdf4;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(11, 205, 244, 0.3);
  color: white;
  max-width: 250px;
}

.popup-title {
  font-weight: bold;
  color: #0bcdf4;
  margin-bottom: 8px;
}

.popup-subtitle {
  color: #b5179e;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.popup-link a {
  color: #00e5ff;
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid #00e5ff;
  border-radius: 4px;
  display: inline-block;
  transition: all 0.2s;
}

.popup-link a:hover {
  background: #00e5ff;
  color: black;
}

/* Map theme variations */
.map-theme--violet {
  --cluster-primary: #6f2dbd;
  --cluster-secondary: #b5179e;
  --cluster-accent: #0bcdf4;
}

.map-theme--aqua {
  --cluster-primary: #0bcdf4;
  --cluster-secondary: #00e5ff;
  --cluster-accent: #6f2dbd;
}

.map-theme--magenta {
  --cluster-primary: #b5179e;
  --cluster-secondary: #ea39b8;
  --cluster-accent: #0bcdf4;
}

.map-theme--matrix {
  --cluster-primary: #00ff00;
  --cluster-secondary: #008000;
  --cluster-accent: #00ff41;
}
/* Controls hover neon */
.mapboxgl-ctrl-group,
.maplibregl-ctrl-group {
  background: rgba(10, 10, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(139, 233, 253, 0.25);
  box-shadow:
    0 6px 20px rgba(0, 229, 255, 0.2),
    0 0 0 2px rgba(234, 57, 184, 0.08) inset;
  border-radius: 12px;
}
.mapboxgl-ctrl button:hover,
.maplibregl-ctrl button:hover {
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow:
    0 0 12px rgba(0, 229, 255, 0.4),
    0 0 1px rgba(0, 0, 0, 0.4) inset;
}
.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}
