/* Mobile layout corrections for the public site. Keep desktop sizing unchanged. */
@media (min-width: 761px) and (max-width: 900px) {
  header.site-header .header-inner .site-nav:not(.mobile-open) {
    display: none !important;
  }

  header.site-header .header-inner .site-nav.mobile-open {
    position: absolute;
    display: flex !important;
    top: calc(100% - 1px);
    left: 16px;
    right: 16px;
    width: auto;
    margin: 0;
    padding: 10px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line, #eaedf2);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 24px rgb(23 32 51 / 12%);
    z-index: 60;
  }

  header.site-header .header-inner .site-nav.mobile-open button {
    display: block;
    width: 100%;
    min-height: 42px;
    height: auto;
    padding: 9px 0;
    text-align: left;
  }

  header.site-header .mobile-menu {
    display: grid;
  }
}

@media (max-width: 760px) {
  header.site-header {
    overflow: visible;
  }

  header.site-header .header-inner {
    width: calc(100% - 28px);
    min-width: 0;
    gap: 10px;
  }

  header.site-header .header-inner .site-nav:not(.mobile-open) {
    display: none !important;
  }

  header.site-header .header-inner .site-nav.mobile-open {
    position: absolute;
    display: flex !important;
    top: calc(100% - 1px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 10px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line, #eaedf2);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 24px rgb(23 32 51 / 12%);
    z-index: 60;
  }

  header.site-header .header-inner .site-nav.mobile-open button {
    display: block;
    width: 100%;
    min-height: 42px;
    height: auto;
    padding: 9px 0;
    text-align: left;
    white-space: normal;
  }

  header.site-header .brand {
    min-width: 0;
    flex-shrink: 0;
  }

  header.site-header .header-actions {
    min-width: 0;
    flex-shrink: 0;
    margin-left: auto;
    gap: 10px;
  }

  .home-portal .portal-search-tabs {
    flex-wrap: wrap;
    overflow: visible;
    column-gap: 14px;
    row-gap: 2px;
  }

  .home-portal .portal-search-tabs .portal-tab-cta {
    flex: 1 0 100%;
    width: 100%;
    margin-left: 0;
    text-align: right;
    white-space: normal;
  }
}

@media (max-width: 380px) {
  header.site-header .header-inner {
    width: calc(100% - 22px);
    gap: 7px;
  }

  header.site-header .brand svg {
    width: 38px;
  }

  header.site-header .header-actions {
    gap: 7px;
  }

  .home-portal .portal-search-tabs {
    column-gap: 11px;
  }
}


/* UI/UX Polish: Brochure buttons spacing, touch targets, and mobile layout */
.brochure-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
}
.brochure-document-actions .brochure-btn {
  min-height: 38px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.advisory-form textarea,
.enquiry-form textarea {
  min-height: 84px;
}
.saved-button {
  min-width: 38px;
  min-height: 38px;
  padding: 6px 10px;
}
.home-portal .portal-tab {
  min-width: 48px;
  padding: 8px 14px;
}
.category-strip .category {
  min-height: 64px;
  height: auto;
  padding: 10px 12px;
}
@media (max-width: 768px) {
  .listings-hero .search-bar,
  .hero .search-bar {
    margin-top: 14px;
    gap: 10px;
  }
  .listings-hero .search-bar input,
  .hero .search-bar input {
    min-width: 140px;
    flex: 1 1 140px;
  }
  .category-strip {
    margin-top: 12px;
  }
  .property-detail-page .detail-action-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .property-detail-page .detail-tool-btn {
    min-height: 38px;
    padding: 8px 14px;
  }
  .property-detail-page .gallery-nav-btn {
    width: 38px;
    height: 38px;
  }
}

.property-detail-page .brochure-download-card .brochure-document-actions {
  flex-basis: 100%;
  margin-top: 8px;
}

.property-detail-page .brochure-download-card {
  flex-wrap: wrap !important;
  align-items: flex-start !important;
}
.property-detail-page .brochure-download-card .brochure-text {
  flex: 1 1 200px;
  min-width: 0;
}

header.site-header .header-inner .site-nav button,
header.site-header .header-inner .site-nav a {
  font-size: 15px !important;
  font-weight: 700 !important;
}

.detail-quick-facts .fact-meta small,
.detail-quick-facts .fact-meta span {
  font-size: 13px !important;
}
.detail-quick-facts .fact-meta strong {
  font-size: 15.5px !important;
}

@media (min-width: 901px) {
  .detail-quick-facts {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  }
}

.detail-quick-facts .fact-meta strong {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.25;
}
