/* Theo Properties RC1.0.15.98
   Mobile + Tablet Heading Fit & Word-Spacing Lock
   Scope: <=1180px only.
   Typography-only: no card/grid/navigation/workflow changes. */

@media (max-width:1180px){
  body.theo-app #explore #category-showcase-title,
  body.guest-mode #explore #category-showcase-title,
  body.theo-app #explore .theo-featured-head h2,
  body.guest-mode #explore .theo-featured-head h2,
  body.theo-app #explore #available-properties .marketplace-results-head h2,
  body.guest-mode #explore #available-properties .marketplace-results-head h2,
  body.theo-app #explore .how-theo-works-v2 .journey-intro h2,
  body.guest-mode #explore .how-theo-works-v2 .journey-intro h2,
  body.theo-app #explore .commercial-pricing-head h2,
  body.guest-mode #explore .commercial-pricing-head h2,
  body.theo-app #explore .marketplace-owner-cta h2,
  body.guest-mode #explore .marketplace-owner-cta h2{
    max-width:100%!important;
    letter-spacing:-.045em!important;
    word-spacing:-.045em!important;
    line-height:1.04!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none!important;
    text-wrap:balance;
  }
}

/* iPad / tablet: keep the primary section headings on one line. */
@media (min-width:701px) and (max-width:1180px){
  body.theo-app #explore #category-showcase-title,
  body.guest-mode #explore #category-showcase-title{
    font-size:clamp(29px,3.8vw,34px)!important;
    white-space:nowrap!important;
  }

  body.theo-app #explore .theo-featured-head h2,
  body.guest-mode #explore .theo-featured-head h2,
  body.theo-app #explore #available-properties .marketplace-results-head h2,
  body.guest-mode #explore #available-properties .marketplace-results-head h2{
    font-size:clamp(27px,3.4vw,31px)!important;
    white-space:nowrap!important;
  }

  body.theo-app #explore .how-theo-works-v2 .journey-intro h2,
  body.guest-mode #explore .how-theo-works-v2 .journey-intro h2{
    font-size:clamp(27px,3.35vw,31px)!important;
    white-space:nowrap!important;
  }

  body.theo-app #explore .commercial-pricing-head h2,
  body.guest-mode #explore .commercial-pricing-head h2{
    font-size:clamp(28px,3.5vw,32px)!important;
    white-space:nowrap!important;
  }

  body.theo-app #explore .marketplace-owner-cta h2,
  body.guest-mode #explore .marketplace-owner-cta h2{
    font-size:clamp(24px,3vw,28px)!important;
    white-space:nowrap!important;
  }
}

/* Phones: short headings stay on one line; long headings remain readable. */
@media (max-width:700px){
  body.theo-app #explore .theo-featured-head h2,
  body.guest-mode #explore .theo-featured-head h2{
    font-size:clamp(23px,6.6vw,28px)!important;
    white-space:nowrap!important;
  }

  body.theo-app #explore #available-properties .marketplace-results-head h2,
  body.guest-mode #explore #available-properties .marketplace-results-head h2{
    font-size:clamp(23px,6.5vw,27px)!important;
    white-space:nowrap!important;
  }

  body.theo-app #explore .marketplace-owner-cta h2,
  body.guest-mode #explore .marketplace-owner-cta h2{
    font-size:clamp(20px,5.6vw,23px)!important;
    white-space:nowrap!important;
  }

  body.theo-app #explore #category-showcase-title,
  body.guest-mode #explore #category-showcase-title{
    font-size:clamp(21px,5.8vw,25px)!important;
  }

  body.theo-app #explore .how-theo-works-v2 .journey-intro h2,
  body.guest-mode #explore .how-theo-works-v2 .journey-intro h2{
    font-size:clamp(20px,5.35vw,23px)!important;
  }

  body.theo-app #explore .commercial-pricing-head h2,
  body.guest-mode #explore .commercial-pricing-head h2{
    font-size:clamp(20px,5.45vw,23px)!important;
  }
}

/* On wider phones these longer headings can safely remain on one line too. */
@media (min-width:390px) and (max-width:700px){
  body.theo-app #explore #category-showcase-title,
  body.guest-mode #explore #category-showcase-title,
  body.theo-app #explore .how-theo-works-v2 .journey-intro h2,
  body.guest-mode #explore .how-theo-works-v2 .journey-intro h2,
  body.theo-app #explore .commercial-pricing-head h2,
  body.guest-mode #explore .commercial-pricing-head h2{
    white-space:nowrap!important;
  }
}
