

/* Start:/local/templates/newswason_new/components/bitrix/catalog.element/template1/style.css?179449631127026*/
/**
 * Стили для детальной страницы лагеря
 * Шаблон: catalog.element/template1
 */

/* ==========================================================================
   Список связанных разделов (типы лагеря)
   ========================================================================== */

.camp-types__label {
    font-size: 14px;
    font-weight: 700;
    color: #141414;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
}

.section-links-wrapper {
    position: relative;
}

.section-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Когда раскрыто */
.section-links.expanded {
    max-height: none !important;
    overflow: visible;
}

.section-links__item {
    display: inline-flex;
    align-items: center;
    padding: 0 27px;
    border: 0.6px solid #028697;
    border-radius: 11px;
    color: #028697;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    background: transparent;
    text-decoration: none;
    transition: all 0.2s;
}

.section-links__item:hover {
    background: #028697;
    color: #ffffff;
}

/* Активный раздел */
.section-links__item--active {
    border: none;
    color: #ffffff;
    background: linear-gradient(127deg, rgba(2, 134, 151, 1) 6%, rgba(129, 239, 254, 1) 100%);
}

.section-links__item--active:hover {
    border: none;
    background: linear-gradient(127deg, rgba(2, 134, 151, 1) 6%, rgba(129, 239, 254, 1) 100%);
    opacity: 0.8;
}

/* ==========================================================================
   Двухколоночная структура
   ========================================================================== */

.detail-page {
  padding: 30px 0;
}

.detail-page__wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.detail-page__main {
  flex: 1;
  min-width: 0; /* Позволяет flex-элементу сжиматься */
}

.detail-page__sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
  padding-bottom: 20px;
}

/* ==========================================================================
   Шапка элемента
   ========================================================================== */

.detail__header {
  margin-bottom: 30px;
}

.detail__title {
  font-size: 26px;
  font-weight: 700;
  color: #141414;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.detail__section-title {
  font-weight: 600;
  font-size: 24px;
  color: #141414;
  padding-left: 17px;
}

.detail__address {
  font-size: 16px;
  color: #141414;
  line-height: 1.5;
}

.detail__map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #535151;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.detail__map-link:hover {
  opacity: 0.8;
  color: #535151;
  text-decoration: underline;
}

.detail__map-link svg {
  flex-shrink: 0;
  width: 20px;
  height: auto;
}

.detail__meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  margin-top: 10px;
}

/* Общие стили для звездочек (если используются где-то еще) */
.rating-stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #e8e8e8;
  font-size: 20px;
}

.star--active {
  color: #eeda00;
}

/* ==========================================================================
   Галерея изображений
   ========================================================================== */

.gallery {
  position: relative;
  margin-bottom: 25px;
}

.gallery__labels {
  position: absolute;
  top: -21px;
  left: -4px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.gallery__label {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.gallery__label img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 75px;
  gap: 5px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.gallery__item--1,
.gallery__item--2 {
  border-radius: 20px;
}

.gallery__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.gallery__link:hover {
  opacity: 0.9;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Первое изображение - 2x2 (левый верхний) */
.gallery__item--1 {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

/* Второе изображение - 2x2 (справа от первого) */
.gallery__item--2 {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
}

/* Остальные изображения - 1x1 */
.gallery__item--3 {
  grid-column: 5 / 6;
  grid-row: 1 / 2;
}

.gallery__item--4 {
  grid-column: 6 / 7;
  grid-row: 1 / 2;
}

.gallery__item--5 {
  grid-column: 7 / 8;
  grid-row: 1 / 2;
}

.gallery__item--6 {
  grid-column: 8 / 9;
  grid-row: 1 / 2;
}

.gallery__item--7 {
  grid-column: 5 / 6;
  grid-row: 2 / 3;
}

.gallery__item--8 {
  grid-column: 6 / 7;
  grid-row: 2 / 3;
}

.gallery__item--9 {
  grid-column: 7 / 8;
  grid-row: 2 / 3;
}

.gallery__item--10 {
  grid-column: 8 / 9;
  grid-row: 2 / 3;
}

.gallery__more {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.7);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 2;
}

.gallery__more:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* По умолчанию показываем десктопный, скрываем мобильный */
.gallery__more--desktop {
  display: flex;
}

.gallery__more--mobile {
  display: none;
}

/* ==========================================================================
   Текст анонса
   ========================================================================== */

.detail__preview {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-dark);
  margin-bottom: 30px;
}

/* ==========================================================================
   Блок бронирования
   ========================================================================== */

.booking {
  margin-bottom: 40px;
}

.booking__table {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.booking__row {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 0 20px;
  display: grid;
  grid-template-columns:
    90px minmax(150px, 1.2fr) minmax(150px, 1.5fr)
    minmax(245px, 1.5fr) minmax(150px, 1fr);

  align-items: center;
  position: relative;
}

.booking__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  border-right: 1px solid var(--border-color);
  height: 100%;
    justify-content: center;
    padding: 8px 10px;

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

/* Колонка 1: Смена */

.booking__shift-year {
  font-size: 14px;
  color: #7b7b7b;
}

.booking__shift-name {
  font-size: 16px;
  color: #141414;
}

.booking__shift-mobile{
  display: none;
}

/* Колонка 2: Даты */

.booking__dates-range {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-dark);
}

.booking__dates-duration {
  font-size: 14px;
  color: var(--color-text-light);
}

/* Колонка 3: Условия */

.booking__conditions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: var(--color-text-dark);
  line-height: 1.5;
}

.booking__conditions-list li::before {
  content: "• ";
  color: var(--color-primary);
  font-weight: bold;
}

/* Колонка 4: Цена */

.booking__price-old {
  font-size: 12px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.booking__price-current {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-dark);
  text-align: center;
}

.booking__price-info {
  display: flex;
  gap: 8px;
  font-size: 10px;
  align-items: center;
  justify-content: center;
}

.booking__price-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 300;
  font-size: 10px;
  line-height: 130%;
  text-decoration: underline;
  color: var(--color-primary);
  white-space: nowrap;
}

.booking__price-link:hover {
  color: #028697;
  text-decoration: underline;
}

.booking__price-link-services {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 300;
  font-size: 10px;
  line-height: 130%;
  text-decoration: underline;
  color: #5b5b5b;
  white-space: nowrap;
}

.booking__price-link-services:hover {
  color: #5b5b5b;
  text-decoration: underline;
}

.booking__price-divider {
  color: var(--color-text-light);
}

/* Колонка 5: Действия */
.booking__col--actions {
  align-items: stretch;
}

.booking__quantity {
  font-size: 10px;
  color: #797979;
  text-align: right;
}

.booking__quantity-value {
  font-weight: 600;
  color: #028697;
}

.booking__btn {
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;

    background: linear-gradient(90deg, #e78b90 0%, #f6a8d7 100%);
    color: #ffffff;
    border: unset;
    max-width: 155px;
    width: 100%;
    transition: all var(--transition-fast);
    font-weight: 700;
    font-size: 14px;
    border-radius: 16px;
  }
  
  .booking__btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0px 4px 12px rgba(255, 107, 107, 0.3);
    color: #ffffff;
  }

  .booking__btn--disabled {
    background: #b0b0b0;
    cursor: default;
    pointer-events: none;
  }

  .booking__btn--disabled:hover {
    transform: none;
    box-shadow: none;
  }


.booking__note {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  font-weight: 300;
  font-size: 10px;
  color: var(--color-primary);
  text-decoration: underline;
}

.booking__footer {
  text-align: right;
  margin-top: 10px;
}

.booking__all-shifts {
  display: inline-block;
  font-size: 18px;
  color: var(--color-primary);
  text-decoration: none;
}

.booking__all-shifts:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

/* Скрытие дополнительных блоков бронирования */
.booking__row--hidden {
  display: none;
}

/* ==========================================================================
   Краткая информация
   ========================================================================== */

.brief-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--color-text-dark);
}

.brief-info__item {
  line-height: 1.5;
}

.brief-info__item span {
  font-weight: 700;
}

/* ==========================================================================
   Табы
   ========================================================================== */

.tabs {
  margin-bottom: 40px;
}

.tabs__nav {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px 0 #e3e3e3;
  height: 60px;
  margin-bottom: 30px;
  overflow: hidden;
}

.tabs__item {
  flex: 1;
  position: relative;
  display: flex;
}

/* Вертикальные разделители между табами - от верха до низа блока */
.tabs__item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e3e3e3;
  z-index: 1;
}

.tabs__btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0 10px;
  font-size: 16px;
  font-weight: 400;
  color: #7c7c7c;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tabs__btn:hover {
  color: #141414;
}

.tabs__btn--active {
  background: linear-gradient(127deg, #028697 0%, #81effe 100%);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  border-radius: 10px;
  margin: 5px;
}
.tabs__btn--active:hover{
    color: #fff;
    text-decoration: none;
}

.tabs__content {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-dark);
}

.tabs__pane {
  display: none;
  background: #FFFFFF;
  padding: 40px;
  border-radius: 26px;
  box-shadow: 0 4px 4px 0 rgba(163, 163, 163, 0.45);
  color: #141414;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
}

.tabs__pane--active {
  display: block;
}

/* Кнопка-заголовок для мобильной версии - скрыта по умолчанию */
.tabs__pane-header {
  display: none;
}

/* Контент таба */
.tabs__pane-content {
  /* На десктопе контент всегда виден */
}

.tabs__pane h1,
.tabs__pane h2,
.tabs__pane h3,
.tabs__pane h4 {
  margin-top: 24px;
  margin-bottom: 16px;
}

.tabs__pane h2,
.tabs__pane h3 {
  font-size: 16px;
}

.tabs__pane p {
  margin-bottom: 16px;
}

.tabs__pane ul,
.tabs__pane ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

/* ==========================================================================
   Сайдбар детальной страницы
   ========================================================================== */

.detail-sidebar {
  background: #e0eef0;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}

.detail-sidebar--nav {
  padding: 36px 11px 36px 36px;
}

.detail-sidebar__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0 0 15px 0;
}

/* Рейтинг в сайдбаре */
.detail-sidebar__rating-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-sidebar__rating-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-sidebar__rating-stars {
  display: flex;
  gap: 2px;
}

.detail-sidebar__star {
  color: #e8e8e8;
  font-size: 20px;
}

.detail-sidebar__star--active {
  color: #eeda00;
}

.detail-sidebar__rating-value {
  font-size: 20px;
  font-weight: 700;
  color: #141414;
}

.detail-sidebar__rating-count {
  font-size: 14px;
  color: var(--color-text-light);
}

.detail-sidebar__rating-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #028697;
  font-size: 14px;
  font-weight: 300;
  color: #141414;
  text-decoration: none;
}

/* Блок навигации в сайдбаре */
.detail-sidebar__btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
}

.detail-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.detail-sidebar__item {
  list-style: none;
  position: relative;
  padding-left: 20px;
}

.detail-sidebar__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #028697;
  transform: translateY(-50%);
}

.detail-sidebar__item--active::before {
  left: -3px;
  width: 8px;
  height: 8px;
}

.detail-sidebar__link {
  text-decoration: none;
  color: #141414;
  font-size: 16px;
  font-weight: 300;
}

.detail-sidebar__item--active .detail-sidebar__link {
  font-weight: 500;
}


.detail-sidebar__map-content{
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-sidebar__map-link{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #141414;
    text-decoration: none;
}

.detail-sidebar__map-link:hover{
    color: #141414;
    text-decoration: underline;
}

/* ==========================================================================
   Видео
   ========================================================================== */

.video-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Похожие лагеря
   ========================================================================== */

.similar-camps-section {
  margin-top: 60px;
}

.similar-camps-section .section-title {
  margin-bottom: 30px;
}

/* ==========================================================================
   Адаптивность
   ========================================================================== */

/* Планшеты (до 1199px) */
@media (max-width: 1199px) {
  .detail-page__wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .detail-page__sidebar {
    width: 100%;
    position: static;
  }

  

  .gallery__grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 100px;
  }

  .gallery__item--1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .gallery__item--2 {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
  }

  .gallery__item--3 {
    grid-column: 5 / 6;
    grid-row: 1 / 2;
  }

  .gallery__item--4 {
    grid-column: 6 / 7;
    grid-row: 1 / 2;
  }

  .gallery__item--5 {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
  }

  .gallery__item--6 {
    grid-column: 6 / 7;
    grid-row: 2 / 3;
  }

  .gallery__item--7,
  .gallery__item--8,
  .gallery__item--9,
  .gallery__item--10 {
    display: none;
  }
}

/* Мобильные (до 991px) */
@media (max-width: 991px) {
  .camp-types__label {
    font-size: 12px;
  }

  .section-links__item {
    font-size: 12px;
    padding: 4px 10px;
  }

  .booking__row {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Убираем разделители на планшетах */
  .booking__col--shift::after,
  .booking__col--dates::after,
  .booking__col--conditions::after,
  .booking__col--price::after {
    display: none;
  }

  .booking__col--shift,
  .booking__col--dates,
  .booking__col--conditions,
  .booking__col--price {
    padding-right: 0;
  }

  .booking__col--shift {
    grid-column: 1 / 2;
  }

  .booking__col--dates {
    grid-column: 2 / 3;
  }

  .booking__col--conditions {
    grid-column: 1 / 3;
  }

  .booking__col--price {
    grid-column: 1 / 2;
  }

  .booking__col--actions {
    grid-column: 2 / 3;
  }


  .detail-page {
    padding: 20px 0;
  }

  .detail__title {
    font-size: 20px;
  }

  /* Галерея с горизонтальным скроллом */
  .gallery {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
  }

  .gallery__grid {
    display: inline-grid;
    grid-template-columns: 230px 100px 100px 100px 100px;
    grid-template-rows: 75px 75px;
    gap: 5px;
    max-width: calc(100vw - 22px);
    overflow-y: auto;
    padding-bottom: 10px;
  }

  /* Первая картинка - 2x2 */
  .gallery__item--1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  /* Верхний ряд - 4 картинки (2, 3, 4, 5) */
  .gallery__item--2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    display: block;
  }

  .gallery__item--3 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    display: block;
  }

  .gallery__item--4 {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
    display: block;
  }

  .gallery__item--5 {
    grid-column: 5 / 6;
    grid-row: 1 / 2;
    display: block;
  }

  /* Нижний ряд - 4 картинки (6, 7, 8, 9) */
  .gallery__item--6 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    display: block;
  }

  .gallery__item--7 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    display: block;
  }

  .gallery__item--8 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
    display: block;
  }

  .gallery__item--9 {
    grid-column: 5 / 6;
    grid-row: 2 / 3;
    display: block;
  }

  .detail-page__sidebar {
    display: none;
  }

  /* 10-я картинка скрывается */
  .gallery__item--10 {
    display: none !important;
  }

  /* Скрываем десктопный счетчик, показываем мобильный */
  .gallery__more--desktop {
    display: none !important;
  }

  .gallery__more--mobile {
    display: flex !important;
  }

  .detail__meta {
    flex-wrap: wrap;
  }

  .detail__address {
    white-space: normal;
  }

  .booking__table {
    gap: 20px;
  }

  .booking__row {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    padding: 8px 10px 8px 18px;
    gap: 5px;
  }

  .booking__col--dates{
    display: none;
  }

  .booking__shift-mobile{
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .booking__col--conditions{
    grid-column: auto;
  }

  .booking__col--price{
    margin-top: auto;
  }

  /* Убираем все разделители на мобильных */
  .booking__col--shift::after,
  .booking__col--dates::after,
  .booking__col--conditions::after,
  .booking__col--price::after {
    display: none;
  }

  .booking__col {
    gap: 0;
    border: none;
  }

  /* Скрываем десктопную навигацию табов */
  .tabs__nav {
    display: none;
  }

  /* На мобиле показываем все табы как аккордеон */
  .tabs__pane {
    display: block !important;
    padding: 7px;
    margin-bottom: 15px;
    overflow: hidden;
  }

  /* Показываем кнопку-заголовок на мобиле */
  .tabs__pane-header {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-radius: 26px;
    font-size: 16px;
    font-weight: 400;
    color: #141414;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
  }

  /* Активная кнопка-заголовок (когда таб раскрыт) */
  .tabs__pane--active .tabs__pane-header {
    background: linear-gradient(127deg, #028697 0%, #81effe 100%);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
  }

  /* Контент таба на мобиле */
  .tabs__pane-content {
    display: none;
    padding: 20px;
  }

  /* Показываем контент только у активного таба */
  .tabs__pane--active .tabs__pane-content {
    display: block;
  }

  .tabs__content {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .detail-sidebar {
    padding: 15px;
  }

  .similar-camps-section {
    margin-top: 40px;
  }

  .detail-page__sidebar{
    display: none;
  }

  .booking__price-info{
    flex-direction: column;
    gap: 5px;
  }

  .booking__note{
    justify-content: flex-start;
  }
  .booking__price-current{
    text-align: left;
  }

  .booking__btn{
    width: 100%;
    max-width: unset;
    height: 35px;
    margin: 5px 0;
  }

  .booking__shift-name{
    font-size: 12px;
  }

  .booking__shift-year{
    font-size: 10px;
  }

  .booking__dates-range{
    font-size: 12px;
  }

  .booking__dates-duration{
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .tabs__pane-content{
    padding: 5px;
  }
}

/* ==========================================================================
   Tooltip
   ========================================================================== */

.booking__tooltip-wrapper {
  position: relative;
  display: inline-flex;
}

.booking__tooltip {
  position: absolute;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.booking__tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.booking__tooltip--top {
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
}

.booking__tooltip-content {
  position: relative;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 12px;
  line-height: 1;
  color: #141414;
  white-space: pre-line;
  max-width: 300px;
  min-width: 200px;
}

.booking__tooltip--top .booking__tooltip-content::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #e0e0e0;
}

.booking__tooltip--top .booking__tooltip-content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: -1px;
  border: 6px solid transparent;
  border-top-color: #ffffff;
}

/* Подсказка «Раннее бронирование»: обёртка на всю ширину колонки, подсказка по правому краю колонки
   (колонка крайняя справа, по центру подсказка вылезала бы за карточку) */
.booking__tooltip-wrapper--note {
  display: flex;
}

.booking__tooltip--top.booking__tooltip--right {
  left: auto;
  right: 0;
  transform: none;
}

/* у этой подсказки текст короткий: ширина по тексту, чтобы справа был тот же отступ 16px, что и слева */
.booking__tooltip--right .booking__tooltip-content {
  width: max-content;
  min-width: 0;
}

.booking__tooltip--top.booking__tooltip--right .booking__tooltip-content::before,
.booking__tooltip--top.booking__tooltip--right .booking__tooltip-content::after {
  left: auto;
  right: 24px;
  transform: none;
}


/* ==========================================================================
   Таблица характеристик лагеря (.info-table)
   ========================================================================== */

.description-content table {
    border-collapse: collapse;
    width: 100%;
}

.description-content table th,
.description-content table td {
    vertical-align: top;
    padding: 10px 10px;
    border-bottom: 1px solid #037988;
}

.description-content table tr:last-child th,
.description-content table tr:last-child td {
    border-bottom: none;
}

@media (max-width:480px){
.description-content table tr {
    display: block;
}

.description-content table th {
    display: block;
    width: 100%;
}

.description-content table th:first-child {
    font-size: 20px !important;
    border-bottom: 1px solid #037988;
    margin-top: 20px;
}

.description-content table th,
.description-content table td {
    border-bottom: none;
}
}

/* Fancybox: убираем отступы и разрешаем скролл для модалки с картой */
.fancybox__slide.has-iframe {
    padding: 0;
    overflow-y: auto;
}
.fancybox__slide.has-iframe .f-html {
    padding: 0;
    overflow: visible;
}
.fancybox__slide.has-iframe .f-iframe {
    display: block;
}
/* End */


/* Start:/local/templates/newswason_new/components/bitrix/news.list/our_offers/style.css?178177125715719*/
/**
 * Стили для блока "Наши предложения"
 * Компонент: bitrix:news.list / шаблон: our_offers
 * 
 * Базовые стили (.section, .section-title, .section-wrapper, .card) в base.css
 * Здесь только специфичные стили компонента
 */

/* ================================================
   Wrapper - стили обертки
   ================================================ */

.section-wrapper--bg-pink {
    padding: 25px 17px;
    background: rgba(231, 139, 144, 0.15);
    background-image: url('/local/templates/newswason_new/components/bitrix/news.list/our_offers/img/offers1.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 125px 140px;
    border-radius: var(--border-radius);
}

.section-wrapper--bg-blue {
    padding: 25px 17px;
    background: rgba(0, 178, 202, 0.15);
    background-image: url('/local/templates/newswason_new/components/bitrix/news.list/our_offers/img/offers2.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 197px 107px;
    border-radius: var(--border-radius);
}

.section-wrapper--no-bg {
    background: transparent;
}

/* ================================================
   Заголовок блока - дополнительное оформление
   ================================================ */

.our-offers__title {
    display: flex;
    align-items: center;
    gap: 30px;
}

.our-offers__title-link {
    display: flex;
    align-items: center;
    gap: 30px;
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

.our-offers__title-link:hover {
    opacity: 0.7;
}

/* ================================================
   Табы (разделы)
   ================================================ */

.our-offers__tabs {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.our-offers__tab {
    padding: 21px 24px;
    border: none;
    border-radius: 20px;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    color: #141414;
    cursor: pointer;
    transition: var(--transition-normal);
    outline: none;
}

.our-offers__tab.active {
    background: rgba(231, 139, 144, 0.2);
    color: #4e4e4e;
    font-weight: 700;
}

.our-offers__tab.active:hover {
    background: rgba(231, 139, 144, 0.25);
}

/* Неактивный таб — противоположный цвет (розовый/белый блок) */
.section-wrapper--bg-pink .our-offers__tab:not(.active),
.section-wrapper--no-bg .our-offers__tab:not(.active) {
    background: rgba(0, 178, 202, 0.25);
    color: #4e4e4e;
}

.section-wrapper--bg-pink .our-offers__tab:not(.active):hover,
.section-wrapper--no-bg .our-offers__tab:not(.active):hover {
    background: rgba(0, 178, 202, 0.3);
}

/* Голубая версия табов */
.section-wrapper--bg-blue .our-offers__tab.active {
    background: rgba(0, 178, 202, 0.25);
}

.section-wrapper--bg-blue .our-offers__tab.active:hover {
    background: rgba(0, 178, 202, 0.3);
}

/* Неактивный таб — противоположный цвет (синий блок) */
.section-wrapper--bg-blue .our-offers__tab:not(.active) {
    background: rgba(231, 139, 144, 0.2);
    color: #4e4e4e;
}

.section-wrapper--bg-blue .our-offers__tab:not(.active):hover {
    background: rgba(231, 139, 144, 0.25);
}

/* ================================================
   Контент табов
   ================================================ */

.our-offers__content {
    position: relative;
}

.our-offers__tab-content {
    display: none;
}

.our-offers__tab-content.active {
    display: block;
}

/* ================================================
   Слайдер
   ================================================ */

.our-offers__swiper {
    overflow: hidden;
}

.our-offers__swiper .swiper-slide {
    height: auto;
}

/* Навигация (стрелки) - выходят за пределы wrapper на 36px */
.our-offers__tab-content {
    position: relative;
}

.our-offers .our-offers__nav.slider-nav {
    position: absolute;
    top: 50%;
    left: -53px !important; /* Выход за пределы wrapper на 36px, !important для перебития slider.css */
    right: -53px !important;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.our-offers .our-offers__nav .slider-nav__btn {
    pointer-events: auto;
}

/* ================================================
   Карточка лагеря
   ================================================ */

.our-offers__card {
    display: block;
    height: 100%;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: var(--transition-normal);
    overflow: hidden;
}

.our-offers__card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

/* ================================================
   Карточка Type 3 - с фоновой картинкой
   ================================================ */

.our-offers__card-type3-bg {
    position: relative;
    height: 340px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}


.our-offers__card-type3-content {
    position: relative;
    z-index: 2;
    background: var(--bg-white);
    padding: 16px 20px 20px 20px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    margin:4px;
}

.our-offers__card-type3-name {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: #141414;
    margin-bottom: 8px;
}

/* Корректировка отступов для элементов внутри type3 */
.our-offers__card-type3-content .our-offers__card-location {
    margin-bottom: 5px;
}

.our-offers__card-type3-content .our-offers__card-age {
    margin-bottom: 5px;
}

.our-offers__card-type3-content .our-offers__card-days {
    margin-bottom: 5px;
}

.our-offers__card-type3-content .our-offers__card-schedule {
    margin-bottom: 5px;
}

.our-offers__card-type3-content .our-offers__card-price {
    margin-top: 4px;
}

/* Картинка с названием */
.our-offers__card-image {
    position: relative;
    width: calc(100% - 10px);
    height: 170px;
    margin: 5px;
    background: var(--bg-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.our-offers__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.our-offers__card:hover .our-offers__card-image img {
    transform: scale(1.05);
}

.our-offers__card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: var(--bg-white);
}

/* Информация о лагере */
.our-offers__card-info {
    padding: 24px 40px;
    display: flex;
    flex-direction: column;
}

.our-offers__card-location {
    font-weight: 300;
    font-size: 13px;
    line-height: 1.4;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.our-offers__card-age {
    font-weight: 300;
    font-size: 16px;
    line-height: 1.4;
    color: var(--color-text-dark);
    margin-bottom: 7px;
}

.our-offers__card-days {
    font-weight: 300;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(9, 21, 82, 0.8);
    margin-bottom: 7px;
}

.our-offers__card-schedule {
    font-weight: 300;
    font-size: 16px;
    line-height: 1.4;
    color: #4380a7;
    text-decoration: underline;
    cursor: pointer;
    margin-bottom: 7px;
}

.our-offers__card-price {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.2;
    color: var(--color-text-dark);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.our-offers__card-price-btn {
    width: 37px;
    height: 37px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    transition: var(--transition-normal);
}

.our-offers__card-price-btn::after {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12H19M19 12L12 5M19 12L12 19' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.our-offers__card:hover .our-offers__card-price-btn {
    transform: scale(1.1);
}

/* Стили для режима "Ближайшие смены" */
.our-offers__card-info--nearest {
    padding: 24px 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.our-offers__card-name {
    font-weight: 700;
    font-size: 26px;
    line-height: 1.5;
    color: #010C40;
    margin-bottom: 4px;
    min-height: 78px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.our-offers__card-dates {
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: #033142;
    opacity: 0.8;
    margin-bottom: 4px;
}

/* Сообщение о пустом списке */
.our-offers__empty {
    text-align: center;
    font-size: 18px;
    color: var(--color-text-light);
    padding: 40px 0;
}

/* ================================================
   Адаптивность
   ================================================ */

/* Планшеты */
@media (max-width: 1024px) {
    .our-offers__tabs {
        margin-bottom: 30px;
    }
    
    .our-offers__tab {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .our-offers .our-offers__nav.slider-nav {
        left: -45px !important;
        right: -45px !important;
    }
}

/* Мобильные устройства */
@media (max-width: 991px) {
    .our-offers__tabs {
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .our-offers__tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .our-offers__slider-wrapper {
        padding-right: 0;
        overflow: visible;
    }
    
    .our-offers__swiper {
        overflow: visible;
        padding-right: 0;
    }
    
    .our-offers__card-title {
        font-size: 18px;
        padding: 16px;
    }
    
    .our-offers__card-info {
        padding: 16px;
        gap: 10px;
    }
    
    .our-offers__card-info--nearest {
        padding: 16px;
    }
    
    .our-offers__card-name {
        font-size: 20px;
    }
    
    .our-offers__card-dates {
        font-size: 16px;
    }
    
    .our-offers__card-price {
        font-size: 20px;
    }
    
    .our-offers__card-info--nearest .our-offers__card-price {
        font-size: 24px;
    }

    .our-offers .our-offers__nav.slider-nav{
        left: -15px !important;
        right: -15px !important;
    }

    .section-wrapper--no-bg .our-offers__nav.slider-nav{
        left: -5px !important;
        right: -5px !important;
    }
    
    /* Type 3 адаптив для мобильных */
    .our-offers__card-type3-bg {
        height: 300px;
    }
    
    .our-offers__card-type3-content {
        padding: 12px 16px 16px 16px;
    }
    
    .our-offers__card-type3-name {
        font-size: 16px;
        margin-bottom: 6px;
    }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
    .our-offers__tab {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .our-offers__card-title {
        font-size: 16px;
    }
    
    .our-offers__card-info {
        padding: 16px 24px;
    }
    
    .our-offers__card-info--nearest {
        padding: 16px 24px;
    }
    
    .our-offers__card-name {
        font-size: 18px;
    }
    
    .our-offers__card-dates {
        font-size: 14px;
    }
    
    .our-offers__card-info--nearest .our-offers__card-price {
        font-size: 22px;
    }
    
    .our-offers__card-image {
        height: 140px;
    }
    
    /* Type 3 адаптив для маленьких мобильных */
    .our-offers__card-type3-bg {
        height: 280px;
    }
    
    .our-offers__card-type3-content {
        padding: 10px 12px 12px 12px;
    }
    
    .our-offers__card-type3-name {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .our-offers__card-type3-content .our-offers__card-location {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .our-offers__card-type3-content .our-offers__card-age {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .our-offers__card-type3-content .our-offers__card-days {
        font-size: 12px;
        margin-bottom: 3px;
    }
    
    .our-offers__card-type3-content .our-offers__card-schedule {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .our-offers__card-type3-content .our-offers__card-price {
        font-size: 16px;
        margin-top: 2px;
    }
}

/* ================================================
   Расписание смен - селект
   ================================================ */

/* Контейнер селекта */
.our-offers__card-schedule-select {
    position: relative;
    cursor: pointer;
    user-select: none;
}

/* Заголовок селекта (видимая часть) */
.our-offers__schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Стрелка в селекте */
.our-offers__schedule-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: inherit;
}

/* Поворачиваем стрелку когда селект открыт */
.our-offers__card-schedule-select.is-open .our-offers__schedule-arrow {
    transform: rotate(180deg);
}

/* Выпадающий список - position: fixed для выхода за пределы swiper */
/* При открытии dropdown переносится в body через JS (portal) */
.our-offers__schedule-dropdown {
    display: none;
    position: fixed;
    /* top и left устанавливаются через JS */
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
    min-width: 200px;
    width: max-content;
}

/* Контейнер portal в body */
#schedule-dropdown-portal {
    position: relative;
    z-index: 9999;
}

/* Пункт в выпадающем списке */
.our-offers__schedule-item {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.3;
    color: #141414;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.our-offers__schedule-item:hover {
    background-color: rgba(0, 197, 222, 0.1);
}

.our-offers__schedule-item.active {
    background-color: rgba(0, 197, 222, 0.15);
    font-weight: 500;
}

/* Скроллбар для выпадающего списка */
.our-offers__schedule-dropdown::-webkit-scrollbar {
    width: 6px;
}

.our-offers__schedule-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.our-offers__schedule-dropdown::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 10px;
}

.our-offers__schedule-dropdown::-webkit-scrollbar-thumb:hover {
    background: #b4b4b4;
}



/* End */
/* /local/templates/newswason_new/components/bitrix/catalog.element/template1/style.css?179449631127026 */
/* /local/templates/newswason_new/components/bitrix/news.list/our_offers/style.css?178177125715719 */
