/* Loader and reserved space for hot tours modules. */
.hot-offers {
  min-height: clamp(420px, 62vh, 620px);
}

.hot-search {
  min-height: clamp(420px, 62vh, 620px);
}

body.hot-modern .hot-offers,
body.hot-modern .hot-search {
  padding-top: clamp(28px, 5vw, 46px);
  padding-bottom: clamp(32px, 5vw, 50px);
}

.hot-offers-frame,
.hot-search-frame {
  position: relative;
  width: 100%;
  min-height: clamp(340px, 54vh, 520px);
}

.hot-offers-content,
.hot-search-content {
  transition: opacity 0.35s ease;
}

.hot-offers-loader,
.hot-search-loader {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 0 clamp(18px, 4vw, 40px);
  color: #1f2937;
  text-align: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.hot-offers-loader__title,
.hot-search-loader__title {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.2;
}

.hot-offers-loader__text,
.hot-search-loader__text {
  color: rgba(31, 41, 55, 0.68);
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.4;
}

.hot-offers-loader__bar,
.hot-search-loader__bar {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 24px;
  margin: 6px auto 0;
  overflow: visible;
}

.hot-offers-loader__bar::before,
.hot-search-loader__bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.12);
  transform: translateY(-50%);
}

.hot-offers-loader__bar span,
.hot-search-loader__bar span {
  position: absolute;
  top: 50%;
  left: -42%;
  width: 36%;
  height: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(31, 41, 55, 0), rgba(31, 41, 55, 0.2), rgba(31, 41, 55, 0.72));
  transform: translateY(-50%);
  animation: hotSearchTrail 1.45s ease-in-out infinite;
}

.hot-offers-loader__bar i,
.hot-search-loader__bar i {
  position: absolute;
  top: 50%;
  left: -6%;
  z-index: 3;
  width: 24px;
  height: 24px;
  color: rgba(31, 41, 55, 0.86);
  font-style: normal;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.72));
  transform: translate(-50%, -50%);
  animation: hotSearchPlane 1.45s ease-in-out infinite;
  pointer-events: none;
}

.hot-offers-loader__bar i::before,
.hot-search-loader__bar i::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  clip-path: polygon(2% 45%, 66% 45%, 45% 8%, 56% 8%, 86% 45%, 98% 45%, 98% 55%, 86% 55%, 56% 92%, 45% 92%, 66% 55%, 2% 55%);
}

.hot-offers-loader__bar i::after,
.hot-search-loader__bar i::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 2px;
  width: 5px;
  height: 4px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.42);
  box-shadow: -7px 0 10px rgba(31, 41, 55, 0.14);
}

.hot-offers-frame.is-ready .hot-offers-loader,
.hot-search-frame.is-ready .hot-search-loader {
  display: none;
}

.hot-offers-frame.is-loading .hot-offers-content,
.hot-search-frame.is-loading .hot-search-content {
  opacity: 0.42;
  pointer-events: none;
}

@keyframes hotSearchTrail {
  0% { left: -42%; opacity: 0; }
  12% { opacity: 1; }
  55% { left: 32%; opacity: 1; }
  100% { left: 108%; opacity: 0; }
}

@keyframes hotSearchPlane {
  0% { left: -6%; transform: translate(-50%, -50%); opacity: 0; }
  12% { opacity: 1; }
  55% { left: 68%; transform: translate(-50%, -50%); opacity: 1; }
  100% { left: 144%; transform: translate(-50%, -50%); opacity: 0; }
}

@media (max-width: 768px) {
  .hot-offers,
  .hot-offers-frame,
  .hot-search,
  .hot-search-frame {
    min-height: clamp(440px, 84vh, 500px);
  }
}

@media (max-width: 480px) {
  .hot-offers-loader,
  .hot-search-loader {
    padding: 0 14px;
  }
}
