
/* Theo Properties v1.0.0.8.3
   Mobile Property-Class Card Image Fill & Even Rail Cleanup
   Scope: Explore > Property Class cards on phones only.
   Goal: make the image cards fill the rail more cleanly and avoid awkward uneven side space.
*/

@media (max-width:700px){
  /* Keep the section padding disciplined and the swipe rail balanced. */
  body.theo-app #explore .marketplace-category-showcase{
    padding-left:16px!important;
    padding-right:16px!important;
  }

  body.theo-app #explore .category-showcase-grid{
    display:flex!important;
    gap:10px!important;
    margin:0 -16px!important;
    padding:0 16px 10px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    scroll-padding-inline:16px!important;
    align-items:stretch!important;
  }

  /* Fill the card area more fully on mobile — almost full width, with a clean next-card peek. */
  body.theo-app #explore .category-showcase-card.premium-category-card{
    flex:0 0 calc(100vw - 40px)!important;
    width:calc(100vw - 40px)!important;
    min-width:calc(100vw - 40px)!important;
    max-width:calc(100vw - 40px)!important;
    min-height:258px!important;
    aspect-ratio:1.26 / 1!important;
    border-radius:14px!important;
    overflow:hidden!important;
    scroll-snap-align:start!important;
  }

  /* Ensure the real media fills edge-to-edge with no dead space. */
  body.theo-app #explore .category-showcase-card.premium-category-card > .premium-category-card-inner{
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  body.theo-app #explore .premium-category-media{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    object-fit:cover!important;
    object-position:center center!important;
  }

  /* Preserve each class crop while ensuring full coverage. */
  body.theo-app #explore .residential .premium-category-media{object-position:center 48%!important}
  body.theo-app #explore .commercial .premium-category-media{object-position:center 50%!important}
  body.theo-app #explore .industrial .premium-category-media{object-position:center 50%!important}
  body.theo-app #explore .agricultural .premium-category-media{object-position:center 50%!important}

  /* Copy stays anchored consistently. */
  body.theo-app #explore .premium-category-copy{
    left:20px!important;
    right:18px!important;
    bottom:20px!important;
  }
}

/* Very small phones: allow a tiny bit more width so no card feels undersized. */
@media (max-width:390px){
  body.theo-app #explore .category-showcase-grid{
    gap:9px!important;
    margin:0 -14px!important;
    padding:0 14px 10px!important;
    scroll-padding-inline:14px!important;
  }
  body.theo-app #explore .category-showcase-card.premium-category-card{
    flex:0 0 calc(100vw - 32px)!important;
    width:calc(100vw - 32px)!important;
    min-width:calc(100vw - 32px)!important;
    max-width:calc(100vw - 32px)!important;
  }
}
