/**
 * catalog.css — страница архива анкет (archive-anketa.php)
 * Карточки — по мотивам присланного кода (.vcp), но с префиксом .vac,
 * чтобы не путать с .vcp в home.css (превью каталога на главной — другой файл,
 * никогда не грузится одновременно с этим).
 */

.vac *, .vac *::before, .vac *::after { box-sizing: border-box; margin: 0; padding: 0; }

.vac {
  background: #F5F0EA;
  padding: 56px 40px 80px;
  font-family: 'Raleway', sans-serif;
  color: #1A1A1A;
}

.vac__container { max-width: 1200px; margin: 0 auto; }

/* ─── ЗАГОЛОВОК ─── */
.vac__header { margin-bottom: 48px; }

.vac__eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #8B7355;
  margin-bottom: 12px;
  display: block;
}

.vac__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 46px;
  font-weight: 300;
  letter-spacing: 2px;
  line-height: 1;
  color: #1A1A1A;
}

.vac__divider { width: 30px; height: 1px; background: #8B7355; margin-top: 18px; }

/* ─── ФИЛЬТР (реальная разметка Search & Filter — form.searchandfilter > div > ul > li) ─── */
.vac__filter {
  margin-bottom: 40px;
}

.vac__filter form.searchandfilter { margin: 0; }

.vac__filter form.searchandfilter > div > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Первые 3 <li> — это поля Stat1 / Stat4 / Услуги — оформляем как отдельные блоки */
.vac__filter form.searchandfilter > div > ul > li:nth-child(-n+3) {
  flex: 1;
  min-width: 200px;
  padding: 20px 22px;
  border: 1px solid rgba(139, 115, 85, 0.25);
  background: rgba(139, 115, 85, 0.03);
  list-style: none;
}

/* 4-й <li> — кнопка Submit, выравниваем отдельно снизу, без рамки-бокса */
.vac__filter form.searchandfilter > div > ul > li:nth-child(4) {
  list-style: none;
  flex-basis: 100%;
}

.vac__filter ul ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vac__filter li.cat-item {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 300;
  color: #444;
}

.vac__filter label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.vac__filter input[type="submit"] {
  margin-top: 8px;
  padding: 12px 32px;
  background: #1A1A1A;
  color: #F5F0EA;
  border: 1px solid #1A1A1A;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.vac__filter input[type="submit"]:hover {
  background: transparent;
  color: #1A1A1A;
}

/* Все 3 поля (Возраст/Габариты/Услуги) — сворачиваемые панели. Классы
   навешиваются через JS (catalog-filter.js), т.к. у плагина нет своих
   классов конкретно по полям в этой версии. */
.vac-collapsible-field .vac-collapsible-panel {
  display: none;
  margin-top: 12px;
  max-height: 220px;
  overflow-y: auto;
}

.vac-collapsible-field.vac-dropdown-open .vac-collapsible-panel {
  display: block;
}

.vac__field-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #1A1A1A;
  padding: 4px 0 10px;
  border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

.vac__field-toggle::after {
  content: '▾';
  font-size: 22px; /* ИЗМЕНЕНО: было 10px (наследовалось от родителя) — увеличено более чем в 2 раза */
  line-height: 1;
  color: #8B7355;
  transition: transform 0.3s;
  text-transform: none;
}

.vac-dropdown-open .vac__field-toggle::after {
  transform: rotate(180deg);
}

/* Кнопка сброса фильтра */
.vac__filter-reset {
  display: inline-block;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(139, 115, 85, 0.3);
  transition: color 0.3s, border-color 0.3s;
}

.vac__filter-reset:hover {
  color: #8B7355 !important;
  border-color: #8B7355;
}

.vac__services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 12px;
  color: #1A1A1A;
  padding: 8px 0;
  border-bottom: 1px solid rgba(139, 115, 85, 0.2);
}

.vac__services-toggle::after {
  content: '▾';
  color: #8B7355;
  transition: transform 0.3s;
}

.vac-dropdown-open .vac__services-toggle::after {
  transform: rotate(180deg);
}

/* ─── СЕТКА ─── */
.vac__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(139, 115, 85, 0.2);
  border: 1px solid rgba(139, 115, 85, 0.2);
}

.vac__card {
  background: #F5F0EA;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: background 0.3s;
}

.vac__card:hover { background: #EDE7DF; }

/* Плашка New / Premier / VIP — рендерится через versal_render_badge() в functions.php */
.v-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  pointer-events: none;
}

.v-badge--new {
  background: rgba(245, 240, 234, 0.95);
  color: #1A1A1A;
}

.v-badge--premier {
  background: #8B7355;
  color: #F5F0EA;
}

.v-badge--vip {
  background: #1A1A1A;
  color: #8B7355;
  border: 1px solid #8B7355;
  padding: 5px 11px; /* компенсация border, чтобы итоговый размер совпадал с остальными */
}

.vac__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgba(139, 115, 85, 0.07);
}

.vac__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.vac__card:hover .vac__photo img { transform: scale(1.04); }

.vac__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.0);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: background 0.4s;
}

.vac__card:hover .vac__overlay { background: rgba(20, 18, 16, 0.32); }

.vac__overlay-cta {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #F5F0EA;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
  width: 100%;
  text-align: center;
  padding: 9px 0;
  border: 1px solid rgba(245, 240, 234, 0.5);
  backdrop-filter: blur(2px);
}

.vac__card:hover .vac__overlay-cta { opacity: 1; transform: translateY(0); }

.vac__body { padding: 14px 16px 18px; }

/* ИЗМЕНЕНО: имя теперь одно в строке, без «отдельного» stat1 рядом с ним */
.vac__name {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600; /* ИЗМЕНЕНО по запросу заказчика: было 400 — просили жирнее */
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 12px;
}

/* ИЗМЕНЕНО: единый ряд на 4 стата (stat1–4), вместо 3 + 1 отдельного */
.vac__stats {
  display: flex;
  border-top: 1px solid rgba(139, 115, 85, 0.15);
  border-bottom: 1px solid rgba(139, 115, 85, 0.15);
  margin-bottom: 12px;
}

.vac__stat {
  flex: 1;
  padding: 6px 0;
  text-align: center;
  border-right: 1px solid rgba(139, 115, 85, 0.15);
}

.vac__stat:last-child { border-right: none; }

.vac__stat-val {
  display: block;
  font-family: 'Raleway', sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 13px;
  font-weight: 500;
  color: #1A1A1A;
  line-height: 1.2;
}

.vac__stat-key {
  display: block;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  margin-top: 2px;
}

.vac__price-row { display: flex; align-items: baseline; gap: 5px; }

.vac__price-from { font-size: 8px; letter-spacing: 2px; text-transform: uppercase; color: #999; }
.vac__price-val { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 400; color: #1A1A1A; }
.vac__price-unit { font-size: 9px; font-weight: 300; color: #999; letter-spacing: 1px; }

.vac__empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: #999;
  background: #F5F0EA;
}

/* ─── SEO-ТЕКСТ ПОД КАРТОЧКАМИ ─── */
.vac__seo {
  max-width: 800px;
  margin: 56px 0 0; /* ИЗМЕНЕНО: было margin: 56px auto 0 — центрировало блок, теперь прижат влево */
}

.vac__seo-text-wrap {
  max-height: 19em; /* ~10 строк при line-height 1.9 */
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

.vac__seo-text-wrap.vac-expanded {
  max-height: 3000px; /* с запасом — реального текста столько не бывает */
}

.vac__seo-text-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 44px;
  background: linear-gradient(to bottom, rgba(245, 240, 234, 0), rgba(245, 240, 234, 1));
  pointer-events: none;
  transition: opacity 0.3s;
}

.vac__seo-text-wrap.vac-expanded::after {
  opacity: 0;
  pointer-events: none;
}

.vac__seo-text {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.3px;
  color: #3D3D3D;
  text-align: left;
}

.vac__seo-text strong,
.vac__seo-text b {
  font-weight: 600;
  color: #1A1A1A;
}

.vac__seo-text em,
.vac__seo-text i {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

.vac__seo-text ul,
.vac__seo-text ol {
  margin: 12px 0;
  padding-left: 22px;
}

.vac__seo-text li {
  margin-bottom: 6px;
}

.vac__seo-text p {
  margin: 0 0 12px;
}

.vac__seo-text p:last-child {
  margin-bottom: 0;
}

.vac__seo-toggle {
  display: block;
  margin: 16px auto 0;
  padding: 10px 28px;
  background: transparent;
  border: 1px solid rgba(139, 115, 85, 0.4);
  color: #1A1A1A;
  font-family: 'Raleway', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}

.vac__seo-toggle:hover {
  border-color: #8B7355;
  color: #8B7355;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .vac__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .vac { padding: 40px 20px 56px; }
  .vac__title { font-size: 32px; }
  .vac__grid { grid-template-columns: repeat(2, 1fr); }
  .vac__seo { margin-top: 40px; }
}

/* ─── CTA (переиспользует .vpcta из single.css, только точка фокуса другая) ─── */
.vac-cta .vpcta__bg img {
  object-position: center 30%; /* было center 80% на карточке анкеты — тут другое фото/кроп */
}
