/* ==========================================================================
   Voyageo Tours — tour details page
   ========================================================================== */

:root { --vt-bar-h: 4.5rem; }

/* ---------- Photo band ---------- */
.vt-tour-head { min-height: clamp(22rem, 16rem + 16vw, 32rem); }
.vt-tour-head__title { max-width: 18em; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.08; }
:lang(ar) .vt-tour-head__title { line-height: 1.35; }
.vt-tour-head__badge { position: static; display: inline-block; margin-block-end: .75rem; }

.vt-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.vt-fact {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45rem;
	padding: .45rem .85rem;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: var(--vt-fs-ui);
	font-weight: 500;
}
.vt-fact > .vt-icon { width: 1.1rem; height: 1.1rem; }
.vt-fact__value .vt-icon { display: inline-block; width: 1rem; height: 1rem; margin-inline: .2rem; vertical-align: -.15em; }
.vt-fact a { color: #fff; text-decoration: none; }
.vt-fact a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- Gallery ---------- */
.vt-gallery { position: relative; padding-block-start: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.vt-gallery__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-template-rows: repeat(2, clamp(8rem, 4rem + 9vw, 13.5rem));
	gap: .6rem;
}
.vt-gallery__item { overflow: hidden; border-radius: var(--vt-radius); background: #D9D3C8; }
.vt-gallery__item:first-child { grid-row: span 2; }
.vt-gallery__grid--2 .vt-gallery__item:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.vt-gallery__grid--3 .vt-gallery__item:not(:first-child) { grid-column: span 2; }
.vt-gallery__grid--4 .vt-gallery__item:nth-child(4) { grid-column: span 2; }
.vt-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.vt-gallery__item:hover img { transform: scale(1.03); }
.vt-gallery__item:focus-visible { box-shadow: var(--vt-focus); }
.vt-gallery__all {
	position: absolute;
	inset-block-end: 1rem;
	inset-inline-end: calc(var(--vt-gutter) + 1rem);
	min-height: 2.5rem;
	padding: .5rem 1rem;
	font-size: .875rem;
	box-shadow: var(--vt-shadow);
}
.vt-gallery__all .vt-icon { width: 1.1rem; height: 1.1rem; }

@media (max-width: 40rem) {
	.vt-gallery__grid { grid-template-columns: 1fr; grid-template-rows: auto; }
	.vt-gallery__item:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
	.vt-gallery__item:not(:first-child) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.vt-gallery__item img { transition: none; }
}

/* Viewer (native <dialog>) */
.vt-viewer {
	width: 100vw;
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(6, 14, 26, .95);
	color: #fff;
}
.vt-viewer::backdrop { background: transparent; }
.vt-viewer[open] { display: grid; place-items: center; }
.vt-viewer__figure { display: grid; justify-items: center; gap: .75rem; margin: 0; padding: 4.5rem 4.5rem 2rem; }
.vt-viewer__img { max-width: min(100%, 90rem); max-height: calc(100dvh - 9rem); object-fit: contain; border-radius: 2px; }
.vt-viewer__count { color: rgba(255, 255, 255, .8); font-size: var(--vt-fs-ui); font-variant-numeric: tabular-nums; }
.vt-viewer__btn {
	position: absolute;
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	cursor: pointer;
}
.vt-viewer__btn:hover { background: rgba(255, 255, 255, .18); }
.vt-viewer__btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #061A33, 0 0 0 4px var(--vt-copper-soft); }
.vt-viewer__btn .vt-icon { width: 1.3rem; height: 1.3rem; }
.vt-viewer__prev { inset-inline-start: 1rem; top: 50%; translate: 0 -50%; }
.vt-viewer__next { inset-inline-end: 1rem; top: 50%; translate: 0 -50%; }
.vt-viewer__close { inset-inline-end: 1rem; top: 1rem; }
.vt-viewer__prev .vt-icon { transform: scaleX(-1); }
[dir="rtl"] .vt-viewer__prev .vt-icon { transform: none; }
@media (max-width: 40rem) {
	.vt-viewer__figure { padding: 4.5rem .75rem 5.5rem; }
	.vt-viewer__prev, .vt-viewer__next { top: auto; bottom: 1rem; translate: none; }
}

/* ---------- Body: main column + booking card ---------- */
.vt-tour__body { display: grid; gap: 2.5rem; padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
@media (min-width: 64rem) {
	.vt-tour__body { grid-template-columns: minmax(0, 1fr) 21rem; gap: clamp(2.5rem, 1rem + 3vw, 4.5rem); align-items: start; }
	.vt-tour-aside { position: sticky; top: calc(var(--vt-header-h) + 1.5rem); }
}
.vt-tour__main > section + section { margin-block-start: clamp(2.5rem, 2rem + 1.5vw, 3.5rem); }
.vt-tour__h2 { margin-block-end: 1.25rem; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }

/* Itinerary timeline */
.vt-itinerary__list { margin: 0; padding: 0; list-style: none; }
.vt-itinerary__day {
	position: relative;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr);
	gap: 1.25rem;
	padding-block-end: 1.75rem;
}
.vt-itinerary__day:not(:last-child)::before {
	content: "";
	position: absolute;
	inset-block: 2.75rem 0;
	inset-inline-start: calc(1.375rem - .5px);
	width: 1px;
	background: var(--vt-line);
}
.vt-itinerary__day:last-child { padding-block-end: 0; }
.vt-itinerary__num {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1.5px solid var(--vt-copper-soft);
	border-radius: 50%;
	background: var(--vt-cream);
	color: var(--vt-copper-text);
	font-size: .875rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}
.vt-itinerary__body { padding-block-start: .35rem; }
.vt-itinerary__label { margin: 0 0 .15rem; color: var(--vt-copper-text); font-size: var(--vt-fs-small); font-weight: 600; }
.vt-itinerary__title { margin-block-end: .4rem; font-size: var(--vt-fs-h3); }
.vt-itinerary__text { max-width: 40rem; color: var(--vt-text); }
.vt-itinerary__text > :last-child { margin-block-end: 0; }
.vt-itinerary__overnight {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	margin: .6rem 0 0;
	color: var(--vt-muted);
	font-size: var(--vt-fs-ui);
}
.vt-itinerary__overnight .vt-icon { width: 1rem; height: 1rem; }

/* Included / not included */
.vt-services__cols { display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 40rem) {
	.vt-services__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.vt-services__title { margin-block-end: .75rem; font-family: var(--vt-sans); font-size: var(--vt-fs-ui); font-weight: 600; }
.vt-services__list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.vt-services__list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--vt-text); }
.vt-services__list .vt-icon { flex: none; width: 1.25rem; height: 1.25rem; margin-block-start: .15rem; stroke-width: 2; }
.vt-services--included .vt-icon { color: var(--vt-success); }
.vt-services--excluded .vt-icon { color: var(--vt-muted); }

/* Booking card */
.vt-tour-aside__card {
	display: grid;
	gap: 1.25rem;
	padding: 1.5rem;
	border: 1px solid var(--vt-line);
	border-radius: var(--vt-radius);
	background: var(--vt-paper);
	box-shadow: var(--vt-shadow);
}
.vt-tour-price > * { margin: 0; }
.vt-tour-price__amount { color: var(--vt-navy); font-family: var(--vt-serif); font-size: 2rem; line-height: 1.15; }
.vt-tour-price__amount--request { font-size: 1.5rem; }
.vt-tour-price__note { margin-block-start: .25rem; color: var(--vt-muted); font-size: var(--vt-fs-small); }
.vt-tour-aside__facts { display: grid; margin: 0; }
.vt-tour-aside__facts > div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .6rem; border-block-start: 1px solid var(--vt-line); font-size: var(--vt-fs-ui); }
.vt-tour-aside__facts dt { color: var(--vt-muted); }
.vt-tour-aside__facts dd { margin: 0; color: var(--vt-navy); font-weight: 500; text-align: end; }
.vt-tour-aside .vt-btn { width: 100%; min-height: 3rem; }
.vt-tour-aside__wa .vt-icon { width: 1.25rem; height: 1.25rem; }
.vt-tour-aside__note { margin: 0; color: var(--vt-muted); font-size: var(--vt-fs-small); line-height: 1.5; }

/* ---------- Booking section ---------- */
.vt-booking { scroll-margin-top: var(--vt-header-h); }
.vt-booking:focus { outline: none; }
.vt-booking__inner { max-width: 48rem; }

/* ---------- Mobile booking bar ---------- */
.vt-tour-bar { display: none; }
@media (max-width: 63.99rem) {
	.vt-tour-bar {
		position: fixed;
		inset-inline: 0;
		inset-block-end: 0;
		z-index: 45;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		min-height: var(--vt-bar-h);
		padding: .75rem var(--vt-gutter);
		border-block-start: 1px solid var(--vt-line);
		background: var(--vt-paper);
		box-shadow: 0 -6px 20px rgba(11, 34, 64, .08);
		transition: transform .2s, visibility .2s;
	}
	.vt-tour-bar.is-hidden { visibility: hidden; transform: translateY(100%); }
	.vt-tour-bar__price { margin: 0; color: var(--vt-navy); font-family: var(--vt-serif); font-size: 1.2rem; line-height: 1.2; }
	.vt-tour-bar__btn { flex: none; }
	.single-tour .vt-footer { padding-block-end: calc(1.25rem + var(--vt-bar-h)); }
	.single-tour .vt-whatsapp { inset-block-end: calc(var(--vt-bar-h) + 1rem); }
	html:has(body.single-tour) { scroll-padding-bottom: calc(var(--vt-bar-h) + 5.5rem); } /* booking bar + WhatsApp */
}
@media (prefers-reduced-motion: reduce) {
	.vt-tour-bar { transition: none; }
}
