/* ===== Listing cards ===== */

.cruise-meta { margin-top: 10px; font-size: 14px; opacity: .85; }

.cruise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.cruise-card {
  display: block;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .15s ease;
}
.cruise-card:hover { transform: translateY(-2px); }

.cruise-card__imgwrap{
  position: relative;
  width: 100%;
  height: 210px;
  background: #eef3ff;
}
.cruise-card__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}

.cruise-card__badge{
  position:absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
}

.cruise-card__body{
  padding: 14px 14px 16px;
}

.cruise-card__title{
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  color: #1c1c1c;
}

.cruise-card__route,
.cruise-card__dates{
  font-size: 13px;
  opacity: .85;
  line-height: 1.35;
}

.cruise-card__price{
  margin-top: 10px;
  font-weight: 800;
  font-size: 14px;
  color: #1c1c1c;
}

/* ===== Pagination (Akvarel-like) ===== */
.cruise-pagination{
  margin: 24px 0 40px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  flex-wrap: wrap;
}

.cruise-page{
  min-width: 36px;
  height: 36px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.10);
  background:#fff;
  text-decoration:none;
  font-size: 13px;
  color:#1c1c1c;
}

.cruise-page.is-active{
  font-weight: 800;
  border-color: rgba(0,0,0,0.18);
}

.cruise-page.is-disabled{
  opacity: .45;
  cursor: default;
}

.cruise-dots{ padding: 0 6px; opacity: .6; }

.cruise-jump{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-left: 16px;
}

.cruise-jump__label{
  font-size: 13px;
  opacity: .8;
}

.cruise-jump__input{
  width: 60px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 0 8px;
}

/* responsive */
@media (max-width: 980px) {
  .maclay-cruise-filter__form { grid-template-columns: 1fr 1fr; }
  .cruise-grid { grid-template-columns: 1fr; }
  .cruise-card__imgwrap{ height: 200px; }
  .cruise-jump{ width: 100%; justify-content:center; margin-left: 0; }
}

/* Только страница круизов */
body.page-template-page-cruises-php .maclay-cruise-filter {
  margin-top: -110px;
  position: relative;
  z-index: 5;
}

@media (max-width: 980px) {
  body.page-template-page-cruises-php .maclay-cruise-filter {
    margin-top: -40px;
  }
}

.cruise-loadmore{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin:24px 0 8px;
}

.cruise-loadmore-btn{
  padding:12px 18px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  cursor:pointer;
  font-weight:600;
}

.cruise-loadmore-btn:disabled{
  opacity:.6;
  cursor:default;
}

.cruise-loadmore-status{
  font-size:14px;
  opacity:.7;
}

/* =========================================
   HERO (CATALOG + CRUISES)
   ========================================= */

/* Включаем только там, где есть .catalog-hero */
.main .wrapper.catalog-hero{
  position: relative;
  display: block !important;
  overflow: hidden;

  height: clamp(560px, 68vh, 760px) !important;
  min-height: clamp(560px, 68vh, 760px) !important;
}

/* фон */
.main .wrapper.catalog-hero .catalog-hero__bg{
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* затемнение */
.main .wrapper.catalog-hero .catalog-hero__bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
}

/* картинка */
.main .wrapper.catalog-hero .wrapper-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;
  object-position: center 25%;
}

/* всегда desktop фон */
.main .wrapper.catalog-hero .wrapper-bg--desktop{ display: block !important; }
.main .wrapper.catalog-hero .wrapper-bg--mobile{ display: none !important; }

/* контент */
.main .wrapper.catalog-hero .catalog-hero__inner{
  position: relative;
  z-index: 2;
  height: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;

  text-align: center;

  padding: 140px 0 18px;
}

.main .wrapper.catalog-hero .catalog-hero__content{
  max-width: 820px;
  padding: 0 20px;
}

.main .wrapper.catalog-hero .catalog-hero__title{
  margin: 0;
  color: #fff;
  font-weight: 400;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.05;
}

.main .wrapper.catalog-hero .catalog-hero__subtitle{
  margin: 16px 0 0;
  color: rgba(255,255,255,.85);
  font-size: 16px;
  line-height: 1.6;
}

/* "Читать отзывы" — скрываем в hero */
.main .wrapper.catalog-hero .catalog-hero__reviews{
  display: none !important;
}

/* Socials справа */
.main .wrapper.catalog-hero .socials{
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}

/* <=768: поднимаем выше */
@media (max-width: 768px){
  .main .wrapper.catalog-hero .socials{
    top: -140px;
    transform: none;
    right: 14px;
  }
}

@media (max-width: 420px){
  .main .wrapper.catalog-hero .socials{
    top: -140px;
  }
}

/* =========================================
   CRUISES HERO overrides (только круизы)
   ========================================= */

.main .wrapper.catalog-hero.cruises-hero .catalog-hero__inner{
  align-items: flex-start;
  text-align: left;

  /* центр по вертикали */
  justify-content: center;

  /* убираем “приплюснутый вниз” padding */
  padding: 120px 0 120px;
}

/* Заголовок больше */
.main .wrapper.catalog-hero.cruises-hero .catalog-hero__title{
  font-size: clamp(56px, 6vw, 86px);
  line-height: 1.02;
}

/* Подзаголовок больше и читаемее */
.main .wrapper.catalog-hero.cruises-hero .catalog-hero__subtitle{
  margin-top: 14px;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.55;
  color: rgba(255,255,255,.88);
}

/* Мобилка: тоже центр, но без гигантского отступа сверху */
@media (max-width: 980px){
  .main .wrapper.catalog-hero.cruises-hero .catalog-hero__inner{
    align-items: center;
    text-align: center;
    justify-content: center;
    padding: 110px 0 90px;
  }

  .main .wrapper.catalog-hero.cruises-hero .catalog-hero__content{
    padding: 0 20px;
  }
}

.main .wrapper.catalog-hero.cruises-hero .catalog-hero__content{
  max-width: 760px;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 1200px){
  .main .wrapper.catalog-hero.cruises-hero .catalog-hero__content{
    padding-left: 28px;
    padding-right: 28px;
  }
}
