/* RC1.0.15.57 — Unified Marketplace Mobile Swipe Rail Lock
   CSS-only. Makes Featured Properties and Available Now/search results use the
   same mobile swipe geometry as “Spaces for Every Kind of Rental”.
   No data, search, image, routing, Supabase, Preview or workspace logic changes. */

@media (max-width:700px){
  /* Shared rail geometry: match the category-card mobile interaction. */
  body.theo-app #explore .theo-featured-grid,
  body.theo-app #explore #property-grid.property-grid,
  body.theo-app #explore .marketplace-results .property-grid{
    display:flex!important;
    grid-template-columns:none!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    gap:8px!important;
    width:auto!important;
    max-width:none!important;
    margin-inline:0!important;
    padding:0 0 3px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x proximity!important;
    scroll-padding-inline:0!important;
    overscroll-behavior-inline:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
    touch-action:pan-x pan-y!important;
  }

  body.theo-app #explore .theo-featured-grid::-webkit-scrollbar,
  body.theo-app #explore #property-grid.property-grid::-webkit-scrollbar,
  body.theo-app #explore .marketplace-results .property-grid::-webkit-scrollbar{
    display:none!important;
  }

  body.theo-app #explore .theo-featured-grid > .premium-property-card,
  body.theo-app #explore #property-grid.property-grid > .premium-property-card,
  body.theo-app #explore .marketplace-results .property-grid > .premium-property-card{
    flex:0 0 76%!important;
    width:76%!important;
    max-width:76%!important;
    min-width:76%!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:normal!important;
  }

  /* Keep the swipe area contained to its section, not the page. */
  body.theo-app #explore .theo-featured-section,
  body.theo-app #explore .marketplace-results{
    overflow:hidden!important;
  }
}

@media (max-width:420px){
  body.theo-app #explore .theo-featured-grid > .premium-property-card,
  body.theo-app #explore #property-grid.property-grid > .premium-property-card,
  body.theo-app #explore .marketplace-results .property-grid > .premium-property-card{
    flex-basis:84%!important;
    width:84%!important;
    max-width:84%!important;
    min-width:84%!important;
  }
}
