.yz-img-frame {
  position: relative;
  overflow: hidden;
  background-color: #eef5fb;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #f6f9fc 0%, #e9f2f8 100%);
}

.yz-img-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(255,255,255,0) 22%, rgba(255,255,255,.82) 45%, rgba(255,255,255,0) 66%),
    radial-gradient(circle at 20% 18%, rgba(15, 95, 158, .08), transparent 32%);
  transform: translate3d(-72%, 0, 0);
}

.yz-img-frame.yz-img-loading::before {
  opacity: 1;
  animation: yz-img-sheen 1.18s cubic-bezier(.16, 1, .3, 1) infinite;
}

.yz-img-frame > img[data-yz-img-state="loading"],
.yz-img-frame img[data-yz-img-state="loading"] {
  opacity: .001;
}

.yz-img-frame > img,
.yz-img-frame img {
  position: relative;
  z-index: 1;
  pointer-events: none;
  transition: opacity .24s cubic-bezier(.16, 1, .3, 1), filter .24s ease;
}

.yz-img-frame.yz-img-loaded > img,
.yz-img-frame.yz-img-loaded img {
  opacity: 1;
}

.yz-img-frame.yz-img-error {
  background-color: #f1f5f8;
  background-image:
    linear-gradient(180deg, #f7fafc 0%, #edf3f7 100%),
    linear-gradient(90deg, rgba(13, 95, 158, .08), rgba(214, 42, 34, .06));
}

.yz-img-frame.yz-img-error::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 0;
  border: 1px solid rgba(15, 37, 58, .08);
}

/* Image-state decoration must never sit above a room-card action. */
.page-booking-detail .yz-detail-room-pro .yz-booking-room-price,
.page-booking-detail .yz-detail-room-pro .yz-booking-room-price button,
.page-booking-detail .yz-detail-room-pro .yz-booking-room-card-main,
.page-booking-detail .yz-detail-room-pro .yz-booking-room-card-main button {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.yz-ship-list-thumb.yz-img-frame {
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,0) 48%),
    linear-gradient(180deg, #f3f7fb 0%, #e6eff6 100%);
}

.yz-ship-list-thumb .yz-ship-list-thumb-bg {
  opacity: 0;
  transition: opacity .24s cubic-bezier(.16, 1, .3, 1), filter .24s ease;
}

.yz-ship-list-thumb.yz-img-loaded .yz-ship-list-thumb-bg {
  opacity: 1;
}

.yz-ship-list-thumb.yz-img-error .yz-ship-list-thumb-bg,
.yz-ship-list-thumb.yz-img-error img {
  display: none !important;
}

.yz-ship-list-thumb.yz-img-error::after {
  content: attr(data-placeholder);
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #5d7184;
  font: 700 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

@keyframes yz-img-sheen {
  0% { transform: translate3d(-72%, 0, 0); }
  100% { transform: translate3d(72%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .yz-img-frame::before {
    animation: none !important;
    transform: none !important;
  }

  .yz-img-frame img {
    transition: none !important;
  }
}
