/**
 * Excursion Page — совместимость с темой Reboot (WPShop).
 * Подключается только при активной теме Reboot.
 *
 * Разметка темы (фактическая):
 * header.php: #page.site → #content.site-content → .site-content-inner
 * single.php / single-excursion: #primary.content-area → #main.site-main.article-card → .exp-page
 * В style.min.css Reboot: .site { overflow: hidden } — см. header.php <div id="page" class="site">.
 * Это отрезает поднавигацию от viewport для position:sticky; ниже переопределяем только на странице экскурсии.
 */

/* Критично: иначе sticky не работает (предок с overflow ≠ visible) */
.single-excursion.theme-reboot #page.site {
	overflow: visible;
}

/* Поднавигация: sticky внутри колонки (ширина как у #primary), без JS position:fixed */
.single-excursion.theme-reboot #content.site-content,
.single-excursion.theme-reboot .site-content-inner,
.single-excursion.theme-reboot #primary.content-area,
.single-excursion.theme-reboot #main.site-main,
.single-excursion.theme-reboot .exp-page {
	overflow: visible;
}

.single-excursion.theme-reboot .exp-sub-nav {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
}

body.admin-bar.single-excursion.theme-reboot .exp-sub-nav {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar.single-excursion.theme-reboot .exp-sub-nav {
		top: 46px;
	}
}

/* Встраивание в разметку Reboot: #primary .content-area, #main .site-main .article-card */
.theme-reboot .content-area .site-main .exp-page {
	margin: 0;
	padding: 0;
}

/* Контейнер экскурсии внутри основной колонки Reboot */
.theme-reboot .exp-container {
	max-width: 100%;
}

/* Хлебные крошки — не дублировать отступы с блоком темы */
.theme-reboot .exp-breadcrumbs {
	padding-top: 0.5em;
}

/* Hero-галерея (standard) и основной контент — на всю ширину колонки */
.theme-reboot .exp-hero-gallery-section .exp-hero-gallery,
.theme-reboot .exp-layout {
	max-width: 100%;
}

/* Галерея экскурсии, выведенная ДО #primary (wide/full/fullscreen): ширина по стилям темы Reboot */
.single-excursion.theme-reboot .entry-image.entry-image--wide,
.single-excursion.theme-reboot .entry-image.entry-image--full,
.single-excursion.theme-reboot .entry-image.entry-image--fullscreen {
	position: relative;
	box-sizing: border-box;
	background: none !important;
	background-color: transparent !important;
}

/* «Широкая» на узких экранах — на всю ширину вьюпорта, как «На всю ширину» (breakout из колонки, без угадывания padding) */
@media (max-width: 767px) {
	.single-excursion.theme-reboot .entry-image.entry-image--wide {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}
}

.theme-reboot .entry-image .exp-hero-gallery-inner--inside-entry-image {
	width: 100%;
	max-width: 100%;
}
.theme-reboot .entry-image .exp-hero-gallery-inner--inside-entry-image .exp-hero-gallery {
	max-width: none;
}

/* Fullscreen: блок ровно 100vh, контент от верха без отступа */
.single-excursion.theme-reboot .entry-image.entry-image--fullscreen {
	display: block !important;
	height: 100vh !important;
	min-height: 100vh !important;
	max-height: 100vh !important;
	padding: 0 !important;
	overflow: hidden;
}
/* Внутренний блок галереи — на весь объём контейнера с самого верха */
.single-excursion.theme-reboot .entry-image.entry-image--fullscreen .exp-hero-gallery-inner--inside-entry-image {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	padding: 0 !important;
}
.single-excursion.theme-reboot .entry-image.entry-image--fullscreen .exp-hero-gallery-inner--inside-entry-image .exp-hero-gallery {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	grid-template-rows: 1fr 1fr !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 0 !important;
	border-radius: 0 !important;
}

/* Мобильная нижняя панель — поверх футера Reboot */
.theme-reboot .exp-mobile-bar {
	z-index: 1000;
}

/* Лайтбокс поверх хедера Reboot */
.theme-reboot .exp-lightbox.is-open {
	z-index: 100001;
}

/* Форма отзывов: поля в стиле контента темы */
.theme-reboot .exp-review-form .comment-form input[type="text"],
.theme-reboot .exp-review-form .comment-form input[type="email"],
.theme-reboot .exp-review-form .comment-form textarea {
	font-size: 16px;
}

/* Кнопки бронирования — жирность; цвет фона из --exp-primary (кастомайзер Reboot) */
.theme-reboot .exp-btn-book,
.theme-reboot .exp-btn-book-final,
.theme-reboot .exp-btn-book-mobile {
	font-weight: 700;
}

/* Ссылки: «Основной цвет текста / ссылок / при наведении» из кастомайзера (переменные — inline в Excursion_Template) */
.theme-reboot .exp-page .exp-breadcrumbs a {
	color: var(--exp-link);
}
.theme-reboot .exp-page .exp-breadcrumbs a:hover,
.theme-reboot .exp-page .exp-breadcrumbs a:focus {
	color: var(--exp-link-hover);
}
.theme-reboot .exp-page .exp-desc-text a,
.theme-reboot .exp-page .exp-review-text a,
.theme-reboot .exp-page .exp-faq-answer-inner a {
	color: var(--exp-link);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.theme-reboot .exp-page .exp-desc-text a:hover,
.theme-reboot .exp-page .exp-desc-text a:focus,
.theme-reboot .exp-page .exp-review-text a:hover,
.theme-reboot .exp-page .exp-faq-answer-inner a:hover {
	color: var(--exp-link-hover);
}

