/* A practical place to search before the buying guidance begins. */
.buy-page > .buy-search { padding: 42px 6% 46px; background: var(--dv-wash, #e3e5d7); }
.buy-search-intro { max-width: 1180px; margin: 0 auto 24px; text-align: center; }
.buy-search-intro h1 { margin: 0 0 9px; font-family: var(--brand-display, 'Libre Caslon Display', Georgia, serif); font-size: 46px; font-weight: 500; line-height: 1.08; color: var(--dv-ink, #20372f); }
.buy-search-intro p { margin: 0 auto; font-size: 17px; line-height: 1.6; color: var(--dv-muted, #4e6256); }
.buy-home-search { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 18px; align-items: end; max-width: 1180px; margin: 0 auto; }
.buy-home-search label { display: block; min-width: 0; margin: 0; color: var(--dv-ink, #20372f); font-size: 15px; font-weight: 500; line-height: 1.4; }
.buy-home-search input, .buy-home-search select { display: block; width: 100%; min-width: 0; min-height: 52px; margin: 8px 0 0; padding: 12px 13px; background: var(--dv-input, #fcfaf4); color: var(--dv-ink, #20372f); border: 1px solid var(--dv-line, #b9c2b2); border-radius: 7px; font-family: inherit; font-size: 16px; line-height: 1.4; }
.buy-home-search input::placeholder { color: var(--dv-muted, #4e6256); opacity: 1; }
.buy-home-search .button { min-height: 52px; margin: 0; padding: 13px 25px; font-size: 16px; white-space: nowrap; }
.buy-page > .buy-featured { padding: 56px 6% 58px; background: var(--dv-paper, #f4f0e6); }
.buy-featured .section-heading { max-width: 850px; gap: 17px; margin-bottom: 32px; }
.buy-featured .headline-primary { font-size: 54px; line-height: 1.04; }
.buy-featured .headline-secondary { font-size: 32px; line-height: 1.15; margin-top: 5px; }
.buy-featured .section-heading > p { max-width: 54ch; font-size: 17px; line-height: 1.6; }
.buy-featured .property-grid { max-width: 1180px; margin: 0 auto; gap: 27px; }
.buy-featured .property { padding: 0 0 24px; overflow: hidden; border-radius: 11px; background: var(--dv-card, #e4dccd); text-align: center; }
.buy-featured .property .pic { height: auto; aspect-ratio: 4 / 3; }
.buy-featured .property .pic img { height: 100%; width: 100%; object-fit: cover; object-position: center 65%; }
.buy-featured .property h3 { margin: 22px 17px 8px; font-size: 33px; line-height: 1.1; }
.buy-featured .property p { margin: 0 17px 11px; font-size: 17px; line-height: 1.5; }
.buy-featured .property .price { font-size: 24px; margin-top: 5px; }
.buy-featured .property .spec { padding: 0 15px; font-size: 14px; line-height: 1.55; }
.buy-featured .property .view-property { margin-top: 17px; font-size: 14px; }
.buy-featured .section-cta { margin-top: 30px; }
.buy-page > .buy-process { background: var(--dv-wash, #e3e5d7); }
@media(max-width: 1000px) {
  .buy-home-search { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
  .buy-home-search .button { grid-column: 1 / -1; justify-self: center; min-width: 220px; }
  .buy-featured .property-grid { gap: 20px; }
  .buy-featured .property h3 { font-size: 30px; }
}
@media(max-width: 650px) {
  .buy-page > .buy-search { padding: 32px 6% 35px; }
  .buy-search-intro { margin-bottom: 23px; }
  .buy-search-intro h1 { font-size: 37px; }
  .buy-search-intro p { font-size: 17px; }
  .buy-home-search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 13px; }
  .buy-home-search label:first-child { grid-column: 1 / -1; }
  .buy-home-search label { font-size: 16px; }
  .buy-home-search input, .buy-home-search select { min-height: 52px; font-size: 16px; padding: 12px 11px; }
  .buy-home-search .button { justify-self: stretch; width: 100%; margin-top: 2px; }
  .buy-page > .buy-featured { padding: 38px 6% 40px; }
  .buy-featured .headline-primary { font-size: 42px; }
  .buy-featured .headline-secondary { font-size: 27px; }
  .buy-featured .property-grid { grid-template-columns: 1fr; max-width: 450px; gap: 26px; }
  .buy-featured .property .pic { aspect-ratio: 3 / 2; }
  .buy-featured .property h3 { font-size: 34px; }
  .buy-featured .property .spec, .buy-featured .property .view-property { font-size: 15px; }
}

/* A compact introduction to the people behind each home search. */
.buy-page .buy-team {
  padding: 58px 6% 60px;
  background: var(--dv-card, #e4dccd);
  color: var(--dv-ink, #20372f);
  scroll-margin-top: 112px;
}
.buy-team .section-heading {
  max-width: 800px;
  gap: 16px;
  margin: 0 auto 32px;
  text-align: center;
}
.buy-team .section-heading h2 { margin: 0; }
.buy-team .headline-primary { font-size: 54px; line-height: 1.04; }
.buy-team .headline-secondary { margin-top: 5px; font-size: 32px; line-height: 1.15; }
.buy-team .section-heading > p { max-width: 54ch; margin: 0; color: var(--dv-muted, #4e6256); font-size: 17px; line-height: 1.6; }
.buy-team .team-portraits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 35px; max-width: 1100px; margin: 0 auto; }
.buy-team .team-person { min-width: 0; text-align: center; }
.buy-team .team-person__portrait { width: 100%; max-width: 190px; aspect-ratio: 1; margin: 0 auto 20px; overflow: hidden; border-radius: 16px; background: var(--dv-wash, #e3e5d7); }
.buy-team .team-person__portrait img { display: block; width: 100%; height: 100%; object-fit: contain; }
.buy-team .team-person h3 { margin: 0 0 7px; font-family: var(--brand-display, 'Libre Caslon Display', Georgia, serif); font-size: 31px; font-weight: 500; line-height: 1.14; color: var(--dv-ink, #20372f); }
.buy-team .team-person__role { margin: 0 0 13px; font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--dv-muted, #4e6256); }
.buy-team .team-person__bio { max-width: 35ch; margin: 0 auto; font-size: 16px; line-height: 1.65; color: var(--dv-muted, #4e6256); }
.buy-team .team-person__license { display: inline-block; margin-top: 12px; min-height: 28px; font-size: 13px; line-height: 1.55; text-decoration: underline; text-underline-offset: 4px; }
.buy-team .team-section-action { margin: 32px auto 0; text-align: center; }
.buy-team .team-section-action .button { min-height: 48px; padding: 13px 24px; font-size: 16px; }
@media(max-width: 900px) and (min-width: 651px) {
  .buy-team .team-portraits { gap: 24px; }
  .buy-team .team-person__portrait { max-width: 170px; }
  .buy-team .team-person h3 { font-size: 28px; }
}
@media(max-width: 650px) {
  .buy-page .buy-team { padding: 38px 6% 40px; }
  .buy-team .section-heading { margin-bottom: 30px; gap: 15px; }
  .buy-team .headline-primary { font-size: 42px; }
  .buy-team .headline-secondary { font-size: 27px; }
  .buy-team .section-heading > p { font-size: 17px; }
  .buy-team .team-portraits { grid-template-columns: 1fr; gap: 30px; max-width: 430px; }
  .buy-team .team-person { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 19px; text-align: left; }
  .buy-team .team-person__portrait { grid-column: 1; grid-row: 1 / 3; width: 112px; max-width: none; margin: 0; }
  .buy-team .team-person h3 { grid-column: 2; align-self: end; margin: 0 0 8px; font-size: 29px; }
  .buy-team .team-person__role { grid-column: 2; align-self: start; margin: 0; font-size: 14px; }
  .buy-team .team-person__bio { grid-column: 1 / -1; max-width: none; margin: 16px 0 0; font-size: 17px; line-height: 1.6; }
  .buy-team .team-person__license { grid-column: 1 / -1; margin-top: 9px; font-size: 14px; }
  .buy-team .team-section-action { margin-top: 30px; }
  .buy-team .team-section-action .button { width: 100%; max-width: 430px; padding: 14px 18px; }
}

.buy-page > .buy-team { background: var(--dv-paper, #f4f0e6); }

/* Clear the full Maine mark when search is the first page section. */
@media (min-width: 1101px) {
  .buy-page > .buy-search:first-child { padding-top: 100px; }
}
