[data-ak-skeleton-pulse] {
  position: relative;
  color: transparent !important;
}

[data-ak-skeleton-pulse] * {
  color: transparent !important;
}

[data-ak-skeleton-pulse]::after {
  content: '';
  position: absolute;
  left: 0;
  width: 50%;
  max-width: 200px;
  height: 0.65em;
  border-radius: 4px;
  background: linear-gradient(90deg, #EDEDE9 25%, #f7f7f5 50%, #EDEDE9 75%);
  background-size: 200% 100%;
  animation: akSkeletonShimmer 1.5s infinite;
}

[data-ak="trip-heading"][data-ak-skeleton-pulse]::after {
  bottom: 0;
}

[data-ak="trip-heading-date"][data-ak-skeleton-pulse]::after {
  top: 0;
}

/* Replaced with a slide-in reveal (see [data-ak-hidden] rules below).
[data-ak="attractions-on-passes"][data-ak-skeleton-pulse]::before,
[data-ak="attractions-on-passes"][data-ak-skeleton-pulse]::after {
  content: '';
  position: absolute;
  left: 50%;
  height: 0.65em;
  border-radius: 4px;
  background: linear-gradient(90deg, #EDEDE9 25%, #f7f7f5 50%, #EDEDE9 75%);
  background-size: 200% 100%;
  animation: akSkeletonShimmer 1.5s infinite;
  transform: translateX(-50%);
}

[data-ak="attractions-on-passes"][data-ak-skeleton-pulse]::before {
  bottom: calc(50% + 6px);
  width: 60%;
}

[data-ak="attractions-on-passes"][data-ak-skeleton-pulse]::after {
  top: calc(50% + 6px);
  width: 90%;
  max-width: none;
}
*/

[data-ak="attractions-on-passes"] {
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
  transform: translateY(0);
}

[data-ak="attractions-on-passes"][data-ak-hidden] {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

@keyframes akSkeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hero image: hidden behind a full-size shimmer until hotel-next-itinerary.js sets
   data-ak-hero-ready (once the right image -- e.g. a fixed hotel's own -- has loaded), so Webflow's
   original never flashes up first. If the script never runs, both reveal on their own after 12s. */
[data-ak="hero-img"] {
  transition: opacity 0.4s ease;
}

[data-ak="hero-img"]:not([data-ak-hero-ready]) {
  opacity: 0;
  animation: akHeroFallbackShow 0s 12s forwards;
}

:has(> [data-ak="hero-img"]:not([data-ak-hero-ready]))::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #EDEDE9 25%, #f7f7f5 50%, #EDEDE9 75%);
  background-size: 200% 100%;
  animation: akSkeletonShimmer 2.2s infinite, akHeroFallbackHide 0s 12s forwards;
  pointer-events: none;
}

@keyframes akHeroFallbackShow {
  to { opacity: 1; }
}

@keyframes akHeroFallbackHide {
  to { opacity: 0; }
}

/* "Welcome to [Hotel Name]": no shimmer bar -- just hidden (so Webflow's default text never shows)
   until hotel-next-itinerary.js removes data-ak-skeleton-pulse once both the text and the hero
   image are ready, then it fades in. */
[data-ak="welcome-msg"] {
  transition: opacity 0.4s ease;
}

[data-ak="welcome-msg"][data-ak-skeleton-pulse] {
  opacity: 0;
}

[data-ak="welcome-msg"][data-ak-skeleton-pulse]::after {
  content: none;
}

/* Nav logo: hidden until hotel-next-itinerary.js sets data-ak-logo-ready (after swapping in the
   hotel's own logo, if it has one), so the default logo never flashes up first. Shown after 12s
   regardless, in case the script never runs. */
[data-ak="nav-logo"] {
  transition: opacity 0.3s ease;
}

[data-ak="nav-logo"]:not([data-ak-logo-ready]) {
  opacity: 0;
  animation: akHeroFallbackShow 0s 12s forwards;
}

/* Webflow fixes .naviti_logo at 2.5rem wide (for the square Khonsu icon); a hotel logo sets its
   own size instead -- a fixed height, width from its proportions, capped so it fits on phones. */
[data-ak="nav-logo"]:has(> .ak-nav-logo-img) {
  width: auto;
}

.ak-nav-logo-img {
  display: block;
  height: 2rem;
  width: auto;
  max-width: 60vw;
  object-fit: contain;
  /* The logo PNGs are dark on transparent; this turns every visible pixel white for the dark nav. */
  filter: brightness(0) invert(1);
}
