/* RC1.0.15.93 — Mobile Vertical Card Flow & Progressive Disclosure Lock
   Phone-only authority. Removes horizontal property/category card rails and presents
   one full-width card per row in the normal page flow. Tablet and desktop untouched. */

@media (max-width:700px){
  /* Mobile is a vertical browsing experience: no horizontal marketplace rails. */
  body.theo-app #explore .category-showcase-grid,
  body.theo-app #explore .theo-featured-grid,
  body.theo-app #explore #property-grid.property-grid,
  body.theo-app #explore .marketplace-results .property-grid{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    scroll-snap-type:none!important;
    scroll-padding:0!important;
    overscroll-behavior:auto!important;
    touch-action:auto!important;
    scrollbar-width:auto!important;
  }

  /* The curated mobile discovery rails duplicate the main inventory on small phones.
     Suppress them so the page reads as one clear vertical journey. */
  body.theo-app #explore .mobile-discovery{
    display:none!important;
  }

  /* Category cards: one full-width tile per row. */
  body.theo-app #explore .category-showcase-grid > .category-showcase-card,
  body.theo-app #explore .category-showcase-grid > .premium-category-card{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:none!important;
    margin:0 0 14px!important;
    scroll-snap-align:none!important;
    scroll-snap-stop:normal!important;
    touch-action:auto!important;
  }

  /* Property cards: full-width, no adjacent-card preview. */
  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{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:none!important;
    margin:0 0 16px!important;
    scroll-snap-align:none!important;
    scroll-snap-stop:normal!important;
    touch-action:auto!important;
    contain:none!important;
  }

  body.theo-app #explore .premium-property-card .property-gallery,
  body.theo-app #explore .premium-property-card .gallery-image-layer,
  body.theo-app #explore .category-showcase-card img{
    touch-action:auto!important;
  }

  /* No carousel chrome on phones when the card system is vertical. */
  body.theo-app #explore .category-carousel-controls{
    display:none!important;
  }
  body.theo-app #explore .theo-swipe-cue-host::after{
    display:none!important;
    content:none!important;
  }

  /* Progressive disclosure: JS applies this only to cards beyond the initial item. */
  body.theo-app #explore .mobile-1593-collapsed{
    display:none!important;
  }

  body.theo-app #explore .mobile-card-disclosure-1593{
    width:100%!important;
    min-height:48px!important;
    margin:4px 0 22px!important;
    padding:0 16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    border:1px solid #d6e1e5!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#17364d!important;
    font:750 14px/1 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
    box-shadow:0 8px 22px rgba(15,43,61,.05)!important;
    cursor:pointer!important;
  }
  body.theo-app #explore .mobile-card-disclosure-1593:active{
    transform:translateY(1px)!important;
  }
  body.theo-app #explore .mobile-card-disclosure-1593 svg{
    width:17px!important;
    height:17px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
  }

  /* The legacy inventory button is replaced by the phone-specific progressive control. */
  body.theo-app #explore #show-more{
    display:none!important;
  }

  /* Keep full-width imagery visually generous but balanced on phones. */
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-photo.property-gallery,
  body.theo-app #explore #property-grid.property-grid .premium-property-card .property-photo.property-gallery{
    width:100%!important;
    min-width:0!important;
  }


  /* Pay for Value, Not for Browsing: same vertical mobile disclosure model. */
  body.theo-app #explore .commercial-pricing-grid,
  body.guest-mode #explore .commercial-pricing-grid{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    overflow-x:visible!important;
    overflow-y:visible!important;
    scroll-snap-type:none!important;
    scroll-padding:0!important;
    touch-action:auto!important;
  }
  body.theo-app #explore .commercial-pricing-grid > .commercial-price-card,
  body.guest-mode #explore .commercial-pricing-grid > .commercial-price-card{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:0!important;
    flex:none!important;
    margin:0 0 14px!important;
    scroll-snap-align:none!important;
    scroll-snap-stop:normal!important;
    touch-action:auto!important;
  }
}
