/* CUI 10 Oct 2026: targeted presentation corrections for two pages only. */

/* Off-market: display type in Cormorant Garamond needs room for ascenders,
   descenders and the italic second line, especially in narrow Safari layouts. */
.offmarket-page .page-intro .section-title {
  line-height: 1.17 !important;
  letter-spacing: -.025em;
  overflow-wrap: normal;
}
.offmarket-page .page-intro .section-title .red-line {
  line-height: 1.17;
  margin-top: .09em;
  padding-bottom: .12em;
}
@media (max-width: 650px) {
  .offmarket-page .page-intro .section-title {
    font-size: clamp(42px, 9.6vw, 58px) !important;
    line-height: 1.18 !important;
  }
  .offmarket-page .page-intro .section-title .red-line {
    line-height: 1.18;
    margin-top: .12em;
  }
}

/* Search page: five options, one quiet, compact row instead of the old
   four-column black grid (which wrapped the fifth onto a second row). */
.search-main-no-hero .unified-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fff;
  border-bottom: 1px solid #e6e0da;
}
.search-main-no-hero .unified-tabs button {
  min-width: 0;
  min-height: 46px;
  padding: 10px 8px;
  border: 0;
  border-right: 1px solid #ede8e4;
  background: #fff;
  position: relative;
  color: #3e4044;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .11em;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.search-main-no-hero .unified-tabs button:last-child {
  border-right: 0;
}
.search-main-no-hero .unified-tabs button.active {
  background: #fff0f2;
  color: var(--red);
}
/* Draw a real underline: the shared site stylesheet disables button shadows. */
.search-main-no-hero .unified-tabs button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}
.search-main-no-hero .unified-tabs button:hover {
  background: #fff7f7;
  color: var(--red);
}
.search-main-no-hero .unified-tabs button.active:hover {
  background: #fff0f2;
}
.search-main-no-hero .unified-tabs button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -4px;
}
@media (max-width: 620px) {
  .search-main-no-hero .unified-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .search-main-no-hero .unified-tabs button {
    flex: 1 0 auto;
    min-width: max-content;
    padding: 10px 13px;
    font-size: 10px;
  }
}

/* Location note: accessible helper text below the field, separate from geolocation. */
.search-main-no-hero .search-location-hint {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: #63666b;
  font: 400 13px/1.45 var(--sans);
  letter-spacing: 0;
  text-transform: none;
}
.search-main-no-hero .search-location-hint svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
}

/* Legacy generic field-span styling would otherwise turn this help text red,
   bold and uppercase. Keep the note neutral and easy to scan. */
.search-main-no-hero .unified-search-form .field .search-location-hint span {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
