/* HearHere PWA - Dark Theme Stylesheet */
/* Deutsche Telekom Branded, Mobile-First Design */

:root {
  /* Colors - Dark Theme */
  --bg-primary: #0a0a0f;
  --bg-surface: #12121a;
  --bg-surface-elevated: #1a1a28;
  --border-color: #2a2a3a;
  --text-primary: #e8e8f0;
  --text-dim: #8888a0;
  --text-muted: #5a5a70;
  
  /* Accent Colors - MAGENTA SCHEME */
  --accent-primary: #e20074;
  --accent-secondary: #ff1493;
  --accent-magenta: #e20074;
  --telekom-magenta: #e20074;
  /* Legacy support (will be replaced) */
  --accent-indigo: #e20074;
  --accent-purple: #ff1493;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #e20074, #ff1493);
  --gradient-magenta: linear-gradient(135deg, #e20074, #ff1493);
  --gradient-liquid: linear-gradient(135deg, #e20074 0%, #ff1493 50%, #e20074 100%);
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(226, 0, 116, 0.3);
  --shadow-glow-magenta: 0 0 20px rgba(226, 0, 116, 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55) 400ms;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overscroll-behavior: none;
}

#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Typography */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

/* Screen Layout */
.screen {
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-primary);
  animation: slide-up 0.3s ease;
}

.screen-content {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  padding-bottom: calc(80px + var(--spacing-lg)); /* Space for bottom nav */
}

.screen-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.screen-header h2 {
  flex: 1;
  margin: 0;
}

.back-button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.back-button:hover {
  background: var(--bg-surface);
}

/* Sponsor Banner - Deutsche Telekom */
.sponsor-banner {
  width: 100%;
  background: var(--gradient-magenta);
  padding: var(--spacing-sm) var(--spacing-lg);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: white;
  box-shadow: 0 2px 8px rgba(226, 0, 116, 0.3);
}

.sponsor-banner .telekom-logo {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  margin-right: var(--spacing-sm);
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card:hover {
  border-color: rgba(226, 0, 116, 0.3);
  box-shadow: var(--shadow-md);
}

.card-spotlight {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(226, 0, 116, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.card-spotlight::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(226, 0, 116, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card-spotlight:hover::before {
  opacity: 1;
}

.card-spotlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(226, 0, 116, 0.4);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: var(--spacing-md);
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(226, 0, 116, 0.15);
  border: 1px solid rgba(226, 0, 116, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-indigo);
  margin-right: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  min-height: 52px;
  width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--gradient-liquid);
  background-size: 200% 100%;
  border: none;
  color: white;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff1493 0%, #e20074 50%, #ff1493 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover::before {
  opacity: 1;
  animation: liquid-metal 2s ease infinite;
}

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-magenta {
  background: var(--gradient-magenta);
  border: none;
  color: white;
  box-shadow: var(--shadow-glow-magenta);
}

.btn-magenta:hover {
  box-shadow: 0 0 30px rgba(226, 0, 116, 0.5);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: var(--spacing-sm) var(--spacing-md);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Form Elements */
.input-field {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-normal);
  min-height: 52px;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(226, 0, 116, 0.1), var(--shadow-glow);
}

.input-field::placeholder {
  color: var(--text-muted);
}

.input-group {
  margin-bottom: var(--spacing-lg);
}

.input-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.input-error {
  margin-top: var(--spacing-sm);
  font-size: 0.85rem;
  color: #ef4444;
}

.phone-input-wrapper {
  display: flex;
  gap: var(--spacing-sm);
}

.country-select {
  width: 120px;
  flex-shrink: 0;
}

/* OTP Input */
.otp-input-container {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  margin: var(--spacing-xl) 0;
}

.otp-digit {
  width: 48px;
  height: 56px;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  background: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.otp-digit:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: var(--shadow-glow);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-sm) 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.3);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--spacing-sm);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  border: none;
  background: transparent;
}

.bottom-nav-item .icon {
  font-size: 1.4rem;
  transition: transform var(--transition-fast);
}

.bottom-nav-item:hover {
  color: var(--text-primary);
}

.bottom-nav-item.active {
  color: var(--accent-indigo);
}

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 0 0 3px 3px;
}

.bottom-nav-item.active .icon {
  transform: scale(1.1);
}

/* Floating Mic Button */
.mic-btn {
  position: fixed;
  bottom: 90px;
  right: var(--spacing-lg);
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  z-index: 999;
  transition: all var(--transition-normal);
  animation: pulse-glow 2s ease infinite;
}

.mic-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 40px rgba(226, 0, 116, 0.5);
}

.mic-btn:active {
  transform: scale(0.95);
}

/* AI Prompt Box */
.ai-prompt-box {
  position: relative;
  margin-bottom: var(--spacing-xl);
}

.ai-prompt-input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  font-size: 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(226, 0, 116, 0.2);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.ai-prompt-input:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: var(--shadow-glow);
}

.ai-prompt-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-full);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ai-prompt-icon:hover {
  transform: translateY(-50%) scale(1.1);
}

/* Wave Footer Animation */
.wave-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  overflow: hidden;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0.1;
  border-radius: 50%;
  animation: wave 8s ease-in-out infinite;
}

.wave:nth-child(2) {
  animation-delay: -2s;
  opacity: 0.08;
}

.wave:nth-child(3) {
  animation-delay: -4s;
  opacity: 0.06;
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  max-width: 90%;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  animation: slide-down 0.3s ease, fade-in 0.3s ease;
}

.toast.success {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.toast.error {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.toast.info {
  border-color: var(--accent-indigo);
  background: rgba(226, 0, 116, 0.1);
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-surface) 0%,
    var(--bg-surface-elevated) 50%,
    var(--bg-surface) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 1rem;
  margin-bottom: var(--spacing-sm);
}

.skeleton-title {
  height: 1.5rem;
  width: 60%;
  margin-bottom: var(--spacing-md);
}

.skeleton-card {
  height: 120px;
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-md);
}

/* Avatar */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
  overflow: hidden;
}

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

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* Pills / Filter Chips */
.pills-container {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding: var(--spacing-sm) 0;
  margin-bottom: var(--spacing-lg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.pills-container::-webkit-scrollbar {
  display: none;
}

.pill {
  flex-shrink: 0;
  padding: 8px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.pill:hover {
  border-color: var(--accent-indigo);
  color: var(--text-primary);
}

.pill.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

/* Logo */
.logo {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-md);
  text-align: center;
}

/* Tagline */
.tagline {
  font-size: 1.1rem;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* Center Content */
.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: var(--spacing-xl);
}

/* Greeting */
.greeting {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

/* Section Title */
.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: var(--spacing-xl) 0 var(--spacing-md) 0;
  color: var(--text-primary);
}

/* List */
.list-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.list-item:hover {
  border-color: rgba(226, 0, 116, 0.3);
  transform: translateX(4px);
}

/* Toggle Switch */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--border-color);
}

.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active {
  background: var(--gradient-primary);
  border-color: transparent;
}

.toggle-switch.active::after {
  left: 26px;
}

/* Map Placeholder */
/* Map Container */
.map-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: #0a0a0f;
}

#map {
  width: 100%;
  height: 100%;
}

/* Custom Map Marker */
.map-marker {
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-marker-icon {
  width: 24px;
  height: 24px;
  background: #e20074;
  border: 3px solid rgba(226, 0, 116, 0.3);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(226, 0, 116, 0.5);
  position: relative;
}

.map-marker-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

/* User Location Marker */
.user-location-marker {
  width: 20px;
  height: 20px;
  background: #4285f4;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(66, 133, 244, 0.4);
  animation: pulse-location 2s infinite;
}

@keyframes pulse-location {
  0% {
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
  }
}

/* Enhanced Map Markers */
.map-marker-magenta {
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.marker-dot {
  width: 14px;
  height: 14px;
  background: #e20074;
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(226,0,116,0.4);
}

.marker-pulse {
  width: 24px;
  height: 24px;
  background: rgba(226,0,116,0.3);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: marker-ping 2s infinite;
}

@keyframes marker-ping {
  0% {
    transform: translate(-50%,-50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%,-50%) scale(2.5);
    opacity: 0;
  }
}

.user-dot {
  width: 12px;
  height: 12px;
  background: #3b82f6;
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.user-pulse {
  width: 20px;
  height: 20px;
  background: rgba(59,130,246,0.3);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: marker-ping 2s infinite;
}

/* Map Popup Customization */
.maplibregl-popup-content {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-width: 200px;
}

.maplibregl-popup-close-button {
  color: var(--text-dim);
  font-size: 20px;
  padding: 4px 8px;
}

.maplibregl-popup-close-button:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.maplibregl-popup-tip {
  border-top-color: var(--bg-surface);
}

.hearhere-popup .maplibregl-popup-content {
  background: #12121a;
  border: 1px solid #2a2a3a;
  border-radius: 12px;
  padding: 12px 16px;
  color: #e8e8f0;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.hearhere-popup .maplibregl-popup-tip {
  border-top-color: #12121a;
}

.popup-content strong {
  font-size: 0.95rem;
  text-transform: capitalize;
}

.popup-btn {
  margin-top: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg,#e20074,#ff1493);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.popup-btn:hover {
  box-shadow: 0 2px 10px rgba(226,0,116,0.4);
}

.popup-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.popup-description {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: var(--spacing-md);
  line-height: 1.4;
}

.popup-listen-btn {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--accent-magenta);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.popup-listen-btn:hover {
  background: #c00062;
}

/* Map Attribution - Make it less prominent */
.maplibregl-ctrl-attrib {
  background: rgba(10, 10, 15, 0.8);
  font-size: 10px;
}

.maplibregl-ctrl-attrib a {
  color: var(--text-dim);
}

/* OAuth Buttons */
.oauth-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
}

.oauth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.oauth-btn:hover {
  border-color: var(--accent-indigo);
  box-shadow: var(--shadow-md);
}

/* Link Button */
.link-btn {
  background: transparent;
  border: none;
  color: var(--accent-indigo);
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.link-btn:hover {
  color: var(--accent-purple);
  text-decoration: underline;
}

/* Countdown */
.countdown {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Privacy Note */
.privacy-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(226, 0, 116, 0.05);
  border-radius: var(--radius-md);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: var(--spacing-sm);
}

/* Version */
.version {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
}

/* Animations */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-down {
  from {
    transform: translate(-50%, -100%);
  }
  to {
    transform: translate(-50%, 0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes wave {
  0%, 100% {
    transform: translateX(0) translateY(0) rotate(0deg);
  }
  25% {
    transform: translateX(-5%) translateY(-5%) rotate(-1deg);
  }
  50% {
    transform: translateX(-10%) translateY(0) rotate(0deg);
  }
  75% {
    transform: translateX(-5%) translateY(5%) rotate(1deg);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(226, 0, 116, 0.3);
  }
  50% {
    box-shadow: 0 8px 40px rgba(226, 0, 116, 0.5);
  }
}

@keyframes liquid-metal {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive */
@media (max-width: 360px) {
  html {
    font-size: 16px;
  }
  
  .otp-digit {
    width: 40px;
    height: 48px;
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) {
  .bottom-nav {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  
  .mic-btn {
    right: calc(50% - 240px + var(--spacing-lg));
  }
}

/* Inline SVG icons */
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon svg { width: 20px; height: 20px; }
.bottom-nav-item .icon svg { width: 22px; height: 22px; }
.card-tag svg, .dest-card-badge svg, .destination-card-badge svg { width: 14px; height: 14px; }
.ai-prompt-icon svg { width: 20px; height: 20px; }
.mic-btn svg { width: 24px; height: 24px; }
.sonar-btn svg { width: 18px; height: 18px; }
.audio-depth-btn svg { width: 14px; height: 14px; }
.swipe-indicator svg { width: 24px; height: 24px; }
.back-button svg { width: 20px; height: 20px; }
.mute-button svg { width: 20px; height: 20px; }
.chat-empty-icon svg { width: 48px; height: 48px; opacity: 0.5; }
.btn svg { width: 16px; height: 16px; margin-right: 4px; }
.destination-cards-empty-icon svg { width: 48px; height: 48px; opacity: 0.4; }

/* Utility Classes */
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.hidden { display: none; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }


/* ============================================================================
   PHASE 3 & 4 - TOUR ENGINE STYLES
   ============================================================================ */

/* Tour Screen */
.tour-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
}

.tour-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  gap: var(--spacing-md);
}

.tour-progress {
  flex: 1;
}

.tour-progress-text {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: var(--spacing-xs);
}

.tour-progress-bar {
  height: 4px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.tour-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.mute-button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mute-button:active {
  transform: scale(0.95);
}

.mute-button.muted {
  background: var(--telekom-magenta);
  color: white;
}

.tour-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-lg);
  padding-bottom: 100px;
}

.tour-current-stop {
  background: var(--bg-surface);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
}

.tour-stop-badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--accent-indigo);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.tour-stop-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.tour-stop-description {
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.tour-location-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: var(--spacing-md);
}

.location-indicator {
  font-size: 1rem;
}

.location-indicator.accurate {
  color: #10b981;
}

.location-indicator.moderate {
  color: #f59e0b;
}

/* Audio Player Bar */
.audio-player-bar {
  background: var(--gradient-primary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  animation: pulse-glow 2s infinite;
}

.audio-player-content {
  flex: 1;
}

.audio-title {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.audio-transcript {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.4;
}

.audio-controls {
  display: flex;
  gap: var(--spacing-sm);
}

.audio-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.audio-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.audio-btn:active {
  transform: scale(0.95);
}

.audio-queue {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.audio-queue-title {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Tour Next Stop */
.tour-next-stop {
  background: var(--bg-surface-elevated);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--accent-indigo);
}

.tour-next-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
}

.tour-next-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.tour-next-distance {
  color: var(--accent-indigo);
  font-weight: 600;
}

/* Tour Stops List */
.tour-stops-list {
  margin-top: var(--spacing-lg);
}

.tour-stop-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  transition: all var(--transition-fast);
}

.tour-stop-item.current {
  background: var(--accent-indigo);
  color: white;
}

.tour-stop-item.visited {
  opacity: 0.6;
}

.tour-stop-number {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.tour-stop-item.current .tour-stop-number {
  background: rgba(255, 255, 255, 0.2);
}

.tour-stop-item.visited .tour-stop-number {
  background: #10b981;
  color: white;
}

.tour-stop-info {
  flex: 1;
}

.tour-stop-item-name {
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.tour-stop-status {
  font-size: 0.85rem;
  opacity: 0.8;
}

.current-label {
  color: var(--accent-indigo);
  font-weight: 600;
}

.tour-stop-item.current .current-label {
  color: white;
}

/* Tour Controls */
.tour-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-md);
  flex-direction: column;
}

/* Sonar Screen */
.sonar-screen {
  background: var(--bg-primary);
}

.sonar-container {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sonar-pulse {
  position: relative;
  width: 200px;
  height: 200px;
  margin: var(--spacing-xl) 0;
}

.sonar-pulse.active .sonar-ring {
  animation: sonar-ping 2s ease-out infinite;
}

.sonar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-indigo);
  border-radius: 50%;
  opacity: 0;
}

.sonar-ring:nth-child(1) {
  animation-delay: 0s;
}

.sonar-ring:nth-child(2) {
  animation-delay: 0.6s;
}

.sonar-ring:nth-child(3) {
  animation-delay: 1.2s;
}

.sonar-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: var(--accent-indigo);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-indigo);
}

@keyframes sonar-ping {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
  }
  100% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
}

.sonar-results {
  width: 100%;
  max-width: 500px;
}

.sonar-result-card {
  background: var(--bg-surface);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  animation: fade-in-up 0.4s ease-out forwards;
  opacity: 0;
}

.sonar-result-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sonar Button in Header */
.sonar-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--accent-indigo);
  color: white;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-left: auto;
}

.sonar-btn:hover {
  background: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

.sonar-btn:active {
  transform: scale(0.95);
}

/* Events */
.events-preview {
  background: var(--bg-surface);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.events-preview:hover {
  border-color: var(--accent-indigo);
  box-shadow: var(--shadow-sm);
}

.event-card {
  background: var(--bg-surface);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  border-left: 4px solid var(--accent-indigo);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.event-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.event-date {
  font-size: 0.85rem;
  color: var(--accent-indigo);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-time {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: var(--spacing-sm);
}

.event-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: var(--spacing-sm) 0;
}

.event-description {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Offline Indicator */
.offline-indicator {
  background: #f59e0b;
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: var(--spacing-lg);
  font-weight: 600;
}

/* Button Link */
.btn-link {
  background: none;
  border: none;
  color: var(--accent-indigo);
  font-size: 0.9rem;
  cursor: pointer;
  padding: var(--spacing-xs) var(--spacing-sm);
  transition: all var(--transition-fast);
}

.btn-link:hover {
  color: var(--accent-purple);
  text-decoration: underline;
}

/* Map Updates (placeholder for future enhancement) */
.map-placeholder {
  position: relative;
}

.map-pin {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--telekom-magenta);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: pulse-marker 2s infinite;
}

@keyframes pulse-marker {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Responsive Tour Styles */
@media (min-width: 768px) {
  .tour-controls {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ============================================================================
   DESTINATION CARDS - RICH SWIPEABLE CARDS WITH HERO IMAGES
   ============================================================================ */

.destination-cards-container {
  position: relative;
  padding: var(--spacing-md) 0;
  margin-bottom: var(--spacing-xl);
}

.destination-card {
  position: relative;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  cursor: grab;
  user-select: none;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
  background: var(--bg-surface);
}

.destination-card.grabbing {
  cursor: grabbing;
}

.destination-card.swiping {
  transition: none;
}

.destination-card-hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.destination-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
}

.destination-card-content {
  position: absolute;
  top: 35%;
  left: 0;
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  z-index: 2;
}

.destination-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.destination-card-title {
  flex: 1;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.destination-card-distance {
  flex-shrink: 0;
  padding: 4px 12px;
  background: rgba(226, 0, 116, 0.9);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.destination-card-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--spacing-md);
}

.destination-card-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
}

.audio-depth-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: space-between;
}

.audio-depth-btn {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.audio-depth-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.audio-depth-btn.primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.audio-depth-btn.primary:hover {
  transform: scale(1.08) translateY(-1px);
  box-shadow: 0 0 25px rgba(226, 0, 116, 0.5);
}

.audio-depth-btn:active {
  transform: scale(0.98);
}

/* Swipe indicators */
.swipe-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.swipe-indicator-left {
  left: var(--spacing-lg);
  color: #ef4444;
}

.swipe-indicator-right {
  right: var(--spacing-lg);
  color: #10b981;
}

.destination-card.swiping .swipe-indicator {
  opacity: 1;
}

/* Empty state */
.destination-cards-empty {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-dim);
}

.destination-cards-empty-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

/* ============================================================================
   MINI AUDIO PLAYER
   ============================================================================ */

.mini-audio-player {
  position: fixed;
  bottom: 80px;
  left: 0;
  right: 0;
  background: var(--gradient-primary);
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  z-index: 998;
  animation: slide-up-player 0.3s ease;
  backdrop-filter: blur(10px);
}

@keyframes slide-up-player {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.mini-player-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  color: white;
}

.mini-player-info {
  flex: 1;
  min-width: 0;
}

.mini-player-poi {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-player-depth {
  font-size: 0.75rem;
  opacity: 0.9;
}

.mini-player-controls {
  display: flex;
  gap: var(--spacing-sm);
  flex-shrink: 0;
}

.mini-player-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: var(--radius-full);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-player-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mini-player-btn:active {
  transform: scale(0.95);
}

.mini-player-waveform {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.mini-player-waveform-progress {
  height: 100%;
  background: white;
  width: 0%;
  transition: width 0.1s linear;
}

/* Speaking animation */
.mini-player-speaking .mini-player-poi {
  animation: pulse-text 1.5s ease infinite;
}

@keyframes pulse-text {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ============================================================================
   SWIPE ANIMATIONS & GESTURES
   ============================================================================ */

.card-swipe-left {
  animation: swipe-left 0.4s ease forwards;
}

.card-swipe-right {
  animation: swipe-right 0.4s ease forwards;
}

@keyframes swipe-left {
  to {
    transform: translateX(-150%) rotate(-15deg);
    opacity: 0;
  }
}

@keyframes swipe-right {
  to {
    transform: translateX(150%) rotate(15deg);
    opacity: 0;
  }
}

.card-spring-back {
  animation: spring-back var(--transition-spring);
}

@keyframes spring-back {
  0% {
    transform: translateX(var(--swipe-x)) rotate(var(--swipe-rotate));
  }
  100% {
    transform: translateX(0) rotate(0);
  }
}

/* Save toast */
.save-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(16, 185, 129, 0.95);
  color: white;
  padding: var(--spacing-lg) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  animation: save-toast-anim 0.5s ease;
}

@keyframes save-toast-anim {
  0%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  10%, 90% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}


/* ============================================================================
   CHAT / LLM UI
   ============================================================================ */

.chat-screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-primary);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.chat-header-info {
  flex: 1;
}

.chat-header-info h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.chat-status {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  scroll-behavior: smooth;
}

.chat-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl);
  height: 100%;
}

.chat-empty-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
}

.chat-empty h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.chat-empty p {
  color: var(--text-dim);
  margin-bottom: var(--spacing-lg);
  max-width: 400px;
}

.chat-bubble {
  max-width: 85%;
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  position: relative;
  animation: chat-bubble-in 0.3s ease;
}

@keyframes chat-bubble-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble-user {
  align-self: flex-end;
  background: var(--gradient-magenta);
  color: white;
  border-bottom-right-radius: var(--spacing-xs);
  box-shadow: 0 2px 8px rgba(226, 0, 116, 0.3);
}

.chat-bubble-assistant {
  align-self: flex-start;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-bottom-left-radius: var(--spacing-xs);
  border: 1px solid var(--border-color);
}

.chat-bubble-content {
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.chat-bubble-time {
  font-size: 0.75rem;
  opacity: 0.6;
  margin-top: var(--spacing-xs);
  text-align: right;
}

.chat-typing {
  display: flex;
  gap: 6px;
  padding: var(--spacing-sm) 0;
}

.chat-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: chat-typing-bounce 1.4s infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes chat-typing-bounce {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  padding: 0 var(--spacing-md) var(--spacing-md);
  flex-shrink: 0;
}

.suggestion-chip {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.suggestion-chip:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-magenta);
  transform: translateY(-2px);
}

.suggestion-chip:active {
  transform: translateY(0);
}

.chat-input-container {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: var(--spacing-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.chat-input:focus {
  border-color: var(--accent-magenta);
  box-shadow: 0 0 0 3px rgba(226, 0, 116, 0.1);
}

.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-send {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-magenta);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(226, 0, 116, 0.3);
}

.btn-send:hover:not(:disabled) {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(226, 0, 116, 0.4);
}

.btn-send:active:not(:disabled) {
  transform: scale(0.95);
}

.btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-send svg {
  width: 20px;
  height: 20px;
}


/* ============================================================================
   GLOBAL COVERAGE SYSTEM
   ============================================================================ */

/* City Markers */
.city-marker {
  border-radius: 50%;
  border: 2px solid white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

.city-marker:hover {
  transform: scale(1.3);
}

.city-marker.live {
  width: 16px;
  height: 16px;
  background: #22c55e;
  animation: pulse-green 2s infinite;
}

.city-marker.growing {
  width: 12px;
  height: 12px;
  background: #eab308;
}

.city-marker.request {
  width: 8px;
  height: 8px;
  background: #64748b;
  border-color: rgba(255, 255, 255, 0.5);
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

/* City Sheet (Bottom Sheet) */
.city-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-radius: 20px 20px 0 0;
  padding: 20px 24px 32px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 80vh;
  overflow-y: auto;
}

.city-sheet.open {
  transform: translateY(0);
}

.city-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1999;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.city-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.city-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.city-sheet-header h2 {
  font-size: 1.5rem;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}

.city-sheet-header .city-region {
  color: var(--text-dim);
  margin: 0 0 12px 0;
}

.city-sheet-stats {
  display: flex;
  gap: 24px;
  margin: 20px 0;
  padding: 16px;
  background: rgba(226, 0, 116, 0.05);
  border-radius: var(--radius-lg);
}

.city-stat {
  flex: 1;
  text-align: center;
}

.city-stat .stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-magenta);
  margin-bottom: 4px;
}

.city-stat .stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.city-detail {
  margin: 16px 0;
  padding: 12px;
  background: var(--bg-dark);
  border-radius: var(--radius-md);
}

.city-detail strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.city-detail p {
  margin: 0;
  color: var(--text-primary);
}

.city-sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* Coverage Sheet */
.coverage-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-radius: 20px 20px 0 0;
  padding: 20px 24px 32px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.coverage-sheet.open {
  transform: translateY(0);
}

.coverage-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.coverage-sheet-content {
  text-align: center;
}

.coverage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 0, 116, 0.1);
  border-radius: 50%;
  color: var(--accent-magenta);
}

.coverage-icon svg {
  width: 32px;
  height: 32px;
}

.coverage-sheet h3 {
  font-size: 1.5rem;
  margin: 0 0 12px 0;
  color: var(--text-primary);
}

.coverage-sheet p {
  color: var(--text-dim);
  margin: 0 0 24px 0;
  font-size: 1rem;
}

.coverage-sheet .btn {
  width: 100%;
  margin-bottom: 12px;
}

.coverage-sheet .btn-ghost {
  color: var(--text-dim);
}

/* Tier Badges */
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-badge.live {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.tier-badge.growing {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.tier-badge.request {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Activation Form */
.activate-intro {
  text-align: center;
  margin-bottom: 32px;
}

.activate-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-magenta);
  border-radius: 50%;
  color: white;
}

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

.activate-intro h2 {
  font-size: 1.75rem;
  margin: 0 0 12px 0;
  color: var(--text-primary);
}

.activate-intro p {
  color: var(--text-dim);
  margin: 0;
  font-size: 1rem;
}

.activate-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group small {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-magenta);
  box-shadow: 0 0 0 3px rgba(226, 0, 116, 0.1);
}

.form-input::placeholder {
  color: var(--text-dim);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* Segmented Control */
.segmented-control {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-dark);
}

.segmented-option {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-dim);
  border-right: 1px solid var(--border-color);
}

.segmented-option:last-child {
  border-right: none;
}

.segmented-option.active {
  background: var(--accent-magenta);
  color: white;
}

.segmented-option:hover:not(.active) {
  background: rgba(226, 0, 116, 0.05);
  color: var(--text-primary);
}

/* Interest Chips */
.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  background: var(--bg-surface);
  color: var(--text-dim);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.interest-chip svg {
  width: 16px;
  height: 16px;
}

.interest-chip:hover {
  border-color: var(--accent-magenta);
  background: rgba(226, 0, 116, 0.05);
  color: var(--text-primary);
}

.interest-chip.selected {
  background: rgba(226, 0, 116, 0.12);
  border-color: var(--accent-magenta);
  color: var(--accent-magenta);
}

/* Success Screen */
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.15);
  border-radius: 50%;
  color: #22c55e;
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

/* Basic Mode Banner */
.basic-mode-banner {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #eab308;
  font-size: 0.9rem;
}

.basic-mode-banner a {
  color: #eab308;
  text-decoration: underline;
  font-weight: 600;
}

/* Admin Coverage Dashboard */
.admin-section {
  margin-bottom: 32px;
}

.admin-section h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* Install Banner */
#install-banner {
  position: fixed;
  bottom: 80px;
  left: 12px;
  right: 12px;
  z-index: 3000;
  animation: slide-up 0.4s cubic-bezier(0.32,0.72,0,1);
}
.install-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  position: relative;
}
.install-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}
.install-banner-close:hover { color: var(--text-primary); }
.install-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(226,0,116,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.install-banner-text {
  flex: 1;
  min-width: 0;
}
.install-banner-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.install-banner-text span {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}
.install-banner-text em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 500;
}
.install-banner-btn {
  padding: 8px 20px;
  background: var(--gradient-magenta);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.install-banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(226,0,116,0.4);
}

/* City Guide Screen */
.city-guide-hero {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.city-guide-location {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-md);
}
.city-guide-stats {
  display: flex;
  gap: var(--spacing-md);
}
.city-guide-stat {
  flex: 1;
  text-align: center;
  padding: var(--spacing-md) 0;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
}
.city-guide-stat-val {
  font-size: 1.6rem;
  font-weight: 700;
  background: var(--gradient-magenta);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.city-guide-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.city-tour-card {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.city-tour-card:hover {
  border-color: rgba(226,0,116,0.3);
  transform: translateX(4px);
}
.city-tour-card-body { flex: 1; }
.city-tour-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-magenta);
  margin-bottom: 2px;
}
.city-tour-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.city-tour-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.city-tour-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

.city-neighborhoods {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}
.city-neighborhood-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.city-neighborhood-chip svg { width: 12px; height: 12px; }

.city-guide-cta {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}
.city-guide-cta-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(226,0,116,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}
.city-guide-cta-icon svg { width: 28px; height: 28px; color: var(--accent-magenta); }
.city-guide-cta h3 { margin-bottom: var(--spacing-sm); }
.city-guide-cta p { margin-bottom: var(--spacing-lg); }

.city-guide-launch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--spacing-md);
  background: rgba(234,179,8,0.08);
  border: 1px solid rgba(234,179,8,0.2);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: #eab308;
  margin-bottom: var(--spacing-lg);
}
.city-guide-launch svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Map Audio Player Bar */
#map-audio-player {
  position: fixed;
  bottom: 72px;
  left: 12px;
  right: 12px;
  z-index: 1500;
  animation: slide-up 0.35s cubic-bezier(0.32,0.72,0,1);
  transition: opacity 0.3s, transform 0.3s;
}
.map-audio-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(226,0,116,0.9), rgba(255,20,147,0.85));
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(226,0,116,0.35);
  color: white;
}
.map-audio-info { flex: 1; min-width: 0; }
.map-audio-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-audio-status {
  font-size: 0.8rem;
  opacity: 0.8;
}
.map-audio-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.map-audio-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.map-audio-btn:hover { background: rgba(255,255,255,0.3); }
.map-audio-btn:active { transform: scale(0.92); }
.map-audio-btn svg { width: 16px; height: 16px; }

/* Map popup styling improvements */
.popup-listen-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #e20074, #ff1493);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.popup-listen-btn:hover { box-shadow: 0 4px 12px rgba(226,0,116,0.4); }
.popup-listen-btn svg { width: 14px; height: 14px; }
.popup-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  text-transform: capitalize;
}
.popup-description {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Awaken WorldAgents Button */
.awaken-btn {
  position: absolute;
  bottom: 16px;
  left: 16px;
  transform: none;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(226,0,116,0.92), rgba(255,20,147,0.88));
  backdrop-filter: blur(12px);
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(226,0,116,0.4);
  transition: all 0.3s;
}
.awaken-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(226,0,116,0.5);
}
.awaken-btn:active { transform: scale(0.97); }
.awaken-btn svg { width: 18px; height: 18px; }
.awaken-btn.loading {
  pointer-events: none;
  opacity: 0.85;
}
.awaken-btn.loading svg {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Newly awakened marker pulse */
.map-marker.newly-awakened .map-marker-icon {
  animation: awaken-pulse 0.6s ease 3;
}
@keyframes awaken-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(226,0,116,0.4); }
  50% { transform: scale(1.8); box-shadow: 0 0 20px rgba(226,0,116,0.7); }
}

/* ============================================ */
/* Rich POI Card (bottom sheet style)           */
/* ============================================ */
.poi-card-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.poi-card-overlay.poi-card-visible {
  opacity: 1;
  pointer-events: auto;
}
.poi-card {
  width: 100%;
  max-width: 420px;
  background: #12121a;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
  max-height: 85vh;
  overflow-y: auto;
}
.poi-card-visible .poi-card {
  transform: translateY(0);
}

/* Card image */
.poi-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #1a1a2e;
}
.poi-card-image-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, #12121a);
}
.poi-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.poi-card-placeholder-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
}
.poi-card-placeholder-icon svg {
  width: 64px;
  height: 64px;
}
.poi-card-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.poi-card-close:hover { background: rgba(226,0,116,0.6); }
.poi-card-badge {
  position: absolute;
  bottom: 12px; left: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #e20074;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.poi-card-badge svg { width: 12px; height: 12px; }

/* Card body */
.poi-card-body {
  padding: 16px 20px 24px;
}
.poi-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #f0f0f8;
  margin: 0 0 6px;
  line-height: 1.2;
}
.poi-card-desc {
  font-size: 13px;
  color: #8888a0;
  line-height: 1.5;
  margin: 0 0 12px;
}
.poi-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.poi-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #a0a0b8;
}
.poi-card-meta-item svg { width: 13px; height: 13px; color: #e20074; }

/* Listen CTA button */
.poi-card-listen-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #e20074, #ff1493);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(226,0,116,0.3);
}
.poi-card-listen-btn:hover {
  box-shadow: 0 6px 28px rgba(226,0,116,0.5);
  transform: translateY(-1px);
}
.poi-card-listen-btn:active { transform: translateY(0); }
.poi-card-listen-btn svg { width: 20px; height: 20px; }

/* Action bar icons */
.poi-card-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #1e1e30;
}
.poi-card-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: #8888a0;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s;
  font-size: 11px;
}
.poi-card-action:hover {
  color: #e20074;
  background: rgba(226,0,116,0.08);
}
.poi-card-action svg { width: 20px; height: 20px; }
.poi-card-action span { font-weight: 500; }

/* ============================================ */
/* POI Detail Panel (full-screen slide-up)      */
/* ============================================ */
.poi-detail-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: #0a0a14;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.poi-detail-overlay.poi-detail-visible {
  transform: translateX(0);
}
.poi-detail-panel {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.poi-detail-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(10,10,20,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e1e30;
}
.poi-detail-back, .poi-detail-action {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.05);
  color: #e0e0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.poi-detail-back:hover, .poi-detail-action:hover {
  background: rgba(226,0,116,0.15);
  color: #e20074;
}
.poi-detail-header-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #e0e0f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
}
.poi-detail-hero {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.poi-detail-hero-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, #0a0a14);
}
.poi-detail-content {
  padding: 20px;
}
.poi-detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.poi-detail-title-row h2 {
  font-size: 24px;
  font-weight: 700;
  color: #f0f0f8;
  margin: 0;
  line-height: 1.2;
}
.poi-detail-badge {
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(226,0,116,0.12);
  color: #e20074;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.poi-detail-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #a0a0b8;
  margin: 0 0 16px;
}
.poi-detail-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #1a1a2e;
}
.poi-detail-section h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #c0c0d8;
  margin: 0 0 10px;
}
.poi-detail-section h4 svg { width: 15px; height: 15px; color: #e20074; }
.poi-detail-hours, .poi-detail-admission {
  font-size: 13px;
  color: #a0a0b8;
  line-height: 1.8;
}
.poi-detail-hours div {
  display: flex;
  justify-content: space-between;
}
.poi-hours-day {
  font-weight: 600;
  color: #c0c0d8;
  text-transform: capitalize;
}
.poi-hours-note {
  font-style: italic;
  color: #8888a0;
  font-size: 12px;
}
.poi-admission-free {
  color: #00c853;
  font-weight: 600;
}
.poi-detail-narration {
  font-size: 13px;
  line-height: 1.7;
  color: #8888a0;
  font-style: italic;
  background: rgba(226,0,116,0.04);
  border-left: 3px solid #e20074;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin: 0;
}
.poi-detail-coords {
  font-size: 13px;
  color: #8888a0;
  font-family: 'SF Mono', monospace;
  margin-bottom: 10px;
}
.poi-detail-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(226,0,116,0.1);
  border: 1px solid rgba(226,0,116,0.3);
  color: #e20074;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.poi-detail-directions-btn:hover {
  background: rgba(226,0,116,0.2);
}
.poi-detail-directions-btn svg { width: 14px; height: 14px; }
.poi-detail-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #1a1a2e;
}
.poi-detail-actions-row .poi-card-action {
  flex: 1;
  flex-direction: row;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
  padding: 10px;
  gap: 8px;
}
