:root {
  /* Colors */
  --bg-dark: #0f1115;
  --bg-panel: rgba(22, 25, 31, 0.7);
  --neon-green: #00ff88;
  --neon-green-dim: rgba(0, 255, 136, 0.2);
  --neon-blue: #00e5ff;
  --neon-blue-dim: rgba(0, 229, 255, 0.2);
  --neon-pink: #ff007f;
  --neon-orange: #f59e0b;
  --neon-orange-dim: rgba(245, 158, 11, 0.2);
  --text-main: #ffffff;
  --text-muted: #9aa0a6;
  --border-glass: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 255, 136, 0.4);
  
  /* Layout */
  --z-map: 1;
  --z-overlay: 100;
  --z-drawer: 200;
  --z-modal: 300;
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Roboto', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow: hidden; /* App-like feel */
  user-select: none;
}

/* Allow copy-paste in form elements even though body suppresses selection */
input, textarea, select, [contenteditable] {
  user-select: text;
  -webkit-user-select: text;
}

/* Glassmorphism Utility */
.glass {
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
}

/* --- Map --- */
#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-map);
}

/* --- Map loading overlay --- */
.map-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(13, 15, 20, 0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.map-loading-overlay.visible { opacity: 1; }
.map-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(0, 229, 255, 0.15);
  border-top-color: var(--neon-blue);
  border-radius: 50%;
  animation: map-spin 0.7s linear infinite;
}
@keyframes map-spin { to { transform: rotate(360deg); } }
.map-loading-text {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

/* --- UI Overlay --- */
.ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* Let clicks pass through to map */
  z-index: var(--z-overlay);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

/* Make interactable items click-through the overlay */
.ui-overlay > * {
  pointer-events: auto;
}

/* --- Top Bar --- */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 1px;
}

.logo span {
  color: var(--neon-green);
}

.profile-btn {
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  overflow: hidden;
  width: 40px;
  height: 40px;
  border: 2px solid var(--neon-blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px var(--neon-blue-dim);
}

.profile-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Search Bar --- */
.map-search-bar {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(520px, 38vw);
}

.map-search-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.map-search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.map-search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  pointer-events: none;
  opacity: 0.6;
}

#map-search-input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  outline: none;
  transition: border-color 0.2s;
}

#map-search-input:focus {
  border-color: var(--neon-green);
}

#map-search-input::placeholder {
  color: rgba(255,255,255,0.35);
}

/* Remove the browser's built-in ✕ in search inputs */
#map-search-input::-webkit-search-cancel-button { display: none; }


/* --- Filters --- */
.filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 4px;
  width: 100%;
}

.filter-type-group {
  display: flex;
  gap: 6px;
  width: 100%;
}

.filter-type-group .filter-btn {
  flex: 1;
}

.filter-btn-icon {
  font-size: 15px;
  vertical-align: middle;
  margin-right: 5px;
  line-height: 1;
}

.filter-type-group .filter-btn[data-filter="spots"].active {
  background: var(--neon-blue-dim);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--neon-blue);
}

.filter-type-group .filter-btn[data-filter="parks"].active {
  background: var(--neon-orange-dim);
  border-color: var(--neon-orange);
  color: var(--neon-orange);
  text-shadow: 0 0 8px var(--neon-orange);
}

.filter-type-group .filter-btn[data-filter="shops"].active {
  background: rgba(255, 0, 127, 0.2);
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink);
}

.filter-nbd-btn {
  width: 100%;
  color: var(--neon-green);
  border-color: rgba(0, 255, 136, 0.4);
  text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.filter-nbd-btn.active {
  background: var(--neon-green-dim);
  border-color: var(--neon-green);
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green);
}

.filter-select {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 7px 12px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.4)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.filter-select:focus { border-color: var(--neon-green); }
.filter-select option { background: #1a1a2e; color: #fff; }

/* --- Autocomplete Suggestions --- */
.map-search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(13, 15, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  list-style: none;
  margin: 0;
  padding: 6px;
  z-index: 900;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  overflow: hidden;
}

.map-search-suggestions.open { display: block; }

.map-search-suggestions li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
}

.map-search-suggestions li:hover,
.map-search-suggestions li.active {
  background: rgba(255,255,255,0.07);
}

.suggest-icon { font-size: 16px; flex-shrink: 0; }

.suggest-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.suggest-name {
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggest-name mark {
  background: transparent;
  color: var(--neon-green);
  font-weight: 700;
}

.suggest-state {
  font-size: 11px;
  font-weight: 600;
  color: var(--neon-blue);
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.25);
  padding: 1px 6px;
  border-radius: 8px;
  flex-shrink: 0;
}

.suggest-nbd {
  font-size: 11px;
  color: var(--neon-green);
  flex-shrink: 0;
  margin-left: auto;
}

.suggest-dist {
  font-size: 11px;
  font-weight: 600;
  color: #f59e0b;
  flex-shrink: 0;
}

/* Distance badge shown in spot detail drawer */
.spot-dist-badge {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #f59e0b !important;
  background: rgba(245,158,11,0.12) !important;
  border: 1px solid rgba(245,158,11,0.35) !important;
  padding: 2px 8px !important;
  border-radius: 10px !important;
}

/* Hint label in list panel filter bar */
.list-filter-note {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  flex: 1;
}

.filter-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: var(--neon-green-dim);
  border-color: var(--neon-green);
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green);
}

/* --- FAB (Add Spot) --- */
.fab {
  position: absolute;
  bottom: 40px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--neon-green);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-glow);
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  background: var(--neon-green);
  color: var(--bg-dark);
}

/* --- Help FAB --- */
.help-fab {
  position: fixed;
  bottom: 34px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 15, 20, 0.7);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font-body);
  line-height: 1;
}
.help-fab:hover {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.7);
}

/* ── Payment success celebration ── */
#payment-success-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 8px 0 4px;
  text-align: center;
}
.pay-success-icon {
  font-size: 64px;
  line-height: 1;
  animation: pay-pop 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes pay-pop {
  0%   { transform: scale(0); opacity: 0; }
  75%  { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); }
}
.pay-success-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--neon-green);
  text-shadow: 0 0 24px rgba(0,255,136,0.5);
  margin: 0;
}
.pay-success-sub {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}
.pay-success-card {
  width: 100%;
  background: rgba(0,255,136,0.06);
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: 12px;
  padding: 14px 18px;
  text-align: left;
}
.pay-success-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 3px 0;
  color: var(--text-muted);
}
.pay-success-row strong { color: var(--text-main); font-weight: 600; }
.pay-success-divider {
  border: none;
  border-top: 1px dashed rgba(0,255,136,0.2);
  margin: 8px 0;
}
.pay-success-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: var(--neon-green);
  padding-top: 2px;
}
.pay-success-btn {
  width: 100%;
  background: linear-gradient(45deg, #00e676, #00c853) !important;
  border: none !important;
  color: #000 !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  padding: 14px !important;
  border-radius: 30px !important;
  cursor: pointer;
}

/* ── Map pin burst rings (new bounty animation) ── */
.bounty-burst-marker {
  position: relative;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.bounty-burst-dot {
  position: absolute;
  inset: 3px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 14px #00ff88;
  animation: bdot 2.8s ease-out forwards;
}
@keyframes bdot {
  0%   { opacity: 1; }
  70%  { opacity: 0.5; }
  100% { opacity: 0; transform: scale(0.4); }
}
.bounty-burst-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid #00ff88;
  transform: translate(-50%, -50%);
  animation: bring 2s ease-out forwards;
}
@keyframes bring {
  0%   { width: 24px;  height: 24px;  opacity: 1;   box-shadow: 0 0 10px rgba(0,255,136,0.7); }
  100% { width: 180px; height: 180px; opacity: 0;   box-shadow: 0 0 0   rgba(0,255,136,0); }
}

.map-terms-link {
  position: fixed;
  bottom: 10px;
  left: 24px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  z-index: 50;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.map-terms-link:hover { color: rgba(255,255,255,0.7); }

/* --- Onboarding Guide --- */
.guide-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.guide-modal {
  width: min(480px, 90vw);
  background: rgba(13, 15, 20, 0.97);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px 36px 28px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.guide-skip {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-body);
  transition: color 0.15s;
}
.guide-skip:hover { color: var(--text-primary); }

.guide-slides {
  width: 100%;
  min-height: 220px;
}

.guide-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  animation: guide-fade 0.3s ease;
}
.guide-slide.active { display: flex; }

@keyframes guide-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.guide-slide-icon { font-size: 54px; line-height: 1; }

.guide-slide-title {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--text-primary);
  margin: 0;
}

.guide-slide-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
  max-width: 360px;
}

.guide-dots {
  display: flex;
  gap: 8px;
}

.guide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-glass);
  transition: background 0.2s, transform 0.2s;
}
.guide-dot.active {
  background: var(--neon-blue);
  transform: scale(1.3);
}

.guide-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.guide-prev {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 8px 4px;
  transition: color 0.15s;
}
.guide-prev:hover { color: var(--text-primary); }
.guide-next { padding: 10px 24px; font-size: 14px; border-radius: 20px; }

#guide-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.guide-bug-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.guide-bug-link:hover { color: var(--text-secondary); }

/* Bug report form */
.bug-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  width: 100%;
}
.bug-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bug-required { color: #ff6b6b; }
.bug-input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 12px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.bug-input:focus {
  outline: none;
  border-color: var(--neon-blue);
}
.bug-textarea { resize: vertical; }
.bug-error {
  color: #ff6b6b;
  font-size: 12px;
  margin-top: -4px;
}

/* ── DRAWER: bottom sheet (mobile/portrait) ───────── */
.drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(105%);
  width: 100%;
  max-height: 72vh;
  background: rgba(13, 15, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px 24px 0 0;
  z-index: var(--z-drawer);
  transition: transform 0.4s cubic-bezier(0.25, 0.86, 0.44, 1.0);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* drag handle pill */
.drawer::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.drawer.open {
  transform: translateY(0);
}

/* ── DRAWER: right-side panel (landscape / desktop ≥768px) ── */
@media (min-width: 768px) and (orientation: landscape) {
  .drawer {
    top: 80px;                    /* clear the fixed header */
    bottom: 0;
    left: auto;
    right: 0;
    width: 60vw;
    max-width: 820px;
    max-height: calc(100vh - 80px);
    border-radius: 24px 0 0 24px;
    transform: translateX(105%);
    border-top: 1px solid var(--border-glass);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.7);
  }
  .drawer.open {
    transform: translateX(0);
  }
  /* hide the drag-handle pill on desktop */
  .drawer::before {
    display: none;
  }
}

/* ── List View Button ─────────────────────────────────────────────────────── */
.list-view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.list-view-btn:hover  { background: rgba(255,255,255,0.07); }
.list-view-btn.active { border-color: var(--neon-green); color: var(--neon-green); }

/* ── Map Left Column (search stack + list panel) ─────────────────────────── */
.map-left-col {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  align-items: flex-start;
  pointer-events: none;
}
.map-left-col > * {
  pointer-events: auto;
}

/* ── List View Panel ──────────────────────────────────────────────────────── */
.list-panel {
  width: min(520px, 38vw);
  flex: 1;
  min-height: 0;
  background: rgba(13, 15, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  border-radius: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.25, 0.86, 0.44, 1.0);
  box-shadow: 8px 8px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  pointer-events: none;
}
.list-panel.open {
  transform: translateX(0);
  pointer-events: auto;
}

.list-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}
.list-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
}
.list-panel-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--neon-green);
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.25);
  padding: 1px 7px;
  border-radius: 10px;
}
.list-panel-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s;
}
.list-panel-close:hover { color: var(--text-main); }

/* Filter bar inside list panel */
.list-panel-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.list-filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.list-filter-btn {
  padding: 5px 13px;
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  border-radius: 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.list-filter-btn:hover  { color: var(--text-main); }
.list-filter-btn.active { border-color: var(--neon-green); color: var(--neon-green); }

.list-distance-select {
  background: var(--bg-panel);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 5px 24px 5px 10px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.35)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  flex-shrink: 0;
  margin-left: auto;
}
.list-distance-select option { background: #1a1a2e; }

/* Scrollable spot cards */
.list-panel-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.list-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.list-card:hover { background: rgba(255,255,255,0.04); }

.list-card-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}
.list-card-body { flex: 1; min-width: 0; }

.list-card-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}
.list-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-main);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-card-nbd {
  font-size: 11px;
  color: var(--neon-green);
  flex-shrink: 0;
}
.list-card-dist {
  font-size: 12px;
  font-weight: 700;
  color: #f59e0b;
  flex-shrink: 0;
}
.list-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.list-card-type  { font-weight: 600; }
.list-card-city  { margin-left: 2px; }

.list-card-obstacles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.list-obs-tag {
  font-size: 10px;
  padding: 2px 7px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-muted);
}

.list-card-arrow {
  color: var(--text-muted);
  font-size: 20px;
  align-self: center;
  flex-shrink: 0;
}

.list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 8px;
  color: var(--text-muted);
  text-align: center;
  font-size: 14px;
}

/* Mobile: list panel becomes fixed bottom sheet */
@media (max-width: 767px), (orientation: portrait) {
  .list-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 65vh;
    flex: none;
    border-radius: 20px 20px 0 0;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid var(--border-glass);
    transform: translateY(105%);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  }
  .list-panel.open {
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* ── Pulsing user location dot ── */
.user-location-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00e5ff;
  border: 3px solid #fff;
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.6);
  animation: location-pulse 2s ease-out infinite;
}

@keyframes location-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(0,229,255,0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(0,229,255,0); }
  100% { box-shadow: 0 0 0 0    rgba(0,229,255,0); }
}

.drawer-header-controls {
  display: flex;
  justify-content: flex-end;
  padding: 8px 15px 0;
  flex-shrink: 0;
}

/* On mobile / portrait: gallery shorter */
@media (max-width: 767px), (orientation: portrait) {
  /* Search bar: full width on mobile — bottom drawer doesn't overlap */
  .map-search-bar {
    display: flex;
    width: 100%;
  }

  .drawer-upper {
    flex-direction: column;
  }
  .drawer-gallery-col {
    width: 100%;
    aspect-ratio: unset;
    height: 180px;
  }

  /* Help FAB — nudge inward on small screens */
  .help-fab {
    bottom: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  /* Guide modal — tighter padding, smaller type */
  .guide-modal {
    padding: 32px 20px 22px;
    border-radius: 16px;
  }
  .guide-slides {
    min-height: 180px;
  }
  .guide-slide-icon  { font-size: 44px; }
  .guide-slide-title { font-size: 19px; }
  .guide-slide-body  { font-size: 13px; }
  .guide-next        { padding: 9px 20px; font-size: 13px; }

  /* Bug report form — reduce vertical rhythm on small screens */
  .bug-form-group { margin-bottom: 10px; }

  /* 16px minimum on all inputs prevents iOS auto-zoom on focus */
  .bug-input,
  #map-search-input,
  input[type="text"],
  input[type="number"],
  input[type="email"],
  textarea,
  select { font-size: 16px !important; }
}

.scrollable-list {
  /* Keep a sensible cap for small incidental lists (obstacles, etc.).
     The bounty & abd lists use their own class below. */
  max-height: 100px;
  overflow-y: auto;
  padding-right: 5px;
}
.scrollable-list::-webkit-scrollbar {
  width: 6px;
}
.scrollable-list::-webkit-scrollbar-track {
  background: transparent;
}
.scrollable-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

/* ── Shared thin scrollbar — apply .thin-scroll to any scrollable element ── */
.thin-scroll,
.scrollable-list,
.drawer-panel-body,
.gallery-thumbs,
.drawer-right {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.thin-scroll::-webkit-scrollbar,
.scrollable-list::-webkit-scrollbar,
.drawer-panel-body::-webkit-scrollbar,
.gallery-thumbs::-webkit-scrollbar,
.drawer-right::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.thin-scroll::-webkit-scrollbar-track,
.scrollable-list::-webkit-scrollbar-track,
.drawer-panel-body::-webkit-scrollbar-track,
.gallery-thumbs::-webkit-scrollbar-track,
.drawer-right::-webkit-scrollbar-track { background: transparent; }
.thin-scroll::-webkit-scrollbar-thumb,
.scrollable-list::-webkit-scrollbar-thumb,
.drawer-panel-body::-webkit-scrollbar-thumb,
.gallery-thumbs::-webkit-scrollbar-thumb,
.drawer-right::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

/* ── Drawer upper: 2-column (gallery left, details right) ───────────────── */
.drawer-upper {
  display: flex;
  gap: 14px;
  padding: 0 18px 12px;
  flex-shrink: 0;
  min-height: 0;
}

.drawer-gallery-col {
  width: 50%;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
}

.drawer-details-col {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.drawer-details-col::-webkit-scrollbar { width: 4px; }
.drawer-details-col::-webkit-scrollbar-track { background: transparent; }
.drawer-details-col::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

/* ── Shared bar between upper and lower: Add Photo (left) + Suggest an edit (right) ── */
.drawer-upper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 18px 8px;
  flex-shrink: 0;
}

/* ── Drawer lower: full-width NBD/ABD section ───────────────────────────── */
.drawer-lower {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.drawer-lower::-webkit-scrollbar { width: 4px; }
.drawer-lower::-webkit-scrollbar-track { background: transparent; }
.drawer-lower::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

/* ── Profile spot cards (replaces per-element inline styles) ─────────────── */
.status-pending-card {
  margin-bottom: 10px;
}
.status-pending-card h4 { color: var(--neon-blue); }

.status-active-card {
  margin-bottom: 10px;
  border-left-color: var(--neon-green);
}
.status-active-card h4 { color: var(--neon-green); }

.spot-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.spot-header h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
}

@media(min-width: 768px) {
  .spot-header h2 {
    font-size: 22px;
  }
}

.badge {
  background: var(--neon-blue-dim);
  color: var(--neon-blue);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--neon-blue);
}

.spot-description {
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
  font-size: 13px;
}

.obstacles-section h3, .bounties-section h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  margin-bottom: 6px;
}

.tag-list li {
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: default;
  user-select: none;
  /* no border — keeps them looking like plain labels, not buttons */
}

/* Bounties */
.bounties-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

/* Prevent any horizontal scroll on the list containers */
.bounties-list--scrollable,
.abd-list--scrollable {
  overflow-x: hidden;
}

.bounty-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--neon-pink);
  padding: 10px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;  /* top-align so tall trick names don't misalign amount */
  gap: 10px;
  min-width: 0;             /* allow flex child to shrink below content size */
  transition: transform 0.2s ease;
}

.bounty-card:hover {
  transform: translateX(5px);
  background: rgba(255, 0, 127, 0.05);
}

.bounty-info {
  flex: 1;
  min-width: 0;  /* critical — lets text wrap instead of blowing out the card */
}

.bounty-info h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  margin-bottom: 4px;
  /* Allow long trick names to wrap gracefully */
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
}

/* Shrink font slightly for very long trick names (> ~50 chars)
   applied by JS via .bounty-info--long class */
.bounty-info--long h4 {
  font-size: 13px;
}

.bounty-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.bounty-amount {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green-dim);
  flex-shrink: 0;  /* amount badge never wraps */
  white-space: nowrap;
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
  border: none;
  color: var(--bg-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

/* --- Modal --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: var(--z-modal);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: 20px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), max-width 0.4s ease;
}

.modal-content.expanded {
  max-width: 750px;
}

.tc-checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.tc-checkbox-wrap input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--neon-green);
  flex-shrink: 0;
  cursor: pointer;
}
.tc-checkbox-wrap label { cursor: pointer; line-height: 1.4; }
.tc-link { color: var(--neon-blue); text-decoration: underline; text-underline-offset: 2px; }
.tc-link:hover { color: #fff; }
.tc-error { color: #ff6b6b; font-size: 12px; margin-top: -8px; }

.oauth-btn-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.oauth-btn-row .btn-oauth { flex: 1; }

@media (max-width: 480px), (orientation: portrait) and (max-width: 767px) {
  .oauth-btn-row { flex-direction: column; }
}

.auth-mode-toggle {
  text-align: center;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-switch-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--neon-blue);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-switch-link:hover { color: #fff; }

.modal.open .modal-content {
  transform: scale(1);
}

/* ── DRAWER PANEL — sub-windows that match the drawer ── */
/* Shares exact size/position with .drawer; slides in on top */
.drawer-panel {
  position: fixed;
  /* mobile: bottom sheet */
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 72vh;
  background: rgba(13, 15, 22, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px 24px 0 0;
  z-index: calc(var(--z-drawer) + 10);
  transition: transform 0.35s cubic-bezier(0.25, 0.86, 0.44, 1.0), opacity 0.25s ease;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
}

.drawer-panel.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Desktop/landscape: match the main drawer right panel */
@media (min-width: 768px) and (orientation: landscape) {
  .drawer-panel {
    top: 80px;
    bottom: 0;
    left: auto;
    right: 0;
    width: 60vw;
    max-width: 820px;
    max-height: 100vh;
    border-radius: 24px 0 0 24px;
    transform: translateX(115%);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.75);
  }
  .drawer-panel.open {
    transform: translateX(0);
  }
}

.drawer-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.drawer-panel-back {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 0 4px;
  flex-shrink: 0;
}
.drawer-panel-back:hover { color: var(--neon-blue); }

.drawer-panel-title {
  flex: 1;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.drawer-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  -webkit-overflow-scrolling: touch;
}
/* drawer-panel-body scrollbar — consolidated in shared .thin-scroll block above */

.drawer-panel-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.add-spot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media(min-width: 768px) {
  .add-spot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: var(--neon-pink);
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--neon-green);
}
.feature-tile {
  cursor: pointer;
}

.feature-tile input[type="checkbox"] {
  display: none;
}

.feature-tile span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  padding: 5px;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

.feature-tile input[type="checkbox"]:checked + span {
  background: var(--neon-green-dim);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green-dim);
}

.feature-tile:hover span {
  border-color: var(--neon-green);
}

.file-upload-wrapper {
  background: rgba(0, 0, 0, 0.5);
  border: 1px dashed var(--border-glass);
  border-radius: 10px;
  padding: 10px;
  transition: border-color 0.3s ease;
}

.file-upload-wrapper:hover {
  border-color: var(--neon-green);
}

.helper-text {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Read-only pre-filled field in boost/claim panels */
.form-display-field {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.4;
}

.location-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.location-header label {
  margin-bottom: 0;
}

.text-btn {
  background: none;
  border: none;
  color: var(--neon-blue);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-body);
}

.text-btn:hover {
  text-decoration: underline;
}

/* ── PHOTO GALLERY ───────────────────────────────── */

/* Wrapper: fills the entire left column height */
.gallery-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* Gallery inside the left column — fills the square container */
.gallery-layout {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
}

/* Large main image area */
.gallery-main {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #050508;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

/* Prev / Next arrows on the main image */
.photo-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.photo-gallery-nav:hover { background: rgba(0,229,255,0.45); }
.photo-gallery-nav.prev { left: 6px; }
.photo-gallery-nav.next { right: 6px; }

/* Counter badge bottom-right of main image */
.gallery-counter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  z-index: 2;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
}

/* Thumbnail strip — overlaid horizontally at the bottom of .gallery-main */
.gallery-thumbs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  gap: 5px;
  padding: 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 100%);
  overflow-x: auto;
  overflow-y: hidden;
  z-index: 3;
}
/* gallery-thumbs scrollbar — consolidated in shared .thin-scroll block above */

.gallery-thumb {
  width: 46px;
  height: 46px;
  border-radius: 7px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s, opacity 0.15s;
  flex-shrink: 0;
  opacity: 0.6;
}
.gallery-thumb.active {
  border-color: var(--neon-blue);
  opacity: 1;
  box-shadow: 0 0 8px rgba(0,229,255,0.5);
}
.gallery-thumb:hover { opacity: 0.9; }

/* Empty gallery state */
.photo-gallery-empty {
  flex: 1;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  min-height: 120px;
}
.photo-gallery-empty .empty-icon { font-size: 28px; }

/* Add Photo pill — inside .drawer-upper-bar */
.add-photo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.add-photo-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 30px;
  color: var(--neon-blue);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.add-photo-pill:hover {
  background: rgba(0,229,255,0.18);
  box-shadow: 0 0 10px rgba(0,229,255,0.2);
}
.add-photo-pill svg { flex-shrink: 0; }

.photo-count-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── REVIEWS ─────────────────────────────────────── */
.rating-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,215,0,0.12);
  border: 1px solid rgba(255,215,0,0.5);
  color: gold;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-heading);
}
.rating-badge-btn:hover {
  background: rgba(255,215,0,0.22);
  box-shadow: 0 0 10px rgba(255,215,0,0.3);
  transform: scale(1.05);
}

.review-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.review-stars { color: gold; font-size: 13px; }
.review-body { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

#interactive-stars .star {
  filter: grayscale(100%);
  opacity: 0.3;
  transition: all 0.2s ease;
}

#interactive-stars .star.active {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

#interactive-stars .star:hover {
  transform: scale(1.2);
}

#suggest-edit-btn:hover {
  color: var(--neon-blue) !important;
  transform: scale(1.1);
}

.shop-data-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 0, 127, 0.1);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid var(--neon-pink);
}

.cyber-link {
  color: var(--neon-pink);
  text-decoration: none;
  font-weight: 800;
  font-family: var(--font-heading);
}

.cyber-link:hover {
  text-decoration: underline;
  text-shadow: 0 0 8px var(--neon-pink);
}

.sponsored-badge {
  font-size: 10px;
  color: var(--neon-pink);
  border: 1px solid var(--neon-pink);
  padding: 2px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mapbox/MapLibre Popup Styling */
.maplibregl-popup-content {
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-light);
  font-family: var(--font-body);
  padding: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  min-width: 150px;
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: var(--border-glass);
}

.maplibregl-popup-tip {
  display: none;
}

/* Push map controls below custom header and align right */
.maplibregl-ctrl-top-right {
  top: 100px;
  right: 10px;
}

/* --- Profile Dashboard --- */

.profile-stats-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-bottom: 5px;
}

.profile-stats-grid select {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
}

.profile-stats-grid input {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 8px 10px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  width: 100%;
}

.profile-tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
  overflow-x: auto;
}

.profile-tabs .filter-btn {
  flex: 1;
}

.clips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
}

.clip-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: #000;
  border: 1px solid var(--border-glass);
  cursor: pointer;
}

.clip-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Add Spot Thumbnail Styling */
.img-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
  flex-shrink: 0;
}
.img-thumb.featured-thumb {
  border-color: var(--neon-green);
  opacity: 1;
}
.img-thumb:not(.featured-thumb) {
  opacity: 0.5;
}

.clip-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  font-size: 12px;
}

/* ── User Settings Modal ─────────────────────────────────────────────────── */

.settings-modal-shell {
  display: flex;
  width: min(880px, 95vw);
  height: min(620px, 88vh);
  border-radius: 16px;
  overflow: hidden;
}

.settings-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 20px 0 16px;
  gap: 2px;
}

.settings-sidebar-header {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  padding: 0 20px 14px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 8px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.settings-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.settings-nav-item.active {
  background: rgba(0, 229, 255, 0.08);
  color: var(--neon-blue);
  border-left-color: var(--neon-blue);
}

.settings-nav-item.settings-nav-danger {
  color: rgba(255, 0, 127, 0.6);
  margin-top: auto;
}

.settings-nav-item.settings-nav-danger:hover {
  color: var(--neon-pink);
  background: rgba(255, 0, 127, 0.06);
}

.settings-nav-icon { font-size: 15px; }

.settings-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 36px;
  position: relative;
}

.settings-close-x {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.settings-close-x:hover { color: var(--text-main); }

.settings-section-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.settings-section-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
  line-height: 1.5;
}

.settings-field-group { margin-bottom: 24px; }

.settings-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.settings-field-note {
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(154, 160, 166, 0.65);
}

.settings-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.settings-input:focus {
  outline: none;
  border-color: var(--neon-blue);
}

.settings-textarea {
  resize: vertical;
  min-height: 80px;
}

.settings-input-readonly {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.settings-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.settings-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--neon-blue);
  background: rgba(0, 0, 0, 0.4);
}

.settings-avatar-btn {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.settings-avatar-btn:hover { background: rgba(0, 229, 255, 0.16); }

.settings-save-btn {
  background: var(--neon-green);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: opacity 0.2s;
}

.settings-save-btn:hover { opacity: 0.85; }

.settings-success {
  margin-top: 12px;
  color: var(--neon-green);
  font-size: 13px;
  font-weight: 500;
}

/* Toggle switches */
.settings-toggle-group {
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  overflow: hidden;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
  gap: 16px;
}

.settings-toggle-row:last-child { border-bottom: none; }

.settings-toggle-label {
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-toggle-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

.settings-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.settings-toggle input { opacity: 0; width: 0; height: 0; }

.settings-toggle-track {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  transition: background 0.2s;
}

.settings-toggle-track::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.settings-toggle input:checked + .settings-toggle-track { background: var(--neon-green); }
.settings-toggle input:checked + .settings-toggle-track::before { transform: translateX(20px); }
.settings-toggle-disabled { opacity: 0.38; pointer-events: none; }

/* Coming soon badge */
.settings-coming-soon {
  font-size: 10px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--neon-orange);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

/* Theme picker */
.settings-theme-grid {
  display: flex;
  gap: 14px;
}

.settings-theme-card {
  background: none;
  border: 2px solid var(--border-glass);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}

.settings-theme-card.active {
  border-color: var(--neon-blue);
  color: var(--text-main);
}

.settings-theme-preview {
  width: 72px;
  height: 46px;
  border-radius: 6px;
}

.settings-theme-dark {
  background: linear-gradient(135deg, #0f1115 0%, #1e2330 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-theme-light {
  background: linear-gradient(135deg, #f0f2f5 0%, #dde0e5 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.settings-theme-check {
  color: var(--neon-blue);
  font-size: 12px;
  font-weight: 700;
}

/* Security items */
.settings-coming-soon-block {
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  overflow: hidden;
}

.settings-security-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-glass);
}

.settings-security-item:last-child { border-bottom: none; }

.settings-security-label {
  font-size: 14px;
  font-weight: 500;
}

/* Account section */
.settings-logout-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, border-color 0.2s;
}

.settings-logout-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Danger zone */
.settings-danger-zone {
  margin-top: 36px;
  border: 1px solid rgba(255, 0, 127, 0.28);
  border-radius: 10px;
  overflow: hidden;
}

.settings-danger-title {
  background: rgba(255, 0, 127, 0.07);
  padding: 9px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-pink);
  border-bottom: 1px solid rgba(255, 0, 127, 0.18);
}

.settings-danger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 16px;
}

.settings-danger-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.settings-delete-btn {
  background: transparent;
  border: 1px solid var(--neon-pink);
  color: var(--neon-pink);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
  flex-shrink: 0;
}

.settings-delete-btn:hover { background: rgba(255, 0, 127, 0.1); }

/* Gear icon in profile header */
.settings-gear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.settings-gear-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
}

/* Mobile */
@media (max-width: 600px) {
  .settings-modal-shell {
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .settings-sidebar {
    width: 100%;
    flex-direction: row;
    padding: 8px 10px;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    gap: 0;
    flex-shrink: 0;
  }

  .settings-sidebar-header { display: none; }

  .settings-nav-item {
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 20px;
    flex-shrink: 0;
    border-left: none;
    font-size: 13px;
  }

  .settings-nav-item.active {
    background: rgba(0, 229, 255, 0.12);
    border-left: none;
  }

  .settings-nav-item.settings-nav-danger { margin-top: 0; }

  .settings-content { padding: 20px 18px 28px; }

  .settings-close-x { top: 12px; right: 14px; }
}

/* Hide number input spinners globally */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield; /* Firefox */
  appearance: textfield;
}

/* --- Spot Type Button Group --- */
.spot-type-btn-group {
  display: flex;
  gap: 10px;
}

.spot-type-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
  text-align: center;
}

.spot-type-btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.spot-type-btn.active {
  background: var(--neon-green-dim);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 14px rgba(0, 255, 136, 0.25);
}

.spot-type-icon {
  flex-shrink: 0;
}

/* --- NBD Tab System --- */

/* The whole NBD section grows to fill whatever vertical space remains
   in the right column after the header / obstacles are rendered. */
.nbd-tab-section {
  display: none;       /* shown by JS when a non-shop spot is open */
  flex: 1;             /* grow to fill drawer-right */
  flex-direction: column;
  min-height: 0;       /* essential for nested flex scroll chains */
}

.nbd-tabs {
  flex-shrink: 0;      /* tab buttons never compress */
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 10px;
}

/* A tab pane that participates in the flex layout so its list can fill space */
.nbd-tab-pane--flex {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.nbd-tab-pane--flex[style*="display:none"],
.nbd-tab-pane--flex[style*="display: none"] {
  display: none !important;  /* override the flex when hidden by JS */
}

/* Bounty list: fills its pane, scrolls only when content overflows */
.bounties-list--scrollable {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

/* ABD list: same behaviour */
.abd-list--scrollable {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.nbd-tab-btn {
  flex: 1;
  padding: 8px 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.nbd-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.08);
}

.nbd-tab-btn.active {
  background: var(--neon-green-dim);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 10px rgba(0,255,136,0.2);
}

/* --- Bounty Status Badges --- */
.bounty-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bounty-status-active   { background: rgba(0,255,136,0.15); color: var(--neon-green); border: 1px solid var(--neon-green); }
.bounty-status-claimed  { background: rgba(0,229,255,0.15); color: var(--neon-blue); border: 1px solid var(--neon-blue); }
.bounty-status-verified { background: rgba(255,215,0,0.15); color: gold; border: 1px solid gold; }
.bounty-status-paid     { background: rgba(255,165,0,0.15); color: orange; border: 1px solid orange; }

/* --- ABD Entry --- */
.abd-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-left: 3px solid var(--neon-green);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

.abd-entry .abd-trick { font-weight: 700; color: var(--text-main); }
.abd-entry .abd-meta  { color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.abd-entry .abd-video { font-size: 16px; cursor: pointer; text-decoration: none; }

/* --- NBD Available Entry --- */
.nbd-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,0,127,0.05);
  border: 1px solid rgba(255,0,127,0.25);
  border-left: 3px solid var(--neon-pink);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.nbd-entry:hover { background: rgba(255,0,127,0.12); }
.nbd-entry .nbd-trick { font-weight: 700; color: var(--text-main); }
.nbd-entry .nbd-cta { font-size: 11px; color: var(--neon-pink); font-weight: 800; }

/* --- Trick Autocomplete Suggestions --- */
#trick-suggestions > div {
  padding: 9px 14px;
  font-size: 13px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-glass);
  cursor: pointer;
  transition: background 0.15s;
}
#trick-suggestions > div:hover { background: rgba(255,255,255,0.08); }
#trick-suggestions > div:last-child { border-bottom: none; }


/* -- Quill Editor Dark Mode Overrides -- */
.ql-toolbar.ql-snow {
  border-color: var(--border-light) !important;
  background: var(--bg-surface);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.ql-container.ql-snow {
  border-color: var(--border-light) !important;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  background: rgba(0,0,0,0.4);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
}
.ql-snow .ql-stroke {
  stroke: #ffffff !important;
}
.ql-snow .ql-fill {
  fill: #ffffff !important;
}
.ql-snow .ql-picker {
  color: #ffffff !important;
}
.ql-editor.ql-blank::before {
  color: rgba(255,255,255,0.5) !important;
  font-style: normal !important;
}
.ql-editor {
  min-height: 150px;
}

