:root {
  --main-color: #01b3a7;
}

.main-color {
  color: var(--main-color);
}

.logo-img {
  display: block;
  width: 188px !important;
  height: auto !important;
}

@media (min-width: 250px) and (max-width: 1200px) {
  .logo-img {
    height: 50px !important;
  }
}
.lang-btn {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}
.lang-btn:hover {
  transform: scale(1.08);
}
.lang-btn:active {
  transform: scale(1.03);
}

/* ===== Filters layout ===== */
.exc-filters {
  margin-bottom: 30px;
}

.exc-filters .filters-title {
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.exc-filters .filters-subtitle {
  color: rgba(21, 21, 21, 0.65);
  margin-bottom: 18px;
}

.exc-filters .filter-group {
  margin-bottom: 18px;
}

.exc-filters .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch; /* чтобы не было “висячих” по высоте */
}

/* ===== Our filter buttons (NO template classes) ===== */
.filter-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #e9ecef; /* серый */
  color: #151515; /* чёрный текст */
  border-radius: 999px; /* pill */
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.filter-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.filter-btn:focus-visible {
  outline: 2px solid rgba(1, 179, 167, 0.45);
  outline-offset: 3px;
}

/* ACTIVE */
.filter-btn.is-active {
  background: var(--main-color); /* бирюзовый */
  border-color: var(--main-color);
  color: #151515; /* чёрный текст по твоему требованию */
}

/* на очень узких экранах чуть уменьшим текст, чтобы чаще влазило */
@media (max-width: 480px) {
  .filter-btn {
    font-size: 13px;
    padding: 10px 14px;
  }
}

/* скрываем пагинацию */
.pagination-wrap {
  display: none;
}

/* --- Filters UI (локально, чтобы не лезть в общий style.css) --- */
.exc-filters {
  margin-bottom: 30px;
}

.exc-filters .filters-title {
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.exc-filters .filters-subtitle {
  color: rgba(21, 21, 21, 0.65);
  margin-bottom: 18px;
}

.exc-filters .filter-group {
  margin-bottom: 18px;
}

.exc-filters .filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===============================
   FILTER BTN (override at the end)
   =============================== */

/* базовая адаптивность: размеры плавно меняются от мобилки к десктопу */
.filter-btn {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #f0f0f1; /* серый */
  color: #151515; /* чёрный текст */
  border-radius: 999px;

  /* адаптивные размеры */
  font-size: clamp(12px, 1.2vw, 14px);
  padding: 0 clamp(12px, 1.6vw, 18px);
  height: clamp(38px, 4.4vw, 44px);
  min-height: clamp(38px, 4.4vw, 44px);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;

  /* чтобы на любой ширине не рвало раскладку */
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.filter-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.filter-btn:focus-visible {
  outline: 2px solid rgba(1, 179, 167, 0.45);
  outline-offset: 3px;
}

/* ACTIVE: бирюзовый фон + ЧЁРНЫЙ текст (как ты хочешь) */
.filter-btn.is-active {
  background: var(--main-color);
  border-color: var(--main-color);
  color: #fff;
}

/* очень узкие — чуть компактнее, чтобы в скролле было удобнее */
@media (max-width: 480px) {
  .filter-btn {
    font-size: 12px;
    padding: 0 12px;
    height: 38px;
    min-height: 38px;
  }
}

@media (max-width: 360px) {
  .filter-btn {
    font-size: 11px;
    padding: 0 10px;
    height: 36px;
    min-height: 36px;
  }
}

/* --- Card image replacement (страна вместо фото) --- */
.post-creative-figure-label {
  height: 267px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f2f2f2;
  border: 1px solid #e1e1e1;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-creative-country-badge {
  width: 44px;
  /* чуть компактнее */
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #01b3a7;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  /* меньше */
  letter-spacing: 0.03em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

/* ✅ Делаем верх карточки "в одну линию" */
.post-creative-header .group-md {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  /* на очень узких экранах может переноситься блоками */
}

.post-creative-header .group-md > div:first-child {
  flex: 1 1 240px;
  /* левая часть тянется */
  min-width: 200px;
}

.post-creative-header .post-creative-time {
  flex: 0 0 auto;
  max-width: 180px;
  /* чтобы категория не распирала */
}

/* ✅ Шрифт страны/категории меньше + всегда одна строка */
.post-creative-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
  min-width: 0;
}

.post-creative-author {
  font-size: 12px;
  /* было 14 */
  line-height: 1.1;
  display: block;
  white-space: nowrap;
  /* одна строка */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.post-creative-author span {
  color: rgba(21, 21, 21, 0.6);
  font-weight: 600;
  /* чуть плотнее, но компактно */
  font-size: 12px;
}

.post-creative-time .post-creative-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  /* компактнее */
  border-radius: 999px;
  background: rgba(1, 179, 167, 0.12);
  color: #016760;
  font-weight: 700;
  font-size: 11px;
  /* меньше */
  letter-spacing: 0.03em;
  text-transform: uppercase;

  white-space: nowrap;
  /* одна строка */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.post-creative-text {
  margin-top: 10px;
  color: rgba(21, 21, 21, 0.75);
}

/* ✅ Карточки динамической высоты: снимаем любые "обрезания" темы */
.post.post-creative {
  height: auto !important;
  min-height: 0 !important;
  display: flex;
  flex-direction: column;
}

/* если тема где-то делает ограничение по высоте/обрезание текста — принудительно отключаем */
.post-creative-title,
.post-creative-text {
  max-height: none !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  display: block !important;
}

/* футер карточки не растягиваем до одинаковой высоты — пусть будет по контенту */
.post-creative-footer {
  flex: 0 0 auto;
}

/* скрываем пагинацию, чтобы не путала (карточки фильтруются на клиенте) */
.pagination-wrap {
  display: none;
}

/* чуть безопаснее на очень узких: уменьшаем max-width страны/категории */
@media (max-width: 575.98px) {
  .post-creative-author {
    max-width: 220px;
  }

  .post-creative-header .post-creative-time {
    max-width: 160px;
  }

  .post-creative-time .post-creative-tag {
    max-width: 160px;
  }
}

/* MOBILE: горизонтальный скролл для групп кнопок */
@media (max-width: 768px) {
  .exc-filters .filter-buttons {
    flex-wrap: nowrap; /* не переносим строки */
    overflow-x: auto; /* скролл по X */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* инерция iOS */
    gap: 10px;
    padding-bottom: 6px; /* чтобы тень/фокус не резались */
    scroll-snap-type: x proximity; /* мягкий snap, необязательно */
  }

  /* чтобы каждая кнопка не сжималась и нормально “ехала” */
  .exc-filters .filter-buttons .filter-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  /* опционально: визуально аккуратнее — скрыть полосы прокрутки */
  .exc-filters .filter-buttons {
    scrollbar-width: none; /* Firefox */
  }
  .exc-filters .filter-buttons::-webkit-scrollbar {
    height: 0; /* Chrome/Safari */
  }

  .post-creative-header .group-md > div:first-child {
    flex: 1 1 60px; /* как ты хочешь */
    min-width: 200px; /* оставляем */
  }
}

@media (max-width: 480px) {
  .post-creative-header .group-md > div:first-child {
    min-width: 140px; /* или 0, если хочешь максимум ужать */
  }
}

.tab-heading {
  font-size: 14px !important;
}

.product-medium-title {
  font-weight: 500;
  letter-spacing: normal;
  font-size: 18px;
}

.section-first .row.row-50 {
  align-items: stretch;
}

/* .thumb-stretch {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
} */

/* .thumb-stretch__figure {
  flex: 1 1 auto;
  height: 100%;
  overflow: hidden;
} */

/* carousel должен уметь тянуться по высоте */
/* .thumb-stretch__figure.carousel,
.thumb-stretch__figure .carousel-inner,
.thumb-stretch__figure .carousel-item {
  height: 100%;
} */

/* .thumb-stretch__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
} */

/* ровные карточки в левой колонке */
.kenya-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3; /* можешь поставить 16/9 или 3/2 */
  overflow: hidden;
}

.kenya-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* обрезает красиво, без растяжения */
  display: block;
}

/* если подписи делают карточки разной высоты — ограничиваем */
.kenya-card .thumbnail-classic-text {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* сколько строк оставлять */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* main slider */
/* .house-gallery {
  height: 80vh;
  display: flex;
  flex-direction: column;
  min-height: 0; 
} */

/* Основной слайдер занимает всё, что осталось */
/* .house-gallery__primary {
  flex: 1 1 auto;
  min-height: 0; 
} */

/* Трек и слайды основного слайдера тянем по высоте */
/* .house-gallery__primary .splide__track,
.house-gallery__primary .splide__list,
.house-gallery__primary .splide__slide {
  height: 100%;
} */

/* Картинка в главном слайде — ровно по высоте, без скачков */
/* .house-gallery__main,
.house-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
} */

/* .house-gallery__primary .splide__slide {
  overflow: hidden;
} */

.house-gallery__main {
  display: block;
  width: 100%;
}

/* .house-gallery__img {
  object-fit: cover;
} */

/* Нижняя мини-галерея: фиксированная высота, не растягивается */
.house-gallery__thumbs {
  flex: 0 0 auto;
  height: 96px; /* регулируй как нужно: 80/96/110 */
  margin-top: 12px;
  overflow: hidden; /* чтобы ничего не вылезало */
}

/* Трек и слайды мини-галереи — ровно в высоту полосы */
.house-gallery__thumbs .splide__track,
.house-gallery__thumbs .splide__list,
.house-gallery__thumbs .splide__slide {
  height: 100%;
}

/* Картинки в мини-галерее заполняют ячейку */
.house-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Cards (левая колонка) — оставляем как было ===== */
.kenya-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.kenya-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kenya-card .thumbnail-classic-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== House gallery (Splide) ===== */

/* Общая компоновка */
.house-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px; /* вместо margin-top на thumbs */
}

/* Главный слайдер: адаптивная "рамка" под фото */
.house-gallery__primary {
  width: 100%;
  aspect-ratio: 16 / 9; /* самый универсальный вариант */
  max-height: 70vh; /* чтобы не вылезало за экран */
}

/* Splide элементы растягиваем под рамку */
.house-gallery__primary .splide__track,
.house-gallery__primary .splide__list,
.house-gallery__primary .splide__slide {
  height: 100%;
}

/* Клик-зона равна видимой области */
.house-gallery__main {
  display: block;
  width: 100%;
  height: 100%;
  position: relative; /* база для overlay */
  overflow: hidden; /* чтобы overlay не вылезал */
}

/* САМО фото: целиком, без обрезки */
.house-gallery__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover; /* ключевой момент */
}

/* ===== Thumbs — оставляем как у тебя (чуть аккуратнее) ===== */
.house-gallery__thumbs {
  flex: 0 0 auto;
  height: 96px;
  overflow: hidden;
}

.house-gallery__thumbs .splide__track,
.house-gallery__thumbs .splide__list,
.house-gallery__thumbs .splide__slide {
  height: 100%;
}

.house-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnail-joan::before {
  top: 0;
  right: 0;
  bottom: auto;
  height: calc(100% - 96px - 24px);
  left: 0;
  background: rgba(22, 46, 68, 0.37);
  z-index: 1;
}

/* 1) thumbnail-joan должен быть якорем для ::before */
.thumbnail-joan.house-gallery {
  position: relative;
}

/* 2) По умолчанию оверлей ВЫКЛЮЧЕН */
.thumbnail-joan.house-gallery::before {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity .2s ease, visibility .2s ease;
}

/* 3) ВКЛЮЧАЕМ оверлей ТОЛЬКО при наведении на главную фотку */
.thumbnail-joan.house-gallery:has(.house-gallery__main:hover)::before {
  opacity: 1 !important;
  visibility: visible !important;
}

/* 4) Ограничиваем область оверлея только высотой главного слайдера */
.thumbnail-joan.house-gallery::before {
  top: 0;
  left: 0;
  right: 0;

  /* важное: оверлей не до низа article, а только до конца primary */
  height: calc(100% - 96px - 24px); /* 96px thumbs + 12px gap (подстрой если меняла gap) */
  bottom: auto;
  z-index: 1;
  pointer-events: none;
}

/* 5) Чтобы оверлей не перекрывал клики по фотке */
.house-gallery__main {
  position: relative;
  z-index: 2;
}

.amenities-list {
  margin: 0;
  padding: 0;
  list-style: none;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 14px;
  align-items: stretch;
}

.amenities-list__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  border-radius: 12px;

  min-width: 0; /* важно для ellipsis */
}

.amenities-list__icon {
  color: var(--main-color);
  font-size: 16px;
  line-height: 1;
  flex: 0 0 auto;
}

.amenities-list__text {
  font-weight: 600;
  color: #151515;
  font-size: 14px;
  line-height: 1.25;

  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.justify-content-center {
  justify-content: center;
}