/* Hi-Res Homes 1125p17 — footer affiliate logo frames + homepage stack spacing.
   Social icon size/style lives in social-icons.css. */

/* ---------- Affiliate logos: drop the thick frame ----------
   Source of the "thick border": html[data-theme="dark"] .bg-white { background:
   #1c2433 } paints a dark plate around the white-background association PNGs
   (footer li uses Tailwind bg-white + padding). Light mode can also pick up a
   border-line or box-shadow on the same cards. Override those logos only. */
footer li:has(img[src*="/media/associations/"]),
.hrt-affiliates-list li,
footer img[src*="/media/associations/"],
.hrt-affiliates-list img {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
footer li:has(img[src*="/media/associations/"]),
.hrt-affiliates-list li,
html[data-theme="dark"] footer li:has(img[src*="/media/associations/"]),
html[data-theme="dark"] .hrt-affiliates-list li,
html[data-theme="dark"] footer li:has(img[src*="/media/associations/"]).bg-white {
  background-color: #fff !important;
  background-image: none !important;
}

/* ---------- Homepage: tighten map / stats / reviews ----------
   Before (section padding that makes the gaps):
   #hrh-coverage padding-bottom: 5.5rem mobile / 7rem desktop (≥768)
   .hrh-stats padding-top+bottom: 2.5rem+3.5rem mobile / 6rem+7rem desktop
   #google-reviews padding-top: 5rem (py-20) / 7rem (md:py-28)
   Gaps: map→stats 8rem (128px) mobile / 13rem (208px) desktop
         stats→reviews 8.5rem (136px) mobile / 14rem (224px) desktop
   After:
   coverage pb 1.25rem / 1.75rem; stats py 0.75rem / 1rem; reviews pt 1.5rem / 2rem
   Gaps: map→stats 2rem (32px) mobile / 2.75rem (44px) desktop
         stats→reviews 2.25rem (36px) mobile / 3rem (48px) desktop
   Top padding of the map and bottom padding of reviews are unchanged. */
#hrh-coverage.hrh-coverage {
  padding-bottom: 1.25rem;
}
@media (min-width: 768px) {
  #hrh-coverage.hrh-coverage {
    padding-bottom: 1.75rem;
  }
}
section.hrh-stats {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
@media (min-width: 768px) {
  section.hrh-stats {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}
@media (max-width: 767px) {
  section.hrh-stats {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
}
#google-reviews {
  padding-top: 1.5rem;
}
@media (min-width: 768px) {
  #google-reviews {
    padding-top: 2rem;
  }
}

/* 1125p25 — Proud affiliate / business-partner logos at 2x.
   Before: height 26px (<640px), 32px (≥640px); width auto (aspect kept).
   After:  height 52px (<640px), 64px (≥640px); width auto (aspect kept).
   White cards, no borders, unchanged from 1125p17. Wrap neatly on mobile. */
footer li:has(img[src*="/media/associations/"]) img,
footer img[src*="/media/associations/"],
.hrt-affiliates-list img {
  height: 52px !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
}
@media (min-width: 640px) {
  footer li:has(img[src*="/media/associations/"]) img,
  footer img[src*="/media/associations/"],
  .hrt-affiliates-list img {
    height: 64px !important;
  }
}
footer ul:has(img[src*="/media/associations/"]),
.hrt-affiliates-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* 1125p31 — Book now / Since 2017: equalize the gap below the button.
   coverage-map.js still sets padding: 5rem / 6.5rem top; override only the top,
   keep the 1125p17 bottom values. Do not edit coverage-map.js. */
#hrh-coverage.hrh-coverage,
#hrh-coverage {
  padding-top: 1.75rem !important; /* 28px; was 5rem / 80px */
}
@media (min-width: 768px) {
  #hrh-coverage.hrh-coverage,
  #hrh-coverage {
    padding-top: 2.25rem !important; /* 36px; was 6.5rem / 104px */
  }
}
