/* ==========================================================================
   CSS Core Design System & Token Declarations (Glassmorphic Dark Mode Theme)
   ========================================================================== */

:root {
  /* HSL Tailored Color Palette */
  --bg-primary: 224, 25%, 8%;           /* Deep spatial blue-gray */
  --bg-secondary: 224, 25%, 12%;       /* Card background baseline */
  --bg-glass: 224, 25%, 12%, 0.65;     /* Glass baseline */
  --border-glass: 224, 25%, 22%, 0.45;  /* Subtle glass border */
  
  /* Accent Colors representing directions */
  --accent-north: 168, 85%, 52%;       /* Vibrant mint/emerald (NB) */
  --accent-south: 200, 95%, 56%;       /* Electric tech blue (SB) */
  --accent-yellow: 42, 100%, 62%;      /* Alert / Warning / Transition */
  --accent-glow-nb: 168, 85%, 52%, 0.15;
  --accent-glow-sb: 200, 95%, 56%, 0.15;

  /* Typography / Text Palette */
  --text-primary: 0, 0%, 100%;         /* Crisp white */
  --text-secondary: 224, 15%, 72%;     /* Cool muted silver */
  --text-muted: 224, 12%, 50%;        /* Deep gray for details */

  /* Timing & Animations */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
}

/* ==========================================================================
   Global Reset & Base Configurations
   ========================================================================== */

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: hsl(var(--bg-primary));
  color: hsl(var(--text-primary));
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, hsla(200, 100%, 50%, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, hsla(168, 100%, 50%, 0.05) 0%, transparent 40%);
}

/* ==========================================================================
   Session Auto-Sleep Interface Overlay (Full-Screen Blocking Layer)
   ========================================================================== */

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(6, 11, 23, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-smooth);
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

.overlay-content {
  text-align: center;
  max-width: 520px;
  padding: 40px;
  border-radius: var(--border-radius-lg);
  border: 1px solid hsla(var(--border-glass));
  background: radial-gradient(circle at top, hsla(224, 25%, 15%, 0.4), hsla(224, 25%, 8%, 0.8));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sleep-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  color: hsl(var(--accent-south));
  animation: floatIcon 4s ease-in-out infinite alternate;
}

.sleep-icon svg {
  width: 36px;
  height: 36px;
}

.overlay h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.overlay p {
  color: hsl(var(--text-secondary));
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 36px;
}

.resume-button {
  position: relative;
  background: linear-gradient(135deg, hsl(var(--accent-south)), hsl(var(--accent-north)));
  border: none;
  color: hsl(var(--bg-primary));
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 172, 238, 0.3);
  transition: var(--transition-smooth);
  outline: none;
  overflow: hidden;
}

.resume-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(0, 172, 238, 0.55);
}

.resume-button:active {
  transform: translateY(1px);
}

.pulse-ring {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 2px solid hsla(var(--text-primary), 0.3);
  border-radius: 50px;
  transform: translate(-50%, -50%) scale(1);
  animation: pulseButton 2s infinite ease-out;
  pointer-events: none;
}

/* ==========================================================================
   Dashboard Container & Layout Structures
   ========================================================================== */

.app-container {
  max-width: 1680px;
  margin: 0 auto;
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* App Header styling */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid hsla(var(--border-glass));
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background-color: hsl(var(--accent-north));
  border-radius: 50%;
  box-shadow: 0 0 10px hsla(var(--accent-north), 0.7);
  animation: blinkDot 2.5s infinite;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  color: hsl(var(--text-secondary));
}

.main-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.session-timer-badge {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.badge-label {
  color: hsl(var(--text-secondary));
}

.badge-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: hsl(var(--accent-south));
}

.feed-status-badge {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: hsl(var(--text-muted));
}

.status-dot.online {
  background-color: hsl(var(--accent-north));
  box-shadow: 0 0 10px hsla(var(--accent-north), 0.5);
  animation: breathingGlow 2s infinite ease-in-out;
}

.status-dot.simulating {
  background-color: hsl(var(--accent-yellow));
  box-shadow: 0 0 10px hsla(var(--accent-yellow), 0.5);
  animation: breathingGlow 2s infinite ease-in-out;
}

.status-label {
  font-weight: 500;
}

/* ==========================================================================
   Dashboard Grid Panel Configurations
   ========================================================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  flex: 1;
}

.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.main-display-panel {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Card Baseline Glassmorphic styling */
.panel-card {
  background-color: hsla(var(--bg-glass));
  border: 1px solid hsla(var(--border-glass));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.panel-card:hover {
  border-color: hsla(var(--border-glass), 1.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: hsl(var(--text-secondary));
  margin-bottom: 18px;
  border-left: 3px solid hsl(var(--accent-south));
  padding-left: 10px;
}

/* Focal Station Card profile */
.station-profile {
  background: linear-gradient(145deg, hsla(224, 25%, 15%, 0.4), hsla(224, 25%, 10%, 0.7));
}

.station-name {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.station-address {
  display: block;
  font-size: 0.85rem;
  color: hsl(var(--accent-south));
  font-weight: 500;
  margin-bottom: 12px;
}

.station-desc {
  font-size: 0.85rem;
  color: hsl(var(--text-secondary));
  line-height: 1.5;
  margin-bottom: 20px;
}

.platform-coordinates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  background-color: rgba(0, 0, 0, 0.15);
  padding: 12px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.coord-item {
  display: flex;
  flex-direction: column;
}

.coord-label {
  font-size: 0.7rem;
  color: hsl(var(--text-muted));
  text-transform: uppercase;
  font-weight: 500;
}

.coord-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--text-secondary));
}

/* Telemetry Stats Card */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.metric-item {
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition-smooth);
}

.metric-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.metric-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: hsl(var(--text-primary));
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.7rem;
  color: hsl(var(--text-muted));
  text-transform: uppercase;
  font-weight: 600;
}

/* System Settings Card */
.config-card .section-title {
  border-left-color: hsl(var(--accent-north));
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.input-label {
  font-size: 0.75rem;
  color: hsl(var(--text-secondary));
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.text-input {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid hsla(var(--border-glass));
  border-radius: var(--border-radius-md);
  padding: 12px 16px;
  color: hsl(var(--text-primary));
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-smooth);
}

.text-input:focus {
  border-color: hsl(var(--accent-south));
  box-shadow: 0 0 12px hsla(var(--accent-south), 0.15);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.action-button {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.action-button.primary {
  background-color: hsl(var(--accent-south));
  color: hsl(var(--bg-primary));
  box-shadow: 0 5px 15px hsla(var(--accent-south), 0.2);
}

.action-button.primary:hover {
  background-color: hsla(200, 95%, 65%, 1);
  transform: translateY(-1px);
}

.action-button.secondary {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: hsla(var(--border-glass));
  color: hsl(var(--text-secondary));
}

.action-button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: hsl(var(--text-primary));
}

.action-button:active {
  transform: translateY(1px);
}

/* ==========================================================================
   Central Visual Displays (ETA Panels & Maps)
   ========================================================================== */

/* Live ETA Cards Row Layout */
.countdown-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.eta-card {
  position: relative;
  background-color: hsla(var(--bg-glass));
  border: 1px solid hsla(var(--border-glass));
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.eta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Background focal glows for the cards */
.eta-card.northbound {
  border-bottom: 4px solid hsl(var(--accent-north));
}

.eta-card.northbound:hover {
  border-color: hsla(var(--accent-north), 0.85);
  box-shadow: 0 15px 35px hsla(var(--accent-north), 0.08);
}

.eta-card.southbound {
  border-bottom: 4px solid hsl(var(--accent-south));
}

.eta-card.southbound:hover {
  border-color: hsla(var(--accent-south), 0.85);
  box-shadow: 0 15px 35px hsla(var(--accent-south), 0.08);
}

/* Interactive subtle glowing background element inside eta cards */
.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  pointer-events: none;
}

.northbound .card-glow {
  background: radial-gradient(circle at top right, hsl(var(--accent-north)) 0%, transparent 60%);
}

.southbound .card-glow {
  background: radial-gradient(circle at top right, hsl(var(--accent-south)) 0%, transparent 60%);
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

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

.card-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.direction-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 50px;
}

.delay-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.65rem;
  transition: var(--transition-smooth);
}

.delay-badge.on-time {
  background-color: hsla(168, 85%, 52%, 0.1);
  color: hsl(var(--accent-north));
  border: 1px solid hsla(168, 85%, 52%, 0.15);
}

.delay-badge.delayed {
  background-color: hsla(42, 100%, 62%, 0.1);
  color: hsl(var(--accent-yellow));
  border: 1px solid hsla(42, 100%, 62%, 0.25);
  box-shadow: 0 0 10px hsla(var(--accent-yellow), 0.25);
}

.northbound .direction-badge {
  background-color: hsla(var(--accent-north), 0.1);
  color: hsl(var(--accent-north));
  border: 1px solid hsla(var(--accent-north), 0.15);
}

.southbound .direction-badge {
  background-color: hsla(var(--accent-south), 0.1);
  color: hsl(var(--accent-south));
  border: 1px solid hsla(var(--accent-south), 0.15);
}

.destination-label {
  font-size: 0.8rem;
  color: hsl(var(--text-secondary));
  font-weight: 500;
}

.countdown-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 12px;
}

.eta-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -2px;
}

.northbound .eta-val {
  color: hsl(var(--accent-north));
  text-shadow: 0 0 20px hsla(var(--accent-north), 0.2);
}

.southbound .eta-val {
  color: hsl(var(--accent-south));
  text-shadow: 0 0 20px hsla(var(--accent-south), 0.2);
}

.eta-unit {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--text-muted));
}

/* Linear progress trackers for approaching streetcars */
.progress-bar-container {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.progress-bar-fill {
  height: 100%;
  border-radius: 10px;
  width: 0%;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.northbound .progress-bar-fill {
  background: linear-gradient(90deg, hsla(var(--accent-north), 0.5), hsl(var(--accent-north)));
  box-shadow: 0 0 8px hsla(var(--accent-north), 0.5);
}

.southbound .progress-bar-fill {
  background: linear-gradient(90deg, hsla(var(--accent-south), 0.5), hsl(var(--accent-south)));
  box-shadow: 0 0 8px hsla(var(--accent-south), 0.5);
}

.status-summary {
  font-size: 0.8rem;
  color: hsl(var(--text-secondary));
  font-weight: 500;
}

/* Google Maps Spatial Container */
.map-card {
  flex: 1;
  background-color: hsla(var(--bg-glass));
  border: 1px solid hsla(var(--border-glass));
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.map-container {
  width: 100%;
  height: 100%;
  flex: 1;
  background-color: #0d1220; /* Blends map with theme while initializing */
  position: relative;
}

/* Custom styled Maps Loading Overlay */
.map-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0b0f19;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  color: hsl(var(--text-secondary));
  font-size: 0.9rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: hsl(var(--accent-south));
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ==========================================================================
   Interactive Styles & Dynamic Custom Google Maps Modifiers
   ========================================================================== */

/* Styling for Google Maps info windows to match the dark futuristic UI */
.gm-style .gm-style-iw-c {
  background-color: #0b0f19 !important; /* solid navy matching cards */
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
  padding: 16px 22px 14px 16px !important; /* Spacing for close button */
  overflow: hidden !important;
}

.gm-style .gm-style-iw-d {
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.85rem !important;
  background-color: transparent !important;
  overflow: hidden !important; /* Kills the default white scrollbar blocks! */
}

/* Make default close button match dark mode visual style */
.gm-ui-hover-effect {
  top: 8px !important;
  right: 8px !important;
  background: transparent !important;
  border-radius: 50% !important;
  filter: invert(1) !important; /* Converts black button to crisp white */
  opacity: 0.6 !important;
  transition: opacity 0.2s ease !important;
}

.gm-ui-hover-effect:hover {
  opacity: 1 !important;
}

.gm-style .gm-style-iw-tc::after {
  background-color: #0b0f19 !important;
}

/* custom map labels inside info window */
.map-info-title {
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.map-info-text {
  color: hsl(var(--text-secondary));
  font-size: 0.75rem;
  line-height: 1.4;
}

.map-info-highlight {
  color: hsl(var(--accent-south));
  font-weight: 600;
}

/* ==========================================================================
   Animation Timers & Responsive Media Rules
   ========================================================================== */

@keyframes floatIcon {
  0% {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 172, 238, 0.1);
  }
  100% {
    transform: translateY(-6px);
    box-shadow: 0 15px 25px rgba(0, 172, 238, 0.25);
  }
}

@keyframes pulseButton {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
  }
}

@keyframes blinkDot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

@keyframes breathingGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 0 15px currentColor;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .sidebar-panel {
    order: 2; /* Move configuration inputs below visualizations on tablet/mobile */
  }

  .main-display-panel {
    order: 1;
  }
  
  .map-card {
    min-height: 400px;
  }
}

@media (max-width: 680px) {
  .app-container {
    padding: 15px;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .countdown-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .eta-val {
    font-size: 3.25rem;
  }
}

/* ==========================================================================
   Custom Pulsing HTML Station Overlays for Google Maps
   ========================================================================== */

.pulsing-station-marker {
  position: absolute;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  z-index: 100;
}

.pulsing-station-marker .pulse-ring-outer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulseOuter 2.5s infinite cubic-bezier(0.25, 0, 0, 1);
}

.pulsing-station-marker .pulse-ring-inner {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  animation: pulseInner 2.5s infinite cubic-bezier(0.25, 0, 0, 1);
}

.pulsing-station-marker .marker-core {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  z-index: 2;
  transition: transform 0.2s ease;
}

.pulsing-station-marker:hover .marker-core {
  transform: scale(1.3);
}

/* Northbound Platform (Mint Green Accent) */
.pulsing-station-marker.nb .pulse-ring-outer {
  border: 2px solid hsla(var(--accent-north), 0.35);
  background-color: hsla(var(--accent-north), 0.15);
}

.pulsing-station-marker.nb .pulse-ring-inner {
  border: 1.5px solid hsla(var(--accent-north), 0.5);
}

.pulsing-station-marker.nb .marker-core {
  background-color: hsl(var(--accent-north));
  box-shadow: 0 0 12px hsla(var(--accent-north), 0.7);
}

/* Southbound Platform (Electric Blue Accent) */
.pulsing-station-marker.sb .pulse-ring-outer {
  border: 2px solid hsla(var(--accent-south), 0.35);
  background-color: hsla(var(--accent-south), 0.15);
}

.pulsing-station-marker.sb .pulse-ring-inner {
  border: 1.5px solid hsla(var(--accent-south), 0.5);
}

.pulsing-station-marker.sb .marker-core {
  background-color: hsl(var(--accent-south));
  box-shadow: 0 0 12px hsla(var(--accent-south), 0.7);
}

/* CSS Keyframes for Stop Pulses */
@keyframes pulseOuter {
  0% {
    transform: scale(0.3);
    opacity: 0.8;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes pulseInner {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}

