/* WAI PROPERTY responsive sponsored slider v1.2.0.
   The Marketplace Engine still decides which published, approved, paid, location-eligible
   slides exist. This extension changes only layout and navigation. */
.wpm-premium-home .wpm-hero-stage {
  background:transparent!important;
  overflow:visible!important;
  min-width:0!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides {
  --wai-card-gap:14px;
  display:flex!important;
  position:relative;
  flex-flow:row nowrap!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  gap:var(--wai-card-gap)!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scroll-padding:0 2px;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x pan-y;
  padding:2px 2px 10px!important;
  margin:0!important;
  border-radius:0!important;
  isolation:isolate;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides::-webkit-scrollbar {display:none!important}
/* Core's display:grid!important made even hidden slides appear stacked; this rule
   intentionally displays all *eligible* posts already rendered by the server. */
.wpm-premium-home .wpm-hero-stage .wpm-slides > article.wpm-slide.wpm-sponsor-premium,
.wpm-premium-home .wpm-hero-stage .wpm-slides > article.wpm-slide.wpm-sponsor-premium[hidden] {
  box-sizing:border-box!important;
  display:flex!important;
  flex:0 0 calc((100% - var(--wai-card-gap))/2)!important;
  flex-direction:column!important;
  align-items:stretch!important;
  width:calc((100% - var(--wai-card-gap))/2)!important;
  max-width:calc((100% - var(--wai-card-gap))/2)!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  scroll-snap-align:start;
  border-radius:17px!important;
  overflow:hidden!important;
  background:#08263e!important;
  box-shadow:0 8px 24px rgba(4,28,44,.16)!important;
  border:1px solid rgba(255,255,255,.10);
  animation:none!important;
}
/* A lone eligible campaign uses the available space; no fabricated second ad. */
.wpm-premium-home .wpm-hero-stage .wpm-slides > article.wpm-slide.wpm-sponsor-premium:only-of-type {
  flex-basis:100%!important;
  width:100%!important;
  max-width:100%!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-media {
  box-sizing:border-box!important;
  display:block!important;
  flex:none!important;
  width:100%!important;
  height:170px!important;
  min-height:0!important;
  max-height:170px!important;
  background:linear-gradient(135deg,#113d58,#071e32)!important;
  overflow:hidden!important;
  position:relative!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-media .wpm-slide-bg {
  display:block!important;
  position:absolute!important;
  inset:0;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  z-index:0!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-premium .wpm-slide-inner {
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  padding:15px 16px 17px!important;
  margin:0!important;
  position:relative!important;
  z-index:4!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-meta {
  gap:4px!important;
  margin:0 0 9px!important;
  align-items:center!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-label {
  font-size:10px!important;
  padding:4px 8px!important;
  color:#16344a!important;
  background:#eff5f9!important;
  border-radius:999px!important;
  margin:0!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-premium .wpm-hero-eyebrow {
  display:none!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-premium h2 {
  font-size:clamp(17px,2vw,23px)!important;
  font-weight:750!important;
  line-height:1.23!important;
  letter-spacing:-.015em!important;
  margin:0 0 8px!important;
  overflow-wrap:break-word!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-premium h2 a {
  text-decoration:none!important;
  color:#fff!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-premium p {
  color:#d4e6ef!important;
  font-size:12px!important;
  line-height:1.48!important;
  display:-webkit-box!important;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden!important;
  margin:0 0 12px!important;
}
/* Never show raw phone outside the action buttons. The Call button remains clickable. */
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-phone {
  display:none!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-actions {
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:7px!important;
  align-content:end!important;
  margin-top:auto!important;
  padding:0!important;
  position:relative!important;
  z-index:6!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-actions a.wpm-sponsor-action {
  box-sizing:border-box!important;
  display:inline-flex!important;
  flex:none!important;
  justify-content:center!important;
  align-items:center!important;
  text-align:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:43px!important;
  padding:9px 6px!important;
  margin:0!important;
  border-radius:9px!important;
  font-size:12px!important;
  font-weight:750!important;
  line-height:1.15!important;
  text-decoration:none!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  box-shadow:none!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-actions a.wpm-sponsor-call {
  background:#f8fafc!important;
  color:#092941!important;
  border:1px solid #dae4eb!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-actions a.wpm-sponsor-wa {
  background:#168652!important;
  color:#fff!important;
  border:1px solid #168652!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-actions a.wpm-sponsor-store {
  grid-column:1/-1!important;
  background:#f28c13!important;
  color:#092941!important;
  border:1px solid #f28c13!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-carousel-controls {
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-card-link {
  z-index:2!important;
}
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-actions a:focus-visible,
.wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-premium h2 a:focus-visible {
  outline:2px solid #ffb34b!important;
  outline-offset:2px!important;
}
@media(max-width:767px){
  .wpm-premium-home .wpm-hero-stage .wpm-slides {--wai-card-gap:8px; padding-bottom:5px!important}
  .wpm-premium-home .wpm-hero-stage .wpm-slides > article.wpm-slide.wpm-sponsor-premium,
  .wpm-premium-home .wpm-hero-stage .wpm-slides > article.wpm-slide.wpm-sponsor-premium[hidden] {border-radius:13px!important}
  .wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-media {height:clamp(88px,25vw,126px)!important;max-height:126px!important}
  .wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-premium .wpm-slide-inner {padding:11px 9px 11px!important}
  .wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-label {font-size:9px!important;padding:3px 6px!important}
  .wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-premium h2 {font-size:clamp(13px,3.85vw,17px)!important;min-height:2.45em;line-height:1.21!important;margin:0 0 6px!important}
  .wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-premium p {font-size:clamp(10px,2.7vw,12px)!important;line-height:1.38!important;margin-bottom:10px!important}
  .wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-actions {gap:5px!important}
  .wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-actions a.wpm-sponsor-action {min-height:40px!important;padding:7px 2px!important;font-size:clamp(10px,2.7vw,12px)!important;border-radius:7px!important}
}
@media(prefers-reduced-motion:reduce){
  .wpm-premium-home .wpm-hero-stage .wpm-slides {scroll-behavior:auto!important}
}

/* Homepage order: intro Hero -> sponsored cards -> location search -> results.
   The original form is moved, not cloned, so location resolution continues to work. */
.wpm-premium-home[data-wai-sponsor-order="1"] > .wpm-first-location {
  display:block!important;
  grid-template-columns:minmax(0,1fr)!important;
}
.wpm-premium-home[data-wai-sponsor-order="1"] > .wpm-first-location > .wpm-first-location-copy {
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
.wpm-premium-home > .wpm-hero-stage {
  width:100%!important;
  max-width:100%!important;
  margin:14px 0!important;
  padding:0!important;
}
.wpm-premium-home > .wai-sponsor-location-search {
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  padding:0;
  margin:12px 0 18px;
}
.wpm-premium-home > .wai-sponsor-location-search > .wpm-first-location-form {
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.wpm-premium-home > .wai-sponsor-location-search .wpm-location-picker,
.wpm-premium-home > .wai-sponsor-location-search .wpm-location-control,
.wpm-premium-home > .wai-sponsor-location-search .wpm-field {
  box-sizing:border-box;
  max-width:100%;
  min-width:0;
}
@media(max-width:767px){
  .wpm-premium-home > .wpm-hero-stage {margin:9px 0!important}
  .wpm-premium-home > .wai-sponsor-location-search {margin:10px 0 15px}
  .wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-media {
    height:clamp(78px,22vw,105px)!important;
    max-height:105px!important;
  }
  .wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-premium .wpm-slide-inner {
    padding:9px 8px 10px!important;
  }
  .wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-premium h2 {
    font-size:clamp(12px,3.45vw,15px)!important;
    margin:0 0 5px!important;
  }
  .wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-premium p {
    font-size:10px!important;
    -webkit-line-clamp:2;
    margin:0 0 9px!important;
  }
  .wpm-premium-home .wpm-hero-stage .wpm-slides .wpm-sponsor-actions a.wpm-sponsor-action {
    min-height:36px!important;
    font-size:clamp(9px,2.5vw,11px)!important;
    padding:6px 3px!important;
  }
}


/* v1.5.2 — Unified native Astra header branding: PROPERTY and its parent label. */
#masthead .site-logo-img > a.wai-property-brandmark,
#masthead a.custom-logo-link.wai-property-brandmark {
  display:inline-flex!important;align-items:center!important;gap:7px!important;
  width:auto!important;max-width:100%!important;height:auto!important;min-height:44px!important;
  text-decoration:none!important;vertical-align:middle!important;opacity:1!important;visibility:visible!important;
}
#masthead .wai-property-brandmark .wai-property-house-mark{
  width:45px!important;height:42px!important;flex:0 0 45px!important;display:block!important;
}
#masthead .wai-property-brandmark .wai-property-brand-text{
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  flex:0 1 auto!important;min-width:0!important;line-height:1.1!important;
}
#masthead .wai-property-brandmark .wai-property-brand-text strong{
  display:block!important;color:#0B3153!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-weight:800!important;font-size:clamp(17px,2vw,23px)!important;letter-spacing:.015em!important;
  line-height:1.05!important;white-space:nowrap!important;
}
#masthead .wai-property-brandmark .wai-property-brand-text small{
  display:block!important;color:#425666!important;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:9px!important;font-weight:600!important;letter-spacing:0!important;line-height:1.2!important;
  margin-top:4px!important;white-space:nowrap!important;
}
@media(max-width:767px){
 #masthead #ast-mobile-header .site-logo-img,
 #masthead #ast-mobile-header [data-section="title_tagline"]{
   display:flex!important;align-items:center!important;min-width:0!important;opacity:1!important;visibility:visible!important;
 }
 #masthead #ast-mobile-header .site-header-primary-section-left{display:flex!important;min-width:0!important;align-items:center!important;}
 #masthead #ast-mobile-header .site-header-primary-section-right{margin-left:auto!important;flex:0 0 auto!important;}
 #masthead #ast-mobile-header .ast-primary-header-bar{min-height:57px!important;}
 #masthead #ast-mobile-header .wai-property-brandmark .wai-property-house-mark{
   width:37px!important;height:37px!important;flex-basis:37px!important;
 }
 #masthead #ast-mobile-header .wai-property-brandmark .wai-property-brand-text strong{font-size:19px!important;}
 #masthead #ast-mobile-header .wai-property-brandmark .wai-property-brand-text small{font-size:8px!important;margin-top:3px!important;}
}
@media(max-width:355px){
 #masthead #ast-mobile-header a.wai-property-brandmark{gap:4px!important;}
 #masthead #ast-mobile-header .wai-property-brandmark .wai-property-house-mark{
   width:32px!important;height:34px!important;flex-basis:32px!important;
 }
 #masthead #ast-mobile-header .wai-property-brandmark .wai-property-brand-text strong{font-size:17px!important;}
 #masthead #ast-mobile-header .wai-property-brandmark .wai-property-brand-text small{font-size:7px!important;}
}
/* Avoid displaying the original image in any Astra fallback markup. */
#masthead .site-logo-img > a.wai-property-brandmark > img.custom-logo{display:none!important;}
