/* ─── Venues page ─── */
.venues-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Map fills all space below nav */
.map-wrap {
  flex: 1;
  position: relative;
  min-height: 0;
}

#map {
  width: 100%;
  height: 100%;
}

/* ─── Search panel ─── */
.map-panel {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.92);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* Search row */
.panel-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0 10px;
  transition: border-color 200ms;
}

.panel-search-wrap:focus-within {
  border-color: rgba(62, 134, 183, 0.6);
  background: rgba(62, 134, 183, 0.07);
}

.panel-search-icon {
  width: 15px;
  height: 15px;
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
}

.panel-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  padding: 11px 0;
}

.panel-input::placeholder {
  color: rgba(255,255,255,0.3);
}

/* GPS locate button */
.panel-locate-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: grid;
  place-items: center;
  color: rgba(62, 134, 183, 0.85);
  flex-shrink: 0;
}

.panel-locate-btn svg {
  width: 16px;
  height: 16px;
}

.panel-locate-btn:hover {
  color: rgb(62, 134, 183);
}

/* Distance select */
.panel-select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 12px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.panel-select:focus {
  border-color: rgba(62, 134, 183, 0.55);
}

.panel-select option {
  background: #0b1020;
  color: #fff;
}

/* Status note */
.panel-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
  padding: 0 2px;
}

/* ─── Coming-soon badge on map ─── */
.map-badge {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(7, 11, 20, 0.88);
  border: 1px solid rgba(62, 134, 183, 0.35);
  border-radius: 999px;
  padding: 10px 24px;
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  pointer-events: none;
}

/* ─── Leaflet overrides to match dark theme ─── */
.leaflet-control-zoom a {
  background: rgba(7, 11, 20, 0.9) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.8) !important;
  border-radius: 8px !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(62, 134, 183, 0.3) !important;
  color: #fff !important;
}

.leaflet-control-zoom {
  border: none !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leaflet-control-attribution {
  background: rgba(7, 11, 20, 0.75) !important;
  color: rgba(255,255,255,0.35) !important;
  font-size: 0.7rem !important;
}

.leaflet-control-attribution a {
  color: rgba(62, 134, 183, 0.8) !important;
}

/* ─── Mobile ─── */
@media (max-width: 600px) {
  /* Move panel from top-left overlay to bottom, full width */
  .map-panel {
    top: auto;
    bottom: 28px;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 12px;
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 14px;
  }

  .panel-search-wrap {
    flex: 1;
    min-width: 0;
  }

  .panel-select {
    flex: 0 0 auto;
    width: 120px;
  }

  .panel-note {
    order: 3;
    width: 100%;
    font-size: 0.7rem;
  }

  /* Move badge up so it doesn't clash with panel */
  .map-badge {
    bottom: auto;
    top: 14px;
  }
}
