/* Mobile-first speed: transitions, homepage preview, lazy image shimmer */

.swmo-page-transition {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(7, 21, 38, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.swmo-page-transition.is-active {
  opacity: 1;
  pointer-events: auto;
}

.swmo-page-transition__card {
  width: min(100%, 22rem);
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(160deg, #071526 0%, #0f2844 55%, #1a3a5c 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.swmo-page-transition__house-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  min-height: 3.5rem;
}

.swmo-page-transition__house-icon {
  width: 3.25rem;
  height: 3.25rem;
  color: #f5c542;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  animation: swmo-house-bob 1.4s ease-in-out infinite;
}

.swmo-page-transition__spinner {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.85rem;
  border: 3px solid rgba(184, 146, 63, 0.25);
  border-top-color: #b8923f;
  border-radius: 50%;
  animation: swmo-spin 0.75s linear infinite;
}

.swmo-page-transition__title {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.swmo-page-transition__sub {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

@keyframes swmo-house-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Hero search — house loader while MLS search runs */
.hero-search-bar {
  position: relative;
}

.hero-search-bar.is-searching .hero-search-simple {
  opacity: 0.45;
  pointer-events: none;
}

.hero-search-bar.is-searching .hero-search-filters-row {
  opacity: 0.55;
  pointer-events: none;
}

.hero-search-loader {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(
    160deg,
    rgba(7, 21, 38, 0.92) 0%,
    rgba(15, 40, 68, 0.94) 100%
  );
  box-shadow: 0 12px 36px rgba(7, 21, 38, 0.28);
  text-align: center;
  pointer-events: none;
}

.hero-search-loader__icon {
  width: 2.75rem;
  height: 2.75rem;
  color: #f5c542;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
  animation: swmo-house-bob 1.4s ease-in-out infinite;
}

.hero-search-loader__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-search-loader__sub {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
  max-width: 16rem;
}

.premium-card--skeleton .swmo-house-loader--featured {
  min-height: 9rem;
  background: linear-gradient(145deg, #e8ecf1 0%, #dfe5ec 100%);
}

.premium-card--skeleton .swmo-house-loader--featured .swmo-house-loader__icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--kw-navy, #1a365d);
  opacity: 0.7;
  animation: swmo-house-bob 1.4s ease-in-out infinite;
}

.homes-loading-panel .swmo-house-loader--panel .swmo-house-loader__icon {
  width: 3rem;
  height: 3rem;
  color: #f5c542;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

body.swmo-transition-active {
  overflow: hidden;
}

@keyframes swmo-spin {
  to {
    transform: rotate(360deg);
  }
}

/* “Why work with Brandon” — closing band at bottom of homepage (before footer) */
.homepage-brandon-strip {
  padding: clamp(1.25rem, 3vw, 1.75rem) 0 clamp(1.5rem, 3.5vw, 2rem);
  background: #f3f5f8;
  border-top: 1px solid rgba(7, 21, 38, 0.06);
}

.homepage-brandon-strip .section-inner {
  max-width: min(920px, 100%);
  margin: 0 auto;
}

.homepage-brandon-strip__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.35rem) clamp(1.15rem, 3vw, 1.5rem);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(7, 21, 38, 0.04),
    0 12px 32px rgba(7, 21, 38, 0.08);
}

.homepage-brandon-strip__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e8c547;
  flex-shrink: 0;
}

.homepage-brandon-strip__body {
  min-width: 0;
}

.homepage-brandon-strip h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #071526;
}

.homepage-brandon-strip__lead {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4a5d73;
  max-width: 42rem;
}

.homepage-brandon-strip__areas {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #5a6d82;
  max-width: 42rem;
}

.homepage-brandon-strip__points {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.homepage-brandon-strip__points li {
  font-size: 0.8rem;
  font-weight: 600;
  color: #071526;
  padding: 0.28rem 0.55rem;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 999px;
}

.homepage-brandon-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .homepage-brandon-strip__card {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .homepage-brandon-strip__photo {
    width: 80px;
    height: 80px;
  }
}

/* Homepage uses compact strip at bottom — hide duplicate full trust band */
body.site-zillow:has(.homepage-brandon-strip) #trust {
  display: none;
}

/* Homepage live preview band — dark house backdrop (matches browse tiles) */
.homepage-preview-band--dark {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: linear-gradient(165deg, #0a1f35 0%, #071526 48%, #0d2842 100%);
  color: #fff;
  overflow: hidden;
}

.homepage-preview-band--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M24 6L8 22h4v16h24V22h4L24 6z' stroke='%23f5c542' stroke-width='1.5' stroke-linejoin='round' opacity='0.35'/%3E%3Ccircle cx='24' cy='4' r='2' fill='%23f5c542' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 88px 88px;
  opacity: 0.14;
  pointer-events: none;
}

.homepage-preview-band--dark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(380px, 72vw);
  height: min(380px, 72vw);
  transform: translate(-50%, -50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M24 6L8 22h4v16h24V22h4L24 6z' stroke='%23f5c542' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M20 30h8v8H20z' stroke='%23f5c542' stroke-width='1.5'/%3E%3Cpath d='M28 24h6v6h-6z' stroke='%23f5c542' stroke-width='1.25'/%3E%3Ccircle cx='24' cy='4' r='2.5' fill='%23f5c542'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.07;
  pointer-events: none;
}

.homepage-preview-band {
  padding: 2rem 0 2.5rem;
}

.homepage-preview-band .section-inner {
  max-width: min(1400px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.homepage-preview-band--dark .section-inner {
  position: relative;
  z-index: 1;
}

.homepage-preview-band__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.homepage-preview-band h2 {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.homepage-preview-band--dark h2 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.homepage-preview-status {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #4a5d73;
}

.homepage-preview-band--dark .homepage-preview-status {
  color: rgba(255, 255, 255, 0.88);
}

.homepage-preview-status.is-loading:not(:has(.homepage-preview-status__row)) {
  background: linear-gradient(90deg, #e8edf3 0%, #f5f7fa 45%, #e8edf3 90%);
  background-size: 200% 100%;
  animation: swmo-shimmer 1.2s ease-in-out infinite;
  border-radius: 6px;
  color: transparent;
  min-height: 1.1em;
  max-width: 20rem;
}

.homepage-preview-status__row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.homepage-preview-status__icon .swmo-house-loader__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #f5c542;
  animation: swmo-house-bob 1.4s ease-in-out infinite;
}

.homepage-preview-band--dark .homepage-preview-status.is-loading .homepage-preview-status__text {
  color: rgba(255, 255, 255, 0.92);
}

.homepage-preview-band--dark .homepage-preview-status.is-loading {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.06) 90%
  );
  background-size: 200% 100%;
}

.homepage-preview-band--dark .homepage-preview-more--top {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.homepage-preview-band--dark .homepage-preview-more--top:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.homepage-preview-band--dark .homes-page-btn {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(7, 21, 38, 0.35);
}

.homepage-preview-band--dark .homes-page-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.homepage-preview-band--dark .homes-page-info {
  color: rgba(255, 255, 255, 0.9);
}

/* Card photo loaders on dark band */
.homepage-preview-band--dark .premium-card--skeleton .listing-card-photo-wrap.is-placeholder,
.homepage-preview-band--dark .listing-card-photo-wrap.is-loading-photo,
.homepage-preview-band--dark .swmo-house-loader--featured {
  background: linear-gradient(
    180deg,
    rgba(7, 21, 38, 0.5) 0%,
    rgba(7, 21, 38, 0.82) 100%
  ) !important;
}

.homepage-preview-band--dark .listing-card-photo-loading,
.homepage-preview-band--dark .listing-card-photo-loading .swmo-house-loader__icon,
.homepage-preview-band--dark .premium-card--skeleton .swmo-house-loader__icon {
  color: #f5c542 !important;
  opacity: 1 !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

/* Homepage newest homes — 4 per row (2 rows × 4 = 8), compact tiles */
.homepage-preview-grid.homes-list--grid,
#homepage-preview-grid.homepage-preview-grid.homes-list--zillow {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.55rem !important;
  width: 100% !important;
  max-width: min(1180px, 98vw) !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
  flex: none !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  scroll-snap-type: none !important;
}

@media (min-width: 640px) {
  .homepage-preview-grid.homes-list--grid,
  #homepage-preview-grid.homepage-preview-grid.homes-list--zillow {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.6rem !important;
  }
}

.homepage-preview-grid.homes-list--grid .premium-card--rich:not(.premium-card--homepage-preview),
.homepage-preview-grid.homes-list--grid .premium-card--overlay-list:not(.premium-card--homepage-preview) {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 140px !important;
  border-radius: 9px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 12px rgba(7, 21, 38, 0.12) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.homepage-preview-grid.homes-list--grid .premium-card--rich:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(7, 21, 38, 0.18) !important;
}

.homepage-preview-grid.homes-list--grid .premium-card--homepage-preview .listing-card-photo-wrap,
.homepage-preview-grid.homes-list--grid .premium-card--homepage-preview .premium-card-photo-wrap {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  flex: none !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  aspect-ratio: unset !important;
  border-radius: 0 !important;
  background: #e8ecf0 !important;
  overflow: hidden !important;
}

.homepage-preview-grid.homes-list--grid .listing-card-photo-hit {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.homepage-preview-grid.homes-list--grid .premium-card--homepage-preview .listing-card-photo-img,
.homepage-preview-grid.homes-list--grid .premium-card--homepage-preview .homepage-preview-card-hit img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.homepage-preview-grid.homes-list--grid .premium-card:not(.premium-card--homepage-preview) .listing-card-photo-img,
.homepage-preview-grid.homes-list--grid .premium-card:not(.premium-card--homepage-preview) .listing-card-photo-hit img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.homepage-preview-pagination {
  margin-top: 1.1rem;
}

.homepage-preview-grid .premium-card--overlay-list .listing-card-photo-overlay {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2 !important;
  padding: 1.35rem 0.5rem 0.45rem !important;
  background: linear-gradient(
    180deg,
    rgba(7, 21, 38, 0) 0%,
    rgba(7, 21, 38, 0.55) 42%,
    rgba(7, 21, 38, 0.92) 100%
  ) !important;
  pointer-events: none !important;
}

.homepage-preview-grid .premium-card--overlay-list .listing-card-photo-overlay__price {
  margin: 0 !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.12 !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35) !important;
}

.homepage-preview-grid .premium-card--overlay-list .listing-card-photo-overlay__address {
  margin: 0.12rem 0 0 !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.94) !important;
  line-height: 1.2 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
}

/* Homepage preview — photo fills entire card (no white gap beside image) */
.homepage-preview-grid .premium-card--homepage-preview.premium-card--overlay-list,
.homepage-preview-grid .premium-card--homepage-preview.premium-card--rich {
  display: block !important;
  max-height: none !important;
  height: auto !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  border-radius: 10px !important;
}

.homepage-preview-grid .premium-card--homepage-preview .homepage-preview-card-hit {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  min-height: clamp(72px, 22vw, 120px) !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #e8ecf0 !important;
}

.homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 100% !important;
  aspect-ratio: unset !important;
}

.homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-overlay {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 10 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  opacity: 1 !important;
  visibility: visible !important;
  padding: 1.1rem 0.4rem 0.4rem !important;
  background: linear-gradient(
    180deg,
    rgba(7, 21, 38, 0) 0%,
    rgba(7, 21, 38, 0.62) 40%,
    rgba(7, 21, 38, 0.96) 100%
  ) !important;
  pointer-events: none !important;
}

.homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-overlay__price {
  font-size: 0.78rem !important;
}

.homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-overlay__address {
  font-size: 0.6rem !important;
  -webkit-line-clamp: 1;
}

.homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-wrap.is-loading-photo .listing-card-photo-overlay {
  opacity: 1 !important;
  visibility: visible !important;
}

.homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-img {
  z-index: 1 !important;
}

.homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-loading {
  z-index: 6 !important;
  display: flex !important;
}

.homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-overlay__price,
.homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-overlay__address {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: #fff !important;
}

@media (max-width: 768px) {
  .homepage-preview-grid.homes-list--grid .premium-card--homepage-preview {
    max-height: none !important;
  }

  .homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-overlay {
    padding: 2rem 0.5rem 0.5rem !important;
    min-height: 3.25rem !important;
  }

  .homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-overlay__price {
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55) !important;
  }

  .homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-overlay__address {
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5) !important;
  }

  .homepage-preview-grid .premium-card--homepage-preview .homepage-preview-tap-hint {
    margin: 0.2rem 0 0 !important;
    font-size: 0.62rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45) !important;
  }
}

.homepage-preview-grid .premium-card--overlay-list .listing-card-actions,
.homepage-preview-grid.homes-list--grid .listing-card-actions {
  flex-shrink: 0 !important;
  margin-top: auto !important;
  padding: 0.4rem 0.45rem 0.5rem !important;
  gap: 0.35rem !important;
  display: flex !important;
  flex-direction: column !important;
}

.homepage-preview-grid.homes-list--grid .listing-card-btn {
  width: 100% !important;
  min-height: 36px !important;
  padding: 0.4rem 0.5rem !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  border-radius: 8px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

@media (min-width: 769px) {
  /* Newest homes grid — photo must fill full tile (not top half) on desktop */
  .homepage-preview-grid.homes-list--zillow .premium-card--homepage-preview.premium-card--overlay-list,
  .homepage-preview-grid.homes-list--zillow .premium-card--homepage-preview.premium-card--rich {
    display: block !important;
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    overflow: hidden !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .homepage-preview-grid.homes-list--zillow .premium-card--homepage-preview .homepage-preview-card-hit,
  .homepage-preview-grid.homes-list--zillow .premium-card--homepage-preview a.zillow-card-photo-btn.premium-card-photo {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: clamp(88px, 9vw, 132px) !important;
    max-height: none !important;
    aspect-ratio: 4 / 3 !important;
    background: #e8ecf0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
  }

  .homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-overlay__price {
    font-size: 0.82rem !important;
  }

  .homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-overlay__address {
    font-size: 0.62rem !important;
    -webkit-line-clamp: 1;
  }

  .homepage-preview-grid.homes-list--zillow .premium-card--homepage-preview .listing-card-photo-wrap,
  .homepage-preview-grid.homes-list--zillow .premium-card--homepage-preview .zillow-card-photo-wrap {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    aspect-ratio: unset !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .homepage-preview-grid.homes-list--zillow .premium-card--homepage-preview .listing-card-photo-img,
  .homepage-preview-grid.homes-list--zillow .premium-card--homepage-preview .homepage-preview-card-hit img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center center !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .homepage-preview-grid.homes-list--zillow .premium-card--homepage-preview .listing-card-photo-loading {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .homepage-preview-grid .premium-card--homepage-preview .homepage-preview-tap-hint {
    display: none;
  }
}

.homepage-preview-grid.homes-list--grid .listing-card-btn--outline {
  border-width: 1.5px !important;
  box-shadow: none !important;
}

.homepage-preview-grid.homes-list--grid .listing-card-btn--primary {
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.25) !important;
}

.homepage-preview-grid .premium-card--skeleton {
  min-height: 0;
  max-height: 132px;
  width: 100%;
}

.homepage-preview-more-wrap {
  margin-top: 1.35rem;
  text-align: center;
}

.homepage-preview-view-all-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.75rem auto 0;
  font-size: 0.88rem;
  color: #4a5d73;
}

.homepage-preview-band--dark .homepage-preview-view-all-loading {
  color: rgba(255, 255, 255, 0.88);
}

.homepage-preview-view-all-loading .swmo-house-loader__icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.homepage-preview-more {
  min-width: min(100%, 20rem);
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
}

.homepage-preview-band__head .homepage-preview-more--top {
  display: none;
}

@media (min-width: 640px) {
  .homepage-preview-band__head .homepage-preview-more--top {
    display: inline-flex;
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem;
  }
}

/* Homepage listing cards — same photo framing as /homes overlay-list cards */
.homepage-preview-grid .premium-card--overlay-list .listing-card-photo-hit img,
.spotlight-home-card-slot .premium-card--overlay-list .listing-card-photo-hit img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.homepage-preview-grid .premium-card--homepage-preview .listing-card-photo-loading {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.hero-search-filters-row--quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@media (min-width: 520px) {
  .hero-search-filters-row--quick {
    grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  }
}

.hero-search-filters-row--quick .hero-filter-city {
  grid-column: 1 / -1;
}

@media (min-width: 520px) {
  .hero-search-filters-row--quick .hero-filter-city {
    grid-column: auto;
  }
}

/* Lazy listing images */
.listing-card-photo-img.is-lazy-pending {
  background: linear-gradient(110deg, #e6ebf1 8%, #f4f6f9 18%, #e6ebf1 33%);
  background-size: 200% 100%;
  animation: swmo-shimmer 1.1s ease-in-out infinite;
  object-fit: cover;
}

@keyframes swmo-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.homes-infinite-sentinel {
  height: 1px;
  width: 100%;
  pointer-events: none;
}

.homes-loading-panel__sub--mls::before {
  content: '';
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #2ecc71;
  vertical-align: 0.05em;
  animation: swmo-pulse-dot 1.4s ease-in-out infinite;
}

@keyframes swmo-pulse-dot {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .homes-pagination.is-infinite-mode {
    display: none;
  }
}

/* Mobile hamburger menu — always visible below 960px */
@media (max-width: 960px) {
  .site-premium .nav-toggle,
  .site-zillow .nav-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    margin-left: auto;
    border: 1.5px solid #071526 !important;
    border-radius: 8px;
    background: #fff !important;
    color: #071526 !important;
    cursor: pointer;
    z-index: 210;
  }

  .nav-toggle__bars {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 18px;
  }

  .nav-toggle__bars span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle.is-open .nav-toggle__bars span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-open .nav-toggle__bars span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open .nav-toggle__bars span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-zillow .header-wrap {
    position: relative;
  }

  .site-premium .header-nav,
  .site-zillow .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: #071526;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    gap: 0.15rem;
    z-index: 205;
    box-shadow: 0 12px 32px rgba(7, 21, 38, 0.28);
  }

  .site-premium .header-nav.is-open,
  .site-zillow .header-nav.is-open {
    display: flex !important;
  }

  .site-premium .header-nav.is-open a,
  .site-premium .header-nav.is-open .header-nav-link-btn,
  .site-zillow .header-nav.is-open a,
  .site-zillow .header-nav.is-open .header-nav-link-btn {
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 0.5rem !important;
    border-radius: 8px;
    text-align: left;
    width: 100%;
    background: transparent !important;
    border: none;
  }

  .site-premium .header-nav.is-open .header-nav-cta,
  .site-zillow .header-nav.is-open .header-nav-cta {
    display: block !important;
    width: 100%;
    margin-top: 0.35rem;
    text-align: center;
  }

  .site-zillow .header-kw-link,
  .site-zillow .header-cta.header-cta--mobile {
    display: none !important;
  }

  .site-zillow .header-phone-link {
    display: none;
  }
}

@media (min-width: 961px) {
  .nav-toggle {
    display: none !important;
  }
}
