/* Directions Panel Styles */
.directions-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  max-height: 600px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 2500;
  overflow: hidden;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.directions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #1a73e8;
  color: white;
}

.directions-header h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.close-directions {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close-directions:hover {
  background: rgba(255,255,255,0.2);
}

.directions-content {
  max-height: 500px;
  overflow-y: auto;
  padding: 8px 0;
}

.direction-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #f1f3f4;
  transition: background 0.2s;
}

.direction-step:hover {
  background: #f8f9fa;
}

.direction-step.current {
  background: #e8f0fe;
  border-left: 4px solid #1a73e8;
}

.step-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  background: #f1f3f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.direction-step.current .step-icon {
  background: #1a73e8;
  color: white;
}

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

.step-instruction {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 4px;
  line-height: 1.3;
}

.step-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}

.step-distance {
  color: #1a73e8;
  font-weight: 500;
}

.step-road {
  color: #5f6368;
}

.step-traffic {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 500;
}

.step-traffic .material-icons {
  font-size: 12px;
}

/* Navigation Actions */
.nav-actions {
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.2);
}

.nav-directions-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
}

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

.nav-directions-btn .material-icons {
  font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .directions-panel {
    width: 90vw;
    max-width: 350px;
    max-height: 70vh;
  }
  
  .directions-header {
    padding: 12px 16px;
  }
  
  .direction-step {
    padding: 10px 16px;
  }
  
  .step-instruction {
    font-size: 13px;
  }
  
  .step-details {
    font-size: 11px;
  }
}