/* Гарячі тури — нижня панель + карусель */

.atsp-hot-trigger {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid rgba(220, 38, 38, 0.45);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff5f5 0%, #ffe8e8 100%);
  color: #c81e1e;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
  transition: background 0.18s ease, transform 0.15s ease;
}

.atsp-hot-trigger:hover {
  background: #ffdede;
  transform: translateY(-1px);
}

.atsp-hot-trigger__icon {
  font-size: 15px;
  line-height: 1;
}

.atsp-hot-trigger--nav {
  margin-left: 4px;
}

.atsp-mobile-nav__links .atsp-hot-trigger {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.atsp-hot-drawer {
  position: fixed;
  inset: 0;
  z-index: 10100;
  pointer-events: none;
}

.atsp-hot-drawer:not([hidden]) {
  pointer-events: auto;
}

.atsp-hot-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 38, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.atsp-hot-drawer:not([hidden]) .atsp-hot-drawer__backdrop {
  opacity: 1;
}

.atsp-hot-drawer__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  height: 65vh;
  max-height: 65vh;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -12px 40px rgba(15, 23, 38, 0.18);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.atsp-hot-drawer:not([hidden]) .atsp-hot-drawer__panel {
  transform: translateY(0);
}

.atsp-hot-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid #e8edf4;
}

.atsp-hot-drawer__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #c81e1e;
}

.atsp-hot-drawer__title span {
  color: #12213a;
}

.atsp-hot-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f3f6fb;
  color: #46546a;
  cursor: pointer;
}

.atsp-hot-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 16px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.atsp-hot-tabs::-webkit-scrollbar {
  display: none;
}

.atsp-hot-tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid #dce4f0;
  border-radius: 999px;
  background: #fff;
  color: #46546a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.atsp-hot-tab.is-active {
  border-color: #c81e1e;
  background: #fff0f0;
  color: #c81e1e;
}

.atsp-hot-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #6a7280;
}

.atsp-hot-sort {
  color: #1a5dc8;
}

.atsp-hot-carousel-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 44px 16px;
}

.atsp-hot-carousel {
  display: flex;
  gap: 14px;
  height: 100%;
  max-height: none;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.atsp-hot-carousel__prev,
.atsp-hot-carousel__next {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 38, 0.15);
  color: #12213a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.atsp-hot-carousel__prev {
  left: 8px;
}

.atsp-hot-carousel__next {
  right: 8px;
}

.atsp-hot-card {
  flex: 0 0 min(300px, 82vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8edf4;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 38, 0.06);
}

.atsp-hot-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #eef2f8;
}

.atsp-hot-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.atsp-hot-card__img--empty {
  min-height: 140px;
  background: linear-gradient(135deg, #eef2f8, #dfe8f5);
}

.atsp-hot-card__stars {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(18, 33, 58, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.atsp-hot-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
}

.atsp-hot-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #12213a;
  line-height: 1.25;
}

.atsp-hot-card__meta,
.atsp-hot-card__dates {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #6a7280;
  line-height: 1.35;
}

.atsp-hot-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.atsp-hot-card__tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: #fff0f0;
  color: #c81e1e;
  font-size: 11px;
  font-weight: 800;
}

.atsp-hot-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.atsp-hot-card__price {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #12213a;
}

.atsp-hot-card__price strong {
  font-size: 17px;
  font-weight: 800;
  color: #c81e1e;
}

.atsp-hot-card__old {
  display: block;
  font-size: 11px;
  color: #9aa3b2;
  text-decoration: line-through;
}

.atsp-hot-card__cta {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  background: var(--anex-red, #e5252f);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.atsp-hot-status {
  margin: 0;
  padding: 8px 18px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.atsp-hot-status--loading {
  color: #1f6feb;
}

.atsp-hot-status--error {
  color: #c0392b;
}

.atsp-hot-status--info {
  color: #46546a;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.atsp-hot-drawer--fallback .atsp-hot-drawer__title span::after {
  content: ' · актуальні з пошуку';
  font-size: 13px;
  font-weight: 600;
  color: #6a7280;
}

.atsp-hot-empty {
  margin: 24px auto;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #6a7280;
  text-align: center;
}

body.atsp-hot-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .atsp-hot-trigger--nav {
    display: none;
  }

  .atsp-hot-drawer__panel {
    height: 65vh;
    max-height: 65vh;
  }

  .atsp-hot-carousel-wrap {
    padding: 0 8px 12px;
  }

  .atsp-hot-carousel__prev,
  .atsp-hot-carousel__next {
    display: none;
  }

  .atsp-hot-card {
    flex-basis: min(280px, 88vw);
  }
}

@media (min-width: 769px) {
  .atsp-hot-drawer__panel {
    left: 50%;
    right: auto;
    width: min(var(--atsp-content-width, 1280px), calc(100% - 32px));
    transform: translate(-50%, 100%);
  }

  .atsp-hot-drawer:not([hidden]) .atsp-hot-drawer__panel {
    transform: translate(-50%, 0);
  }
}
