/* Conversion — hero cover, trust, lead capture, floating CTAs */

.site-zillow .hero-cover {
  position: relative;
  min-height: clamp(420px, 52vh, 560px);
  padding: 0;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-cover__bg {
  position: absolute;
  inset: 0;
  background: #0a1520 center / cover no-repeat url('/images/hero/cover.jpg'), url('/images/hero/hero-home.jpg');
}
.hero-cover__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(7, 21, 38, 0.92) 0%,
    rgba(7, 21, 38, 0.78) 42%,
    rgba(7, 21, 38, 0.35) 68%,
    rgba(7, 21, 38, 0.15) 100%
  );
}
.hero-cover__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1rem 1.5rem;
}
.hero-cover__kw {
  display: block;
  width: 100px;
  height: auto;
  margin-bottom: 0.65rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.hero-cover h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.12;
  max-width: 16ch;
}
.hero-cover h1 em {
  font-style: normal;
  color: var(--gold-bright, #d4af37);
}
.hero-cover .hero-lead {
  margin: 0 0 0.75rem;
  max-width: 34rem;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}
.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.85rem;
  max-width: 40rem;
}
.hero-trust-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
}
.hero-cover .hero-search-bar {
  margin-bottom: 0.5rem;
}
.hero-cta-row--cover .btn-outline-navy {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.hero-cta-row--cover .btn-outline-navy:hover {
  background: rgba(255, 255, 255, 0.12);
}
.hero-response {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.popular-searches {
  padding: 0.65rem 0 0;
  background: var(--zillow-bg, #f7f8fa);
  border-bottom: 1px solid var(--zillow-border, #e2e6ea);
}
.popular-searches__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}
.popular-searches__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  margin-right: 0.25rem;
}
.popular-chip {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--zillow-border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.popular-chip:hover {
  border-color: var(--navy);
  background: rgba(7, 21, 38, 0.04);
}

.search-suggest-wrap {
  position: relative;
  min-width: 0;
  flex: 1 1 0%;
  max-width: 100%;
}
.search-suggest-wrap input {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  text-overflow: clip;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.search-suggest-list {
  position: absolute;
  z-index: 200;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--zillow-border, #d1d5db);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(7, 21, 38, 0.14);
  max-height: min(280px, 50vh);
  overflow-y: auto;
}
.search-suggest-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.search-suggest-item:hover,
.search-suggest-item:focus {
  background: #eef4ff;
}
.search-suggest-type {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #5c6b7a);
}
.search-suggest-label {
  font-size: 0.82rem;
  color: var(--navy, #071526);
  line-height: 1.3;
}
.homes-empty--pro {
  padding: 1rem 0.5rem 1.25rem;
  text-align: center;
}
.homes-empty--pro p {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.homes-empty-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.75rem 0;
}
.homes-empty-mls {
  font-size: 0.8rem;
}

.trust-grid--conversion .trust-card h3 {
  font-size: 0.95rem;
}
.trust-card--highlight {
  border-color: var(--gold, #c9a227);
  background: linear-gradient(180deg, #fffef8 0%, #fff 100%);
}
.trust-response {
  text-align: center;
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.lead-capture-band {
  padding: 2rem 0;
  background: linear-gradient(180deg, #f3f5f8 0%, #fff 100%);
  border-top: 1px solid var(--zillow-border);
}

/* New listing alerts — two-column promo (replaces oversized simple band) */
.lead-capture-band--promo {
  padding: 2.25rem 0 2.75rem;
  background: linear-gradient(135deg, #071526 0%, #0f2847 52%, #163a5f 100%);
  border-top: none;
  color: #fff;
}
.listing-alerts-promo {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 480px);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  max-width: 1040px;
  margin: 0 auto;
}
.listing-alerts-promo__form {
  min-width: 0;
  width: 100%;
}
.listing-alerts-promo__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.listing-alerts-promo__copy h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.listing-alerts-promo__lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 28rem;
}
.listing-alerts-promo__benefits {
  margin: 0;
  padding: 0;
  list-style: none;
}
.listing-alerts-promo__benefits li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.35rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
}
.listing-alerts-promo__benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold, #c9a227);
  font-weight: 700;
}
.home-lead-form--promo {
  margin: 0;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  height: auto;
  min-height: 0;
  max-height: none;
  width: 100%;
  box-sizing: border-box;
}
.home-lead-form--promo .home-lead-form__title,
.home-lead-form--promo .home-lead-form__hint,
.home-lead-form--promo .lead-step-hint,
.home-lead-form--promo .contact-or {
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  width: 100%;
  max-width: 100%;
}
.home-lead-form--promo .home-lead-form__title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
.home-lead-form--promo .home-lead-form__hint {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.home-lead-form--promo input,
.home-lead-form--promo select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  padding: 0.62rem 0.75rem;
}
.home-lead-form--promo .consent--compact {
  overflow-wrap: break-word;
  word-break: normal;
}
.home-lead-form--promo .lead-step-hint {
  font-size: 0.76rem;
  margin-bottom: 0.45rem;
}
.home-lead-form--promo .btn-gold {
  font-weight: 600;
}
.home-lead-form--promo .form-success {
  font-size: 0.85rem;
  color: #0d6b3a;
  margin-top: 0.5rem;
}
.lead-capture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.lead-capture-copy h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  color: var(--navy);
}
.lead-capture-copy p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.lead-offer-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.lead-offer-list li {
  font-size: 0.88rem;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--navy);
}
.lead-offer-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-dark, #9a7b1a);
  font-weight: 700;
}
.lead-offer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.lead-offer-btns .btn {
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
}

.home-lead-form {
  background: #fff;
  border: 1px solid var(--zillow-border);
  border-radius: 12px;
  padding: 1.1rem;
  box-shadow: 0 8px 28px rgba(7, 21, 38, 0.08);
}
.home-lead-form h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy);
}
.home-lead-form .form-hint {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.home-lead-form input,
.home-lead-form select {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--zillow-border);
  border-radius: 8px;
}
.home-lead-form .contact-or {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  margin: -0.15rem 0 0.35rem;
}
.mortgage-widget {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--zillow-border);
}
.mortgage-widget summary {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.mortgage-widget summary::-webkit-details-marker {
  display: none;
}
.mortgage-widget__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.mortgage-widget__fields label {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.15rem;
}
.mortgage-widget__fields input {
  margin-bottom: 0;
}
.mortgage-result {
  margin: 0.65rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.mortgage-disclaimer {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

/* Sticky expert CTA — always visible on mobile + desktop */
body.has-expert-cta {
  padding-bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
}
.expert-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.65rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--zillow-border, #e2e6ea);
  box-shadow: 0 -6px 28px rgba(7, 21, 38, 0.14);
}
.expert-cta-bar__primary {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: clamp(0.82rem, 2.8vw, 0.95rem);
  font-weight: 700;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.expert-cta-bar__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--gold, #c9a24d), var(--gold-bright, #d4af37));
  color: var(--navy, #071526);
  text-decoration: none;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(201, 162, 77, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.expert-cta-bar__icon svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}
.expert-cta-bar__icon:hover,
.expert-cta-bar__icon:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(201, 162, 77, 0.45);
  filter: brightness(1.05);
  color: var(--navy, #071526);
}
.expert-cta-bar__icon:active {
  transform: translateY(0);
}
.header-cta--mobile {
  display: none;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-nav-cta {
  display: none;
  width: 100%;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}
.site-premium .header-nav.is-open .header-nav-cta {
  display: block;
}
body.lead-modal-open .expert-cta-bar {
  display: none;
}
body.modal-open.has-expert-cta {
  padding-bottom: 0;
}

/* Listing modal sticky — compact mobile bar */
.site-premium .listing-sticky-cta {
  display: none;
}
@media (max-width: 768px) {
  .site-premium .listing-modal.is-open .listing-sticky-cta,
  .site-premium .listing-modal:not([hidden]) ~ .listing-sticky-cta {
    display: none;
  }
  .listing-modal-dialog--detail .listing-interest-form .btn-block {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }
  .site-premium .listing-modal-dialog--detail {
    padding-bottom: env(safe-area-inset-bottom);
  }
  .site-zillow .header-cta.header-cta--mobile {
    display: inline-flex !important;
    align-items: center;
  }
  .site-zillow .header-phone-link {
    display: none;
  }
  .expert-cta-bar__primary {
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
  .hero-cover {
    min-height: auto;
    align-items: stretch;
  }
  .hero-cover__inner {
    padding: 1rem 0.85rem 1.1rem;
  }
  .hero-cover h1 {
    max-width: none;
    font-size: 1.45rem;
  }
  .lead-capture-grid {
    grid-template-columns: 1fr;
  }
  .listing-alerts-promo {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .listing-alerts-promo__copy {
    text-align: center;
  }
  .listing-alerts-promo__lead {
    margin-left: auto;
    margin-right: auto;
  }
  .listing-alerts-promo__benefits {
    text-align: left;
    max-width: 18rem;
    margin: 0 auto;
  }
  .header-cta--desktop {
    display: none;
  }
}

@media (min-width: 769px) {
  .expert-cta-bar {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 2rem));
    border-radius: 14px 14px 0 0;
    border: 1px solid var(--zillow-border, #e2e6ea);
    border-bottom: none;
  }
  .expert-cta-bar__primary {
    font-size: 1rem;
  }
}

/* Hide oversized modal sticky on all viewports — use in-form CTA */
#modal-sticky-cta {
  display: none !important;
}

.reviews-live-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}
.home-lead-form .form-success {
  color: #1a6b3a;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.lead-modal-form .contact-or {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  margin: -0.1rem 0 0.35rem;
}
