/* Theo Properties RC1.0.15.96
   Tablet / iPad Premium Spacing + Progressive Disclosure Lock
   Scope: 701px–1180px only.
   Purpose: reduce excess whitespace, prevent congested multi-card rows and remove
   horizontal marketplace rails while preserving mobile <=700px and laptop >=1181px. */

@media (min-width:701px) and (max-width:1180px){
  /* Consistent tablet section rhythm. */
  body.theo-app #explore .premium-marketplace-hero,
  body.guest-mode #explore .premium-marketplace-hero{
    margin-top:10px!important;
  }

  body.theo-app #explore .marketplace-hero-copy,
  body.guest-mode #explore .marketplace-hero-copy{
    padding:26px 22px 18px!important;
  }

  body.theo-app #explore .marketplace-hero-copy>.hero-lead,
  body.guest-mode #explore .marketplace-hero-copy>.hero-lead{
    margin-top:10px!important;
    margin-bottom:16px!important;
  }

  body.theo-app #explore .hero-support,
  body.guest-mode #explore .hero-support{
    margin-top:12px!important;
    padding-top:12px!important;
  }

  /* Property classes: two generous tiles maximum, never a horizontal rail. */
  body.theo-app #explore .marketplace-category-showcase,
  body.guest-mode #explore .marketplace-category-showcase{
    margin-top:0!important;
    margin-bottom:0!important;
    padding:28px 20px 26px!important;
  }

  body.theo-app #explore .category-showcase-head,
  body.guest-mode #explore .category-showcase-head{
    margin-bottom:16px!important;
    padding-bottom:14px!important;
  }

  body.theo-app #explore .category-showcase-grid,
  body.guest-mode #explore .category-showcase-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!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;
    scroll-snap-type:none!important;
    touch-action:auto!important;
  }

  body.theo-app #explore .category-showcase-grid > .category-showcase-card,
  body.theo-app #explore .category-showcase-grid > .premium-category-card,
  body.guest-mode #explore .category-showcase-grid > .category-showcase-card,
  body.guest-mode #explore .category-showcase-grid > .premium-category-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:none!important;
    margin:0!important;
    scroll-snap-align:none!important;
    touch-action:auto!important;
  }

  body.theo-app #explore .category-carousel-controls,
  body.guest-mode #explore .category-carousel-controls{
    display:none!important;
  }

  /* Shared section separators: keep them architectural, not spacious. */
  body.theo-app #explore .theo-section-break,
  body.theo-app #explore .theo-section-break-wide,
  body.guest-mode #explore .theo-section-break,
  body.guest-mode #explore .theo-section-break-wide{
    width:calc(100% - 40px)!important;
    margin:16px auto 14px!important;
  }

  /* Featured: two premium cards per row maximum. */
  body.theo-app #explore .theo-featured-marketplace,
  body.guest-mode #explore .theo-featured-marketplace{
    margin:18px 0 26px!important;
    padding-left:20px!important;
    padding-right:20px!important;
  }

  body.theo-app #explore .theo-featured-head,
  body.guest-mode #explore .theo-featured-head{
    gap:12px!important;
    margin-bottom:16px!important;
  }

  body.theo-app #explore .theo-featured-grid,
  body.guest-mode #explore .theo-featured-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px!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;
    scroll-snap-type:none!important;
    touch-action:auto!important;
  }

  body.theo-app #explore .theo-featured-grid > .premium-property-card,
  body.guest-mode #explore .theo-featured-grid > .premium-property-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:none!important;
    margin:0!important;
    scroll-snap-align:none!important;
    touch-action:auto!important;
  }

  /* Explore Rentals: two contained columns; no sideways browsing. */
  body.theo-app #explore #available-properties.marketplace-results,
  body.guest-mode #explore #available-properties.marketplace-results{
    margin-top:0!important;
    margin-bottom:0!important;
    padding:22px 20px 28px!important;
  }

  body.theo-app #explore #available-properties .marketplace-results-head,
  body.guest-mode #explore #available-properties .marketplace-results-head{
    gap:10px!important;
    margin-bottom:13px!important;
    padding-bottom:12px!important;
  }

  body.theo-app #explore #property-grid.property-grid,
  body.theo-app #explore .marketplace-results .property-grid,
  body.guest-mode #explore #property-grid.property-grid,
  body.guest-mode #explore .marketplace-results .property-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px!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;
    scroll-snap-type:none!important;
    touch-action:auto!important;
  }

  body.theo-app #explore #property-grid.property-grid > .premium-property-card,
  body.theo-app #explore .marketplace-results .property-grid > .premium-property-card,
  body.guest-mode #explore #property-grid.property-grid > .premium-property-card,
  body.guest-mode #explore .marketplace-results .property-grid > .premium-property-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    flex:none!important;
    margin:0!important;
    scroll-snap-align:none!important;
    touch-action:auto!important;
    contain:none!important;
  }

  /* Duplicate curated rails make tablet discovery unnecessarily dense. */
  body.theo-app #explore .mobile-discovery,
  body.guest-mode #explore .mobile-discovery{
    display:none!important;
  }

  /* Tablet progressive disclosure controlled by the 15.96 JS. */
  body.theo-app #explore .tablet-1596-collapsed,
  body.guest-mode #explore .tablet-1596-collapsed{
    display:none!important;
  }

  body.theo-app #explore .tablet-card-disclosure-1596,
  body.guest-mode #explore .tablet-card-disclosure-1596{
    width:100%!important;
    min-height:50px!important;
    margin:6px 0 18px!important;
    padding:0 18px!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 .tablet-card-disclosure-1596 svg,
  body.guest-mode #explore .tablet-card-disclosure-1596 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;
  }

  /* Replace the legacy inventory button with the tablet progressive control. */
  body.theo-app #explore #show-more,
  body.guest-mode #explore #show-more{
    display:none!important;
  }

  /* Pricing: two options at a time, then View all. */
  body.theo-app #explore .commercial-pricing-section,
  body.guest-mode #explore .commercial-pricing-section{
    margin:16px 16px 10px!important;
    padding:26px 20px 22px!important;
  }

  body.theo-app #explore .commercial-pricing-head,
  body.guest-mode #explore .commercial-pricing-head{
    margin-bottom:18px!important;
  }

  body.theo-app #explore .commercial-pricing-grid,
  body.guest-mode #explore .commercial-pricing-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:16px!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;
    scroll-snap-type:none!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!important;
    scroll-snap-align:none!important;
    touch-action:auto!important;
  }

  body.theo-app #explore .commercial-management-strip,
  body.guest-mode #explore .commercial-management-strip{
    margin-top:12px!important;
    padding:16px!important;
    gap:12px!important;
  }

  /* Connected Journey already wraps in RC1.0.15.94; just tighten tablet perimeter. */
  body.theo-app #explore .how-theo-works.how-theo-works-v2,
  body.guest-mode #explore .how-theo-works.how-theo-works-v2{
    margin:10px 16px 26px!important;
    padding:22px 18px 18px!important;
  }

  body.theo-app #explore .how-theo-works-v2 .journey-intro,
  body.guest-mode #explore .how-theo-works-v2 .journey-intro{
    gap:8px!important;
    padding-bottom:16px!important;
  }

  /* Closing owner CTA: premium but not oversized. */
  body.theo-app #explore .marketplace-owner-cta,
  body.guest-mode #explore .marketplace-owner-cta{
    margin:10px 16px 30px!important;
    padding:20px 18px!important;
    gap:16px!important;
  }
}
