@media print {
  /* Hide sidebar and inner nav */
  body.single-gh-homes .inner-nav-section,
  body.single-gh-communities .inner-nav-section,
  body.single-gh-homes .gh-main-content-wrapper .gh-aside-wrapper,
  body.single-gh-communities .gh-main-content-wrapper .gh-aside-wrapper {
    display: none !important;
  }

  /* Hide UI and interactive elements (excluding header/footer/nav) */
  body.single-gh-homes button,
  body.single-gh-communities button,
  body.single-gh-homes .elementor-button,
  body.single-gh-communities .elementor-button,
  body.single-gh-homes .elementor-widget-button,
  body.single-gh-communities .elementor-widget-button,
  body.single-gh-homes [type="submit"],
  body.single-gh-communities [type="submit"] {
    display: none !important;
  }

  /* Optional: hide globally regardless of body class */
  header,
  footer,
  nav {
    display: none !important;
  }

  /* Make main content full width */
  body.single-gh-homes .gh-main-content-wrapper,
  body.single-gh-communities .gh-main-content-wrapper {
    width: 100% !important;
  }

  /* Body formatting for print */
  body.single-gh-homes,
  body.single-gh-communities {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt !important;
  }

  /* Clean up anchor links */
  body.single-gh-homes a,
  body.single-gh-communities a {
    text-decoration: none;
    color: black;
  }

  body.single-gh-homes a[href]:after,
  body.single-gh-communities a[href]:after {
    content: "" !important;
    display: none !important;
  }

  /* Style for home tag */
  body.single-gh-homes .gh-home-tag,
  body.single-gh-communities .gh-home-tag {
    background: none !important;
    border: 1px solid #000 !important;
    color: #000 !important;
    padding: 2px 6px !important;
    display: inline-block !important;
    font-weight: bold !important;
  }

  /* Page breaks */
  body.single-gh-homes .section-to-break,
  body.single-gh-communities .section-to-break {
    page-break-after: always;
  }

  /* Additional scoped styles */
  body.single-gh-homes .gh-main-content-wrapper .gh-article-wrapper,
  body.single-gh-communities .gh-main-content-wrapper .gh-article-wrapper {
    width: 100%;
    padding: 0;
  }

  body.single-gh-homes .gh-promo-banner .gh-banner-inner,
  body.single-gh-communities .gh-promo-banner .gh-banner-inner {
    padding-top: 0;
    padding-bottom: 0;
  }

  body.single-gh-homes .gh-amenities-section,
  body.single-gh-communities .gh-amenities-section,
  body.single-gh-homes .gh-schedule-tour-wrapper,
  body.single-gh-communities .gh-schedule-tour-wrapper {
    padding-top: 0 !important;
  }

  .breadcrumbs-wrapper,
  .gh-schedule-tour-wrapper .gh-form-column,
  body.single-gh-communities .gh-schedule-tour-wrapper .gh-form-column {
    display: none !important;
  }
  .gh-schedule-tour-wrapper .gh-schedule-content,
  .community-schedule-tour.gh-schedule-tour-wrapper .gh-schedule-content {
    width: 100%;
    padding: 0;
  }
}
