/* Neutral Tourvisor loader and reserved space for country pages. */
.country-tour-search {
  position: relative;
  box-sizing: border-box;
  width: calc(100% - 30px);
  max-width: 1200px;
  min-height: clamp(420px, 65vh, 620px);
  margin: 24px auto 34px;
  padding: 0;
  z-index: 2;
}

.country-tour-search-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: clamp(420px, 65vh, 620px);
}

.country-tour-search-content {
  transition: opacity 0.35s ease;
}

.country-tour-calendar {
  width: 100%;
  margin: 22px auto 0;
}

.russia-top-widget {
  min-height: 0;
}

.russia-top-widget .country-tour-search-content {
  width: 100%;
}

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

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

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

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

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

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

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

.country-tour-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%);
}

.country-tour-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);
}

.country-tour-search-frame.is-ready .country-tour-search-loader {
  display: none;
}

.country-tour-search-frame.is-loading .country-tour-search-content {
  opacity: 0.42;
  pointer-events: none;
}

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

@keyframes countryTourSearchPlane {
  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) {
  .country-tour-search,
  .country-tour-search-frame {
    min-height: clamp(440px, 85vh, 470px);
  }

  .russia-top-widget {
    min-height: 0;
  }

  .country-tour-search {
    width: calc(100% - 20px);
    margin: 14px auto 28px;
  }
}

@media (max-width: 480px) {
  .country-tour-search {
    margin: 10px auto 24px;
  }

  .country-tour-search-loader {
    padding: 0 14px;
  }
}
