body { 
  margin: 0; 
  padding: 0; 
  font-family: Arial, sans-serif; 
  display: flex; 
  flex-direction: column; 
  min-height: 100vh; 
}

header {
  background: #0077cc;
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  flex-shrink: 0;
  z-index: 1001;
  position: relative;
}

#map { 
  flex: 1; 
  height: 65vh; 
  width: 100%; 
  position: relative;
}

.search-container {
  position: absolute;
  top: 70px; 
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 250px;
}

.search-container input {
  width: 100%;
  padding: 14px; 
  font-size: 16px;
  border-radius: 10px;
  border: 2px solid #0077cc;
  box-sizing: border-box;
}

#searchResults {
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 2px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#searchResults div {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

#searchResults div:hover {
  background: #f0f0f0;
}

.nav-panel {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.nav-panel.hidden {
  display: none;
}

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

.nav-header h3 {
  margin: 0;
  color: #0077cc;
  font-size: 18px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-info {
  margin-bottom: 15px;
}

.distance-time {
  font-size: 16px;
  font-weight: bold;
  color: #0077cc;
  margin-bottom: 8px;
}

.current-instruction {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

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

.nav-btn {
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

.nav-btn.primary {
  background: #0077cc;
  color: white;
}

.nav-btn.secondary {
  background: #f0f0f0;
  color: #333;
}

.nav-btn:hover {
  opacity: 0.9;
}

.nav-btn.hidden {
  display: none;
}

.instructions-panel {
  position: absolute;
  top: 120px;
  left: 20px;
  right: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.15);
  z-index: 999;
  max-width: 350px;
  margin: 0 auto;
}

.instructions-panel.hidden {
  display: none;
}

.instruction-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.instruction-item:last-child {
  border-bottom: none;
}

.instruction-item.active {
  background: #f8f9ff;
  border-left: 4px solid #0077cc;
}

.instruction-icon {
  width: 40px;
  height: 40px;
  background: #0077cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  margin-right: 15px;
  flex-shrink: 0;
}

.instruction-text {
  flex: 1;
}

.instruction-distance {
  font-size: 12px;
  color: #666;
  margin-bottom: 2px;
}

.instruction-direction {
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.location-status {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  padding: 8px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-status.active {
  background: #4CAF50;
  color: white;
}

.location-status.error {
  background: #f44336;
  color: white;
}

footer {
  background: #000;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.social-icons {
  margin: 10px 0;
}

.social-icons a {
  margin: 0 10px;
  color: white;
  font-size: 22px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #1da1f2;
}

.social-icons a.tiktok:hover {
  color: #ff0050;
}

.footer-promo-box {
  background: #1e90ff;
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: bold;
  margin: 10px auto;
  max-width: 500px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.footer-contact {
  margin-top: 6px;
  color: #ffd700;
}

/* Custom marker styles */
.user-marker {
  background: #4CAF50;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.destination-marker {
  background: #f44336;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Responsive design */
@media (max-width: 768px) {
  .search-container {
    width: calc(100% - 40px);
    left: 20px;
    transform: none;
  }
  
  .nav-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  
  .instructions-panel {
    left: 10px;
    right: 10px;
  }
  
  .nav-controls {
    flex-direction: column;
  }
  
  .nav-btn {
    min-width: auto;
  }
}

/* Animation for route highlighting */
@keyframes routePulse {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.leaflet-routing-container {
  display: none;
}

.highlighted-route {
  animation: routePulse 2s infinite;
}
