/* La Pahi Palace 0.6.44 — desktop banner refinement.
   Works over CRM-published images and bundled fallback. All <=650px mobile styles remain untouched. */
@media (min-width:951px){
  body:has(.hero-feature-row) .hero[data-lp-background="home.hero"]{
    position:relative;isolation:isolate;
    overflow:hidden;
  }
  body:has(.hero-feature-row) .hero[data-lp-background="home.hero"]::before{
    content:""!important;display:block!important;
    pointer-events:none;position:absolute;inset:0;z-index:1;
    background:
      linear-gradient(90deg,
        rgba(5,25,18,.77) 0%,
        rgba(6,29,20,.70) 19%,
        rgba(7,31,21,.48) 36%,
        rgba(9,31,20,.16) 53%,
        rgba(9,31,20,0) 69%),
      linear-gradient(0deg,rgba(4,20,14,.19) 0%,transparent 35%);
  }
  body:has(.hero-feature-row) .hero[data-lp-background="home.hero"] .lp-hero-scene{
    background-position:51% 50%;
    background-size:cover;
  }
  body:has(.hero-feature-row) .hero[data-lp-background="home.hero"] .lp-hero-scene-day{
    filter:brightness(1.025) saturate(1.035);
  }
  body:has(.hero-feature-row) .hero[data-lp-background="home.hero"] .hero-content{
    position:relative;z-index:2;
  }
  body:has(.hero-feature-row) .hero[data-lp-background="home.hero"] h1{
    text-shadow:0 2px 15px rgba(2,16,10,.28);
  }
  body:has(.hero-feature-row) .hero[data-lp-background="home.hero"] .hero-feature-row{
    background:rgba(6,22,15,.43);
    -webkit-backdrop-filter:blur(7px);
    backdrop-filter:blur(7px);
    border-color:rgba(255,255,255,.23);
  }
}
@media (min-width:651px) and (max-width:950px){
  body:has(.hero-feature-row) .hero[data-lp-background="home.hero"]::before{
    content:"";display:block;pointer-events:none;position:absolute;inset:0;z-index:1;
    background:linear-gradient(90deg,rgba(5,25,18,.77),rgba(6,29,20,.40) 65%,transparent 100%);
  }
  body:has(.hero-feature-row) .hero[data-lp-background="home.hero"] .hero-content{position:relative;z-index:2;}
}


/* v0.6.48: eliminate the first-load background jump on the homepage.
   The CSS fallback must be the SAME photograph, crop and position as the
   first day scene used by hero-scenes-v0644.js. Prior CSS used a closer
   canopy crop until JavaScript loaded the wider CRM/fallback photograph. */
@media (min-width:651px){
  body:has(.hero-feature-row) section.hero[data-lp-background="home.hero"]{
    background-image:url('/assets/hero-day-desktop-v0644.webp')!important;
    background-size:cover!important;
    background-position:51% 50%!important;
    background-repeat:no-repeat!important;
  }
}
@media (max-width:650px){
  body:has(.hero-feature-row) section.hero[data-lp-background="home.hero"]{
    background-image:linear-gradient(90deg,rgba(6,21,15,.88),rgba(6,22,15,.58) 70%,rgba(6,19,14,.36)),url('/assets/hero-mobile-v0638.webp')!important;
    background-size:cover!important;
    background-position:center center!important;
    background-repeat:no-repeat!important;
  }
}
body:has(.hero-feature-row) section.hero[data-lp-background="home.hero"]{
  background-color:#0b2118;
  overflow:hidden;
}
body:has(.hero-feature-row) section.hero[data-lp-background="home.hero"] .lp-hero-scene{
  background-size:cover!important;
  background-position:51% 50%!important;
  background-repeat:no-repeat!important;
  transform:none!important;
  animation:none!important;
}
@media (max-width:650px){
  body:has(.hero-feature-row) section.hero[data-lp-background="home.hero"] .lp-hero-scene{
    background-position:center center!important;
  }
}
body:has(.hero-feature-row) section.hero[data-lp-background="home.hero"] .lp-hero-scene-updating{
  z-index:1;
  will-change:opacity;
}
body:has(.hero-feature-row) section.hero[data-lp-background="home.hero"] .lp-hero-scene-night{
  z-index:2;
}
@media (prefers-reduced-motion: reduce){
  body:has(.hero-feature-row) section.hero[data-lp-background="home.hero"] .lp-hero-scene-updating{
    transition:none!important;
  }
}

@media(max-width:650px){
  body:has(.hero-feature-row) section.hero[data-lp-background="home.hero"] .lp-hero-scenes::after{
    content:"";position:absolute;inset:0;z-index:3;pointer-events:none;
    background:linear-gradient(90deg,rgba(6,21,15,.88),rgba(6,22,15,.58) 70%,rgba(6,19,14,.36));
  }
}


/* v0.6.49: use a single cover geometry for bundled and CRM photographs.
   Portrait/landscape variants are not stretched to match a different image. */
.hero[data-lp-background="home.hero"] .lp-hero-scenes,
.hero[data-lp-background="home.hero"] .lp-hero-scene {
  position:absolute;inset:0;width:100%;height:100%;
}
.hero[data-lp-background="home.hero"] .lp-hero-scenes {
  overflow:hidden;
}
.hero[data-lp-background="home.hero"] .lp-hero-scene {
  background-repeat:no-repeat!important;
  background-size:cover!important;
  transform:none!important;
  animation:none!important;
}
@media(min-width:651px){
  .hero[data-lp-background="home.hero"] .lp-hero-scene,
  body:has(.hero-feature-row) .hero[data-lp-background="home.hero"] .lp-hero-scene {
    background-position:51% 50%!important;
  }
}
@media(max-width:650px){
  .hero[data-lp-background="home.hero"] .lp-hero-scene {
    background-position:center center!important;
  }
}
/* Only fade the fully-preloaded night layer. Day changes occur under night,
   while it is opaque, preventing the delayed photo reframe on first load. */
.hero[data-lp-background="home.hero"] .lp-hero-scene-day { opacity:1; }
.hero[data-lp-background="home.hero"] .lp-hero-scene-night {
  transition:opacity var(--lp-fade-ms,1150ms) ease-in-out;
}
