/* ==========================================================================
   Passenger desktop shell (>=900px). Same idea as the Get-a-Boat page:
   a persistent panel on the LEFT, the map filling the rest on the RIGHT,
   the nav in the header. Phones and tablets (<900px) are untouched.
   Pages opt in with <body class="bowt-app pd">.
   ========================================================================== */
@media (min-width: 900px) {
  :root { --pd-top: 84px; --pd-panel: min(420px, 38vw); }

  /* body keeps its centred column (the header's full-bleed trick depends on
     it); the panel and the map below are fixed to the viewport instead. */
  body.pd { background: #e9eff5; }

  /* The page content becomes the left panel. */
  body.pd > .bowt-page {
    position: fixed; top: var(--pd-top); left: 0; bottom: 0;
    width: var(--pd-panel); max-width: none; margin: 0;
    overflow-y: auto; overscroll-behavior: contain;
    padding: 18px 16px 40px;
    background: var(--bowt-bg, #f4f7fb);
    border-right: 1px solid var(--bowt-border, #e1e9ee);
    z-index: 5;
  }

  /* The right-hand map: either the page's own ride map (moved out of the
     flow by CSS alone) or the backdrop map injected by passenger-desktop.js. */
  #pd-map,
  body.pd .ride-map-wrap {
    position: fixed; top: var(--pd-top); left: var(--pd-panel); right: 0; bottom: 0;
    width: auto; height: auto; margin: 0; border: 0; border-radius: 0;
    z-index: 1; background: #dfe8ee;
  }
  body.pd .ride-map-wrap.d-none { display: block !important; }
  body.pd .ride-map-wrap #request-status-map,
  body.pd .ride-map-wrap #booking-status-map { height: 100%; width: 100%; }
  body.pd .ride-map-badge { top: 16px; right: 16px; }

  /* Only when there is no ride map do we need the injected backdrop. */
  #pd-map .pd-tip { font-weight: 700; }

  /* Comfortable reading width inside the panel. */
  body.pd > .bowt-page .page-title { font-size: 22px; }
}
