/*
Theme Name: Alba Longa Дочерняя тема
Theme URI: https://goodwinpress.ru/wp-tema-alba-longa
Author: GoodwinPress
Author URI: https://goodwinpress.ru/
Description: Используем дочернюю тему лишь в тех случаях, когда собрались менять стили, разметку или функции темы. Просто так ее ставить не требуется.
Text Domain: alba-longa
Domain Path: /languages
Template: alba-longa
*/

/* Размещайте ваши стили под этой строкой. */ 

/* vvb-footer-menu-bottom: меню футера теперь внизу */
.footer .footer-menu {
  margin-bottom: 0;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}



/* vvb-cnt: число в чипсе через дефис — синий цвет бренда, чуть жирнее */
.page-categories-list__link .vvb-cnt {
  margin-left: .35em;
  font-size: .92em;
  font-weight: 600;
  color: #2E529D;
}


/* ==========================================================================
   vvb-exc-extra: сложность, календарь дат, блок «Как всё устроено»
   ========================================================================== */

/* сложность в сайдбаре */
.exc-diff-wrap {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}
.exc-diff {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
  margin-right: .15rem;
}
.exc-diff i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dbe2ef;
}
.exc-diff i.is-on {
  background: #2e529d;
}
.exc-diff__num {
  color: #8a94a8;
  font-size: .85em;
}

/* календарь дат выездов */
.exc-cal {
  margin-top: 18px;
  padding: 16px 16px 14px;
  background: #f6f8fc;
  border: 1px solid #e3e9f4;
  border-radius: 6px;
}
.exc-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.exc-cal__label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7a869e;
}
.exc-cal__nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.exc-cal__btn {
  width: 22px;
  height: 22px;
  padding: 0;
  line-height: 1;
  border: 1px solid #dde4f1;
  border-radius: 4px;
  background: #fff;
  color: #2e529d;
  cursor: pointer;
  font-size: 15px;
}
.exc-cal__btn:disabled {
  opacity: .35;
  cursor: default;
}
.exc-cal__month {
  min-width: 92px;
  font-size: 12px;
  font-weight: 600;
  color: #1b2a4a;
  text-align: center;
}
.exc-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.exc-cal__wd {
  padding-bottom: 2px;
  font-size: 10px;
  color: #9aa6bc;
  text-align: center;
}
.exc-cal__day {
  padding: 4px 0;
  border-radius: 4px;
  font-size: 12px;
  color: #8a94a8;
  text-align: center;
}
.exc-cal__day.is-out {
  opacity: .3;
}
.exc-cal__day.is-free {
  background: #2e529d;
  color: #fff;
  font-weight: 600;
}
.exc-cal__day.is-today {
  box-shadow: inset 0 0 0 1px #faaa25;
}
.exc-cal__nearest {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #5a6780;
}
.exc-cal__none {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5a6780;
}

/* блок «Как всё устроено» — сноска с фоном и акцентной линией */
.post-content .exc-note,
.cpt-content .exc-note {
  margin: 28px 0 10px;
  padding: 22px 24px;
  background: #f6f8fc;
  border: 1px solid #e3e9f4;
  border-left: 3px solid #2e529d;
  border-radius: 6px;
}
.post-content .exc-note__title,
.cpt-content .exc-note__title {
  margin: 0 0 12px;
  padding: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: #1b2a4a;
}
.post-content .exc-note__sub,
.cpt-content .exc-note__sub {
  margin: 18px 0 10px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #1b2a4a;
}
.exc-note > ul,
.exc-note > ol {
  margin: 0;
  padding-left: 18px;
}
.exc-note li {
  margin-bottom: 8px;
}
.exc-note li:last-child {
  margin-bottom: 0;
}
.exc-note > p {
  margin-bottom: 10px;
}
.exc-note > p:last-child,
.exc-note > ul:last-child {
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .post-content .exc-note,
  .cpt-content .exc-note {
    padding: 16px 16px;
    margin: 22px 0 10px;
  }
}

/* vvb-diff-tune: отбивка строки сложности от адреса в сайдбаре */
.exc-diff-wrap {
  margin: 2px 0 14px;
}
.exc-diff-wrap .exc-info__label {
  display: inline;
}

/* vvb-diff-tune2: «Сложность» в ритме остальных строк сайдбара (подпись сверху, значение снизу) */
.exc-diff-wrap {
  display: block;
  margin: 0 0 16px;
}
.exc-diff-wrap .exc-info__label {
  display: block;
  margin-bottom: 2px;
}
.exc-diff-wrap .exc-info__text {
  display: block;
  margin: 0;
}
.exc-diff-wrap .exc-diff {
  margin-right: .3rem;
}

/* vvb-btn-grad: кнопки с закатным градиентом вместо красного + замена жёлтого на розовый */

a.btn,
button.btn,
.wpcf7-submit,
.comment-form .submit,
.search-submit,
.error404-btn,
.subs-section__btn {
  background-color: var(--accent1);
  background-image: linear-gradient(100deg, #ff4d6d 0%, #e01941 48%, #a70f36 100%);
  background-size: 170% 100%;
  background-position: 0 0;
  transition: background-position 0.45s ease, color 0.3s;
}

a.btn:hover,
button.btn:hover,
.wpcf7-submit:hover,
.comment-form .submit:hover,
.search-submit:hover,
.error404-btn:hover,
.subs-section__btn:hover {
  background-position: 88% 0;
}

a.btn::after,
button.btn::after,
.wpcf7-submit::after,
.comment-form .submit::after,
.search-submit::after,
.error404-btn::after,
.subs-section__btn::after {
  background-color: rgba(255, 255, 255, 0.26);
}

/* звёзды рейтинга: оранжевый -> розовый */
.rating-container > input:checked ~ label:before,
.rating-container > input + label:hover ~ label:before,
.rating-container > input + label:hover:before,
.rating-container:hover > input + label:hover ~ label:before,
.rating-container:hover > input + label:hover:before,
.star-filled:before {
  color: #e01941;
}

.exc-rating__stars::before {
  background-image: linear-gradient(90deg, #e01941 var(--percent), #cbd1da var(--percent));
}

/* vvb-btn-grad-2: кнопки в шапке (События/Экскурсии) тоже с градиентом */

.poster-btn {
  background-color: var(--accent1);
  background-image: linear-gradient(100deg, #ff4d6d 0%, #e01941 48%, #a70f36 100%);
  background-size: 170% 100%;
  background-position: 0 0;
  transition: background-position 0.45s ease, box-shadow 0.4s, transform 0.4s;
}

.poster-btn:hover {
  background-position: 88% 0;
  color: var(--lightColor);
}

/* vvb-event-card: дата, время, место и цена — в белом блоке карточки */

.event-item .events-thumb,
.event-item .events-thumb img {
  border-radius: var(--bradius) var(--bradius) 0 0;
}

.event-item .events-thumb {
  overflow: hidden;
}

.event-item .events-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.event-item .list-item__wrap {
  padding-bottom: 1.4rem;
}

.event-item .event-item__label {
  margin-bottom: 0.6rem;
}

.event-item .list-item__title {
  margin-bottom: 0.8rem;
  font-size: 1.22rem;
  line-height: 138%;
}

.event-item__meta {
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  font-size: 0.93rem;
  line-height: 1.45;
  color: #3a4160;
}

.event-item__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.event-item__meta-icon {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  fill: var(--accent1);
  opacity: 0.85;
}

.event-item__meta-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-item__meta-item--date .event-item__meta-text,
.event-item__price {
  font-weight: 600;
  color: var(--mainColor);
}

.event-item__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.event-item__foot .terms-list {
  margin: 0;
}

.event-item__age {
  margin-left: auto;
  padding: 0.1rem 0.5rem;
  border: 1px solid rgba(0, 35, 107, 0.22);
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--mainColor);
  white-space: nowrap;
}

/* vvb-event-card-2: аккуратная геометрия карточки события */

.event-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.event-item .events-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
}

.event-item .events-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 416 / 260;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}

.event-item .list-item__wrap {
  width: calc(100% - 2.2rem);
  max-width: none;
  height: auto;
  flex: 1 1 auto;
  margin: -3.4rem auto 0;
  padding: 1.4rem 1.6rem 1.5rem;
  transform: none;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(10, 23, 48, 0.12);
}

.event-item .list-item__content {
  flex: 0 1 auto;
}

.event-item .list-item__title {
  margin-bottom: 0.7rem;
  font-size: 1.2rem;
  line-height: 136%;
}

.event-item__meta {
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.93rem;
  line-height: 1.45;
  color: #3a4160;
}

.event-item__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.event-item__meta-icon {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  fill: var(--accent1);
  opacity: 0.85;
}

.event-item__meta-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-item__meta-item--date .event-item__meta-text,
.event-item__price {
  font-weight: 600;
  color: var(--mainColor);
}

.event-item__foot {
  margin-top: auto;
  padding-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.event-item__foot .terms-list {
  margin: 0;
}

.event-item__age {
  margin-left: auto;
  padding: 0.1rem 0.5rem;
  border: 1px solid rgba(0, 35, 107, 0.22);
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--mainColor);
  white-space: nowrap;
}

/* vvb-event-card-3: сетка афиши — фиксированные колонки, карточка не раздувает трек */

.events-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-item {
  min-width: 0;
}

@media (max-width: 1160px) {
  .events-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .events-list {
    display: block;
  }
}

/* vvb-event-card-4: место — до двух строк, дата и цена без переносов */
.event-item__meta-item:not(.event-item__meta-item--date) .event-item__meta-text {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-item__meta-item--date .event-item__meta-text,
.event-item__price {
  white-space: nowrap;
}

/* vvb-event-card-5: карточка события — одна рамка, фото сверху, белый блок снизу, ровная сетка */

.events-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-column-gap: 2rem;
  grid-row-gap: 2.2rem;
  align-items: stretch;
}

.home .events-list__item:nth-of-type(2),
.page-list--front li:nth-of-type(2) {
  transform: none;
}

.event-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid rgba(10, 23, 48, 0.07);
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(10, 23, 48, 0.04), 0 10px 24px rgba(10, 23, 48, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.event-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(10, 23, 48, 0.06), 0 18px 38px rgba(10, 23, 48, 0.10);
}

.event-item .events-thumb,
.event-item .list-item__image {
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.event-item .events-thumb img,
.event-item .list-item__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.55s ease;
}

.event-item .list-item__image:hover {
  opacity: 1;
}

.event-item:hover .events-thumb img,
.event-item:hover .list-item__image img {
  transform: scale(1.03);
}

.event-item .list-item__wrap {
  width: 100%;
  max-width: none;
  height: auto;
  flex: 1 1 auto;
  margin: 0;
  padding: 1.15rem 1.3rem 1.15rem;
  transform: none;
  border-radius: 0;
  background-color: #fff;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

.event-item .list-item__content {
  flex: 0 1 auto;
}

.event-item .event-item__label {
  margin-bottom: 0.6rem;
  padding-left: 1.35rem;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #5a6480;
}

.event-item .event-item__label::before {
  width: 0.95rem;
  height: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
}

.event-item .list-item__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 0.7rem;
  font-size: 1.14rem;
  line-height: 134%;
  font-weight: 600;
  color: #0a1730;
}

.event-item .list-item__title a {
  display: inline;
}

.event-item__meta {
  margin: 0 0 0.95rem;
  gap: 0.34rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4b5470;
}

.event-item__meta-icon {
  flex: 0 0 1rem;
  width: 1rem;
  height: 1rem;
  margin-top: 0.24rem;
  fill: var(--accent1);
  opacity: 0.8;
}

.event-item__meta-item--date .event-item__meta-text,
.event-item__price {
  font-weight: 600;
  color: #0a1730;
}

.event-item__foot {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(10, 23, 48, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.event-item__foot .terms-list {
  margin: 0;
  padding: 0;
  border-top: 0;
}

.event-item__foot .terms-list__item {
  padding-left: 11px;
}

.event-item__foot .terms-list__item::before {
  width: 4px;
  height: 4px;
  top: 50%;
  margin-top: -2px;
}

.event-item__foot .terms-list__link {
  font-size: 0.88rem;
}

.event-item__age {
  margin-left: auto;
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(10, 23, 48, 0.14);
  border-radius: 4px;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #4b5470;
  white-space: nowrap;
}

.event-item .list-item__warning {
  display: none;
}

@media (max-width: 1160px) {
  .events-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-row-gap: 1.8rem;
  }
}

@media (max-width: 720px) {
  .events-list {
    display: block;
  }

  .event-item {
    max-width: 460px;
    margin: 0 auto 1.4rem;
  }

  .event-item:last-child {
    margin-bottom: 0;
  }
}
