#cycling-popup {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 999;
  min-width: 280px;
  max-width: 300px;
  pointer-events: none;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 4.5rem; /* Space for the weather station panel */
}

#cycling-popup::-webkit-scrollbar {
  width: 6px;
}

#cycling-popup::-webkit-scrollbar-track {
  background: transparent;
}

#cycling-popup::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.cycling-popup-card {
  background: rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.25rem;
  min-width: 100%;
  box-sizing: border-box;
  pointer-events: auto;
  opacity: 0;
  transform: scale(0.95) translateY(-10px);
  transition: all 0.3s ease;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  margin: 0;
  flex-shrink: 0;
}

.cycling-popup-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.cycling-popup-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cycling-popup-card.animating {
  opacity: 0.7;
  transform: scale(0.95) translateY(-10px);
}
