/* ===== Каталог мероприятий ===== */

.jbzoo .items {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.jbzoo .items > * {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* карточка */
.jbzoo .items .event-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.jbzoo .items .event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

/* картинка */
.jbzoo .event-card__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* внутренний блок */
.jbzoo .event-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  height: 100%;
}

/* meta */
.jbzoo .event-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jbzoo .event-card__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: #555;
}

.jbzoo .event-card__icon {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.jbzoo .event-card__icon--date::before {
  content: "📅";
  font-size: 15px;
  line-height: 1;
}

.jbzoo .event-card__icon--location::before {
  content: "📍";
  font-size: 15px;
  line-height: 1;
}

/* заголовок */
.jbzoo .event-card__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.28;
  font-weight: 700;
}

.jbzoo .event-card__title a {
  color: inherit;
  text-decoration: none;
}

.jbzoo .event-card__title a:hover {
  text-decoration: underline;
}

/* адрес */
.jbzoo .event-card__address {
  font-size: 15px;
  line-height: 1.55;
  color: #444;
}

/* кнопки вниз карточки */
.jbzoo .event-card__buttons {
  margin-top: auto;
  padding-top: 8px;
}

/* превращаем ссылку в кнопку */
.jbzoo .event-card__buttons a,
.jbzoo .item-buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none !important;
  font-weight: 600;
  line-height: 1.2;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.jbzoo .event-card__buttons a:hover,
.jbzoo .item-buttons a:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* если выводится сырой URL */
.jbzoo .event-card__buttons a[href*="facebook.com"],
.jbzoo .event-card__buttons a[href*="fb.com"] {
  word-break: normal;
}

/* убираем лишние стандартные отступы JBZoo */
.jbzoo .event-card p:last-child,
.jbzoo .event-card ul:last-child,
.jbzoo .event-card li:last-child {
  margin-bottom: 0;
}

/* планшет */
@media (max-width: 991px) {
  .jbzoo .items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* мобильный */
@media (max-width: 767px) {
  .jbzoo .items {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .jbzoo .event-card__body {
    padding: 16px;
  }

  .jbzoo .event-card__title {
    font-size: 20px;
  }
}

.btn-fb::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background: url("https://cdn.jsdelivr.net/npm/simple-icons@v9/icons/facebook.svg")
    no-repeat center;
  background-size: contain;
  filter: invert(1);
}

.btn-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;

  background: #1877f2;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

/* hover */
.btn-fb:hover {
  background: #166fe5;
  transform: translateY(-1px);
}

/* active */
.btn-fb:active {
  background: #145dd1;
}

.jbzoo .event-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jbzoo .event-card__meta-row,
.jbzoo .event-card__address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: #555;
}

.jbzoo .event-card__icon {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

.jbzoo .event-card__icon--date::before {
  content: "📅";
  font-size: 15px;
  line-height: 1;
}

.jbzoo .event-card__icon--city::before {
  content: "🏙";
  font-size: 15px;
  line-height: 1;
}

.jbzoo .event-card__icon--address::before {
  content: "📍";
  font-size: 15px;
  line-height: 1;
}

/* ===== Full event page ===== */

.com-zoo .item-full,
.jbzoo .item-full,
.full-event {
  max-width: 1200px;
  margin: 0 auto;
}

/* title */
.full-event__title,
.item-full .item-title {
    margin: 0 0 20px;
    font-size: clamp(24px, 2.6vw, 34px) !important;
    line-height: 1.2;
    font-weight: 700;
}

/* top area */
.full-event__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

/* image card */
.full-event__media .item-image,
.item-full .item-image {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.full-event__media .item-image img,
.item-full .item-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* right info card */
.full-event__sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.full-event__meta,
.item-full .item-metadata {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.full-event__meta ul,
.item-full .item-metadata ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.full-event__meta li,
.item-full .item-metadata li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 16px;
  line-height: 1.55;
  color: #444;
}

.full-event__meta li:last-child,
.item-full .item-metadata li:last-child {
  margin-bottom: 0;
}

/* simple icons for first three metadata rows */
.item-full .item-metadata li::before,
.full-event__meta li::before {
  width: 20px;
  min-width: 20px;
  display: inline-flex;
  justify-content: center;
  opacity: 0.75;
  line-height: 1;
  margin-top: 2px;
}

.item-full .item-metadata li:nth-child(1)::before,
.full-event__meta li:nth-child(1)::before {
  content: "📅";
}

.item-full .item-metadata li:nth-child(2)::before,
.full-event__meta li:nth-child(2)::before {
  content: "🏙";
}

.item-full .item-metadata li:nth-child(3)::before,
.full-event__meta li:nth-child(3)::before {
  content: "📍";
}

/* button block */
.full-event__buttons {
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.btn-fb,
.full-event__buttons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 12px;
  text-decoration: none !important;
  font-weight: 600;
  background: #1877f2;
  color: #fff !important;
  border: 1px solid #1877f2;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn-fb:hover,
.full-event__buttons a:hover {
  transform: translateY(-1px);
  background: #166fe5;
  border-color: #166fe5;
}

/* tabs wrapper */
.full-event__tabs,
.item-full .item-tabs {
  margin-top: 8px;
}

/* tabs nav */
.full-event__tabs .jb-nav,
.item-full .item-tabs .jb-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  border: 0;
}

.full-event__tabs .jb-nav li,
.item-full .item-tabs .jb-nav li {
  margin: 0;
}

.full-event__tabs .jb-nav a,
.item-full .item-tabs .jb-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #f3f5f7;
  color: #222;
  text-decoration: none;
  border: 1px solid transparent;
}

.full-event__tabs .jb-nav li.active a,
.item-full .item-tabs .jb-nav li.active a,
.full-event__tabs .jb-nav a:hover,
.item-full .item-tabs .jb-nav a:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

/* tab content */
.full-event__content,
.full-event__properties,
.item-full #item-desc .item-text,
.item-full #item-prop {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.full-event__content,
.item-full #item-desc .item-text {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

.full-event__content p:last-child,
.item-full #item-desc .item-text p:last-child {
  margin-bottom: 0;
}

/* table */
.full-event__properties table,
.item-full #item-prop table {
  margin-bottom: 0;
}

.item-full #item-prop th,
.item-full #item-prop td {
  vertical-align: top;
  padding: 12px 14px;
}

/* old JBZoo borders reset */
.item-full .jb-divider-bottom,
.item-full .jb-divider-right,
.item-full .rborder {
  border: 0 !important;
}

/* responsive */
@media (max-width: 991px) {
  .full-event__top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .full-event__title,
  .item-full .item-title {
    margin-bottom: 16px;
    font-size: 24px;
    line-height: 1.25;
  }

  .full-event__meta,
  .full-event__buttons,
  .full-event__content,
  .full-event__properties,
  .item-full .item-metadata,
  .item-full .item-buttons,
  .item-full #item-desc .item-text,
  .item-full #item-prop {
    padding: 18px;
    border-radius: 18px;
  }
}

.full-event__lead {
    font-size: 16px;
    line-height: 1.65;
    color: #333;
}

.full-event__lead p:last-child {
    margin-bottom: 0;
}


/* ===== FILTER FINAL ===== */

#zoo-filter-form-133 {
    margin: 0 0 32px;
}

#zoo-filter-form-133 .form-inner {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr 1fr auto;
    gap: 14px;
    align-items: start;

    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* убираем внутреннюю обёртку из раскладки */
#zoo-filter-form-133 .form-elements {
    display: contents;
}

/* поля */
#zoo-filter-form-133 .form-element-row {
    min-width: 0;
    margin: 0;
    width: 100%;
}

/* все input/select */
#zoo-filter-form-133 .uk-select,
#zoo-filter-form-133 select,
#zoo-filter-form-133 input[type="date"] {
    display: block;
    width: 100% !important;
    max-width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d9dee5;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    color: #222;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

#zoo-filter-form-133 .uk-select:focus,
#zoo-filter-form-133 select:focus,
#zoo-filter-form-133 input[type="date"]:focus {
    outline: none;
    border-color: #7a1f5c;
    box-shadow: 0 0 0 3px rgba(122, 31, 92, 0.12);
}

/* стрелка select */
#zoo-filter-form-133 .select {
    position: relative;
}

#zoo-filter-form-133 .select::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 13px;
}

#zoo-filter-form-133 select,
#zoo-filter-form-133 .uk-select {
    padding-right: 36px;
}

/* кнопка submit */
#zoo-filter-form-133 button,
#zoo-filter-form-133 input[type="submit"] {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #7a1f5c;
    border-radius: 12px;
    background: #7a1f5c;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    align-self: start;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

#zoo-filter-form-133 button:hover,
#zoo-filter-form-133 input[type="submit"]:hover {
    background: #64194c;
    border-color: #64194c;
    transform: translateY(-1px);
}

/* скрытые поля не ломают сетку */
#zoo-filter-form-133 input[type="hidden"] {
    display: none !important;
}

/* планшет */
@media (max-width: 991px) {
    #zoo-filter-form-133 .form-inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #zoo-filter-form-133 button,
    #zoo-filter-form-133 input[type="submit"] {
        width: 100%;
    }
}

/* мобильный */
@media (max-width: 767px) {
    #zoo-filter-form-133 .form-inner {
        grid-template-columns: 1fr;
        padding: 14px;
        border-radius: 16px;
    }

    #zoo-filter-form-133 button,
    #zoo-filter-form-133 input[type="submit"] {
        width: 100%;
    }
}


/* ===== Advanced search result card ===== */

.com-zoo .items {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.com-zoo .items > * {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0;
}

.com-zoo .filter-result-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.com-zoo .filter-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.com-zoo .filter-result-card__body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.com-zoo .filter-result-card .pos-media {
    margin: 0;
}

.com-zoo .filter-result-card .pos-media img {
    display: block;
    width: 100%;
    height: auto;
}

.com-zoo .filter-result-card .pos-title,
.com-zoo .filter-result-card .pos-specification,
.com-zoo .filter-result-card .pos-description,
.com-zoo .filter-result-card .pos-links {
    padding-left: 22px;
    padding-right: 22px;
}

.com-zoo .filter-result-card .pos-title {
    margin: 20px 0 10px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.com-zoo .filter-result-card .pos-title a {
    color: #1f2430;
    text-decoration: none;
}

.com-zoo .filter-result-card .pos-title a:hover {
    text-decoration: underline;
}

/* дата + город */
.com-zoo .filter-result-card .pos-specification {
    list-style: none;
    margin: 0 0 10px;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    padding-left: 22px;
}

.com-zoo .filter-result-card .pos-specification li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 28px;
}

.com-zoo .filter-result-card .pos-specification li:last-child {
    margin-bottom: 0;
}

/* 1-я строка = дата */
.com-zoo .filter-result-card .pos-specification li:nth-child(1)::before {
    content: "📅";
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
}

/* 2-я строка = город */
.com-zoo .filter-result-card .pos-specification li:nth-child(2)::before {
    content: "🏙";
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1;
}

/* адрес */
.com-zoo .filter-result-card .pos-description {
    position: relative;
    margin-bottom: 14px;
    padding-left: 50px;
    font-size: 15px;
    line-height: 1.55;
    color: #444;
}

.com-zoo .filter-result-card .pos-description::before {
    content: "📍";
    position: absolute;
    left: 22px;
    top: 2px;
    line-height: 1;
}

/* FB button */
.com-zoo .filter-result-card .pos-links {
    margin-top: auto;
    padding-bottom: 22px;
}

.com-zoo .filter-result-card .pos-links a,
.com-zoo .filter-result-card .btn-fb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #1877F2;
    border: 1px solid #1877F2;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    line-height: 1.2;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.com-zoo .filter-result-card .pos-links a:hover,
.com-zoo .filter-result-card .btn-fb:hover {
    background: #166FE5;
    border-color: #166FE5;
    transform: translateY(-1px);
}

/* tablet */
@media (max-width: 991px) {
    .com-zoo .items {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }
}

/* mobile */
@media (max-width: 767px) {
    .com-zoo .items {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .com-zoo .filter-result-card .pos-title {
        font-size: 20px;
    }

    .com-zoo .filter-result-card .pos-title,
    .com-zoo .filter-result-card .pos-specification,
    .com-zoo .filter-result-card .pos-description,
    .com-zoo .filter-result-card .pos-links {
        padding-left: 16px;
        padding-right: 16px;
    }

    .com-zoo .filter-result-card .pos-description {
        padding-left: 42px;
    }

    .com-zoo .filter-result-card .pos-description::before {
        left: 16px;
    }

    .com-zoo .filter-result-card .pos-links {
        padding-bottom: 16px;
    }
}

.com_zoo.advanced-search .items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-event__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.full-event__buttons.item-buttons {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.full-event__buttons.item-buttons .btn-fb {
    order: 1;
}

.full-event__buttons.item-buttons .btn-calendar {
    order: 2;
    margin-left: auto;
}

.full-event__buttons.item-buttons a.btn-fb,
.full-event__buttons.item-buttons a.btn-calendar,
.item-buttons a.btn-calendar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 11px 18px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

.full-event__buttons.item-buttons a.btn-calendar,
.item-buttons a.btn-calendar {
    background: #34a853 !important;
    color: #fff !important;
    border: 1px solid #34a853 !important;
}

.full-event__buttons.item-buttons a.btn-calendar:hover,
.item-buttons a.btn-calendar:hover {
    background: #2c8c47 !important;
    border-color: #2c8c47 !important;
    transform: translateY(-1px);
}

.full-event__buttons.item-buttons a.btn-calendar::before {
    content: "📅";
    margin-right: 7px;
}

@media (max-width: 767px) {
    .full-event__buttons.item-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .full-event__buttons.item-buttons .btn-calendar {
        margin-left: 0;
    }

    .full-event__buttons.item-buttons a {
        width: 100%;
    }
}