/* V800kq4 — Public visitor polish; Sandbox only.
 * No stand, route, publishing, analytics, backend or Admin behaviour changes. */

/* Desktop sliding Public directory: the legacy drawer style explicitly removed
 * the right-hand corner radii (20px 0 0 20px). Restore all four corners while
 * retaining its scroll clipping and original drawer animation. */
@media(min-width:981px){
  html body.publicDirectoryMode.publicDirectoryDesktopDrawerMode #publicDirectoryShell{
    border-radius:20px!important;
  }
}

/* Phone landscape: leave a true OUTER gutter for the established floating
 * Fit/chevron/Reset rail. The controls' width, shape and behaviour are untouched;
 * unlike padding inside the list, this also keeps its tabs/search/row actions
 * from sitting beneath the rail. The full-plan collapsed state stays full width. */
@media(max-width:980px) and (orientation:landscape) and (pointer:coarse){
  body.responsiveWorkspaceV799f.publicDirectoryMode:not(.touchscreenMode):not(.responsiveWorkspacePanelCollapsed) main{
    box-sizing:border-box!important;
    padding-right:82px!important;
  }
  body.responsiveWorkspaceV799f.publicDirectoryMode:not(.touchscreenMode):not(.responsiveWorkspacePanelCollapsed) #publicDirectoryShell{
    box-sizing:border-box!important;
    min-width:0!important;
    border-radius:18px!important;
    overflow:hidden!important;
  }
  /* Keep the fully-rounded existing buttons inside Safari's safe right edge. */
  body.responsiveWorkspaceV799f.publicDirectoryMode:not(.touchscreenMode):not(.responsiveWorkspacePanelCollapsed) #expoPlanitPanelToggleProxyV799f,
  body.responsiveWorkspaceV799f.publicDirectoryMode:not(.touchscreenMode):not(.responsiveWorkspacePanelCollapsed) .expoPlanitPhonePlanNavV799f{
    transform:translate(calc(-50% - 6px),-50%)!important;
  }
}

/* The existing i button owns phone dimensions and position. Its dynamically
 * computed styles are copied to the map button by the guarded V800kq4 sync.
 * This fallback mirrors the same button palette before that sync runs. */
@media (max-width:720px) and (orientation:portrait),
       (max-width:980px) and (orientation:landscape) and (pointer:coarse){
  #planCard .expoDirectionsPhoneShortcutV800kq3{
    top:50%!important;transform:translateY(-50%)!important;
    border-color:var(--interfaceStroke,var(--headerStroke,#fff))!important;
    background:var(--buttonColor,#fff)!important;
    color:var(--menuHeaderColor,var(--accentText,#66317b))!important;
    -webkit-text-fill-color:var(--menuHeaderColor,var(--accentText,#66317b))!important;
  }
  #planCard .expoDirectionsPhoneShortcutV800kq3 svg{
    display:block!important;flex:none!important;
  }
}

/* Traditional/manual route origin: keep the existing pulsing routeFab, but
 * give it the same persistent two-line prompt as QR origins. Because the hint
 * is a child of the existing marker button, it follows zoom/pan at no extra
 * requestAnimationFrame cost, and tapping the pill opens Route Options. */
#zoomWrap .fpDirectionsRouteFabV799rh > .expoDirectionsRouteHintV800kq4{
  position:absolute!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  gap:2px!important;
  left:calc(50% + var(--expo-route-hint-nudge-v800kq4,0px))!important;
  top:auto!important;
  bottom:calc(100% + 12px)!important;
  width:max-content!important;
  max-width:min(220px,calc(100vw - 24px))!important;
  min-width:0!important;
  padding:8px 12px!important;
  box-sizing:border-box!important;
  transform:translateX(-50%)!important;
  white-space:nowrap!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#281c30!important;
  -webkit-text-fill-color:#281c30!important;
  border:1px solid color-mix(in srgb,var(--selected,var(--accentText)) 30%,#fff)!important;
  box-shadow:0 5px 16px #0002!important;
  pointer-events:auto!important;
  cursor:pointer!important;;
  text-align:left!important;
  line-height:1.2!important;
  z-index:6!important;
}
#zoomWrap .fpDirectionsRouteFabV799rh > .expoDirectionsRouteHintV800kq4[hidden]{display:none!important;}
#zoomWrap .expoDirectionsRouteHintV800kq4 strong{font:900 13px/1.15 system-ui,sans-serif!important;color:#281c30!important;}
#zoomWrap .expoDirectionsRouteHintV800kq4 span{font:800 11px/1.2 system-ui,sans-serif!important;color:#5b4768!important;}
@media(max-width:700px){
  #zoomWrap .fpDirectionsRouteFabV799rh > .expoDirectionsRouteHintV800kq4{padding:7px 9px!important;}
  #zoomWrap .expoDirectionsRouteHintV800kq4 strong{font-size:12px!important;}
  #zoomWrap .expoDirectionsRouteHintV800kq4 span{font-size:10px!important;}
}
