/* CarsUsed.ca V12 — homepage hero correction and final package refresh.
   03 November 2026
   Purpose:
   1) Fix the homepage Ontario/Toronto hero so it uses a cleaner, more polished scenic treatment.
   2) Keep V11 directory cleanup in place.
   3) Preserve suppression of any zero-vehicle badge via existing PHP logic. */

/* HOMEPAGE HERO: Toronto / Ontario default state
   Replace the muddy-looking prior treatment with the cleaner approved scenic asset.
   Keep the live HTML search box, cards and headline untouched. */
.home-hero.hero-toronto::before{
  background-image:url('/assets/img/hero/toronto-v9-waterfront.webp?v=12.0') !important;
  background-size:cover !important;
  background-position:center 47% !important;
  background-repeat:no-repeat !important;
  filter:saturate(1.03) brightness(1.01) contrast(1.02) !important;
}
.home-hero.hero-toronto::after{
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.90) 0%,
      rgba(255,255,255,.86) 19%,
      rgba(255,255,255,.58) 38%,
      rgba(255,255,255,.18) 57%,
      rgba(255,255,255,0) 74%),
    linear-gradient(180deg,
      rgba(255,255,255,0) 70%,
      rgba(255,255,255,.18) 88%,
      rgba(255,255,255,.38) 100%) !important;
}

/* Make the hero feel more finished against the cleaner background. */
.home-hero.hero-toronto .hero-search{
  background:rgba(255,255,255,.965);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:0 20px 52px rgba(19,42,91,.15);
}
.home-hero.hero-toronto .quick-searches a,
.home-hero.hero-toronto .region-choose{
  background:rgba(255,255,255,.82);
}

@media (max-width:800px){
  .home-hero.hero-toronto::before{
    background-image:url('/assets/img/hero/mobile/toronto.webp?v=12.0') !important;
    background-size:cover !important;
    background-position:56% 50% !important;
    filter:saturate(1.03) brightness(1.01) contrast(1.02) !important;
  }
  .home-hero.hero-toronto::after{
    background:
      linear-gradient(180deg,
        rgba(255,255,255,.95) 0%,
        rgba(255,255,255,.88) 31%,
        rgba(255,255,255,.42) 68%,
        rgba(255,255,255,.16) 100%) !important;
  }
}

/* Safety net: if stale cached markup ever prints an empty or zero vehicle count on
   regional directory hero pills, keep it hidden. The template already suppresses this. */
.v2-region-summary span:empty,
.v2-region-summary span[data-count="0"],
.v2-region-card em:empty{
  display:none !important;
}
