/* === CORE GLOBAL LAYOUT === */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    min-height: 100dvh;
    background: #000;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
}

.page-container {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

.main-area {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#mapContainer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
}

#map {
    width: 100%; height: 100%;
}

/* === HEADER === */
header {
    position: sticky;
    top: 0;
    background: #000;
    z-index: 1002;
    padding: 10px 0;
    border-bottom: 2px solid #C73A9D;
    box-shadow: 0 4px 20px rgba(0,255,255,0.3);
    padding-top: max(12px, env(safe-area-inset-top));
}

.my-text {
    text-align: right;
    margin: 0 auto;
    color: #0ff;
    font-size: 2.2rem;
}

/* === TOP & BOTTOM CONTROLS === */
.top-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 6px;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #0ff;
    gap: 12px;
}

.bottom-controls {
    padding: 3px;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #0ff;
    box-shadow: 0 -4px 20px rgba(0,255,255,0.2);
    z-index: 1000;
    padding-bottom: max(1px, env(safe-area-inset-bottom));
}

/* === TOGGLE GROUPS & BUTTONS === */
.toggle-group {
    display: flex;
    background: #111;
    border: 1px solid #0ff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

.toggle-button {
    padding: 1px 2px;
    background: transparent;
    color: #0ff;
    border: none;
    font-family: Orbitron;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-button.active {
    background: #0ff;
    color: #000;
    box-shadow: 0 0 20px rgba(0,255,255,0.8);
}

/* === SEARCH BAR === */
.search-bar {
    width: 100%;
    padding: 5px 6px;
    margin-top: 10px;
    border: 2px solid #C73A9D;
    border-radius: 10px;
    background: #000;
    color: #0ff;
    font-family: Orbitron;
    font-size: 1.1em;
    box-shadow: 0 0 15px rgba(0,255,255,0.4);
}
/* === GLOBAL STYLES === */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: 'Orbitron', sans-serif;
  background: #000;
  color: #0ff;
}

/* === SPLASH SCREEN === */
.splash {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at top, #0f0c29, #302b63, #24243e);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* === MODAL === */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #111;
  border: 2px solid #0ff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 20px #0ff;
  color: #0ff;
}

.modal-content input {
  padding: 0.75rem;
  width: 80%;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #0ff;
  background: black;
  color: #0ff;
  font-size: 1rem;
}

.modal-content button {
  padding: 0.5rem 1rem;
  margin: 0.5rem;
  border: none;
  border-radius: 8px;
  background: #0ff;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

/* === IMAGE === */
.full-image {
  width: 500px;
  max-width: 90vw;
  object-fit: contain;
  filter: drop-shadow(0 0 30px #00f2ff);
}

/* === HEADER === */
.page-title {
  margin: 1rem 0;
  font-size: 2rem;
  text-align: center;
  color: #0ff;
}
/* === HEADER STYLING === */
header {
  text-align: center;
  font-size: 2.5rem;
  padding: 4px 10px;
  color: #0ff;
  font-family: 'Orbitron', sans-serif;
  border-bottom: 4px solid #C73A9D; /* Neon pink line */
  box-shadow: 0 0 12px #C73A9D;
  margin-bottom: 1rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.header-container {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #000;
  z-index: 1000;
}
body {
  padding-top: 60px; /* Adjust based on header height */
}

.discover-icons {
  display: flex;
  gap: 12px;
}

/* === TOGGLE BUTTONS === */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.toggle-group {
  display: flex;
  gap: 1rem;
}

.toggle-button {
  padding: 0.5rem 1rem;
  background-color: #111;
  border: 2px solid #0ff;
  color: #0ff;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.mode-toggle-container {
  position: absolute;
  top: 1em;
  right: 1em;
  z-index: 10;
}

.mode-toggle-button {
  font-family: 'Orbitron', sans-serif;
  background-color: #000;
  color: #00ffff;
  border: 2px solid #00ffff;
  padding: 0.5em 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mode-toggle-button:hover {
  background-color: #00ffff;
  color: #000;
}

.toggle-button.active {
  background-color: #0ff;
  color: #000;
}

.toggle-button.gps-flash {
  animation: pulse 0.6s ease-out;
}

/* === ICON BUTTONS === */
.icon-group {
  display: flex;
  gap: 12px;
}

.icon-button {
  background-color: #000;
  border: none;
  padding: 0;
  margin: 0 0em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 0.2em;
  box-shadow: 0 0 4px #0ff;
}

.icon-button:focus {
  outline: none;
}

.controls {
  position: relative;
}

.neon-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  transition: transform 0.2s ease, filter 0.2s ease;
  filter: drop-shadow(0 0 4px #0ff);
}

.neon-icon:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px #0ff);
}

/* === MAP === */
#map {
  height: 500px; /* or 100vh for full screen */
  width: 100%;
  border: 2px solid #00ffff; /* optional neon border for visual confirmation */
  box-sizing: border-box;    
    
}


/* === SEARCH BAR === */
.search-bar {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 2px solid #C73A9D;
  background-color: #000;
  color: #C73A9D;
  font-size: 1.1rem;
  font-family: 'Orbitron', sans-serif;
  box-shadow: 0 0 10px #C73A9D;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

.search-bar::placeholder {
  color: #ff8de2;
  text-shadow: 0 0 6px #ff8de2;
  font-family: 'Orbitron', sans-serif;
  opacity: 0.8;
}

.search-bar:focus {
  outline: none;
  box-shadow: 0 0 16px #C73A9D;
}
/* === Calendar Search === */
.calendar-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;              /* Use viewport units for full coverage */
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85); /* Slightly smoother overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;              /* Boost above all other elements */
}

.calendar-modal.hidden {
  display: none;
}
.hidden {
  display: none;
}
.calendar-content {
  background-color: #111;
  border: 2px solid #00ffff;
  box-shadow: 0 0 30px #00ffffaa;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  width: 90%;
  max-width: 400px;
  animation: fadeIn 0.3s ease-out;
}

.calendar-content h2 {
  color: #ff2ec4;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px #ff2ec4;
}

.calendar-content input {
  display: block;
  margin: 1rem auto;
  padding: 0.5rem;
  border: 2px solid #ff2ec4;
  border-radius: 8px;
  background-color: rgb(76 222 222 / 50%);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}

/* Optional: Fade-in animation for extra flare */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* === GENRE BAR === */
#genre-bar {
  background: #000;
  padding: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid #0ff;
}

#genre-bar button {
  background: #111;
  border: 2px solid #0ff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  color: #0ff;
  font-family: 'Orbitron', sans-serif;
}

#genre-bar button:hover {
  background: #0ff;
  color: #000;
}
/* === GENRE BAR === */
.genre-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

/* === GENRE CHIP BUTTONS === */
.genre-chip {
  padding: 0.5rem 1rem;
  background-color: #111;
  border: 2px solid #0ff;
  border-radius: 20px;
  cursor: pointer;
  color: #0ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  box-shadow: 0 0 6px #0ff;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.genre-chip:hover {
  background-color: #0ff;
  color: #000;
  box-shadow: 0 0 12px #0ff;
}

.genre-chip.active {
  background-color: #0ff;
  color: #000;
  box-shadow: 0 0 16px #0ff;
}

/* === VENUE LIST === */
.venue-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

.venue-card {
  background-color: #111;
  border: 2px solid #f0f;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 8px #f0f;
  transition: transform 0.3s ease;
}

.venue-card:hover {
  transform: scale(1.03);
  border-color: #0ff;
}

.venue-card h2 {
  margin-top: 0;
  color: #0ff;
}

.venue-card a {
  color: #f0f;
  text-decoration: none;
}

.venue-card a:hover {
  text-decoration: underline;
}

/* === MISC === */
.leaflet-popup-content h2 {
  margin-top: 0;
}

.tip-button {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: #d84e4e;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.coming-soon {
  text-align: center;
  font-size: 1.1em;
  color: #ff69b4;
  margin-bottom: 16px;
  font-weight: bold;
  text-shadow:
    0 0 5px #ff69b4,
    0 0 10px #ff69b4,
    0 0 20px #ff69b4;
  animation: pulse 2.5s infinite;
}

/* === User Profile === */
.user-profile-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  max-width: 800px;
  margin: auto;
  font-family: 'Orbitron', sans-serif;
  color: #f0f0f0;
}
.profile-card {
  background-color: #0a0a0a;
  border: 2px solid #00ffff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 0 12px #00ffff55;
}
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #00ffff;
  text-transform: uppercase;
}
.profile-field {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.profile-field label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #ff00cc;
}
.profile-field input,
.profile-field select {
  background-color: #111;
  border: 2px solid #ff00cc;
  border-radius: 8px;
  padding: 0.5rem;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}
.profile-field input:focus,
.profile-field select:focus {
  outline: none;
  box-shadow: 0 0 8px #ff00cc88;
}
.neon-button {
  background-color: transparent;
  border: 2px solid #00ffff;
  color: #00ffff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
.neon-button:hover {
  background-color: #00ffff22;
  box-shadow: 0 0 12px #00ffffaa;
}
.neon-button.danger {
  border-color: #ff0033;
  color: #ff0033;
}
.neon-button.danger:hover {
  background-color: #ff003322;
  box-shadow: 0 0 12px #ff0033aa;
}
.genre-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  background-color: #111;
  border: 2px solid #ff00cc;
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.chip:hover {
  background-color: #ff00cc22;
  box-shadow: 0 0 8px #ff00cc88;
}

.save-wrapper {
  margin-top: 40px;
  text-align: center;
}

#saveChangesBtn.neon-button {
  display: inline-block;
  width: 100%;
  max-width: 400px; /* keeps it elegant on desktop */
  padding: 14px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: #ff007f; /* neon pink core */
  color: #00ffff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 12px #ff007f, 0 0 24px #ff007f;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

#saveChangesBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px #ff33a6, 0 0 32px #ff33a6;
}
.subtle-card {
  margin-top: 40px;
  padding: 20px;
  background-color: #111;
  border-top: 1px solid #333;
  text-align: center;
}

.small-title {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 10px;
}

.subtle-role-card {
  margin: 10px 0;
}

.subtle-text {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 6px;
}

.subtle-button {
  font-size: 0.85rem;
  padding: 6px 12px;
  background-color: #222;
  color: #0ff;
  border: 1px solid #0ff;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.subtle-button:hover {
  background-color: #0ff;
  color: #000;
}
.subtle-neon {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 4px;
  background-color: transparent;
  border: 1px solid #0ff;
  color: #0ff;
  transition: all 0.2s ease;
}

.subtle-neon:hover {
  background-color: #0ff;
  color: #000;
}

.favorites-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.favorite-card {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 1rem;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 0, 150, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}


.favorite-card img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 10px #00ffff;
  margin-bottom: 1rem;
}

.bio {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  max-height: 6em;
  overflow-y: auto;
}

.remove-btn {
  background-color: transparent;
  border: 2px solid #ff0044;
  color: #ff0044;
  padding: 0.5em 1em;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.remove-btn:hover {
  background-color: #ff0044;
  color: black;
  box-shadow: 0 0 12px #ff0044;
}

.gps-icon {
  width: 30px;
  height: auto;
  filter: drop-shadow(0 0 10px #00f6ff);
  transition: transform 0.2s ease;
}

.gps-icon:hover .gps-icon {
  transform: scale(1.1);
}
.menu-container {
  position: relative;
  display: inline-block;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2000;
}

.menu-popup {
  position: absolute;
  top: 100%;
  right: 50; /* put it under the hamburger */
  background: #0B0B0B;
  border: 1px solid #0ff;
  padding: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
}

.menu-popup.hidden {
  display: none;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;              /* space between icon and text */
  background: transparent;
  border: none;
  color: #C73A9D;        /* neon pink text */
  font-family: Orbitron, sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.menu-item img {
  width: 20px;
  height: 20px;
}
.menu-label {
  font-family: Orbitron, sans-serif;
  font-size: 14px;
  color: #C73A9D;
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 10px;           /* space between icon and text */
  padding: 6px 10px;
}


/* === ANIMATIONS === */
@keyframes gpsPulse {
  0% { box-shadow: 0 0 6px #0ff; }
  50% { box-shadow: 0 0 12px #0ff; }
  100% { box-shadow: 0 0 6px #0ff; }
}

@keyframes pulse {
  0% { text-shadow: 0 0 5px #ff69b4, 0 0 10px #ff69b4, 0 0 20px #ff69b4; }
  50% { text-shadow: 0 0 10px #ff8de2, 0 0 20px #ff8de2, 0 0 30px #ff8de2; }
  100% { text-shadow: 0 0 5px #ff69b4, 0 0 10px #ff69b4, 0 0 20px #ff69b4; }
}
        *, *::before, *::after { box-sizing: border-box; }
        html, body {
            margin: 0;
            padding: 0;
            height: 100dvh;
            min-height: 100dvh;
            background: #000;
            font-family: 'Orbitron', sans-serif;
            overflow: hidden;
        }
        .my-text { text-align: right; margin: 0 auto; color: #0ff; font-size: 2.2rem; }
        header {
            position: sticky; top: 0; background: #000; z-index: 1002;
            padding: 10px 0; border-bottom: 2px solid #C73A9D;
            box-shadow: 0 4px 20px rgba(0,255,255,0.3);
            padding-top: max(12px, env(safe-area-inset-top));
        }
        .top-controls-row {
            display: flex; justify-content: space-between; align-items: center;
            padding: 4px 6px; background: rgba(0,0,0,0.95); backdrop-filter: blur(12px);
            border-bottom: 1px solid #0ff; gap: 12px;
        }
        .toggle-group {
            display: flex; background: #111; border: 1px solid #0ff;
            border-radius: 8px; overflow: hidden; box-shadow: 0 0 15px rgba(0,255,255,0.3);
        }
        .toggle-button {
            padding: 1px 2px; background: transparent; color: #0ff;
            border: none; font-family: Orbitron; font-size: 1em; cursor: pointer;
            transition: all 0.3s;
        }
        .toggle-button.active {
            background: #0ff; color: #000; box-shadow: 0 0 20px rgba(0,255,255,0.8);
        }
        .page-container {
            display: flex; flex-direction: column;
            height: 100dvh;
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
        }
        .main-area {
            flex: 1;
            position: relative;
            overflow: hidden;
        }
        #mapContainer { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
        #map { width: 100%; height: 100%; }
        .distance-slider-overlay {
            position: absolute;
            bottom: 25px;
            left: 50%;
            transform: translateX(-50%);
            width: 75%;
            max-width: 340px;
            padding: 7px 10px;
            background: rgba(0, 0, 0, 0.35);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(0, 255, 255, 0.4);
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0, 255, 255, 0.2);
            text-align: center;
            z-index: 800;
            pointer-events: auto;
        }
        .slider-label {
            color: #0ff;
            font-size: 0.95em;
            margin-bottom: 6px;
            text-shadow: 0 0 8px #0ff;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s;
        }
        .slider-label:not(.location-shared) {
            text-decoration: underline;
            cursor: pointer;
        }
        .slider-label:not(.location-shared):hover {
            text-decoration-color: #0ff;
            text-shadow: 0 0 12px #0ff;
        }
        #distanceIcon {
            font-size: 1.3em;
            filter: drop-shadow(0 0 6px #0ff);
        }
        #distanceSlider {
            width: 100%;
            height: 7px;
            border-radius: 4px;
            background: rgba(17,17,17,0.6);
            outline: none;
            -webkit-appearance: none;
            box-shadow: 0 0 12px rgba(0,255,255,0.3);
        }
        #distanceSlider:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }
        #distanceSlider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #0ff;
            cursor: pointer;
            box-shadow: 0 0 18px rgba(0,255,255,0.9);
            border: 2px solid #000;
        }
        #distanceSlider::-moz-range-thumb {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #0ff;
            cursor: pointer;
            box-shadow: 0 0 18px rgba(0,255,255,0.9);
            border: 2px solid #000;
        }
        .map-empty-overlay {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgb(0 0 0 / 25%);
            backdrop-filter: blur(10px);
            border: 2px solid #0ff;
            border-radius: 16px;
            padding: 16px 24px;
            max-width: 90%;
            text-align: center;
            color: #f200ff;
            font-size: 1.1em;
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.5),
                        0 0 60px rgba(188, 19, 254, 0.3);
            z-index: 800;
            animation: fadeIn 0.6s ease-out;
            pointer-events: none;
        }
        .map-empty-overlay .empty-message {
            margin: 0;
            text-shadow: 0 0 12px #0ff;
            pointer-events: auto;
        }
        .map-empty-overlay .empty-close-btn {
            position: absolute;
            top: -5px;
            right: 0px;
            background: none;
            border: none;
            color: #0ff;
            font-size: 1.8em;
            cursor: pointer;
            text-shadow: 0 0 10px #0ff;
            pointer-events: auto;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
            to { opacity: 1; transform: translateX(-50%) translateY(0); }
        }
        .bottom-controls {
            padding: 3px; background: rgba(0,0,0,0.95); backdrop-filter: blur(12px);
            border-top: 1px solid #0ff; box-shadow: 0 -4px 20px rgba(0,255,255,0.2); z-index: 1000;
            padding-bottom: max(1px, env(safe-area-inset-bottom));
        }
        .search-bar {
            width: 100%; padding: 5px 6px; margin-top: 10px;
            border: 2px solid #C73A9D; border-radius: 10px; background: #000;
            color: #0ff; font-family: Orbitron; font-size: 1.1em;
            box-shadow: 0 0 15px rgba(0,255,255,0.4);
        }
        #searchResultsPanel {
            position: absolute;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            width: 92%;
            max-width: 460px;
            max-height: calc(80dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
            background: rgba(12, 3, 30, 0.98);
            border: 3px solid #0ff;
            border-radius: 22px;
            box-shadow: 0 0 35px rgba(0,255,255,0.6), 0 0 70px rgba(188,19,254,0.3);
            z-index: 950;
            display: none;
            flex-direction: column;
            overflow: hidden;
        }
        #searchResultsPanel.show { display: flex; animation: popIn 0.38s ease-out; }
        @keyframes popIn { from { transform: translate(-50%, -50%) scale(0.88); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
        #searchResultsPanel .panel-header {
            padding: 60px 10px 16px;
            background: linear-gradient(to bottom, #1a0033, #0f0022);
            border-bottom: 2px solid #0ff;
            color: #FF2D95;
            font-size: 1.00em;
            font-weight: bold;
            text-align: center;
            position: relative;
            text-shadow: 0 0 16px #FF2D95;
        }
        #searchResultsPanel .close-btn {
            position: absolute; top: 45px; right: 2px;
            background: none; border: none; color: #0ff;
            font-size: 2.5em; cursor: pointer;
            text-shadow: 0 0 14px #0ff;
        }
        #searchResultsPanel .results-list {
            flex: 1; overflow-y: auto; padding: 18px 16px; background: #0b001a;
        }
        .result-item {
            background: rgba(40,10,80,0.55);
            border: 1.5px solid #0ff;
            border-radius: 16px;
            padding: 18px;
            margin-bottom: 16px;
            cursor: pointer;
            transition: all 0.32s;
            box-shadow: 0 0 18px rgba(0,255,255,0.25);
            backdrop-filter: blur(6px);
        }
        .result-item:hover, .result-item:active {
            background: rgba(100,30,180,0.75);
            transform: translateY(-5px);
            box-shadow: 0 0 35px rgba(0,255,255,0.7), 0 10px 30px rgba(199,58,157,0.6);
        }
        .result-item .artist { font-size: 1.65em; color: #FF2D95; font-weight: bold; text-shadow: 0 0 5px #FF2D95; }
        .result-item .venue { font-size: 1.2em; color: #bc13fe; margin-top: 7px; }
        #listOverlay {
            position: absolute; top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.98); z-index: 900; overflow-y: auto;
            padding: 20px 10px 80px; display: none; flex-direction: column;
            padding-top: max(20px, env(safe-area-inset-top));
        }
        #listOverlay.show { display: flex; }
        #listOverlay .close-btn { position: absolute; top: 10px; right: 15px; background:none; border:none; color:#0ff; font-size:2.5em; cursor:pointer; z-index: 10; }
        .list-content { max-width: 600px; margin: 0 auto; width: 100%; }
        .list-header { text-align: center; color: #0ff; margin: 0 0 20px; font-size: 2em; text-shadow: 0 0 12px #0ff; }
        .event-list { display: flex; flex-direction: column; gap: 16px; }
        .event-item {
            background: #111; border: 1px solid #0ff; border-radius: 12px;
            padding: 12px; box-shadow: 0 0 15px rgba(0,255,255,0.3);
        }
        .event-item .artist { font-size: 1.5em; color: #0ff; margin-bottom: 6px; font-weight: bold; }
        .event-item .venue { font-size: 1.2em; color: #00ffff; margin-bottom: 8px; }
        .event-item .time { color: #aaa; }
        .event-item .pin-badge { display: inline-block; background: #333; color: #0ff; padding: 4px 10px; border-radius: 12px; font-size: 0.8em; margin-left: 8px; border: 1px solid #0ff; }
        .login-banner {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgb(0 0 0 / 25%);
            color: #f200ff;
            padding: 14px 28px;
            border-radius: 12px;
            border: 2px solid #0ff;
            box-shadow: 0 0 20px rgba(0, 255, 255, 0.5), 0 0 40px rgba(188, 19, 254, 0.3);
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: space-between;
            max-width: 92%;
            font-family: 'Orbitron', sans-serif;
            font-size: 1em;
            backdrop-filter: blur(8px);
            animation: fadeIn 0.6s ease-out;
        }
        .login-banner.hidden { display: none; }
        .banner-content p {
            margin: 0;
            text-shadow: 0 0 10px #0ff;
            font-weight: bold;
        }
        .banner-buttons {
            margin-left: 20px;
            display: flex;
            gap: 12px;
        }
        .banner-buttons a {
            padding: 4px 8px;
            background: transparent;
            border: 1.5px solid #0ff;
            color: #0ff;
            text-decoration: none;
            border-radius: 8px;
            font-family: 'Orbitron', sans-serif;
            font-size: 0.9em;
            transition: all 0.3s;
            box-shadow: 0 0 15px rgba(0,255,255,0.4);
        }
        .banner-buttons a:hover {
            background: #0ff;
            color: #000;
            box-shadow: 0 0 25px rgba(0,255,255,0.8);
        }
        .close-btn {
            background: none;
            border: none;
            color: #0ff;
            font-size: 1.8em;
            cursor: pointer;
            margin-left: 16px;
            text-shadow: 0 0 10px #0ff;
            padding: 0 8px;
        }
        @media (max-width: 640px) {
            .login-banner {
                flex-direction: column;
                text-align: center;
                padding: 5px 20px;
            }
            .banner-content p { margin-bottom: 10px; }
            .banner-buttons { margin: 10px 0 0 0; }
            .close-btn { position: absolute; top: -7px; right: -5px; }
            .distance-slider-overlay {
                bottom: 25px;
                width: 80%;
                max-width: 320px;
            }
        }
        .refresh-button {
            position: absolute;
            top: 125px;
            right: 5px;
            z-index: 1001;
            padding: 10px 18px;
            background: rgba(188,19,254,0.85);
            color: white;
            border: 2px solid #0ff;
            border-radius: 12px;
            font-size: 1.05em;
            cursor: pointer;
            box-shadow: 0 0 20px rgba(0,255,255,0.6);
            backdrop-filter: blur(8px);
            transition: all 0.3s;
        }
        .refresh-button:hover {
            background: rgba(188,19,254,1);
            box-shadow: 0 0 30px rgba(188,19,254,0.9);
        }
        .menu-row {
            display: flex;
            align-items: center;
            padding: 1px 1px;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #00ffff;
        }
        
        .menu-row:hover {
            background: rgba(0, 255, 255, 0.12);
            transform: translateX(6px);
        }
        
        .menu-row .neon-icon {
            width: 32px;
            height: 32px;
            margin-right: 16px;
            flex-shrink: 0;
        }
        
        .menu-row .menu-label {
            font-size: 1.1rem;
            white-space: nowrap;
        }
        
        #menuToggle.active {
            background: rgba(255, 45, 149, 0.3);
            border-radius: 50%;
            box-shadow: 0 0 20px #FF2D95;
        }
        
        #menuPopup:not(.hidden) ~ #menuToggle {
            /* optional: change hamburger icon or color when open */
        }
        
        /* Fix for Header Centering */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 15px;
    position: relative;
    height: 75px; 
    z-index: 1000;
    background: #000; /* Ensures visibility during testing */
}

.date-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
}

#pageTitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem; /* Adjusted for mobile safety */
    font-weight: 700;
    display: flex;
    gap: 8px;
    margin: 0;
}

/* Neon Branded Effects */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    background: #000;
    position: relative;
    padding: 0 15px;
}

.date-navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
}

#dynamicPageTitle {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem; /* Adjusted to keep it centered on mobile */
    font-weight: 700;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.neon-blue {
    color: #fff;
    -webkit-text-stroke: 0.4px #fff;
    text-shadow: 0 0 2px #fff, 0 0 10px #004ecc, 0 0 20px #0074D9;
}

.neon-ruby {
    color: #fff;
    -webkit-text-stroke: 0.4px #fff;
    text-shadow: 0 0 2px #fff, 0 0 10px #a30000, 0 0 20px #E0115F;
}

.neon-arrow {
    width: 28px;
    height: 28px;
    color: #bc13fe;
    filter: drop-shadow(0 0 4px #bc13fe);
    cursor: pointer;
}

/* This balances the left menu so the center stays center */
.menu-container, .header-spacer {
    width: 40px;
}