/* ================================================
   СТРАНИЦА ПУТЕШЕСТВИЯ — travel.css
================================================ */

/* ── Шапка страницы ── */
.tp-hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 56px;
  text-align: center;
  background: var(--bg);
}

.tp-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.tp-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 32px;
  transition: color .2s;
}
.tp-back svg { width: 16px; height: 16px; }
.tp-back:hover { color: var(--accent); }

.tp-hero__title {
  font-family: var(--font-h);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 28px;
  color: var(--text-dark);
}

.tp-hero__lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
}

/* Блок дат тура в шапке страницы путешествия */
.tp-hero__dates {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 8px 20px;
  border: 1px dashed var(--border);
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.tp-hero__dates svg { width: 16px; height: 16px; flex-shrink: 0; }
.tp-hero__dates:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(181,136,74,.25);
}
.tp-hero__dates:hover svg { color: #fff; }

/* Группа из нескольких дат (когда у тура несколько заездов) */
.tp-hero__dates-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.tp-hero__dates-group .tp-hero__dates { margin-top: 0; }

/* ── Обложка ── */
.tp-cover {
  width: 100%;
  max-height: 560px;
  overflow: hidden;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.tp-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* На десктопе не обрезаем обложку — показываем целиком, без кропа */
@media (min-width: 1024px) {
  .tp-cover {
    max-height: none;
  }
  .tp-cover img {
    height: auto;
    object-fit: contain;
    background: var(--bg);
  }
}

/* ── Основной layout: контент + сайдбар ── */
.tp-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 96px;
}

/* ── Левая колонка ── */
.tp-content {
  min-width: 0;
}

/* ── Блок «День N» ── */
.tp-day {
  margin-bottom: 48px;
}
.tp-day:last-child {
  margin-bottom: 0;
}

/* Разделитель «День N» */
.tp-day__label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.tp-day__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.tp-day__text {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.tp-day__title {
  font-family: var(--font-h);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.tp-day__text-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 32px;
}

/* ── Карусель внутри дня ── */
.tp-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.tp-carousel__track {
  display: flex;
  gap: 12px;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.tp-carousel__item {
  flex: 0 0 calc(50% - 6px);   /* по 2 фото в ряд */
  aspect-ratio: 3/2;
  border-radius: 8px;
  overflow: hidden;
}
.tp-carousel__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.tp-carousel__item:hover img { transform: scale(1.04); }

/* Кнопки карусели */
.tp-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
  z-index: 2;
  opacity: 0;
}
.tp-carousel:hover .tp-carousel__btn { opacity: 1; }
.tp-carousel__btn:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
}
.tp-carousel__btn--prev { left: 10px; }
.tp-carousel__btn--next { right: 10px; }
.tp-carousel__btn svg { width: 18px; height: 18px; display: block; }

/* ── Правый сайдбар (sticky) ── */
.tp-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.tp-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Адаптив ── */
@media (max-width: 1023px) {
  .tp-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 48px;
  }
  .tp-sidebar {
    position: static;
    border-top: 1px dashed var(--border);
    padding-top: 48px;
    margin-top: 0;
  }
  .tp-sidebar__inner {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .tp-sidebar .sidebar__about,
  .tp-sidebar__cta {
    flex: 1 1 280px;
  }
}

@media (max-width: 639px) {
  .tp-hero { padding-top: calc(var(--nav-h) + 40px); padding-bottom: 36px; }
  .tp-hero__lead { font-size: .95rem; }
  .tp-day__title { font-size: 1.35rem; }
  .tp-carousel__item { flex: 0 0 calc(75% - 6px); }
  .tp-carousel__btn { opacity: 1; }
  .tp-day { margin-bottom: 36px; }
  .tp-layout { padding-top: 36px; padding-bottom: 56px; }
  .tp-sidebar__inner { flex-direction: column; }
}

/* Заголовок «Программа тура» перед первым днём */
.tp-program-title {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 40px;
}
@media (max-width: 639px) {
  .tp-program-title { font-size: 1.25rem; margin-bottom: 28px; }
}

/* Фото карусели кликабельны */
.tp-carousel__item {
  cursor: zoom-in;
}

/* ================================================
   ЛАЙТБОКС — увеличение фото по клику
================================================ */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(20, 16, 12, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.photo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.photo-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  transform: scale(.96);
  transition: transform .25s ease;
}
.photo-lightbox.is-open img {
  transform: scale(1);
}

.photo-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.photo-lightbox__close:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.6);
}
.photo-lightbox__close svg { width: 18px; height: 18px; }

/* Стрелки навигации */
.photo-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, opacity .2s;
  z-index: 2;
}
.photo-lightbox__arrow:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.6);
}
.photo-lightbox__arrow svg { width: 20px; height: 20px; }
.photo-lightbox__arrow--prev { left: 24px; }
.photo-lightbox__arrow--next { right: 24px; }
.photo-lightbox__arrow.is-hidden { display: none; }

/* Счётчик «3 / 9» */
.photo-lightbox__counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: .78rem;
  letter-spacing: .04em;
  padding: 5px 14px;
  border-radius: 100px;
}

@media (max-width: 639px) {
  .photo-lightbox { padding: 16px; }
  .photo-lightbox__close { top: 14px; right: 14px; width: 36px; height: 36px; }
  .photo-lightbox__arrow { width: 38px; height: 38px; }
  .photo-lightbox__arrow--prev { left: 8px; }
  .photo-lightbox__arrow--next { right: 8px; }
  .photo-lightbox__counter { bottom: 14px; font-size: .7rem; }
}

/* Подзаголовок мини-галереи «Отель» внутри блока дня */
.tp-day__subtitle {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--accent);
  margin: 32px 0 16px;
}
.tp-coming-soon {
  text-align: center;
  padding: 40px 24px;
  border: 1px dashed var(--border);
  border-radius: 12px;
}
.tp-coming-soon__text {
  font-family: var(--font-h);
  font-size: 1.1rem;
  color: var(--text-mid);
  font-style: italic;
}

/* ================================================
   БЛОК «СТОИМОСТЬ ТУРА» — включено / не включено
================================================ */
.tp-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.tp-price-col__title {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.tp-price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tp-price-list li {
  position: relative;
  padding-left: 26px;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--text-mid);
}

.tp-price-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 10px 10px;
}

.tp-price-list--included li::before {
  background-color: rgba(139, 158, 110, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f8a52' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.tp-price-list--excluded li::before {
  background-color: rgba(181, 136, 74, .14);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5884a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
  .tp-price-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ================================================
   БЛОК «РЕКОМЕНДАЦИИ»
================================================ */
.tp-reco__subtitle {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-dark);
  margin: 0 0 18px;
}

.tp-reco-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tp-reco-list li {
  position: relative;
  padding-left: 22px;
  font-size: .95rem;
  line-height: 1.75;
  color: var(--text-mid);
}
.tp-reco-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.tp-reco-list li strong {
  color: var(--text-dark);
  font-weight: 600;
}

.tp-reco-note {
  padding: 24px 28px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.tp-reco-note p {
  font-size: .9rem;
  line-height: 1.75;
  color: var(--text-mid);
  margin: 0;
}
.tp-reco-note p + p {
  margin-top: 14px;
}
.tp-reco-note strong {
  color: var(--text-dark);
}

/* ================================================
   ЛЕНТА-ГАЛЕРЕЯ БЕЗ ОБРЕЗКИ (для смешанных гориз./верт. фото)
   Одна строка, скролл вбок, вертикальные фото — парами
================================================ */
.tp-scroll-row {
  position: relative;
}
.tp-scroll-row .tp-carousel__btn {
  opacity: 1;
}
.tp-scroll-row__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
}
.tp-scroll-row__track::-webkit-scrollbar { height: 5px; }
.tp-scroll-row__track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.tp-scroll-row__item {
  height: 280px;
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: zoom-in;
}
.tp-scroll-row__item img { height: 100%; width: auto; display: block; }

/* Пара вертикальных фото в одном "слоте" ленты */
.tp-scroll-row__pair {
  height: 280px;
  flex: 0 0 auto;
  display: flex;
  gap: 12px;
  scroll-snap-align: start;
}
.tp-scroll-row__pair-item {
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}
.tp-scroll-row__pair-item img { height: 100%; width: auto; display: block; }

@media (max-width: 639px) {
  .tp-scroll-row__item, .tp-scroll-row__pair { height: 200px; }
}

/* ================================================
   ИТОГОВАЯ СТОИМОСТЬ ТУРА — крупная цифра в конце страницы
================================================ */
.tp-total-price {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 400;
  color: var(--accent);
}

/* ================================================
   БЛОК «ДРУГИЕ ПУТЕШЕСТВИЯ» — карточка-ссылка на другой тур
================================================ */
.tp-other-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}
.tp-other-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 36px rgba(181,136,74,.12);
}
.tp-other-card__img {
  flex: 0 0 160px;
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
}
.tp-other-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.tp-other-card:hover .tp-other-card__img img { transform: scale(1.06); }

.tp-other-card__body { flex: 1; min-width: 0; }
.tp-other-card__title {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 12px;
  transition: color .2s;
}
.tp-other-card:hover .tp-other-card__title { color: var(--accent); }

.tp-other-card__dates {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tp-other-card__dates span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  color: var(--text-mid);
}
.tp-other-card__dates svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-light); }

@media (max-width: 639px) {
  .tp-other-card { flex-direction: column; align-items: stretch; gap: 16px; }
  .tp-other-card__img { flex-basis: auto; aspect-ratio: 16/9; }
}
