/**
 * Single day-tour page. Enqueued only on singular hbn_day_tour.
 * Values come from --hbn-tour-single-* tokens.
 */

.hbn-tour-single {
	width: 100%;
}

.hbn-tour-single__inner {
	box-sizing: border-box;
	margin-inline: auto;
	padding-block: var(--hbn-section-py);
	padding-inline: var(--hbn-tour-single-pad);
	width: 100%;
}

.hbn-tour-single__stack {
	display: flex;
	flex-direction: column;
	gap: var(--hbn-tour-single-section-gap);
}

.hbn-tour-single__overview {
	display: flex;
	flex-direction: column;
	gap: 24px; /* оценка: title block to price row in Tour Page.pdf */
}

/* Tag+class beats Elementor kit `.elementor-kit-* h1` (80px) so mockup 64/40 wins. */
h1.hbn-tour-single__title {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-heading);
	font-size: var(--hbn-tour-single-title-size);
	font-weight: 500;
	line-height: 1;
	margin: 0;
	overflow-wrap: break-word;
}

.hbn-tour-single__intro {
	color: var(--hbn-color-text);
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	margin: 16px 0 0;
	max-width: 42em;
}

.hbn-tour-single__heading {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.hbn-tour-single__book {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hbn-tour-single__price-block {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

p.hbn-tour-single__price {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-body);
	font-size: var(--hbn-tour-single-price-size);
	font-weight: 500;
	line-height: 1.25;
	margin: 0;
}

.hbn-tour-single__price-unit {
	color: var(--hbn-color-text);
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
}

.hbn-tour-single__book .hbn-btn {
	width: 100%;
}

.hbn-tour-gallery {
	display: grid;
	gap: 8px;
}

.hbn-tour-gallery__tile {
	background: transparent;
	border: 0;
	border-radius: var(--hbn-radius-card);
	cursor: pointer;
	display: block;
	overflow: hidden;
	padding: 0;
	width: 100%;
}

.hbn-tour-gallery__tile:focus-visible {
	outline: 2px solid var(--hbn-color-teal-on-light);
	outline-offset: 2px;
}

.hbn-tour-gallery__tile img {
	aspect-ratio: var(--hbn-tour-single-gallery-ratio);
	border-radius: var(--hbn-radius-card);
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.hbn-tour-gallery__rest {
	display: none;
}

.hbn-tour-gallery__hint {
	color: var(--hbn-color-text);
	font-family: var(--hbn-font-body);
	font-size: 13px;
	line-height: 1.5;
	margin: 0;
}

.hbn-tour-facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 24px;
	grid-template-columns: 1fr;
}

.hbn-tour-facts__item {
	align-items: flex-start;
	display: flex;
	gap: 16px;
	margin: 0;
}

.hbn-tour-facts__icon {
	color: var(--hbn-color-teal-on-light);
	flex: 0 0 auto;
	height: var(--hbn-tour-single-check);
	width: var(--hbn-tour-single-check);
}

.hbn-tour-facts__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.hbn-tour-facts__title {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-body);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
}

.hbn-tour-facts__subtitle {
	color: var(--hbn-color-text);
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

.hbn-tour-split {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

h2.hbn-tour-split__title {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-body);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
}

.hbn-tour-split__body {
	color: var(--hbn-color-text);
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	min-width: 0;
}

.hbn-tour-split__body > :first-child {
	margin-top: 0;
}

.hbn-tour-split__body > :last-child {
	margin-bottom: 0;
}

.hbn-tour-split__body :where(p) {
	margin: 0 0 1em;
}

.hbn-tour-split__body :where(ul, ol) {
	margin: 0 0 1em;
	padding-left: 1.2em;
}

.hbn-tour-split__body :where(li) {
	margin: 0 0 0.5em;
}

.hbn-tour-split__body :where(h3) {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-body);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 0.5em;
}

.hbn-tour-split__body :where(h4) {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 0.5em;
}

.hbn-tour-split__body :where(a) {
	color: var(--hbn-color-navy);
}

.hbn-tour-split__body :where(img) {
	border-radius: var(--hbn-radius-card);
	height: auto;
	max-width: 100%;
}

.hbn-tour-list {
	list-style: disc;
	margin: 0;
	padding-left: 1.2em;
}

.hbn-tour-list li {
	margin: 0 0 12px;
}

.hbn-tour-list li:last-child {
	margin-bottom: 0;
}

.hbn-tour-includes {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.hbn-tour-includes__col {
	min-width: 0;
}

h3.hbn-tour-includes__title {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-body);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 16px;
}

.hbn-tour-meeting {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.hbn-tour-meeting__text {
	color: var(--hbn-color-text);
	font-family: var(--hbn-font-body);
	font-size: 15px;
	line-height: 1.6;
	margin: 0;
	white-space: pre-wrap;
}

.hbn-tour-meeting__maps {
	align-items: center;
	background: transparent;
	border: 1px solid var(--hbn-color-sand);
	border-radius: var(--hbn-radius-btn);
	box-sizing: border-box;
	color: var(--hbn-color-navy);
	display: inline-flex;
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 600;
	gap: 12px;
	line-height: 1.5;
	padding: 12px 24px;
	text-decoration: none;
}

.hbn-tour-meeting__maps:focus-visible {
	outline: 2px solid var(--hbn-color-teal-on-light);
	outline-offset: 2px;
}

.hbn-tour-meeting__pin {
	color: var(--hbn-color-sand);
	flex: 0 0 auto;
	height: 16px;
	width: 16px;
}

.hbn-tour-reviews {
	background-color: var(--hbn-color-bg-alt);
	padding-block: var(--hbn-section-py);
	width: 100%;
}

.hbn-tour-reviews .hbn-tour-single__inner {
	padding-block: 0;
}

h2.hbn-tour-reviews__title {
	color: var(--hbn-color-navy);
	font-family: var(--hbn-font-heading);
	font-size: var(--hbn-tour-single-title-size);
	font-weight: 500;
	line-height: 1;
	margin: 0 0 var(--hbn-section-gap);
	text-align: center;
}

.hbn-lightbox {
	background: rgba(4, 23, 38, 0.92);
	border: 0;
	box-sizing: border-box;
	color: var(--hbn-color-cream);
	height: 100%;
	inset: 0;
	margin: 0;
	max-height: 100%;
	max-width: 100%;
	padding: 16px;
	width: 100%;
}

.hbn-lightbox::backdrop {
	background: rgba(4, 23, 38, 0.92);
}

.hbn-lightbox__frame {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 16px;
	height: 100%;
	justify-content: center;
	position: relative;
}

.hbn-lightbox__img {
	height: auto;
	max-height: calc(100vh - 120px);
	max-width: 100%;
	object-fit: contain;
	width: auto;
}

.hbn-lightbox__toolbar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.hbn-lightbox__btn {
	background: transparent;
	border: 1px solid var(--hbn-color-cream);
	border-radius: var(--hbn-radius-btn);
	color: var(--hbn-color-cream);
	cursor: pointer;
	font-family: var(--hbn-font-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	padding: 8px 16px;
}

.hbn-lightbox__btn:focus-visible {
	outline: 2px solid var(--hbn-color-teal-on-light);
	outline-offset: 2px;
}

.hbn-lightbox__count {
	font-family: var(--hbn-font-body);
	font-size: 15px;
	line-height: 1.5;
}

@media (min-width: 768px) {
	.hbn-tour-single__book {
		align-items: center;
		flex-direction: row;
		justify-content: flex-end;
	}

	.hbn-tour-single__book .hbn-btn {
		width: auto;
	}

	.hbn-tour-gallery {
		max-height: var(--hbn-tour-single-gallery-max-height);
	}

	.hbn-tour-gallery:not(.hbn-tour-gallery--split) .hbn-tour-gallery__tile img {
		aspect-ratio: auto;
		height: var(--hbn-tour-single-gallery-max-height);
		max-height: var(--hbn-tour-single-gallery-max-height);
		object-fit: cover;
		width: 100%;
	}

	.hbn-tour-gallery--split {
		align-items: stretch;
		display: grid;
		gap: var(--hbn-tour-single-gallery-gap);
		grid-template-columns: minmax(0, 750fr) minmax(0, 274fr);
		height: var(--hbn-tour-single-gallery-max-height);
		max-height: var(--hbn-tour-single-gallery-max-height);
	}

	.hbn-tour-gallery--thumbs-1 {
		grid-template-rows: auto;
	}

	.hbn-tour-gallery--thumbs-2 {
		grid-template-rows: 1fr 1fr;
	}

	.hbn-tour-gallery--thumbs-3 {
		grid-template-rows: 1fr 1fr 1fr;
	}

	.hbn-tour-gallery--split .hbn-tour-gallery__hero {
		grid-column: 1;
		grid-row: 1 / -1;
		height: 100%;
		min-height: 0;
	}

	.hbn-tour-gallery--split .hbn-tour-gallery__hero img {
		aspect-ratio: auto;
		height: 100%;
		max-height: none;
		object-fit: cover;
	}

	.hbn-tour-gallery__thumbs {
		display: contents;
	}

	.hbn-tour-gallery--split .hbn-tour-gallery__thumb {
		grid-column: 2;
		height: 100%;
		min-height: 0;
	}

	.hbn-tour-gallery--split .hbn-tour-gallery__thumb img {
		aspect-ratio: auto;
		height: 100%;
		max-height: none;
		object-fit: cover;
	}

	.hbn-tour-gallery__hint {
		display: none;
	}

	.hbn-tour-facts {
		grid-template-columns: 1fr 1fr;
	}

	.hbn-tour-split {
		display: grid;
		gap: 24px;
		grid-template-columns: var(--hbn-tour-single-label) minmax(0, 1fr);
	}

	.hbn-tour-includes {
		display: grid;
		gap: 24px;
		grid-template-columns: 1fr 1fr;
	}
}

@media (min-width: 1025px) {
	.hbn-tour-facts {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hbn-lightbox,
	.hbn-tour-gallery__tile {
		transition: none;
	}
}
