/* Match the first desktop screen beneath the actual navigation height. */
body[data-site=brokerage] .sister-hero.realty-video-hero {
  aspect-ratio: auto;
  min-height: 480px;
  height: calc(100svh - var(--realty-header-height, 125px));
  padding: 48px 0;
  align-items: center;
  background: #123a32;
}
.realty-video-hero > .realty-home-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Favor the lower frame without locking the crop to the bottom edge. */
  object-position: 50% 68%;
  pointer-events: none;
}
body[data-site=brokerage] .sister-hero.realty-video-hero:after {
  background: linear-gradient(90deg, rgba(7,32,27,.36), rgba(7,32,27,.18) 58%, rgba(7,32,27,.04));
}
.realty-video-toggle {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 0;
  cursor: pointer;
  backdrop-filter: none;
  box-shadow: none;
  opacity: .9;
}
.realty-video-toggle::before { content: ""; display: block; width: 10px; height: 14px; margin: auto; border-left: 3px solid currentColor; border-right: 3px solid currentColor; filter: drop-shadow(0 1px 3px rgba(0,0,0,.65)); }
.realty-video-toggle[data-playing="false"]::before { width: 0; height: 0; border: 7px solid transparent; border-left: 11px solid currentColor; border-right: 0; transform: translateX(2px); }
.realty-video-toggle:hover { background: transparent; color: #fff; opacity: 1; }
.realty-video-toggle:focus-visible { background: transparent; color: #fff; opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
.realty-video-toggle[hidden] { display: none; }

/* Give the mobile skyline more room with a compact headline panel below. */
@media (max-width: 900px) {
  body[data-site=brokerage] .sister-hero.realty-video-hero,
  html:not([data-view=full]) .app-visual-hero.realty-video-hero {
    --realty-video-height: clamp(240px, 62vw, 360px);
    display: block;
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    padding: var(--realty-video-height) 0 0;
    background: #123a32;
  }
  .realty-video-hero > .realty-home-video {
    bottom: auto;
    height: var(--realty-video-height);
    aspect-ratio: auto;
  }
  body[data-site=brokerage] .sister-hero.realty-video-hero:after { display: none; }
  body[data-site=brokerage] .sister-hero.realty-video-hero > .wrap {
    padding: 20px 24px 24px;
  }
  html:not([data-view=full]) .realty-video-hero .app-hero-shade { display: none; }
  html:not([data-view=full]) .realty-video-hero .app-hero-content { padding: 16px 22px 10px; }
  html:not([data-view=full]) .realty-video-hero .app-hero-content h1 { margin-top: 0; }
  html:not([data-view=full]) .realty-video-hero .app-hero-badge {
    position: static;
    display: inline-block;
    margin: 0 22px 16px;
  }
  .realty-video-hero .realty-video-toggle { right: 16px; top: 16px; }
}

/* Keep the footage bright while giving hero copy extra definition. */
body[data-site=brokerage] .sister-hero.realty-video-hero .hero-copy { text-shadow: 0 2px 10px rgba(0,0,0,.54); }
body[data-site=brokerage] .sister-hero.realty-video-hero h1 { font-weight: 600; }
body[data-site=brokerage] .sister-hero.realty-video-hero .hero-copy>p { font-weight: 600; }

/* Brokerage mobile homepage: video first, slim title bar, compact actions. */
@media (max-width: 700px) {
  html:not([data-view=full]) body[data-site=brokerage] .app-home .realty-video-hero {
    --realty-video-height: clamp(300px, 82vw, 440px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    align-items: center;
    padding: var(--realty-video-height) 18px 0;
  }
  html:not([data-view=full]) .app-home .realty-video-hero .app-hero-content { padding: 14px 0; }
  html:not([data-view=full]) .app-home .realty-video-hero .app-hero-content h1 {
    font-size: clamp(25px, 6.6vw, 29px);
    line-height: 1.08;
    letter-spacing: -.025em;
    margin: 0;
  }
  html:not([data-view=full]) .app-home .realty-video-hero .app-hero-badge {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ead9b5;
    text-align: right;
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: .04em;
  }
  html:not([data-view=full]) .app-home .realty-video-hero .app-hero-badge strong {
    color: #fffdf6;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .06em;
  }
  html:not([data-view=full]) body[data-site=brokerage] .app-home .app-quick-actions {
    margin: 12px 12px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }
  html:not([data-view=full]) body[data-site=brokerage] .app-home .app-action-grid { gap: 10px; }
  html:not([data-view=full]) body[data-site=brokerage] .app-home .app-action-tile {
    min-height: 90px;
    padding: 12px 14px;
    gap: 6px;
    border-radius: 12px;
  }
  html:not([data-view=full]) body[data-site=brokerage] .app-home .app-illustration { width: 38px; height: 38px; }
  html:not([data-view=full]) body[data-site=brokerage] .app-home .app-illustration::before { width: 32px; height: 32px; }
  html:not([data-view=full]) body[data-site=brokerage] .app-home .app-illustration>.app-icon { width: 36px; height: 36px; }
  html:not([data-view=full]) body[data-site=brokerage] .app-home .app-action-tile strong { font-size: 13px; line-height: 1.2; }
  html:not([data-view=full]) body[data-site=brokerage] .app-home .app-tile-arrow { top: 12px; right: 12px; }
  html:not([data-view=full]) body[data-site=brokerage] .app-home .app-tile-arrow .app-icon { width: 12px; height: 12px; }
}
