/* Hi-Res Homes broker strip
   Matches the "Optimized for Airbnb, VRBO, and Booking.com" TrustStrip chrome:
   sage background, line borders, Figtree eyebrow, py-10 / md:py-8 padding.
   Mount this ONLY on the Realtors homepage view. */

.hrh-broker-strip {
  --hrh-sage: #eef2f9;
  --hrh-line: #e4e0d6;
  --hrh-tide: #234786;
  --hrh-ink: #2b2b2b;
  border-top: 1px solid var(--hrh-line);
  border-bottom: 1px solid var(--hrh-line);
  background: var(--hrh-sage);
  color: var(--hrh-ink);
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
  overflow: hidden;
}

.hrh-broker-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 2.5rem 0 2.5rem; /* py-10 — same as TrustStrip on small screens */
}

@media (min-width: 768px) {
  .hrh-broker-strip__inner {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1.25rem; /* py-8 px-5 — same as TrustStrip on md+ */
    max-width: 72rem; /* max-w-6xl */
    margin: 0 auto;
  }
}

.hrh-broker-strip__eyebrow {
  margin: 0;
  padding: 0 1.25rem;
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hrh-tide) 70%, transparent);
  text-align: center;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .hrh-broker-strip__eyebrow {
    padding: 0;
    text-align: left;
  }
}

.hrh-broker-strip__viewport {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}

.hrh-broker-strip__track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  margin: 0;
  padding: 0 1.5rem;
  list-style: none;
  animation: hrh-broker-ltr 50s linear infinite;
  will-change: transform;
}

.hrh-broker-strip__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.hrh-broker-strip__item img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: center;
}

/* Move left → right: start with the first (original) set off-canvas to the left. */
@keyframes hrh-broker-ltr {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.hrh-broker-strip:hover .hrh-broker-strip__track,
.hrh-broker-strip:focus-within .hrh-broker-strip__track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .hrh-broker-strip__track {
    animation: none;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    gap: 1.75rem 2.5rem;
    padding: 0 1.25rem;
  }
  .hrh-broker-strip__viewport {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }
  /* JS hides the duplicate set when reduced motion is on. */
  .hrh-broker-strip__track [data-clone="1"] {
    display: none;
  }
}

/* Dark theme: match TrustStrip .bg-sage / line / tide eyebrow on the dark page. */
html[data-theme="dark"] .hrh-broker-strip {
  --hrh-sage: #1a2333;
  --hrh-line: #3a4254;
  --hrh-tide: #9eb6e0;
  --hrh-ink: #f4f1ea;
  color: var(--hrh-ink);
}
