/**
 * SWMO marketplace — a calm, photo-first home search with an original
 * evergreen and warm-brass identity.
 */
:root {
  --market-blue: #245b4b;
  --market-blue-dark: #183f35;
  --market-accent: #b38a46;
  --market-accent-dark: #8d6b32;
  --market-ink: #18231f;
  --market-muted: #5d6b65;
  --market-line: #dce4df;
  --market-canvas: #f5f7f5;
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.most-viewed-home-button-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.1rem;
}

.most-viewed-home-button {
  min-width: 220px;
  color: #fff;
  background: var(--market-blue);
  border: 1px solid var(--market-blue);
  box-shadow: 0 8px 20px rgba(36, 91, 75, 0.2);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.most-viewed-home-button:hover,
.most-viewed-home-button:focus-visible {
  color: #fff;
  background: var(--market-blue-dark);
  border-color: var(--market-blue-dark);
  box-shadow: 0 10px 24px rgba(24, 63, 53, 0.24);
  transform: translateY(-1px);
}

.most-viewed-homes {
  border-top: 1px solid #e3e8ef;
}

.most-viewed-homes__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
}

.most-viewed-homes__head h2 {
  margin: 0;
}

.most-viewed-homes__eyebrow {
  margin: 0 0 0.25rem;
  color: var(--market-blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.most-viewed-card-counts {
  margin: 0;
  padding: 0.6rem 0.8rem 0.75rem;
  color: #536171;
  font-size: 0.78rem;
  font-weight: 700;
  border-top: 1px solid #edf0f4;
}

.listing-engagement-counts {
  margin: 0.45rem 0 0;
  color: #536171;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .most-viewed-homes__head {
    align-items: flex-start;
  }

  .most-viewed-homes__head .btn {
    white-space: nowrap;
  }
}

.site-zillow .site-header.is-solid {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--market-line) !important;
  box-shadow: 0 1px 4px rgba(17, 24, 39, 0.08) !important;
  backdrop-filter: blur(14px) !important;
}

.site-zillow .site-header .logo,
.site-zillow .site-header .logo span {
  color: var(--market-blue) !important;
}

.site-zillow .header-nav a,
.site-zillow .header-nav-link-btn,
.site-zillow .header-phone-link {
  color: var(--market-ink) !important;
  font-weight: 650 !important;
}

.site-zillow .header-nav a:hover,
.site-zillow .header-nav-link-btn:hover {
  color: var(--market-blue) !important;
}

.site-zillow .btn-gold,
.site-zillow .hero-search-submit-btn,
.site-zillow .header-nav-cta {
  background: var(--market-blue) !important;
  border-color: var(--market-blue) !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(36, 91, 75, 0.2) !important;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease !important;
}

.site-zillow .btn-gold:hover,
.site-zillow .hero-search-submit-btn:hover,
.site-zillow .header-nav-cta:hover {
  background: var(--market-blue-dark) !important;
  border-color: var(--market-blue-dark) !important;
  box-shadow: 0 9px 22px rgba(24, 63, 53, 0.24) !important;
  transform: translateY(-1px) !important;
}

.site-zillow .hero-cover--luxury {
  min-height: clamp(500px, 70vh, 690px) !important;
}

.site-zillow .hero-cover__overlay--centered {
  background: linear-gradient(90deg, rgba(17, 42, 34, 0.78), rgba(17, 42, 34, 0.43)) !important;
}

.site-zillow .hero-cover__content--minimal {
  max-width: 920px !important;
}

.site-zillow .hero-search-kicker {
  color: #fff !important;
  font-size: 0.86rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.site-zillow .hero-search-bar.hero-search-bar--simple .hero-search-simple,
.site-zillow .hero-search-bar.hero-search-bar--compact .hero-search-simple {
  border: 1px solid rgba(255, 255, 255, 0.86) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 32px rgba(7, 21, 38, 0.28) !important;
}

.site-zillow .hero-search-bar.hero-search-bar--simple .hero-search-simple input:focus {
  box-shadow: inset 0 0 0 2px var(--market-blue) !important;
  border-radius: 5px !important;
}

.site-zillow .hero-search-filters-row--quick select {
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  background: rgba(7, 21, 38, 0.72) !important;
  color: #fff !important;
}

.site-zillow .category-band.category-band--hero-overlap {
  border-bottom-color: var(--market-line) !important;
}

.site-zillow .category-card {
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.12) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

.site-zillow .category-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.16) !important;
  border-color: rgba(36, 91, 75, 0.35) !important;
}

.site-zillow .homepage-preview-band,
.site-zillow .homepage-preview-band--dark {
  background: var(--market-canvas) !important;
  color: var(--market-ink) !important;
  border-top: 1px solid var(--market-line) !important;
  border-bottom: 1px solid var(--market-line) !important;
}

.site-zillow .homepage-preview-band h2,
.site-zillow .homepage-preview-status {
  color: var(--market-ink) !important;
}

.site-zillow .homepage-preview-status {
  font-weight: 500 !important;
}

.site-zillow .homepage-preview-grid .premium-card,
.site-zillow .homes-list--zillow .premium-card {
  background: #fff !important;
  border: 1px solid var(--market-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.1) !important;
  overflow: hidden !important;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease !important;
}

.site-zillow .homepage-preview-grid .premium-card:hover,
.site-zillow .homes-list--zillow .premium-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 7px 20px rgba(17, 24, 39, 0.16) !important;
  border-color: rgba(36, 91, 75, 0.34) !important;
}

.site-zillow .homepage-preview-grid .premium-card img,
.site-zillow .homes-list--zillow .premium-card img {
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1) !important;
}

.site-zillow .homepage-preview-grid .premium-card:hover img,
.site-zillow .homes-list--zillow .premium-card:hover img {
  transform: scale(1.018) !important;
}

.site-zillow .homepage-preview-price,
.site-zillow .zillow-card-price,
.site-zillow .premium-card-price {
  color: var(--market-ink) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

.site-zillow .listing-card-btn--primary {
  background: var(--market-blue) !important;
  border-color: var(--market-blue) !important;
  color: #fff !important;
  transition: background-color 150ms ease, transform 150ms ease !important;
}

.site-zillow .listing-card-btn--outline,
.site-zillow .btn-outline-navy {
  border-color: var(--market-blue) !important;
  color: var(--market-blue) !important;
  background: #fff !important;
}

.site-zillow .listing-card-save {
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--market-blue) !important;
  box-shadow: 0 1px 5px rgba(17, 24, 39, 0.22) !important;
}

.site-zillow :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(179, 138, 70, 0.55) !important;
  outline-offset: 3px !important;
}

.site-zillow :is(.listing-modal-dialog, .listing-detail-scroll) {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.site-zillow .listing-modal-dialog {
  box-shadow: 0 24px 70px rgba(13, 31, 25, 0.28) !important;
}

.site-zillow .listing-share-btn,
.site-zillow .lp-status {
  border-color: rgba(36, 91, 75, 0.35) !important;
}

.site-zillow .listing-share-btn {
  color: var(--market-blue) !important;
  background: #fff !important;
  font-weight: 750 !important;
}

.site-zillow .listing-share-btn:hover,
.site-zillow .listing-share-btn:focus-visible {
  color: #fff !important;
  background: var(--market-blue) !important;
}

@media (max-width: 768px) {
  body.site-zillow.listing-modal-open #listing-modal .lp-mobile-share.listing-share-btn {
    color: var(--market-blue) !important;
    background: #eef5f1 !important;
    border: 1px solid rgba(36, 91, 75, 0.38) !important;
    min-width: 70px !important;
  }

  body.site-zillow.listing-modal-open #listing-modal .lp-mobile-share.listing-share-btn:hover,
  body.site-zillow.listing-modal-open #listing-modal .lp-mobile-share.listing-share-btn:focus-visible {
    color: #fff !important;
    background: var(--market-blue) !important;
  }
}

.site-zillow .expert-cta-bar__primary {
  background: var(--market-blue) !important;
  border-color: var(--market-blue) !important;
}

@media (min-width: 720px) {
  .site-zillow .hero-search-bar.hero-search-bar--simple .hero-search-simple,
  .site-zillow .hero-search-bar.hero-search-bar--compact .hero-search-simple {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 0.35rem !important;
  }

  .site-zillow .hero-search-bar.hero-search-bar--simple .hero-search-actions,
  .site-zillow .hero-search-bar.hero-search-bar--compact .hero-search-actions {
    flex: 0 0 auto !important;
    width: auto !important;
  }

  .site-zillow .hero-search-bar.hero-search-bar--simple .hero-search-submit-btn,
  .site-zillow .hero-search-bar.hero-search-bar--compact .hero-search-submit-btn {
    width: auto !important;
    min-width: 150px !important;
    border-radius: 6px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-zillow *,
  .site-zillow *::before,
  .site-zillow *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 719px) {
  .site-zillow .site-header,
  .site-zillow .site-header.is-solid {
    height: 56px !important;
  }

  .site-zillow .header-wrap {
    height: 56px !important;
    padding-inline: 12px !important;
  }

  .site-zillow .nav-toggle {
    border: 1px solid var(--market-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .site-zillow .hero-cover--luxury {
    min-height: 620px !important;
    padding-top: 56px !important;
  }

  .site-zillow .hero-cover__content--minimal h1 {
    font-size: clamp(2rem, 9vw, 2.65rem) !important;
    line-height: 1.06 !important;
  }

  .site-zillow .hero-search-bar.hero-search-bar--simple .hero-search-simple {
    padding: 0.35rem !important;
  }

  .site-zillow .category-band#browse-categories .category-grid.category-grid--browse-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .site-zillow .category-band#browse-categories #browse-categories-grid > .category-card {
    height: 168px !important;
    max-height: 168px !important;
  }

  .site-zillow .category-band#browse-categories #browse-categories-grid > .category-card--estimate {
    height: auto !important;
    max-height: none !important;
  }

  .site-zillow .homepage-preview-band__head {
    align-items: flex-start !important;
  }

  .site-zillow .expert-dock,
  .site-zillow .sticky-expert-cta {
    background: #fff !important;
    border-color: var(--market-line) !important;
    color: var(--market-ink) !important;
  }
}
