
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: linear-gradient(to right, #4a6fa5, #23395d);
  color: white;
  padding: 20px 0;
  text-align: center;
  margin-bottom: 30px;
  border-radius: 0 0 10px 10px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
}

.map-container {
  height: 400px;
  background-color: #e9ecef;
  border-radius: 10px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

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

.controls {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input, select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

button {
  background-color: #4a6fa5;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #23395d;
}

.results {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.route-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.info-box {
  text-align: center;
  flex: 1;
}

.info-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #4a6fa5;
}

.info-label {
  font-size: 0.9rem;
  color: #666;
}

.route-steps {
  margin-top: 20px;
}

.step {
  padding: 15px;
  border-left: 3px solid #4a6fa5;
  margin-bottom: 10px;
  background-color: #f8f9fa;
  border-radius: 0 5px 5px 0;
}

.step-text {
  font-size: 1rem;
}

.step-distance {
  font-size: 0.9rem;
  color: #666;
  margin-top: 5px;
}

footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px 0;
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .map-container {
    height: 300px;
  }
  
  .route-info {
    flex-direction: column;
  }
  
  .info-box {
    margin-bottom: 15px;
  }
}

.hidden {
  display: none;
}

#loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #4a6fa5;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error-message {
  color: #dc3545;
  margin: 10px 0;
  padding: 10px;
  background-color: #f8d7da;
  border-radius: 5px;
  border: 1px solid #f5c6cb;
}
