/* RC1.0.15.55 — Unified Small-Device Swipe Card Architecture
   Presentation-only. Extends the proven horizontal swipe pattern used by
   “Spaces for Every Kind of Rental” to marketplace property-card groups.
   No data, search, image, routing, Supabase, Preview or workspace logic changes. */

@media (max-width:820px){
  /* Featured properties: one continuous touch-native horizontal rail. */
  body.theo-app #explore .theo-featured-grid{
    display:flex!important;
    grid-template-columns:none!important;
    gap:14px!important;
    width:auto!important;
    max-width:none!important;
    margin-inline:-16px!important;
    padding:2px 16px 12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    scroll-padding-inline:16px!important;
    overscroll-behavior-inline:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
  }
  body.theo-app #explore .theo-featured-grid::-webkit-scrollbar{display:none!important}

  body.theo-app #explore .theo-featured-grid > .premium-property-card{
    flex:0 0 min(86vw,430px)!important;
    width:min(86vw,430px)!important;
    max-width:min(86vw,430px)!important;
    min-width:min(86vw,430px)!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:normal!important;
  }

  /* Available Now / filtered search results: same swipe language. */
  body.theo-app #explore #property-grid.property-grid,
  body.theo-app #explore .marketplace-results .property-grid{
    display:flex!important;
    grid-template-columns:none!important;
    align-items:stretch!important;
    gap:14px!important;
    width:auto!important;
    max-width:none!important;
    margin-inline:-16px!important;
    padding:2px 16px 12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    scroll-padding-inline:16px!important;
    overscroll-behavior-inline:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
  }
  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 #property-grid.property-grid > .premium-property-card,
  body.theo-app #explore .marketplace-results .property-grid > .premium-property-card{
    flex:0 0 min(86vw,430px)!important;
    width:min(86vw,430px)!important;
    max-width:min(86vw,430px)!important;
    min-width:min(86vw,430px)!important;
    scroll-snap-align:start!important;
    scroll-snap-stop:normal!important;
  }

  /* Prevent rails from creating page-level horizontal overflow. */
  body.theo-app #explore .marketplace-results,
  body.theo-app #explore .theo-featured-section{
    overflow:hidden!important;
  }
}

@media (max-width:430px){
  body.theo-app #explore .theo-featured-grid,
  body.theo-app #explore #property-grid.property-grid,
  body.theo-app #explore .marketplace-results .property-grid{
    gap:12px!important;
    margin-inline:-14px!important;
    padding-inline:14px!important;
    scroll-padding-inline:14px!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-basis:86vw!important;
    width:86vw!important;
    max-width:86vw!important;
    min-width:86vw!important;
  }
}

@media (max-width:359px){
  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:88vw!important;
    width:88vw!important;
    max-width:88vw!important;
    min-width:88vw!important;
  }
}
