/* Foldable phones (and similar): when the screen is wider than a phone but not a desktop, show the list and the map side by side
   instead of making people flip between them. Pure CSS, so it follows the fold opening and closing with no script.
   Sizes measured on an unfolded foldable iPhone: about 669 x 755 portrait and 871 x 553 to 633 landscape (folded it is 386 wide, which keeps the phone layout). */
@media (min-width:600px) and (max-width:1000px) and (max-height:820px) and (pointer:coarse) {
  .top{height:54px}
  .hero{display:none}
  .view-toggle{display:none}
  .bottom-banner{display:none}
  .main{display:grid;flex-direction:initial;grid-template-columns:minmax(320px,45%) minmax(0,1fr);height:calc(100vh - 54px);height:calc(100dvh - 54px);min-height:300px}
  .map-wrap,body[data-view=list] .map-wrap,body[data-view=map] .map-wrap{display:block;height:auto;flex-shrink:initial}
  body[data-view=list] .side,body[data-view=map] .side{display:flex;height:auto;min-height:0;overflow:hidden}
  body[data-view=list] .results,body[data-view=map] .results{overflow-y:auto;flex:1;min-height:0;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}
  .side{height:auto}
  .filters{max-height:46%;overflow-y:auto}
  .footer{padding-bottom:24px}
}
