/* Keep the first screen focused on the decision that unlocks the route. */
/* Pricing opens in a dialog; avoid painting its temporary inline position. */
body.route-builder-page .route-summary > #budgetDetail {
  display: none;
}

body.route-builder-page .route-tool {
  grid-template-areas: "steps steps" "controls summary" "map map";
}

body.route-builder-page .route-step-tabs { grid-area: steps; }
body.route-builder-page .trip-booking-total { display: grid; gap: 6px; padding: 14px 0; }
body.route-builder-page .trip-booking-total strong { display: block; font-size: 1.2rem; }

@media (max-width: 850px) {
  body.route-builder-page .route-tool {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "steps" "controls" "summary" "map" !important;
  }

  body.route-builder-page .route-summary {
    padding: 18px !important;
  }

  body.route-builder-page .route-summary .route-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.route-builder-page .route-step-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.route-builder-page .route-step-tabs > * {
    min-width: 0;
    margin: 0 !important;
  }
}
