/* scoped to #nigeroute-app instead of body: this page shares the theme's
   header/footer, so app.css must not bleed into the rest of the page */
#nigeroute-app {
  background-color: #fff;
  color: #212529;
  padding: 1rem 0;
}

#map-canvas {
  width: 100%;
  height: 55vh;
  min-height: 300px;
}

.legend-danger {
  background-color: #dc3545;
  color: #fff;
  padding: 4px 0;
  font-size: 0.85rem;
}

.legend-warn {
  background-color: #ffc107;
  color: #000;
  padding: 4px 0;
  font-size: 0.85rem;
}

.legend-safe {
  background-color: #198754;
  color: #fff;
  padding: 4px 0;
  font-size: 0.85rem;
}

.action-buttons .btn {
  width: 100%;
}

/* was a bare `footer` selector (assumed a fixed-bottom bar in the standalone
   app); scoped now so it doesn't restyle the theme's own <footer> */
.nigeroute-version {
  color: #666;
  padding: 0.4rem 0;
  font-size: 0.8rem;
  text-align: center;
}

#directionsOffcanvas {
  max-width: 340px;
}

/* data-bs-backdrop="false" on the trigger button (content-nigeroute.php)
   disables Bootstrap's dimming overlay entirely, so the map stays visible
   and interactive while the directions drawer is open — no .offcanvas-backdrop
   rules needed here. */

#directionsOffcanvas .offcanvas-body {
  font-size: 0.9rem;
  padding: 0.5rem;
}

.directions-summary {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  color: #222;
}

.step-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.step-map {
  width: 100%;
  height: 120px;
}

.step-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: #f8f9fa;
  color: #222;
}

.step-arrow {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.step-name {
  flex: 1;
  font-weight: 500;
}

.step-dist {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #666;
}

.step-arrow-icon {
  background: none;
  border: none;
}

#elevation-chart {
  width: 100%;
  height: 150px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
}

.step-arrow-icon svg {
  display: block;
}

