/* Theo Properties RC1.0.15.100
   Laptop / MacBook Heading Composition & Pricing Alignment Lock
   Scope: 1181px–1799px only.
   Purpose: improve laptop heading composition and keep the four pricing cards,
   especially Owner Pro, evenly positioned without altering grids on other devices. */

@media (min-width:1181px) and (max-width:1799px){
  /* Property-class editorial heading: give the headline more authority without
     increasing its scale, and reserve clean breathing room for View all. */
  body.theo-app #explore .category-showcase-head,
  body.guest-mode #explore .category-showcase-head{
    grid-template-columns:minmax(300px,.74fr) minmax(0,1.26fr)!important;
    gap:clamp(30px,3.4vw,52px)!important;
    align-items:center!important;
  }
  body.theo-app #explore .category-showcase-head>div,
  body.guest-mode #explore .category-showcase-head>div{
    min-width:0!important;
    padding-right:clamp(116px,11vw,178px)!important;
  }
  body.theo-app #explore #category-showcase-title,
  body.guest-mode #explore #category-showcase-title{
    max-width:880px!important;
    font-size:clamp(36px,2.75vw,46px)!important;
    line-height:1.04!important;
    letter-spacing:-.04em!important;
    word-spacing:-.02em!important;
    text-wrap:balance!important;
  }
  body.theo-app #explore .category-showcase-view-all,
  body.guest-mode #explore .category-showcase-view-all{
    top:50%!important;
    transform:translateY(-50%)!important;
    right:0!important;
  }

  /* Explore Rentals: make the heading/action relationship read as one composed row. */
  body.theo-app #explore #available-properties .marketplace-results-head,
  body.guest-mode #explore #available-properties .marketplace-results-head{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:end!important;
    column-gap:32px!important;
  }
  body.theo-app #explore #available-properties .marketplace-results-head>div:first-child,
  body.guest-mode #explore #available-properties .marketplace-results-head>div:first-child{
    min-width:0!important;
    justify-self:start!important;
  }
  body.theo-app #explore #available-properties .marketplace-results-actions,
  body.guest-mode #explore #available-properties .marketplace-results-actions{
    justify-self:end!important;
    align-self:end!important;
  }
  body.theo-app #explore #available-properties .marketplace-results-head h2,
  body.guest-mode #explore #available-properties .marketplace-results-head h2{
    font-size:clamp(34px,2.55vw,42px)!important;
    line-height:1.04!important;
    text-wrap:balance!important;
  }
  body.theo-app #explore #available-properties .alert-actions,
  body.guest-mode #explore #available-properties .alert-actions{
    justify-content:flex-end!important;
    margin-top:12px!important;
  }

  /* Connected Journey: widen the headline column so "Place." is not orphaned
     while allowing a balanced two-line wrap on narrower MacBooks. */
  body.theo-app #explore .how-theo-works-v2 .journey-intro,
  body.guest-mode #explore .how-theo-works-v2 .journey-intro{
    grid-template-columns:minmax(0,1.18fr) minmax(340px,.82fr)!important;
    gap:14px clamp(34px,4vw,58px)!important;
    align-items:center!important;
  }
  body.theo-app #explore .how-theo-works-v2 .journey-intro h2,
  body.guest-mode #explore .how-theo-works-v2 .journey-intro h2{
    max-width:820px!important;
    font-size:clamp(35px,2.7vw,44px)!important;
    line-height:1.04!important;
    letter-spacing:-.04em!important;
    text-wrap:balance!important;
  }
  body.theo-app #explore .how-theo-works-v2 .journey-intro p,
  body.guest-mode #explore .how-theo-works-v2 .journey-intro p{
    max-width:560px!important;
    justify-self:end!important;
  }

  /* Commercial heading: balanced rather than a tall three-line block. */
  body.theo-app #explore .commercial-pricing-head,
  body.guest-mode #explore .commercial-pricing-head{
    grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr)!important;
    gap:clamp(34px,4vw,58px)!important;
    align-items:center!important;
  }
  body.theo-app #explore .commercial-pricing-head h2,
  body.guest-mode #explore .commercial-pricing-head h2{
    max-width:760px!important;
    font-size:clamp(38px,2.9vw,50px)!important;
    line-height:1.01!important;
    letter-spacing:-.045em!important;
    word-spacing:-.025em!important;
    text-wrap:balance!important;
  }
  body.theo-app #explore .commercial-pricing-head>p,
  body.guest-mode #explore .commercial-pricing-head>p{
    max-width:560px!important;
    justify-self:end!important;
    align-self:center!important;
  }

  /* Keep all four pricing cards on the same baseline. The previously elevated
     Plus treatment is flattened on laptops so Owner Pro is not visually stranded. */
  body.theo-app #explore .commercial-pricing-grid,
  body.guest-mode #explore .commercial-pricing-grid{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:18px!important;
    align-items:stretch!important;
  }
  body.theo-app #explore .commercial-pricing-grid>.commercial-price-card,
  body.guest-mode #explore .commercial-pricing-grid>.commercial-price-card{
    width:100%!important;
    min-width:0!important;
    height:100%!important;
    margin:0!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    transform:none!important;
  }
  body.theo-app #explore .commercial-pricing-grid>.commercial-price-card.plan-plus,
  body.guest-mode #explore .commercial-pricing-grid>.commercial-price-card.plan-plus,
  body.theo-app #explore .commercial-pricing-grid>.commercial-price-card.plan-pro,
  body.guest-mode #explore .commercial-pricing-grid>.commercial-price-card.plan-pro{
    transform:none!important;
    grid-column:auto!important;
  }

  /* On the tighter end of the laptop range, a 2x2 pricing grid is more premium
     than four compressed cards. This does not affect iPad/tablet or desktop. */
  @media (max-width:1365px){
    body.theo-app #explore .commercial-pricing-grid,
    body.guest-mode #explore .commercial-pricing-grid{
      grid-template-columns:repeat(2,minmax(0,1fr))!important;
      gap:18px!important;
    }
  }
}
