/* Navigation Overlay Styles */
.navigation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  color: white;
  z-index: 2000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.nav-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.nav-step-icon {
  font-size: 32px;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.nav-instruction {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  flex: 1;
}

.nav-controls {
  display: flex;
  gap: 8px;
}

.nav-voice-toggle {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  opacity: 0.7;
}

.nav-voice-toggle.active {
  opacity: 1;
  background: rgba(255,255,255,0.3);
}

.nav-voice-toggle:hover {
  background: rgba(255,255,255,0.4);
}

.nav-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.nav-close:hover {
  background: rgba(255,255,255,0.3);
}

.nav-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(0,0,0,0.1);
}

.nav-distance {
  font-size: 24px;
  font-weight: 700;
}

.nav-road {
  font-size: 14px;
  opacity: 0.9;
  flex: 1;
  text-align: center;
}

.nav-speed {
  font-size: 16px;
  font-weight: 600;
  color: #34a853;
  text-align: right;
}

.nav-progress {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: white;
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.nav-eta {
  font-size: 14px;
  font-weight: 500;
  min-width: 80px;
  text-align: right;
}

/* 3D Map Enhancement */
.leaflet-container {
  background: #f0f0f0;
}

/* Navigation Route Styling */
.navigation-route {
  stroke: #1a73e8 !important;
  stroke-width: 6px !important;
  stroke-opacity: 0.9 !important;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.navigation-current-segment {
  stroke: #34a853 !important;
  stroke-width: 8px !important;
  stroke-opacity: 1 !important;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    stroke-opacity: 1;
  }
  50% {
    stroke-opacity: 0.6;
  }
  100% {
    stroke-opacity: 1;
  }
}

/* Turn Indicators */
.turn-indicator {
  position: absolute;
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 1500;
  animation: bounce 1s ease-in-out;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Mobile Navigation Adjustments */
@media (max-width: 767px) {
  .nav-header {
    padding: 12px 16px;
  }
  
  .nav-instruction {
    font-size: 16px;
  }
  
  .nav-step-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  
  .nav-distance {
    font-size: 20px;
  }
  
  .nav-details {
    padding: 10px 16px;
  }
  
  .nav-progress {
    padding: 10px 16px;
  }
}

/* Voice Command Indicator */
.voice-indicator {
  position: fixed;
  bottom: 120px;
  right: 20px;
  background: #34a853;
  color: white;
  padding: 12px 16px;
  border-radius: 24px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(52, 168, 83, 0.4);
  z-index: 1500;
  display: none;
  align-items: center;
  gap: 8px;
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.voice-indicator.speaking {
  display: flex;
}

.voice-wave {
  width: 4px;
  height: 16px;
  background: white;
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.voice-wave:nth-child(2) {
  animation-delay: 0.1s;
}

.voice-wave:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes wave {
  0%, 100% {
    height: 8px;
  }
  50% {
    height: 16px;
  }
}
/* Compass Direction Styling */
.user-dot-with-compass {
  position: relative;
  width: 24px;
  height: 24px;
}

.user-dot-with-compass .user-dot {
  width: 20px;
  height: 20px;
  background: #4285f4;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  animation: pulse 2s infinite;
  position: absolute;
  top: 2px;
  left: 2px;
}

.compass-triangle {
  position: absolute;
  top: -2px;
  left: 50%;
  transform-origin: 50% 14px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 8px solid #ea4335;
  z-index: 10;
  margin-left: -4px;
  transition: transform 0.3s ease;
}