/**
 * Smart Commute - Directions Styles
 */

.directions-container {
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
}

.directions-summary {
  background-color: #f8f9fa;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  border-left: 3px solid #4285F4;
}

.direction-step {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.direction-step:last-child {
  border-bottom: none;
}

.step-icon {
  margin-right: 12px;
  margin-left: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background-color: #4285F4;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 12px;
}

.step-content {
  flex-grow: 1;
}

.step-instruction {
  margin-bottom: 4px;
}

.step-instruction span {
  font-weight: normal;
}

.step-details {
  color: #666;
  font-size: 0.9em;
}

.summary-item {
  margin-bottom: 5px;
}

.summary-label {
  font-weight: bold;
  margin-right: 5px;
}

/* Style for the print directions button */
.print-directions-btn {
  cursor: pointer;
  color: #007bff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.print-directions-btn:hover {
  text-decoration: underline;
}

.print-directions-btn i {
  margin-right: 5px;
}

/* Mobile optimizations */
@media (max-width: 576px) {
  .directions-container {
    max-height: 300px;
  }
  
  .direction-step {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  
  .step-number {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
  }
  
  .step-content {
    padding-left: 8px;
  }
}

/* Print styles */
@media print {
  .directions-container {
    max-height: none;
    overflow: visible;
  }
  
  .direction-step {
    break-inside: avoid;
  }
  
  .print-directions-btn {
    display: none;
  }
}

/* Bicycle-specific styles */
.bicycle-instruction {
  color: #34A853;
  font-weight: 500;
}

.bicycle-instruction::before {
  content: "🚲 ";
}

.travel-mode-bicycling .step-number {
  background-color: #34A853;
}

/* Dedicated bicycle path or lane */
.bicycle-path, 
.direction-step:has(.step-instruction:contains("bike lane")),
.direction-step:has(.step-instruction:contains("bike path")),
.direction-step:has(.step-instruction:contains("cycleway")),
.direction-step:has(.step-instruction:contains("cycle track")) {
  background-color: rgba(52, 168, 83, 0.1);
  border-left: 3px solid #34A853;
  padding-left: 10px;
}

/* Warnings styles */
.directions-warnings {
  font-size: 0.9em;
}

/* Transit styles */
.transit-details {
  background-color: #eef3ff;
  padding: 8px;
  border-radius: 4px;
  margin-top: 5px;
}

.transit-line {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  color: white;
  font-weight: bold;
  margin-right: 5px;
} 