/* Toura Passport Explorer keyword-search map + sheet convergence, 2026-11-09.
   Only search-result drawers change. All other place cards, Partner and
   Marketplace sheets retain their established styling and behavior. */
@media (max-width:760px){
  #listDrawer.toura-search-sheet{
    top:auto!important;
    left:8px!important;right:8px!important;
    bottom:max(72px,calc(env(safe-area-inset-bottom) + 62px))!important;
    width:auto!important;
    height:min(31dvh,292px)!important;
    max-height:calc(100dvh - 174px)!important;
    transition:height .2s ease,transform .22s ease,opacity .16s ease,visibility 0s linear .22s!important;
  }
  #listDrawer.toura-search-sheet.toura-search-snap-minimized{height:min(104px,17dvh)!important}
  #listDrawer.toura-search-sheet.toura-search-snap-expanded{height:min(71dvh,620px)!important}
  #listDrawer.toura-search-sheet .drawer-head{touch-action:pan-x;cursor:ns-resize;padding-top:24px;padding-bottom:23px;min-height:92px;position:relative}
  #listDrawer.toura-search-sheet .drawer-head::after{
    content:'Swipe up for results · down for map';
    position:absolute;left:16px;bottom:3px;font-size:9px;font-weight:700;
    color:#4c7a6d;pointer-events:none;
  }
  #listDrawer.toura-search-sheet .drawer-head h2{font-size:17px;max-width:calc(100vw - 110px)}
  #listDrawer.toura-search-sheet.toura-search-snap-minimized .place-list{display:none}
  #listDrawer.toura-search-sheet.toura-search-snap-minimized .drawer-head::after{content:'Swipe up to show the places'}
  body.explorer-map-search-results .map-control-stack{pointer-events:auto!important;opacity:1!important;bottom:calc(min(31dvh,292px) + 96px)!important}
  body.explorer-map-search-results:has(#listDrawer.toura-search-snap-minimized) .map-control-stack{bottom:194px!important}
  body.explorer-map-search-results:has(#listDrawer.toura-search-snap-expanded) .map-control-stack{opacity:.5!important;pointer-events:none!important}
}
#listDrawer .toura-search-sheet-handle{display:none}
#listDrawer.toura-search-sheet .toura-search-sheet-handle{
  display:block;position:absolute;top:1px;left:calc(50% - 34px);
  width:68px;height:21px;border:0;background:transparent;border-radius:999px;
  cursor:ns-resize;z-index:2;touch-action:none;
}
#listDrawer.toura-search-sheet .toura-search-sheet-handle:focus-visible{outline:2px solid #287954;outline-offset:2px}
@media (min-width:761px){
  #listDrawer.toura-search-sheet{width:min(350px,calc(100vw - 28px))}
}
/* Nov 9: a committed mobile search must not cover a selected place photo.
   Keep the search session and query unchanged; the compact search summary
   automatically returns as soon as the detail card is closed. */
@media (max-width:760px){
  body.explorer-search-session-active:has(#detailCard:not([hidden])) #activeSearchBar:not([hidden]){
    display:none!important;
  }
}
