/* ═══ Гарячі тури [anex_hot_tours] — стиль search-classic ═══
   Всі правила заскоуплені під .anex-hot (специфічність 0,2,0
   перекриває reset.css Hello Elementor, що вантажиться після нас). */

.anex-hot {
  position: relative;

  --anex-red: #f31624;
  --anex-red-hover: #de0f1c;
  --anex-text: #1a2233;
  --anex-label: #8b95a8;
  --anex-line: #e8ecf2;
  --anex-bg: #f6f8fb;
  --anex-star: #f5a623;
  --anex-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sc-radius: 14px;

  width: 100%;
  font-family: var(--anex-font);
  color: var(--anex-text);
  -webkit-font-smoothing: antialiased;
}
.anex-hot *,
.anex-hot *::before,
.anex-hot *::after { box-sizing: border-box; }

.anex-hot__noconfig {
  margin: 0;
  padding: 18px 22px;
  border: 2px dashed var(--anex-red);
  border-radius: var(--sc-radius);
  background: #fff5f5;
  color: var(--anex-red);
  font: 600 14px/1.5 var(--anex-font);
}

/* ─── Заголовок ─────────────────────────────────────────────────────── */

.anex-hot__head { margin: 0 0 16px; }
.anex-hot__title {
  margin: 0;
  font: 800 clamp(26px, 4vw, 38px)/1.1 var(--anex-font);
  color: var(--anex-text);
}
.anex-hot__title::after {
  content: " 🔥";
  font-size: 0.8em;
}

/* ─── Таби країн ────────────────────────────────────────────────────── */

.anex-hot__tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.anex-hot__tabs::-webkit-scrollbar { display: none; }
@media (min-width: 821px) {
  .anex-hot__tabs { flex-wrap: wrap; overflow: visible; }
}

.anex-hot .anex-hot__tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 9px 16px;
  font: 700 14px var(--anex-font);
  color: var(--anex-text);
  background: #fff;
  border: 1px solid var(--anex-line);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.anex-hot .anex-hot__tab:hover {
  color: var(--anex-red);
  border-color: var(--anex-red);
  background: #fff;
}
.anex-hot .anex-hot__tab.is-active,
.anex-hot .anex-hot__tab.is-active:hover {
  color: #fff;
  background: var(--anex-red);
  border-color: var(--anex-red);
}
.anex-hot .anex-hot__tab small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.72;
}

/* ─── Сітка карток ──────────────────────────────────────────────────── */

.anex-hot__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1100px) { .anex-hot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px)  { .anex-hot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px)  { .anex-hot__grid { grid-template-columns: 1fr; } }

@keyframes anex-hot-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}
.anex-hot__skel {
  min-height: 340px;
  border-radius: var(--sc-radius);
  background: linear-gradient(90deg, #eef1f6 25%, #f8fafd 37%, #eef1f6 63%);
  background-size: 400% 100%;
  animation: anex-hot-shimmer 1.4s ease infinite;
}

/* ─── Картка ────────────────────────────────────────────────────────── */

.anex-hot .anex-hot-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--anex-line);
  border-radius: var(--sc-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.anex-hot .anex-hot-card:hover {
  box-shadow: 0 10px 28px rgba(26, 34, 51, 0.12);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}

.anex-hot-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--anex-line) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='48' fill='%23c3ccd9'%3E%3Cpath d='M4 20V7a3 3 0 0 1 3-3h10a3 3 0 0 1 3 3v13h-2v-3H6v3H4Zm2-5h12v-4H6v4Z'/%3E%3C/svg%3E") center/48px no-repeat;
}
.anex-hot-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.anex-hot-card__off {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--anex-red);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(243, 22, 36, 0.35);
}

.anex-hot-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  padding: 14px 16px 16px;
}
.anex-hot-card__stars { color: var(--anex-star); font-size: 14px; letter-spacing: 2px; line-height: 1; }
.anex-hot-card__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.anex-hot .anex-hot-card:hover .anex-hot-card__name { color: var(--anex-red); }
.anex-hot-card__geo  { font-size: 13px; color: var(--anex-label); }
.anex-hot-card__meta { font-size: 13px; color: var(--anex-text); }

.anex-hot-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.anex-hot-card__price { display: flex; flex-direction: column; }
.anex-hot-card__price small  { font-size: 12px; color: var(--anex-label); font-weight: 500; }
.anex-hot-card__price strong { font-size: 20px; font-weight: 800; color: var(--anex-red); }
.anex-hot .anex-hot-card__cta {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  font: 700 14px var(--anex-font);
  color: #fff;
  background: var(--anex-red);
  border: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.15s;
}
.anex-hot .anex-hot-card:hover .anex-hot-card__cta { background: var(--anex-red-hover); }

/* ─── Футер таба, статуси ───────────────────────────────────────────── */

.anex-hot__more { margin: 16px 0 0; text-align: center; }
.anex-hot .anex-hot__more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 14px var(--anex-font);
  color: var(--anex-red);
  text-decoration: none;
}
.anex-hot .anex-hot__more-link:hover { color: var(--anex-red-hover); text-decoration: underline; }

.anex-hot__status {
  margin: 0;
  padding: 32px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--anex-label);
  background: var(--anex-bg);
  border-radius: var(--sc-radius);
}
.anex-hot__status--error { color: var(--anex-red); background: #fff5f5; }
.anex-hot .anex-hot__retry {
  display: inline-flex;
  margin-left: 10px;
  padding: 6px 14px;
  font: 700 13px var(--anex-font);
  color: #fff;
  background: var(--anex-red);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.anex-hot .anex-hot__retry:hover { background: var(--anex-red-hover); }

@media (max-width: 540px) {
  .anex-hot-card__cta { height: 40px; padding: 0 14px; font-size: 13px; }
}

/* ─── Pop-up «Забронювати» ──────────────────────────────────────────── */

.anex-hot .anex-hot-card__cta { cursor: pointer; }

body.anex-hot-noscroll { overflow: hidden; }

.anex-hot .anex-hot-modal {
  position: fixed;
  inset: 0;
  z-index: 100001; /* вище overlay-режиму каталогу */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
/* Наші display:flex/grid специфічніші за браузерне [hidden]{display:none},
   тому атрибут hidden без цього правила не працює (модалка/форма/таби) */
.anex-hot [hidden] { display: none !important; }
.anex-hot .anex-hot-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 34, 51, 0.55);
  backdrop-filter: blur(2px);
}
.anex-hot .anex-hot-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 22px 22px 24px;
  background: #fff;
  border-radius: var(--sc-radius, 14px);
  box-shadow: 0 24px 64px rgba(26, 34, 51, 0.35);
  font-family: var(--anex-font);
}
.anex-hot .anex-hot-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--anex-text);
  background: var(--anex-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}
.anex-hot .anex-hot-modal__close:hover { color: var(--anex-red); }
/* клік завжди ловить кнопка, а не svg/path усередині */
.anex-hot .anex-hot-modal__close svg { pointer-events: none; }
.anex-hot .anex-hot-modal__title {
  margin: 0 24px 10px 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--anex-text);
}
.anex-hot .anex-hot-modal__tour {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--anex-text);
  background: var(--anex-bg);
  border: 1px solid var(--anex-line);
  border-radius: 10px;
}
.anex-hot .anex-hot-modal__tour strong { font-size: 14px; }
.anex-hot .anex-hot-modal__price { font-weight: 800; color: var(--anex-red); }
.anex-hot .anex-hot-modal__price small { font-weight: 500; color: var(--anex-label); }
.anex-hot .anex-hot-modal__form { display: grid; gap: 12px; }
.anex-hot .anex-hot-modal__label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--anex-label);
}
.anex-hot .anex-hot-modal__input {
  height: 46px;
  padding: 0 14px;
  font: 500 15px var(--anex-font);
  color: var(--anex-text);
  background: #fff;
  border: 1px solid var(--anex-line);
  border-radius: 10px;
  outline: none;
}
.anex-hot .anex-hot-modal__input:focus { border-color: var(--anex-red); }
.anex-hot .anex-hot-modal__input.is-invalid {
  border-color: var(--anex-red);
  background: #fff7f7;
}
.anex-hot .anex-hot-modal__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.anex-hot .anex-hot-modal__submit {
  height: 48px;
  font: 700 15px var(--anex-font);
  color: #fff;
  background: var(--anex-red);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.anex-hot .anex-hot-modal__submit:hover { background: var(--anex-red-hover); }
.anex-hot .anex-hot-modal__submit:disabled { opacity: 0.7; cursor: default; }
.anex-hot .anex-hot-modal__status {
  margin: 0;
  font-size: 13px;
  color: var(--anex-red);
}
.anex-hot .anex-hot-modal__done {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 18px 0 6px;
  text-align: center;
  font-size: 14px;
  color: var(--anex-text);
}
.anex-hot .anex-hot-modal__done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  background: #22a355;
  border-radius: 50%;
}

@media (max-width: 640px) {
  /* попап зверху — клавіатура не закриває поля вводу */
  .anex-hot .anex-hot-modal { align-items: flex-start; padding-top: 20px; }
}
