/* Публичная страница тура на сайте отеля (pages/travel_tour.php). Токены из common.css, стиль карточек как
   у списка туров (css/travel.css). Отступ сверху даёт общее правило body.site-light .page. */
.ttp { padding-bottom: 64px; }
.ttp .container { max-width: 1180px; margin: 0 auto; padding: 0 var(--page-pad, 24px); width: 100%; box-sizing: border-box; }
.ttp-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; margin: 4px 0 18px; }
.ttp-back:hover { color: var(--text); }
/* сторона квадратного фото: половина ширины, но не больше, чем позволяет высота окна (стрелка сверху и миниатюры снизу
   должны поместиться), - колонка галереи по этой стороне, остальное отдано сведениям */
.ttp-grid { --ttp-side: min(calc((100% - 40px) * .52), calc(100vh - var(--header-height) - 210px));
    display: grid; grid-template-columns: var(--ttp-side) minmax(0, 1fr); gap: 40px; align-items: start; }

/* галерея: квадратное фото и полоса миниатюр под ним. На компьютере колонка закреплена на всю высоту окна и не
   прокручивается, прокручиваются только сведения справа */
.ttp-left { position: sticky; top: calc(var(--header-height) + 18px); height: calc(100vh - var(--header-height) - 18px - 64px); box-sizing: border-box; }   /* 64px - отступ под страницей (.ttp): иначе в самом конце прокрутки колонка упирается в низ сетки и уезжает вверх */
.ttp-info { padding-top: 39px; }   /* название на одной высоте с верхом фото, стрелка над фото */
.ttp-gal__main { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border: 0; padding: 0; border-radius: 20px; cursor: zoom-in;
    background: #eef0f3 center / cover no-repeat; box-shadow: 0 18px 50px rgba(17, 24, 39, .12); }
.ttp-gal__main--empty { display: flex; align-items: center; justify-content: center; color: #c2c8d0; font-size: 56px; cursor: default; box-shadow: none; }
.ttp-gal__count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .55); color: #fff;
    font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.ttp-gal__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ttp-gal__thumbs::-webkit-scrollbar { display: none; }
.ttp-gal__thumb { flex: none; width: 64px; height: 64px; border: 2px solid transparent; border-radius: 12px; padding: 0; cursor: pointer;
    background: #eef0f3 center / cover no-repeat; opacity: .72; transition: opacity .15s, border-color .15s; }
.ttp-gal__thumb:hover { opacity: 1; }
.ttp-gal__thumb.is-on { opacity: 1; border-color: var(--st-gold, #B27A31); }

/* сведения */
.ttp-cat { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--st-gold, #B27A31); margin-bottom: 8px; }
.ttp-name { font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; color: var(--text); overflow-wrap: anywhere; }
.ttp-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.ttp-spec { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border-light); border-radius: 14px; padding: 12px 14px; }
.ttp-spec__ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(178, 122, 49, .1); color: var(--st-gold, #B27A31);
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.ttp-spec__l { display: block; font-size: 12.5px; color: var(--muted); }
.ttp-spec__v { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.ttp-spec__v.is-yes { color: #15803d; }
.ttp-spec__v.is-no { color: #b91c1c; }
.ttp-desc { font-size: 16px; line-height: 1.6; color: #374151; white-space: pre-line; overflow-wrap: anywhere; margin-bottom: 22px; }
.ttp-desc--info { margin: 0; font-size: 15px; }
.ttp-card { background: var(--surface); border: 1px solid var(--border-light); border-radius: 18px; padding: 18px 20px; margin-bottom: 14px; }
.ttp-card__t { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.ttp-card__t i { color: var(--st-gold, #B27A31); }
.ttp-price { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 16px; color: #374151; }
.ttp-price + .ttp-price { border-top: 1px solid var(--border-light); }
.ttp-price b { font-size: 20px; font-weight: 800; color: var(--text); white-space: nowrap; }
.ttp-info > :last-child { margin-bottom: 0; }   /* низ колонки = низ последнего блока: прилипшее фото доходит ровно до него */
.ttp-card--info { background: rgba(178, 122, 49, .05); border-color: rgba(178, 122, 49, .18); }
.ttp-card--app { background: var(--text); border-color: var(--text); color: #fff; }
.ttp-card--app .ttp-card__t { color: rgba(255, 255, 255, .7); }
.ttp-app__txt { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.ttp-app__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.ttp-app__badges img { height: 44px; width: auto; display: block; }

/* фото на весь экран */
.ttp-light { position: fixed; inset: 0; z-index: 200; background: rgba(8, 8, 10, .94); display: flex; align-items: center; justify-content: center; }
.ttp-light[hidden] { display: none; }
.ttp-light__img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; user-select: none; touch-action: none; }
.ttp-light__x, .ttp-light__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.ttp-light__x:hover, .ttp-light__nav:hover { background: rgba(255, 255, 255, .22); }
.ttp-light__x { top: 18px; right: 18px; }
.ttp-light__nav { top: 50%; margin-top: -23px; }
.ttp-light__nav--l { left: 18px; } .ttp-light__nav--r { right: 18px; }
.ttp-light__n { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: 14px; }

@media (max-width: 860px) {
    .ttp-grid { grid-template-columns: 1fr; gap: 22px; }
    .ttp-left { position: static; height: auto; }
    .ttp-info { padding-top: 0; }
    .ttp-name { font-size: 26px; margin-bottom: 16px; }
    .ttp-back { margin-bottom: 12px; }
}
@media (max-width: 420px) {
    .ttp-specs { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ttp-spec { padding: 10px; gap: 10px; }
    .ttp-spec__ic { width: 32px; height: 32px; font-size: 13px; }
    .ttp-gal__thumb { width: 56px; height: 56px; }
    .ttp-light__nav { display: none; }
}
