/* VIPS RIDE — owner-uploaded hero background standard, 2026-11-18
   Applies only to the main public page banners. Never to logos, service cards
   or customer-uploaded attachments. Existing uploaded image remains the source. */

/* Homepage uses a validated inline --hero-photo URL controlled by Website Pages. */
body .hero.has-photo {
 background-image:var(--hero-photo) !important;
 background-size:cover !important;
 background-repeat:no-repeat !important;
 background-position:center center !important;
}
body .hero.has-photo::before { display:none !important; }
body .hero.has-photo::after {
 background:linear-gradient(90deg,
  rgba(255,255,255,.94) 0%,
  rgba(255,255,255,.78) 21%,
  rgba(255,255,255,.42) 41%,
  rgba(255,255,255,.08) 62%,
  rgba(255,255,255,0) 82%) !important;
}
body .hero.has-photo>.wrap { position:relative;z-index:2; }

/* The image tag is retained so Super Admin can edit src and give useful alt
   text. The browser paints that exact verified image as the banner background. */
body .vips-uploaded-hero.vips-hero-upload-ready {
 background-image:var(--vips-hero-background-image) !important;
 background-size:cover !important;
 background-position:center center !important;
 background-repeat:no-repeat !important;
}
body .vips-uploaded-hero.vips-hero-upload-ready > img,
body .vips-uploaded-hero.vips-hero-upload-ready > .cozy-hero-grid > .cozy-hero-image {
 opacity:0 !important;
}
body .vips-uploaded-hero.vips-hero-upload-ready.city-hero-feature::before {
 display:none !important;
}
body .vips-uploaded-hero.vips-hero-upload-ready.city-hero-feature::after,
body .vips-uploaded-hero.vips-hero-upload-ready.airport-hero-feature::after {
 display:block !important;
 background:linear-gradient(90deg,
  rgba(255,255,255,.92) 0%,
  rgba(255,255,255,.80) 20%,
  rgba(255,255,255,.44) 40%,
  rgba(255,255,255,.12) 59%,
  transparent 77%) !important;
}
body .vips-uploaded-hero.vips-hero-upload-ready.private-aviation-hero::before {
 background:linear-gradient(90deg,
  rgba(255,255,255,.91) 0%,
  rgba(255,255,255,.75) 23%,
  rgba(255,255,255,.40) 42%,
  rgba(255,255,255,.09) 59%,
  transparent 78%) !important;
}
body .vips-uploaded-hero.vips-hero-upload-ready.cozy-services-hero::after {
 background:linear-gradient(90deg,
  rgba(255,255,255,.92) 0%,
  rgba(255,255,255,.77) 22%,
  rgba(255,255,255,.40) 41%,
  rgba(255,255,255,.09) 61%,
  transparent 80%) !important;
}
body .vips-uploaded-hero.vips-hero-upload-ready > .wrap,
body .vips-uploaded-hero.vips-hero-upload-ready > .cozy-hero-grid {
 position:relative;z-index:3;
}
body .vips-uploaded-hero.vips-hero-upload-ready .cozy-hero-copy {
 position:relative;z-index:3;
}
/* No center seam; preserve enough contrast to read the existing text. */
@media(max-width:760px){
 body .hero.has-photo::after,
 body .vips-uploaded-hero.vips-hero-upload-ready.city-hero-feature::after,
 body .vips-uploaded-hero.vips-hero-upload-ready.airport-hero-feature::after,
 body .vips-uploaded-hero.vips-hero-upload-ready.cozy-services-hero::after {
  background:linear-gradient(90deg,
   rgba(255,255,255,.91) 0%,
   rgba(255,255,255,.80) 48%,
   rgba(255,255,255,.45) 100%) !important;
 }
 body .vips-uploaded-hero.vips-hero-upload-ready.private-aviation-hero::before {
  background:linear-gradient(90deg,
   rgba(255,255,255,.91),rgba(255,255,255,.77) 55%,
   rgba(255,255,255,.40)) !important;
 }
}
/* END VIPS owner hero backgrounds */

/* VIPS RIDE gray-and-white hero photography.
   Monochrome applies only to background pictures, not typography,
   buttons, logos, maps, gallery cards or customer-uploaded files. */

/* Background image lives in ::before, independent of the text layer. */
body .hero.has-photo,
body .vips-uploaded-hero.vips-hero-upload-ready {
  background-image: none !important;
}
body .hero.has-photo::before,
body .vips-uploaded-hero.vips-hero-upload-ready::before {
  content:"";
  position:absolute;
  inset:0;
  display:block !important;
  pointer-events:none;
  z-index:0;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  filter:grayscale(1) contrast(1.03) brightness(1.04) !important;
  opacity:1 !important;
  transform:none !important;
}
body .hero.has-photo::before {
  background-image:var(--hero-photo) !important;
}
body .vips-uploaded-hero.vips-hero-upload-ready::before {
  background-image:var(--vips-hero-background-image) !important;
}
body .hero.has-photo::after,
body .vips-uploaded-hero.vips-hero-upload-ready::after {
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}
body .vips-uploaded-hero.vips-hero-upload-ready.private-aviation-hero::after {
  content:"";
  display:block !important;
  background:linear-gradient(90deg,
    rgba(255,255,255,.92) 0%,
    rgba(255,255,255,.77) 25%,
    rgba(255,255,255,.37) 45%,
    rgba(255,255,255,.07) 62%,
    transparent 80%) !important;
}
/* Reduce the former 'blank white' effect without losing black text contrast. */
body .vips-uploaded-hero.vips-hero-upload-ready.private-aviation-hero::before {
  /* Override the older white-gradient shorthand: it hid the photo. */
  background: var(--vips-hero-background-image) center 56% / cover no-repeat !important;
}
body .hero.has-photo>.wrap,
body .vips-uploaded-hero.vips-hero-upload-ready>.wrap,
body .vips-uploaded-hero.vips-hero-upload-ready>.cozy-hero-grid {
  position:relative;
  z-index:3;
}
body .vips-uploaded-hero.vips-hero-upload-ready .cozy-hero-copy {
  position:relative;
  z-index:3;
}
/* Keep photographs monochrome while waiting for the uploaded image to load. */
body .city-hero-feature>.city-hero-image,
body .airport-hero-feature>.airport-hero-image,
body .private-aviation-hero>.private-aviation-photo,
body .cozy-services-hero .cozy-hero-image img,
body .hero.has-photo .vips-hero-fade-layer {
  filter:grayscale(1) contrast(1.03) !important;
}
@media(max-width:760px){
  body .vips-uploaded-hero.vips-hero-upload-ready.private-aviation-hero::after {
    background:linear-gradient(90deg,
      rgba(255,255,255,.91) 0%,
      rgba(255,255,255,.79) 52%,
      rgba(255,255,255,.42) 100%) !important;
  }
}
