[hidden] {
  display: none !important;
}
.header-search {
  border: 0;
  padding: 0;
  white-space: nowrap;
}
.route-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #e8f1fc;
  border-radius: 9px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.route-banner p {
  margin: 4px 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.route-banner span {
  font-size: 12px;
  color: #506c86;
}
#route-step-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
#route-step-controls button,
.route-actions button {
  background: white;
  border: 1px solid #bfd1e4;
  padding: 10px 13px;
  border-radius: 7px;
  font-size: 14px;
}
#next-step {
  background: #216bc0 !important;
  color: #fff;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.route-panel-map {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.route-panel-map h2 {
  line-height: 1.6;
}
.route-note {
  font-size: 14px;
  color: #586a73;
  line-height: 1.75;
}
#navigation-floors {
  font-size: 16px;
  color: #216bc0;
  font-weight: 700;
}
.route-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.route-display-actions {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}
.route-display-actions button,
.route-display-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 16px;
  border: 2px solid var(--green);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.route-display-actions button {
  background: var(--green);
  color: white;
  box-shadow: 0 4px 12px #09694d30;
}
.route-display-actions a {
  background: #eef5f1;
  color: var(--green);
}
.route-display-actions button:hover,
.route-display-actions a:hover {
  filter: brightness(0.95);
}
.route-actions a {
  font-size: 14px;
  color: #216bc0;
  text-underline-offset: 3px;
}
.map-route-steps {
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.map-route-steps li {
  counter-increment: steps;
  position: relative;
  padding-left: 25px;
}
.map-route-steps li:before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 13px;
  font-size: 12px;
  color: #607b91;
}
.map-route-steps button {
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e9eef2;
  background: white;
  padding: 11px 8px;
  font-size: 14px;
  color: #355267;
  line-height: 1.7;
  border-radius: 5px;
}
.map-route-steps button[aria-current="step"] {
  background: #e8f1fc;
  color: #155eac;
  font-weight: 700;
}
.has-route .sidebar {
  overflow: auto;
  display: block;
}
.has-route .detail {
  padding-top: 24px;
  min-height: 0;
}
.has-route .room-section {
  display: none;
}
.navigation-halo,
.navigation-line,
.navigation-active {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.navigation-halo {
  stroke: white;
  stroke-width: 15;
}
.navigation-line {
  stroke: #78a8dc;
  stroke-width: 9;
}
.navigation-active {
  stroke: #126dcc;
  stroke-width: 10;
}
.navigation-arrow {
  stroke: #fff;
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.navigation-pin {
  stroke: white;
  stroke-width: 4;
}
.start-pin {
  fill: #176bc1;
}
.goal-pin {
  fill: #cf5539;
}
.stairs-pin {
  fill: #425f83;
}
.navigation-pin-label {
  fill: white;
  font-size: 20px;
  font-weight: 700;
}
.route-origin .room-shape {
  stroke: #176bc1;
  stroke-width: 4;
}
.route-destination .room-shape {
  stroke: #cf5539;
  stroke-width: 4;
}
.search-help {
  font-size: 1.4rem;
  color: #5c6d7c;
  line-height: 1.8;
}
@media (max-width: 680px) {
  .route-banner {
    padding: 12px;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
  .route-banner p {
    font-size: 16px;
  }
  #route-step-controls {
    width: 100%;
    justify-content: flex-end;
  }
  .has-route .map-viewport {
    height: 52dvh;
    min-height: 320px;
  }
  .has-route .sidebar {
    max-height: none;
  }
}

/* The current step stays beside the map when viewing the route. */
.map-step-bar {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 20px #17352f14;
}
.map-step-bar button {
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-weight: 700;
}
.map-step-bar button:disabled { opacity: .35; cursor: default; }
.map-step-message { min-width: 0; }
.map-step-message > span, .map-step-message small { font-size: 12px; color: var(--muted); }
.map-step-message p { margin: 4px 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
