/* Brief titles on the image for the photo-led homepage slides. The detailed
   description and any price remain in the existing caption panel below. */
body[data-template-level="1"] #homeHero[data-unified]:is([data-slide="1"],[data-slide="2"],[data-slide="3"],[data-slide="4"],[data-slide="5"],[data-slide="6"]) .hero-photo-caption{
  display:block!important;position:absolute;top:clamp(18px,5vw,54px);left:clamp(18px,6vw,92px);
  width:max-content;max-width:min(72%,680px);padding:0!important;margin:0;
  color:#fff;text-align:left;pointer-events:none;background:none!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;outline:0!important;
  text-shadow:0 2px 8px rgba(0,17,31,.92),0 0 22px rgba(0,25,38,.7);
}
body[data-template-level="1"] #homeHero[data-unified] .hero-photo-caption small,
body[data-template-level="1"] #homeHero[data-unified] .hero-photo-caption span{display:none!important}
body[data-template-level="1"] #homeHero[data-unified] .hero-photo-caption strong{
  display:block!important;font-size:clamp(31px,3.7vw,58px);line-height:1.18;
  font-weight:850;letter-spacing:.035em;white-space:normal;
}
body[data-template-level="1"] #homeHero[data-unified] .hero-photo-caption strong:after{
  content:"";display:block;width:clamp(42px,7vw,90px);height:3px;margin-top:10px;
  border-radius:3px;background:#f6cd7d;box-shadow:0 1px 8px rgba(0,25,38,.5);
}
body[data-template-level="1"] #homeHero[data-unified].photo-animate .hero-photo-caption{animation:pe-hero-title-in .6s cubic-bezier(.2,.7,.2,1) both}
@keyframes pe-hero-title-in{from{opacity:0;transform:translateY(-15px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){
  body[data-template-level="1"] #homeHero[data-unified]:is([data-slide="1"],[data-slide="2"],[data-slide="3"],[data-slide="4"],[data-slide="5"],[data-slide="6"]) .hero-photo-caption{
    top:12px;left:16px;max-width:72%;
  }
  body[data-template-level="1"] #homeHero[data-unified] .hero-photo-caption strong{font-size:clamp(20px,5.8vw,27px);line-height:1.2;letter-spacing:0}
  body[data-template-level="1"] #homeHero[data-unified] .hero-photo-caption strong:after{width:38px;height:2px;margin-top:5px}
}
@media(prefers-reduced-motion:reduce){body[data-template-level="1"] #homeHero[data-unified].photo-animate .hero-photo-caption{animation:none}}

/* Mobile Jiangnan artwork already includes its title. Keep the desktop
   title independent of the fare and itinerary panel below the image. */
@media(min-width:701px){
  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"] .hero-photo-caption{
    display:block!important;position:absolute;top:clamp(32px,5vw,76px);
    left:clamp(22px,7vw,108px);width:max-content;max-width:65%;
    padding:0!important;margin:0;text-align:left;pointer-events:none;
    color:#ffdf8c;background:none!important;border:0!important;
    border-radius:0!important;box-shadow:none!important;outline:0!important;
    text-shadow:0 2px 4px #351c17,0 3px 16px #321a14;
    animation:pe-hero-title-in .6s cubic-bezier(.2,.7,.2,1) both;
  }
  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"] .hero-photo-caption strong{
    font-size:clamp(31px,4.1vw,62px);
  }
}
@media(min-width:701px) and (prefers-reduced-motion:reduce){
  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"] .hero-photo-caption{
    animation:none;
  }
}

/* Spain/Portugal has artwork typography at the bottom; place its offer above
   the controls as a separate live text layer, so it can animate and translate. */
body[data-template-level="1"] #homeHero[data-unified] .hero-spain-promo{display:none!important}
body[data-template-level="1"] #homeHero[data-unified][data-slide="7"] .hero-spain-promo{
  display:flex!important;position:absolute;top:clamp(16px,4vw,52px);
  left:clamp(18px,5.5vw,86px);max-width:calc(100% - 36px);
  flex-direction:column;gap:3px;padding:12px 20px 11px;
  border-left:4px solid #f5c65f;border-radius:5px 15px 15px 5px;
  color:#fff;background:linear-gradient(100deg,rgba(5,48,72,.91),rgba(8,57,76,.76));
  box-shadow:0 7px 20px rgba(3,30,43,.34);text-shadow:0 1px 3px rgba(0,20,30,.65);
  pointer-events:none;box-sizing:border-box;
}
body[data-template-level="1"] #homeHero[data-unified] .hero-spain-promo strong{
  font-size:clamp(22px,2.8vw,38px);line-height:1.15;font-weight:850;white-space:normal;
}
body[data-template-level="1"] #homeHero[data-unified] .hero-spain-promo small{
  font-size:clamp(11px,1vw,14px);font-weight:650;letter-spacing:.01em;color:#ffdf98;
}
body[data-template-level="1"] #homeHero[data-unified][data-slide="7"].photo-animate .hero-spain-promo{
  animation:pe-spain-offer-slide .72s cubic-bezier(.2,.75,.2,1) both;
}
@keyframes pe-spain-offer-slide{
  from{opacity:0;transform:translateX(-42px)}
  to{opacity:1;transform:translateX(0)}
}
@media(max-width:700px){
  body[data-template-level="1"] #homeHero[data-unified][data-slide="7"] .hero-spain-promo{
    top:9px;left:12px;max-width:calc(100% - 24px);gap:1px;
    padding:6px 10px 5px;border-left-width:3px;border-radius:3px 9px 9px 3px;
    box-shadow:0 3px 9px rgba(3,30,43,.3);
  }
  body[data-template-level="1"] #homeHero[data-unified] .hero-spain-promo strong{font-size:clamp(17px,4.9vw,22px)}
  body[data-template-level="1"] #homeHero[data-unified] .hero-spain-promo small{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
  body[data-template-level="1"] #homeHero[data-unified][data-slide="7"].photo-animate .hero-spain-promo{animation:none}
}

/* Use the original, complete Jiangnan artwork on desktop as on phones.
   Its 3:1 canvas includes every heading, hotel line, both price panels and
   the entire robot. Do not rebuild pieces over a cropped skyline. */
@media(min-width:701px){
  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"]{
    background:#174374!important;
  }
  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"]:before{
    display:none!important;content:none!important;
  }
  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"]:after{
    content:"";display:block!important;
    width:100%!important;height:var(--image-height)!important;
    background:url('/assets/jiangnan-banner-return.jpeg') center/100% 100% no-repeat!important;
    filter:none!important;mask-image:none!important;
  }
  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"] .hero-robot,
  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"] .hero-photo-caption,
  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"] .hero-keypoints{
    display:none!important;
  }
  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"] .hero-photo-link:before{
    display:none!important;content:none!important;
  }
}

/* Above the shared 540px height cap, keep the original 3:1 poster intact
   and fill the extra width with matching waterfront scenery. */
@media (min-width: 1621px) {
  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"] {
    --jiangnan-poster-width: calc(var(--image-height) * 3);
    --jiangnan-flank-width: max(var(--image-height), calc((100% - var(--jiangnan-poster-width)) / 2 + 30px));
  }

  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"]:before {
    content: "" !important;
    display: block !important;
    position: absolute;
    inset: 0 0 auto !important;
    width: 100% !important;
    height: var(--image-height);
    z-index: 0;
    clip-path: none !important;
    mask-image: none !important;
    background:
      url("/assets/jiangnan-panorama-left.jpg") left center / var(--jiangnan-flank-width) 100% no-repeat,
      url("/assets/jiangnan-panorama-right.jpg") right center / var(--jiangnan-flank-width) 100% no-repeat !important;
  }

  body[data-template-level="1"] #homeHero[data-unified][data-slide="0"]:after {
    inset: 0 auto auto 50% !important;
    width: var(--jiangnan-poster-width) !important;
    z-index: 1;
    transform: translateX(-50%);
    mask-image: linear-gradient(to right, transparent, #000 1.7%, #000 98.3%, transparent) !important;
  }
}

.hero-west-route-copy {
  display: none;
}

body[data-template-level="1"] #homeHero.hero[data-unified][data-slide="2"]:has(.hero-west-route-copy) .hero-photo-caption,
body[data-template-level="1"] #homeHero.hero[data-unified][data-slide="2"]:has(.hero-west-route-copy) .hero-keypoints {
  display: none !important;
}

#homeHero[data-unified][data-slide="2"] .hero-west-route-copy {
  position: absolute;
  top: clamp(20px, 3.2vw, 59px);
  left: clamp(19px, 4.6vw, 105px);
  display: grid;
  justify-items: center;
  width: max-content;
  max-width: calc(100% - 2 * clamp(19px, 4.6vw, 105px));
  gap: .32em;
  padding-inline: .45em;
  color: #fff;
  font-size: clamp(15px, 1.5vw, 25px);
  font-weight: 720;
  line-height: 1.38;
  text-align: center;
  text-shadow: 0 1px 2px #241b17, 0 2px 6px #241b17ef;
  paint-order: stroke fill;
  -webkit-text-stroke: 1px #332720;
}

.hero-west-route-copy strong {
  margin-bottom: .06em;
  font-size: clamp(27px, 3.15vw, 55px);
  font-weight: 850;
  line-height: 1.14;
}

.hero-west-route-copy b {
  color: #ffebb9;
}

@media (max-width: 700px) {
  #homeHero[data-unified][data-slide="2"] .hero-west-route-copy {
    top: clamp(7px, 2vw, 14px);
    left: 9px;
    max-width: calc(100% - 18px);
    font-size: clamp(10px, 2.7vw, 17px);
    -webkit-text-stroke-width: .7px;
  }

  .hero-west-route-copy strong {
    font-size: clamp(15px, 4.35vw, 27px);
  }
}
