/* Hi-Res Homes — weekly featured home, overlaid on the Realtors hero
   (bottom-right glass card, after the TP Builders featured-home button). */
.hrh-fh {
  position: absolute;
  right: clamp(16px, 2.2vw, 32px);
  /* Sit above the fixed "Chat with us" launcher (right-4 bottom-4, 48px face). */
  bottom: 88px;
  z-index: 30;
  box-sizing: border-box;
  width: 360px;
  max-width: calc(100% - 32px);
  padding: 14px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  color: #fff;
  text-decoration: none;
  background: rgba(18, 22, 32, 0.48);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 40px -24px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.5s,
    background 0.35s ease,
    box-shadow 0.35s ease;
}
.hrh-fh.is-in {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.hrh-fh__media {
  width: 92px;
  height: 92px;
  border-radius: 18px;
  overflow: hidden;
  display: block;
  background: #1d2f55;
  flex-shrink: 0;
}
.hrh-fh__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hrh-fh__txt { min-width: 0; }
.hrh-fh__lbl {
  display: block;
  font: 600 10px/1.2 Figtree, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2c99a;
}
.hrh-fh__street {
  display: block;
  margin: 6px 0 4px;
  font: 500 17px/1.2 Figtree, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
}
.hrh-fh__meta {
  display: block;
  font: 500 12px/1.3 Figtree, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.01em;
  color: rgba(245, 245, 244, 0.74);
}
.hrh-fh__go {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  align-self: start;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}
.hrh-fh__go svg { width: 14px; height: 14px; }

@media (hover: hover) and (pointer: fine) {
  .hrh-fh.is-in:hover {
    transform: translateY(-4px);
    background: rgba(18, 22, 32, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 22px 44px -22px rgba(0, 0, 0, 0.62);
  }
  .hrh-fh.is-in:hover .hrh-fh__media img { transform: scale(1.06); }
  .hrh-fh.is-in:hover .hrh-fh__go { transform: translate(2px, -2px); color: #fff; }
}
.hrh-fh:focus-visible {
  outline: 3px solid #e2c99a;
  outline-offset: 3px;
}

/* Compact chip on small screens: full-width at the bottom, not over the headline. */
@media (max-width: 767px) {
  .hrh-fh {
    left: 12px;
    /* Leave a slot for the 48px chat circle at right-4 / bottom-4. */
    right: 76px;
    bottom: 16px;
    width: auto;
    max-width: none;
    padding: 10px;
    border-radius: 22px;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .hrh-fh__media { width: 56px; height: 56px; border-radius: 12px; }
  .hrh-fh__lbl { font-size: 9px; letter-spacing: 0.12em; }
  .hrh-fh__street { margin: 3px 0 2px; font-size: 14px; }
  .hrh-fh__meta { font-size: 10px; }
  /* Lift the late-scroll CTA copy so it sits above the chip. */
  #top[data-hrh-audience="realtors"] [class*="z-20"] > div {
    padding-bottom: 6.25rem;
  }
}

html[data-theme="dark"] .hrh-fh {
  background: rgba(18, 24, 33, 0.62);
  border-color: rgba(255, 255, 255, 0.16);
}
html[data-theme="dark"] .hrh-fh.is-in:hover {
  background: rgba(18, 24, 33, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .hrh-fh,
  .hrh-fh__media img,
  .hrh-fh__go {
    transition: none !important;
  }
  .hrh-fh.is-in,
  .hrh-fh.is-in:hover {
    transform: none !important;
  }
  .hrh-fh.is-in:hover .hrh-fh__media img,
  .hrh-fh.is-in:hover .hrh-fh__go {
    transform: none !important;
  }
}
