.img-load-shell {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  vertical-align: top;
  line-height: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255,248,240,0.18), rgba(255,248,240,0.04)),
    linear-gradient(110deg, rgba(185,129,47,0.1), rgba(255,248,240,0.34), rgba(238,111,18,0.1));
  isolation: isolate;
  transition: background 0.42s ease;
}

html.apetivo-image-loader-active img:not([data-no-image-loader]) {
  opacity: 0;
}

html.apetivo-image-loader-active header img,
html.apetivo-image-loader-active footer img,
html.apetivo-image-loader-active .topbar img,
html.apetivo-image-loader-active .site-footer img,
html.apetivo-image-loader-active .rental-footer img,
html.apetivo-image-loader-active .insta-avatar {
  opacity: 1;
}

.img-load-shell[data-loader-block="true"] {
  display: block;
  width: 100%;
}

.img-load-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.42) 48%, transparent 100%),
    radial-gradient(circle at 32% 22%, rgba(255,255,255,0.22), transparent 30%);
  transform: translateX(-100%);
  animation: apetivoImageShimmer 1.45s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.42s ease;
}

.img-load-shell::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 2px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, rgba(238,111,18,0.1), rgba(238,111,18,0.5), rgba(238,111,18,0.1));
  transform-origin: left center;
  animation: apetivoImagePulse 1.25s ease-in-out infinite;
  opacity: 0.44;
  transition: opacity 0.32s ease;
}

.img-load-shell > img {
  opacity: 0;
  filter: blur(14px) saturate(0.96);
  transform: scale(1.018);
  transition: opacity 0.5s ease, filter 0.58s ease, transform 0.58s ease;
}

.img-load-shell.is-loaded::before,
.img-load-shell.is-loaded::after,
.img-load-shell.is-broken::before,
.img-load-shell.is-broken::after {
  opacity: 0;
  animation: none;
}

.img-load-shell.is-loaded > img {
  opacity: 1;
  filter: none;
  transform: none;
}

.img-load-shell.is-loaded {
  background: transparent;
}

.img-load-shell.is-broken {
  min-height: 120px;
  background:
    linear-gradient(135deg, rgba(255,248,240,0.78), rgba(238,111,18,0.08)),
    repeating-linear-gradient(-45deg, rgba(238,111,18,0.08) 0 10px, rgba(255,255,255,0.18) 10px 20px);
}

.hero-image .img-load-shell,
.bar-tile .img-load-shell,
.event-tile .img-load-shell,
.item-media .img-load-shell,
.photo .img-load-shell,
.gallery-thumb .img-load-shell,
.insta-post .img-load-shell {
  width: 100%;
  height: 100%;
  display: block;
}

.price-card .img-load-shell {
  display: block;
  width: 100%;
  height: 184px;
  margin-bottom: 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,248,240,0.1), rgba(255,248,240,0.025)),
    linear-gradient(110deg, rgba(214,173,107,0.18), rgba(255,248,240,0.08), rgba(242,140,40,0.14));
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.price-card .img-load-shell > .price-img {
  width: 100%;
  height: 100%;
  margin-bottom: 0;
  border-radius: inherit;
  box-shadow: none;
}

.gallery-thumb .img-load-shell::after,
.insta-avatar + .img-load-shell::after {
  display: none;
}

@keyframes apetivoImageShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes apetivoImagePulse {
  0%, 100% {
    transform: scaleX(0.24);
    opacity: 0.16;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.44;
  }
}

@media (prefers-reduced-motion: reduce) {
  .img-load-shell::before,
  .img-load-shell::after,
  .img-load-shell > img {
    animation: none;
    transition: none;
  }
}
