/* Home page community rows. White cards, hairline border on all sides, no accent bars, no cream. */
.boffo-home-rows .boffo-home-row + .boffo-home-row { margin-top: 40px; }

.boffo-home-row__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.boffo-home-rows .boffo-home-row__title {
  margin: 0;
  font-family: var(--display, Georgia, serif);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: lowercase;
  color: var(--navy, #0d2436);
}

.boffo-home-rows .boffo-home-row__all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.boffo-home-rows .boffo-home-row__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.boffo-home-row__item { margin: 0; min-width: 0; }

.boffo-home-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 23px;
  background: #fff;
  overflow: hidden;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.boffo-home-rows .boffo-listing--idx {
  flex: 1 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.boffo-home-rows .boffo-listing--idx .boffo-listing__media img {
  transition: opacity 200ms ease-out;
}

.boffo-home-rows .boffo-listing--idx h4 {
  margin: 0 0 4px;
  font-family: var(--ui, "Ubuntu", sans-serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--navy, #0d2436);
}

.boffo-home-rows .boffo-listing--idx .boffo-listing__price { font-variant-numeric: tabular-nums; }

@media (hover: hover) and (pointer: fine) {
  .boffo-home-rows .boffo-home-card:hover { transform: translateY(-2px); }
  .boffo-home-rows .boffo-home-card__ask:hover { border-color: #9aa5b1; }
  .boffo-home-rows a.boffo-listing--idx:hover .boffo-listing__media img { opacity: 0.92; }
}

.boffo-home-rows .boffo-home-card:active { transform: scale(0.99); }

.boffo-home-rows a.boffo-listing--idx:focus-visible {
  outline: 2px solid var(--gold, #98783a);
  outline-offset: -3px;
  border-radius: 23px 23px 0 0;
}

/* Ask a team member: white pill, hairline border, 44px target. */
.boffo-home-rows .boffo-home-card__ask {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 44px;
  margin: 0 16px 16px;
  padding: 5px 14px 5px 6px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font: 600 14px/1.2 var(--ui, "Ubuntu", sans-serif);
  color: var(--navy, #0d2436);
  text-decoration: none;
  transition: border-color 150ms ease-out;
}

.boffo-home-rows .boffo-home-card__ask img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  flex: none;
}

.boffo-home-rows .boffo-home-card__ask:focus-visible {
  outline: 2px solid var(--gold, #98783a);
  outline-offset: 2px;
}

.boffo-home-rows__note {
  margin: 32px 0 0;
  font-family: var(--ui, "Ubuntu", sans-serif);
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.boffo-home-rows__empty { font-size: 16px; color: var(--navy, #0d2436); }

@media (max-width: 1100px) {
  .boffo-home-rows .boffo-home-row__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (max-width: 700px) {
  .boffo-home-rows .boffo-home-row__grid { grid-template-columns: 1fr; }
  .boffo-home-row__head { flex-direction: row; align-items: baseline; }
}

/* Row stats line: plain text links, no box, no accent. */
.boffo-home-rows .boffo-home-row__stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  margin: -8px 0 12px;
  padding: 0;
  font-family: var(--ui, "Ubuntu", sans-serif);
  font-size: 15px;
  line-height: 1.3;
  color: #3a4550;
}

.boffo-home-row__stats li { margin: 0; padding: 0; }

.boffo-home-rows .boffo-home-row__stats a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  color: #3a4550;
  text-decoration: none;
}

.boffo-home-row__num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy, #0d2436);
}

@media (hover: hover) and (pointer: fine) {
  .boffo-home-rows .boffo-home-row__stats a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

.boffo-home-rows .boffo-home-row__stats a:focus-visible {
  outline: 2px solid var(--gold, #98783a);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 700px) {
  .boffo-home-rows .boffo-home-row__stats { gap: 0 16px; font-size: 14px; margin-top: -10px; }
}

/* Addresses as written (override the theme's lowercase headings, home rows only). */
/* industry-tokens.css forces lowercase on all headings with !important; scope the override to these cards. */
body .boffo-home-rows .boffo-listing--idx h4,
body.mmp-service-site-kit .boffo-home-rows .boffo-listing--idx h4,
.boffo-home-rows .boffo-listing--idx .boffo-listing__body p {
  text-transform: none !important;
}

.boffo-home-row__scroller:focus-visible {
  outline: 2px solid var(--gold, #98783a);
  outline-offset: 4px;
  border-radius: 23px;
}

/* Phones: each row is a sideways swipe strip; only the strip scrolls. */
@media (max-width: 767px) {
  .boffo-home-rows .boffo-home-row__scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 2px;
    padding: 4px 2px 10px;
    scrollbar-width: thin;
    scrollbar-color: #cfd5dc transparent;
  }
  .boffo-home-rows .boffo-home-row__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 84%;
    gap: 12px;
  }
  .boffo-home-rows .boffo-home-row__item {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boffo-home-rows .boffo-home-card,
  .boffo-home-rows .boffo-home-card__ask,
  .boffo-home-rows .boffo-listing--idx .boffo-listing__media img { transition: none; }
  .boffo-home-rows .boffo-home-card:hover,
  .boffo-home-rows .boffo-home-card:active { transform: none; }
  .boffo-home-rows .boffo-home-row__scroller { scroll-behavior: auto; }
}

/* BEGIN boffo-neighborhoods-hover (Explore our neighborhoods tiles: light silver hover/focus text instead of the default link blue) */
#neighborhoods .boffo-place:hover,
#neighborhoods .boffo-place:focus-visible {
	color: #d1d5db;
}
/* END boffo-neighborhoods-hover */
