@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700&display=swap');

/* Reset and base styles */
:root {
    --qeblix-gradient: linear-gradient(90deg, #00BCD4 0%, #7c3aed 50%, #FFC107 100%); /* New global gradient */
    --qeblix-gradient-reverse: linear-gradient(90deg, #FFC107 0%, #7c3aed 50%, #00BCD4 100%); /* Reversed for hover effects */
    --qeblix-accent-color: #FFC107; /* A prominent color from the new gradient */
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--qeblix-gradient); /* Use global gradient */
  min-height: 100vh;
  color: #fff;
}

/* Ensure all form elements and buttons use Plus Jakarta Sans */
button, input, select, textarea {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 0 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo-icon {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ff2d55 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
}
.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-icon span {
  display: block;
  width: 28px;
  height: 3px;
  background: #2e3750;
  border-radius: 2px;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.map {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  touch-action: manipulation;
  background: #181f2a;
  pointer-events: auto !important;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: none !important;
}

.map-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transition: none !important;
}

.leaflet-container {
  transition: none !important;
}

.slogan {
  position: relative;
  z-index: 2;
  margin-top: 0; /* Remove top margin from slogan */
  margin-bottom: 0; /* Remove bottom margin from slogan */
  text-align: center;
}
.slogan h1 {
  margin-top: 0; /* Ensure no default margin from h1 */
  margin-bottom: 0; /* Ensure no default margin from h1 */
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 4px 32px #000a, 0 1px 0 #fff1;
}

.slogan h1 .gradient-text {
    background: var(--qeblix-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback for browsers that don't support text-fill-color */
}

.spot-me-btn {
  position: relative;
  z-index: 2;
  margin: 0; /* Remove margin from button, rely on parent padding and flex gap */
  display: block;
  padding: 1.2rem 3.5rem;
  font-size: 1.3rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.3s;
  animation: glowPulse 2s infinite alternate;
}

.spot-me-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%; /* Start off-screen */
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%); /* Sliding white gradient */
  transform: skewX(-20deg); /* Skew for a slanted effect */
  transition: all 0.7s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: -1; /* Behind content but above button background */
}

.spot-me-btn:hover::before {
  left: 125%; /* Slide across to off-screen right */
}

@keyframes glowPulse {
  0% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(245, 158, 11, 0.4); }
  100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(147, 51, 234, 0.6); }
}
.spot-me-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(147, 51, 234, 0.7);
}

.spot-me-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.38) 45%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0.38) 55%, rgba(255,255,255,0.08) 100%);
  filter: blur(3px) saturate(1.7);
  opacity: 0.92;
  pointer-events: none;
  z-index: 2;
  transform: skewX(-32deg);
  animation: glass-slide-ltr 2.6s cubic-bezier(0.4,0,0.2,1) infinite alternate;
}
@keyframes glass-slide-ltr {
  0% {
    left: -70%;
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  20% {
    opacity: 0.92;
  }
  50% {
    left: 100%;
    opacity: 0.92;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}
.spot-me-btn.glass-rtl::after {
  animation-name: glass-slide-rtl;
}
@keyframes glass-slide-rtl {
  0% {
    left: 100%;
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  20% {
    opacity: 0.92;
  }
  50% {
    left: -70%;
    opacity: 0.92;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    left: -70%;
    opacity: 0;
  }
}

/* Modal Glass Form */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24, 31, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 0.3s;
}
.modal.hidden {
  display: none;
}
.modal.minimized {
  opacity: 0.3;
  pointer-events: none;
}

.modal.minimized .glass-form {
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.glass-form {
  background: rgba(34, 40, 56, 0.55);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.6), 0 1.5px 8px rgba(124,58,237,0.27); /* Adjusted shadow for clarity */
  backdrop-filter: blur(18px) saturate(1.2);
  border-radius: 1rem; /* Slightly less rounded */
  padding: 1.5rem; /* Reduced padding for compactness */
  min-width: 280px; /* Minimized width */
  max-width: 400px; /* Max width for larger screens */
  display: flex;
  flex-direction: column;
  gap: 0.8rem; /* Reduced gap between elements */
  position: relative;
  border: 1.5px solid rgba(255,255,255,0.1); /* Subtle border */
}
.glass-form label {
  font-size: 0.9rem; /* Slightly smaller font */
  color: #bfc9e6;
  margin-bottom: 0.1rem; /* Reduced margin */
}
.glass-form input {
  padding: 0.8rem 1rem; /* Reduced padding */
  border-radius: 0.8rem; /* Consistent smaller radius */
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 0.9rem; /* Consistent smaller font */
  margin-bottom: 0.1rem;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1); /* Softer shadow */
  transition: background 0.2s, box-shadow 0.2s;
}
.glass-form input:focus {
  background: rgba(124,58,237,0.13);
  box-shadow: 0 0 0 2px rgba(124,58,237,0.33); /* Softer focus shadow */
}
.glass-form .post-btn {
  margin-top: 1rem; /* Adjusted top margin */
  padding: 0.8rem 2rem; /* Adjusted padding */
  border-radius: 1.5rem; /* Consistent button radius */
  border: none;
  background: var(--qeblix-gradient);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Softer shadow */
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.post-btn:hover {
  background: var(--qeblix-gradient-reverse);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3); /* Softer hover shadow */
}
.close-btn {
  position: absolute;
  top: 0.8rem; /* Adjusted position */
  right: 0.8rem; /* Adjusted position */
  background: none;
  border: none;
  color: #fff9;
  font-size: 1.5rem; /* Slightly smaller */
  cursor: pointer;
  transition: color 0.2s;
}
.close-btn:hover {
  color: #ff2d55;
}

/* Custom Leaflet marker styles will be added in JS */
.glow-marker {
  pointer-events: none;
}
.glow-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin: 0 auto;
  background: #2563eb;
  box-shadow: 0 0 16px 8px #2563eb99, 0 0 32px 16px #2563eb44;
  animation: markerPulse 1.5s infinite alternate;
}
.glow-marker.red .glow-dot {
  background: #ff2d55;
  box-shadow: 0 0 16px 8px #ff2d5599, 0 0 32px 16px #ff2d5544;
}
.glow-marker.blue .glow-dot {
  background: #2563eb;
  box-shadow: 0 0 16px 8px #2563eb99, 0 0 32px 16px #2563eb44;
}
@keyframes markerPulse {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.25); opacity: 1; }
}

.glow-marker.temp .glow-dot {
  background: #ff2d55;
  box-shadow: 0 0 18px 10px #ff2d5599, 0 0 36px 18px #ff2d5544;
  border: 2px solid #fff8;
  animation: markerPulse 1.5s infinite alternate;
}

.glow-marker.purple .glow-dot {
  background: #7c3aed;
  box-shadow: 0 0 18px 10px #7c3aed99, 0 0 36px 18px #7c3aed44;
  border: 2px solid #fff8;
}

.glow-marker.user {
  z-index: 9999;
}
.glow-marker.user .glow-dot {
  background: #00ffb3;
  box-shadow: 0 0 18px 10px #00ffb399, 0 0 36px 18px #00ffb344;
  border: 2px solid #fff8;
}

#picking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

#picking-overlay > div {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1rem 2rem;
  border-radius: 1rem;
  text-align: center;
  font-size: 1.2rem;
  pointer-events: none;
}

/* Style the spot type select adjustments for compactness */
.glass-form select {
  padding: 0.8rem 1rem;
  border-radius: 0.8rem;
  font-size: 0.9rem;
  background-position: right 0.8rem center;
  background-size: 1.2em;
  padding-right: 2.2rem;
}

.glass-form select option {
  padding: 0.8rem;
}

.sidebar-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 40, 56, 0.55);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-right: 1.5px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 2rem 1rem 2rem; /* Adjusted padding-bottom for overall spacing */
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

/* Professional glowing dots: black dot, colored animated glow, appear/disappear effect */
.sidebar-glass .particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.sidebar-glass .particle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent !important;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.sidebar-glass .particle.color1 { background: #ff6bcb; }
.sidebar-glass .particle.color2 { background: #6bffb4; }
.sidebar-glass .particle.color3 { background: #6bcaff; }
.sidebar-glass .particle.color4 { background: #ffe56b; }
.sidebar-glass .particle.color5 { background: #b76bff; }
.sidebar-glass .particle.color6 { background: #ff6b6b; }
.sidebar-glass .particle.color7 { background: #6bffec; }
.sidebar-glass .particle.color8 { background: #ffb36b; }
@keyframes particle-appear-glow-move {
  0% {
    opacity: 0;
    transform: translate(0,0) scale(0.5);
  }
  15% {
    opacity: 1;
    transform: translate(0,0) scale(1.1);
  }
  85% {
    opacity: 1;
    transform: translate(var(--move-x, 0px), var(--move-y, 0px)) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translate(var(--move-x, 0px), var(--move-y, 0px)) scale(0.7);
  }
}
.sidebar-glass .particle.animate,
.sidebar-glass .particle.animate .particle-glow {
  animation: particle-appear-glow-move var(--duration, 10s) linear forwards;
}
.sidebar-glass .particle-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0.7;
  filter: blur(8px);
  z-index: -1;
  pointer-events: none;
  will-change: opacity, transform;
}
.sidebar-glass .particle.color1 .particle-glow { background: radial-gradient(circle, #ff6bcb 0%, transparent 80%); }
.sidebar-glass .particle.color2 .particle-glow { background: radial-gradient(circle, #6bffb4 0%, transparent 80%); }
.sidebar-glass .particle.color3 .particle-glow { background: radial-gradient(circle, #6bcaff 0%, transparent 80%); }
.sidebar-glass .particle.color4 .particle-glow { background: radial-gradient(circle, #ffe56b 0%, transparent 80%); }
.sidebar-glass .particle.color5 .particle-glow { background: radial-gradient(circle, #b76bff 0%, transparent 80%); }
.sidebar-glass .particle.color6 .particle-glow { background: radial-gradient(circle, #ff6b6b 0%, transparent 80%); }
.sidebar-glass .particle.color7 .particle-glow { background: radial-gradient(circle, #6bffec 0%, transparent 80%); }
.sidebar-glass .particle.color8 .particle-glow { background: radial-gradient(circle, #ffb36b 0%, transparent 80%); }

/* Mobile responsiveness */
@media (max-width: 768px) {
  .sidebar-glass {
    padding: 2rem 2rem 1rem 2rem; /* Consistent padding on mobile */
  }
  .sidebar-glass .slogan {
    margin-top: 0; /* Remove mobile margin-top */
    margin-bottom: 0; /* Remove mobile margin-bottom */
  }
  .sidebar-glass .spot-me-btn {
    margin: 0; /* Remove mobile margin */
  }
}
.sidebar-glass .header {
  padding: 0;
}
.sidebar-glass .slogan {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.sidebar-glass .spot-me-btn {
  margin: 0 auto 0 auto;
  width: 100%;
}

.manual-location {
  margin-top: 0.5rem;
  padding: 0.5rem 0.5rem 0.2rem 0.5rem;
  background: rgba(34, 40, 56, 0.2);
  border-radius: 0.8rem;
  box-shadow: 0 1px 6px rgba(124,58,237,0.1); /* Softer shadow */
}
.manual-location.hidden {
  display: none;
}
.location-fields {
  display: flex; /* Ensure flex container */
  align-items: center; /* Vertically align items */
  gap: 0.3rem;
  margin-top: 0.2rem;
}
.location-fields input[type="number"] {
  width: 6rem; /* Smaller width */
  padding: 0.5rem 0.6rem; /* Reduced padding */
  font-size: 0.85rem; /* Smaller font */
  border-radius: 0.6rem;
}
.pick-map-btn {
  flex-grow: 1; /* Make it fill available space */
  padding: 0.5rem 1rem; /* Adjust padding for better look */
  border-radius: 0.8rem; /* Consistent with inputs */
  border: none; /* Ensure no border */
  background: var(--qeblix-gradient); /* Use global gradient */
  color: #fff;
  font-weight: 600; /* Ensure bold font */
  cursor: pointer;
  box-shadow: 0 0 8px 2px rgba(124,58,237,0.27); /* Softer shadow */
  transition: background 0.2s, box-shadow 0.2s;
  font-size: 0.85rem; /* Consistent with inputs */
}
.pick-map-btn:hover {
  background: var(--qeblix-gradient-reverse); /* Hover gradient */
  box-shadow: 0 0 16px 4px rgba(59, 130, 246, 0.33); /* Hover shadow */
}

/* Mobile Header */
.mobile-header {
    display: none; /* Hidden by default, shown on mobile via media query */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1); /* Match sidebar background */
    backdrop-filter: blur(10px); /* Match sidebar blur */
    -webkit-backdrop-filter: blur(10px); /* For Safari compatibility */
    padding: 0.8rem 1rem; /* Reduced padding for compact look */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    justify-content: space-between; /* Space out logo and menu icon */
    align-items: center; /* Vertically align items */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Match sidebar shadow */
    border-radius: 0; /* Ensure no rounded corners */
}

.toggle-sidebar {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.toggle-sidebar span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.toggle-sidebar.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.toggle-sidebar.active span:nth-child(2) {
    opacity: 0;
}

.toggle-sidebar.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Sidebar Glass */
.sidebar-glass {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 370px;
    min-width: 270px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: rgba(34, 40, 56, 0.55);
    box-shadow: 0 8px 32px 0 #000a, 0 1.5px 8px #7c3aed44;
    backdrop-filter: blur(18px) saturate(1.2);
    border-radius: 0 !important;
    border: 1.5px solid #fff2;
    z-index: 5;
    padding: 2.5rem 2rem 2rem 2rem;
    gap: 2.5rem;
    transition: transform 0.3s ease;
}

/* Responsive styles */
@media (max-width: 768px) {
    body {
        padding-top: 5rem; /* Add padding to body to account for fixed mobile header */
    }
    .header {
        display: none; /* Hide original header on mobile */
    }
    .mobile-header {
        display: flex; /* Show the dedicated mobile header */
    }
    .slogan h1 {
        font-size: 1.8rem; /* Made slogan bigger on mobile */
    }
    .glass-form {
        min-width: 90vw; /* Still allow it to take most of the width */
        padding: 1rem; /* Reduced padding for mobile */
        gap: 0.6rem; /* Smaller gap on mobile */
    }
    .glass-form label {
        font-size: 0.85rem;
    }
    .glass-form input {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
    }
    .glass-form .post-btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    .close-btn {
        font-size: 1.2rem;
    }
    .manual-location {
        padding: 0.4rem;
    }
    .location-fields input[type="number"] {
        width: 5rem;
        padding: 0.4rem 0.5rem;
        font-size: 0.8rem;
    }
    .pick-map-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    .glass-form select {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
    }
    .map {
        touch-action: pan-x pan-y pinch-zoom;
    }
    .desktop-logo {
        display: none;
    }
    .sidebar-glass {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
        border-radius: 0 !important;
        padding: 2.5rem 2rem 2rem 2rem;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }
    .sidebar-glass.active {
        transform: translateX(0);
    }
    .sidebar-glass .slogan {
        margin-top: 3rem; /* Added space after header and text */
        margin-bottom: 2rem;
    }
    .sidebar-glass .spot-me-btn {
        margin: 0 auto 0 auto;
        width: 100%;
    }
    .sidebar-glass .logo {
        display: flex; /* Ensure logo is displayed in mobile sidebar */
        justify-content: center;
        margin-bottom: 2rem; /* Add space below logo */
    }
}

.desktop-logo {
    display: none; /* Hidden by default on mobile */
}

@media (min-width: 769px) {
    .desktop-logo {
        display: flex; /* Show only on desktop */
    }
}

.sidebar-glass .spot-me-btn {
        margin-top: 2rem;
    background: var(--qeblix-gradient);
    border: none;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.active-spots-counter {
    text-align: center;
    margin: 1.5rem auto 0 auto; /* Adjust margin to create space below the button and center */
    padding: 0.8rem 1.2rem; /* Add more horizontal padding */
    background: rgba(255, 255, 255, 0.08); /* Slightly less opaque for better visibility */
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15); /* Subtle border for glass effect */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Softer shadow */
    cursor: pointer; /* Indicate interactivity */
    transition: all 0.2s ease; /* Smooth transitions for hover effects */
    display: inline-block; /* Allow margin auto to center */
}

.active-spots-counter:hover {
    background: rgba(255, 255, 255, 0.12); /* Brighter on hover */
    transform: translateY(-2px) scale(1.02); /* Slight lift and scale */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* More pronounced shadow on hover */
}

.counter-label {
    color: #bfc9e6;
    font-size: 0.95rem; /* Slightly larger for readability */
    margin-right: 0.5rem;
    font-weight: 500; /* Medium weight */
}

#activeSpotsCount {
    font-size: 1.3rem; /* Slightly larger for prominence */
    font-weight: 700;
    color: var(--qeblix-accent-color);
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.5); /* Subtle glow for the number */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .active-spots-counter {
        margin: 1.2rem auto 0 auto; /* Adjust margin for mobile */
        padding: 0.7rem 1rem; /* Adjust padding for mobile */
        font-size: 0.85rem; /* Adjust font size */
    }

    .counter-label {
        font-size: 0.85rem;
    }

    #activeSpotsCount {
        font-size: 1.1rem;
    }
}

.remaining-time {
    margin-top: 0.8rem;
    font-size: 0.85rem;
}

.remaining-time span {
    color: var(--qeblix-accent-color);
    font-weight: 700;
}

/* Glow effect colors for different spot statuses */
.glow-marker.active .glow-dot {
  background-color: #007bff; /* Blue for active */
  box-shadow: 0 0 5px #007bff, 0 0 10px #007bff, 0 0 15px #007bff, 0 0 20px #007bff;
}

.glow-marker.viral .glow-dot {
  background-color: #dc3545; /* Red for viral */
  box-shadow: 0 0 5px #dc3545, 0 0 10px #dc3545, 0 0 15px #dc3545, 0 0 20px #dc3545;
}

.glow-marker.creative .glow-dot {
  background-color: #6f42c1; /* Purple for creative */
  box-shadow: 0 0 5px #6f42c1, 0 0 10px #6f42c1, 0 0 15px #6f42c1, 0 0 20px #6f42c1;
}

/* Default glow for other types or fallback */
.glow-marker.user .glow-dot,
.glow-marker.temp .glow-dot {
  background-color: #28a745; /* Green for user/temp */
  box-shadow: 0 0 5px #28a745, 0 0 10px #28a745, 0 0 15px #28a745, 0 0 20px #28a745;
}

/* Custom Leaflet popup styles */
.leaflet-popup {
  z-index: 1000 !important;
}

.leaflet-popup-content-wrapper {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.leaflet-popup-content {
  margin: 0;
}

.leaflet-popup-tip {
  background: rgba(0, 0, 0, 0.8);
}

.leaflet-popup-close-button {
  color: white;
  padding: 8px;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  line-height: 8px;
  text-align: center;
  right: 8px;
  top: 8px;
}

.leaflet-popup-close-button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Ensure tooltip content is visible */
.spot-tooltip {
  position: relative;
  z-index: 1000;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.spot-tooltip .spot-name {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}

.spot-tooltip .spot-activity {
  font-size: 0.9em;
  line-height: 1.4;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.spot-tooltip .spot-livestream {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff;
  font-size: 0.85em;
  transition: all 0.3s ease;
}

.spot-tooltip .spot-livestream:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.spot-tooltip .spot-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 500;
  margin-top: 8px;
}

.spot-tooltip .spot-status.active {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
}

.spot-tooltip .spot-status.viral {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.spot-tooltip .spot-status.creative {
  background: rgba(111, 66, 193, 0.2);
  color: #6f42c1;
}

/* Spot popup styles */
.spot-popup-content {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-width: 200px;
  max-width: 300px;
}

.spot-popup-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
}

.spot-popup-content p {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.spot-popup-content a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85em;
  margin: 5px 0;
  transition: background 0.3s ease;
}

.spot-popup-content a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.spot-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75em;
  font-weight: 500;
  margin-top: 8px;
}

.spot-status.active {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
}

.spot-status.viral {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.spot-status.creative {
  background: rgba(111, 66, 193, 0.2);
  color: #6f42c1;
}

/* Custom tooltip styles */
.custom-tooltip {
  position: absolute;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5); /* Changed to black with 50% opacity */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15); /* Slightly less visible border */
  border-radius: 8px;
  padding: 12px;
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-width: 180px;
  max-width: 250px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Darker shadow for black glass */
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-content {
  position: relative;
}

.tooltip-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.1em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
}

.tooltip-content p {
  margin: 0 0 8px 0;
  font-size: 0.85em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.tooltip-content .spot-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.tooltip-content .spot-info span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tooltip-content .spot-info i {
  font-size: 0.9em;
}

.tooltip-content a {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8em;
  margin: 5px 0;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.tooltip-content a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.spot-status {
  display: inline-block;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7em;
  font-weight: 500;
  margin-top: 6px;
}

.spot-status.active {
  background: rgba(0, 123, 255, 0.2);
  color: #007bff;
}

.spot-status.viral {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.spot-status.creative {
  background: rgba(111, 66, 193, 0.2);
  color: #6f42c1;
}

/* Logo Styles */
.logo-img {
    max-height: 50px; /* Slightly bigger */
    vertical-align: middle;
    margin-right: 4px; /* Reduced space between logo and text */
}

.logo {
    display: flex;
    align-items: center; /* Vertically center image and text */
    justify-content: center;
}

.logo .logo-text {
    font-family: 'Plus Jakarta Sans', sans-serif; /* Use the primary font */
    font-size: 1.6rem; /* Adjust size for professionalism */
    font-weight: 700;
    color: #fff; /* White color for contrast */
    /* Consider adding a subtle text-shadow or gradient if desired */
}

/* Hide old logo icon, if still present */
.logo .logo-icon {
    display: none; 
}

/* Map Picking Form specific styles */
.map-picking-form {
  padding: 0;
  max-width: 90vw;
  width: 420px;
  height: 75vh;
  display: flex;
  flex-direction: column; /* Ensure content stacks vertically */
  position: relative;
  overflow: hidden;
  background: rgba(34, 40, 56, 0.95);
  backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
}

.map-picking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(24, 31, 42, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.map-picking-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.close-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  width: 30px;
  height: 30px;
}

.close-icon:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.picker-map {
  height: calc(100% - 133px); /* Calculated height: 45px (header) + 88px (actions) */
  background: #232b3e;
  position: relative;
}

.picker-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(24, 31, 42, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.picker-actions .post-btn {
  width: 100%;
  max-width: 280px;
  font-size: 0.9rem;
  padding: 0.7rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  background: var(--qeblix-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin: 0 auto !important;
}

.picker-actions .post-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.picker-actions .post-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.picker-actions .post-btn:hover::before {
  opacity: 1;
}

.picker-actions .clear-selection-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.2s ease;
    display: block;
  text-align: center;
  margin: 0 auto !important;
  max-width: 280px;
}

.picker-actions .clear-selection-link:hover {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .picker-actions {
    padding: 0.75rem 1rem;
    gap: 0.625rem;
  }

  .picker-actions .post-btn {
    max-width: 90%;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    min-height: 48px;
    border-radius: 0.625rem;
  }

  .picker-actions .clear-selection-link {
    font-size: 0.8rem;
    max-width: 90%;
  }

  .picker-map {
    height: calc(100% - 135px); /* Calculated height: 45px (header) + 90px (actions) */
  }

  .map-picking-form {
    height: 85vh;
  }
}

/* Animation for modal */
.modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
}

.map-picking-form {
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal:not(.hidden) .map-picking-form {
  transform: scale(1);
}

/* Ensure the modal is above the header on mobile */
@media (max-width: 768px) {
  .modal {
    z-index: 1001;
    padding: 12px;
  }
  
  .header {
    z-index: 1000;
  }
}

.spot-info-legend {
    text-align: center;
    margin-top: 0.8rem; /* Space from the active spots counter */
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0 1rem; /* Add some horizontal padding to prevent text from touching edges */
}

.spot-info-legend p {
    margin: 0;
    line-height: 1.4;
}

.spot-info-legend span {
    font-weight: 600;
    margin: 0 0.2rem;
}

.spot-info-legend .legend-active {
    color: #00BCD4; /* Blue, matching the active spot color */
}

.spot-info-legend .legend-viral {
    color: #dc3545; /* Red, matching the viral spot color */
}

.spot-info-legend .legend-creative {
    color: #6f42c1; /* Purple, matching the creative spot color */
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .spot-info-legend {
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }
} 

.live-feed-section {
  background: rgba(34, 40, 56, 0.7);
  box-shadow: 0 4px 24px 0 #0002;
  border-radius: 1rem;
  margin: 2rem auto 0 auto;
  max-width: 420px;
  padding: 1.2rem 1.5rem 1.2rem 1.5rem;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  z-index: 10;
  position: relative;
}
.live-feed-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #FFC107;
  letter-spacing: 1px;
}
#liveFeedList {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}
.live-feed-item {
  background: rgba(255,255,255,0.07);
  border-radius: 0.7rem;
  margin-bottom: 0.7rem;
  padding: 0.7rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.2s;
}
.live-feed-item:last-child { margin-bottom: 0; }
.live-feed-timestamp {
  font-size: 0.92rem;
  color: #bfc9e6;
  font-weight: 500;
}
.live-feed-location {
  font-size: 0.98rem;
  color: #7c3aed;
  font-weight: 600;
}
.live-feed-link {
  font-size: 0.95rem;
  color: #00BCD4;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
  margin-top: 0.2rem;
  align-self: flex-start;
}
.live-feed-link:hover {
  color: #FFC107;
} 

#openLiveFeedBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1001;
  background: var(--qeblix-gradient);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 2rem;
  box-shadow: 0 4px 16px #0003;
  padding: 1rem 2.2rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}
#openLiveFeedBtn:hover {
  background: var(--qeblix-gradient-reverse);
  box-shadow: 0 8px 24px #0005;
  transform: scale(1.06);
}
#liveFeedModal .glass-form {
  background: rgba(34, 40, 56, 0.85);
  box-shadow: 0 8px 32px 0 #000a, 0 1.5px 8px #7c3aed44;
  border-radius: 1.2rem;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  max-width: 480px;
  width: 95vw;
  max-height: 90vh;
  overflow: auto;
  color: #fff;
}
#liveFeedModal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFC107;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
#liveFeedModal .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff9;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}
#liveFeedModal .close-btn:hover {
  color: #ff2d55;
} 