/* Theo Properties RC1.0.15.87 — Desktop Image-Led Marketplace Card Scale Lock
   Desktop-only public marketplace refinement. No tablet/mobile interface, swipe,
   navigation, data, auth or workflow changes. */

@media (min-width:1181px){
  :root{
    --tp87-shell:min(1520px, calc(100vw - 72px));
    --tp87-gap:26px;
    --tp87-line:rgba(18,55,75,.105);
    --tp87-shadow:0 14px 34px rgba(13,39,57,.065);
  }

  /* Use more of the desktop canvas. */
  body.theo-app #explore .marketplace-category-showcase,
  body.theo-app #explore .theo-featured-marketplace,
  body.theo-app #explore #available-properties.marketplace-results,
  body.theo-app #explore .how-theo-works.how-theo-works-v2{
    width:var(--tp87-shell)!important;
    max-width:var(--tp87-shell)!important;
    margin-left:auto!important;
    margin-right:auto!important;
    box-sizing:border-box!important;
  }

  /* Category imagery: larger cards, less empty section area. */
  body.theo-app #explore .marketplace-category-showcase{
    padding-left:28px!important;
    padding-right:28px!important;
    padding-top:38px!important;
    padding-bottom:40px!important;
  }
  body.theo-app #explore .category-showcase-head{
    margin-bottom:24px!important;
  }
  body.theo-app #explore .category-showcase-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:22px!important;
  }
  body.theo-app #explore .category-showcase-card.premium-category-card{
    aspect-ratio:1.42 / 1!important;
    min-height:230px!important;
    border-radius:16px!important;
  }
  body.theo-app #explore .category-showcase-card .premium-category-media{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  body.theo-app #explore .premium-category-copy>strong{
    font-size:clamp(20px,1.35vw,24px)!important;
  }
  body.theo-app #explore .premium-category-copy>small{
    font-size:9.5px!important;
  }

  /* Featured: broad image-led cards, restrained copy. */
  body.theo-app #explore .theo-featured-marketplace{
    padding-left:28px!important;
    padding-right:28px!important;
    margin-top:46px!important;
    margin-bottom:58px!important;
  }
  body.theo-app #explore .theo-featured-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:var(--tp87-gap)!important;
    align-items:stretch!important;
  }
  body.theo-app #explore .theo-featured-grid > .premium-property-card{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    margin:0!important;
    border-radius:17px!important;
    box-shadow:var(--tp87-shadow)!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-photo.property-gallery,
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-photo-overlay{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:1.52 / 1!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-photo img,
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-gallery img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-body{
    padding:17px 18px 18px!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-price{
    font-size:1.20rem!important;
    line-height:1.08!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-price small{
    font-size:.61rem!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-body h3{
    font-size:.91rem!important;
    line-height:1.26!important;
    margin-bottom:8px!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .address{
    font-size:.74rem!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .property-fact{
    font-size:.69rem!important;
  }
  body.theo-app #explore .theo-featured-grid .premium-property-card .view-property{
    min-height:42px!important;
    font-size:.74rem!important;
  }

  /* Explore inventory: wider three-column editorial tiling. */
  body.theo-app #explore #available-properties.marketplace-results{
    padding-left:28px!important;
    padding-right:28px!important;
    padding-top:50px!important;
    padding-bottom:62px!important;
  }
  body.theo-app #explore #available-properties .property-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:28px!important;
    align-items:stretch!important;
  }
  body.theo-app #explore #available-properties .premium-property-card{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    border-radius:17px!important;
    box-shadow:var(--tp87-shadow)!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-photo.property-gallery,
  body.theo-app #explore #available-properties .premium-property-card .property-photo-overlay{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:1.50 / 1!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-photo img,
  body.theo-app #explore #available-properties .premium-property-card .property-gallery img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-body{
    padding:18px 19px 19px!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-price{
    font-size:1.23rem!important;
    line-height:1.08!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-price small{
    font-size:.62rem!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-body h3{
    font-size:.94rem!important;
    line-height:1.27!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .address{
    font-size:.76rem!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .property-fact{
    font-size:.70rem!important;
  }
  body.theo-app #explore #available-properties .premium-property-card .view-property{
    min-height:43px!important;
    font-size:.76rem!important;
  }

  /* Keep the connected-journey image aligned to the same larger canvas. */
  body.theo-app #explore .how-theo-works.how-theo-works-v2{
    padding-left:28px!important;
    padding-right:28px!important;
  }
  body.theo-app #explore .journey-stage-media{
    min-height:0!important;
    aspect-ratio:2.05 / 1!important;
  }

  /* Reduce dead vertical space without compressing content. */
  body.theo-app #explore .theo-section-break,
  body.theo-app #explore .theo-section-break-wide{
    margin-top:28px!important;
    margin-bottom:28px!important;
  }
}

/* Wide desktop: slightly more canvas, without changing the number of tiles. */
@media (min-width:1680px){
  :root{--tp87-shell:min(1580px, calc(100vw - 96px));}
}
