/* ─────────────────────────────────────────────────────────────────────────
   WETRIPER — Tour single page
   Airbnb / IndyGuide style: mosaic → header → 2-col body + sticky sidebar
   ───────────────────────────────────────────────────────────────────────── */

/* ── Page wrapper ────────────────────────────────────────────────────────── */
.single-tour {
	padding-bottom: var(--sp-10);
}

/* ═══════════════════════════════════════════════════════════════════════════
   1. PHOTO MOSAIC
   ═══════════════════════════════════════════════════════════════════════════ */

.tour-mosaic {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 4px;
	height: 520px;
	border-radius: var(--r-xl);
	overflow: hidden;
	margin-block: var(--sp-6);
	position: relative;
}

/* Only one side present (no gallery or no featured image) */
.tour-mosaic--single {
	grid-template-columns: 1fr;
}

.tour-mosaic__main {
	height: 100%;
	overflow: hidden;
}

.tour-mosaic__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.tour-mosaic__main:hover img { transform: scale(1.03); }

/* 2 × 2 thumb grid */
.tour-mosaic__thumbs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 4px;
}

.tour-mosaic__thumb {
	position: relative;
	overflow: hidden;
}

.tour-mosaic__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 400ms ease;
}

.tour-mosaic__thumb:hover img { transform: scale(1.05); }

/* "Show all photos" button — bottom-right of mosaic */
.tour-mosaic__show-all {
	position: absolute;
	bottom: var(--sp-4);
	right: var(--sp-4);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0.6rem 1.1rem;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: var(--r-pill);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--c-ink);
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
	transition: background 150ms, box-shadow 150ms, transform 150ms;
	z-index: 2;
}

.tour-mosaic__show-all:hover {
	background: #fff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .22);
	transform: translateY(-1px);
}

.tour-mosaic__show-all svg,
.tour-mosaic__show-all i {
	flex-shrink: 0;
	color: var(--c-ink);
	font-size: 1.125rem;
	line-height: 1;
}

/* "+N more" overlay on the 4th thumb */
.tour-mosaic__more {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .52);
	color: #fff;
	font-size: var(--text-xl);
	font-weight: 700;
	letter-spacing: -0.02em;
	backdrop-filter: blur(2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. TOUR HEADER (title + guide pill)
   ═══════════════════════════════════════════════════════════════════════════ */

.single-tour__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--sp-6);
	padding-block: var(--sp-5) var(--sp-7);
	border-bottom: 1px solid var(--c-line);
	margin-bottom: var(--sp-6);
}

.single-tour__header-main {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: var(--sp-3);
	align-content: start;
}

.single-tour__header-main h1 {
	font-size: var(--text-4xl);
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 0.95;
	max-width: 22ch;
}

/* ── Meta pills ────────────────────────────────────────────────────────── */

.tour-meta-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-2);
}

.tour-meta-strip span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0.3rem 0.75rem;
	background: var(--c-surface-2);
	border-radius: var(--r-pill);
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--c-ink-2);
}

.tour-meta-strip svg,
.tour-meta-strip i { flex-shrink: 0; color: var(--c-muted); font-size: 0.9rem; line-height: 1; }

.hero-actions {
	display: flex;
	gap: var(--sp-2);
}

/* ── Guide pill (right of header) ──────────────────────────────────────── */

.single-tour__guide-pill {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: var(--sp-3) var(--sp-4);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	text-decoration: none;
	color: inherit;
	min-width: 200px;
	transition: border-color 150ms, box-shadow 150ms;
}

.single-tour__guide-pill:hover {
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px var(--c-accent-bg);
}

.single-tour__guide-pill__avatar {
	width: 52px;
	height: 52px;
	border-radius: var(--r-pill);
	overflow: hidden;
	flex-shrink: 0;
	background: var(--c-surface-2);
}

.single-tour__guide-pill__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.single-tour__guide-pill__info {
	display: grid;
	gap: 2px;
}

.single-tour__guide-pill__label {
	font-size: var(--text-xs);
	color: var(--c-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

.single-tour__guide-pill__name {
	font-size: var(--text-base);
	font-weight: 700;
	color: var(--c-ink);
	letter-spacing: -0.02em;
}

.single-tour__guide-pill__location {
	font-size: var(--text-xs);
	color: var(--c-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. TWO-COLUMN LAYOUT
   ═══════════════════════════════════════════════════════════════════════════ */

.single-tour__layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: var(--sp-8);
	align-items: start;
}

.single-tour__content {
	min-width: 0;
}

/* ── Section wrapper pattern ───────────────────────────────────────────── */

.tour-section {
	padding-block: var(--sp-6);
	border-top: 1px solid var(--c-line);
	display: grid;
	gap: var(--sp-4);
}

.tour-section:first-child {
	border-top: none;
	padding-top: 0;
}

.tour-section__title {
	/* Inherits global h2: text-3xl / weight 500 / -0.04em / 0.95 — same as homepage section headings */
	margin: 0;
}

/* Side-by-side sub-sections (Best months / Languages) */
.tour-section--tags {
	grid-template-columns: 1fr 1fr;
	column-gap: var(--sp-8);
	row-gap: var(--sp-4);
}

/* ── Body prose ────────────────────────────────────────────────────────── */

.single-tour__body {
	font-size: var(--text-base);
	color: var(--c-ink-2);
	line-height: 1.75;
}

.single-tour__body h2 {
	font-size: var(--text-2xl);
	font-weight: 700;
	letter-spacing: -0.04em;
	margin: var(--sp-6) 0 var(--sp-3);
}

.single-tour__body h3 {
	font-size: var(--text-xl);
	font-weight: 600;
	letter-spacing: -0.03em;
	margin: var(--sp-5) 0 var(--sp-2);
}

.single-tour__body p  { margin-bottom: var(--sp-4); }
.single-tour__body p:last-child { margin-bottom: 0; }

.single-tour__body ul,
.single-tour__body ol  { padding-left: var(--sp-5); margin-bottom: var(--sp-4); }
.single-tour__body li  { margin-bottom: var(--sp-2); line-height: 1.6; }

/* ── Highlights list ───────────────────────────────────────────────────── */

.tour-highlights {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: var(--sp-3);
}

.tour-highlights li {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-3);
	font-size: var(--text-base);
	color: var(--c-ink-2);
	line-height: 1.55;
}

.tour-highlights li::before {
	content: '';
	display: block;
	width: 8px;
	height: 8px;
	border-radius: var(--r-pill);
	background: var(--c-accent);
	flex-shrink: 0;
	margin-top: 0.45em;
}

/* ── Itinerary timeline ────────────────────────────────────────────────── */

.tour-itinerary { display: grid; }

.tour-itinerary__item {
	border-bottom: 1px solid var(--c-line);
}

.tour-itinerary__item:first-child {
	border-top: 1px solid var(--c-line);
}

.tour-itinerary__summary {
	display: flex;
	align-items: center;
	gap: var(--sp-4);
	padding: var(--sp-4) 0;
	cursor: pointer;
	list-style: none;
}

.tour-itinerary__summary::-webkit-details-marker { display: none; }

/* Day badge — "01 Day" stacked side by side */
.tour-itinerary__day-badge {
	display: flex;
	align-items: baseline;
	gap: 4px;
	flex-shrink: 0;
	width: 68px;
}

.tour-itinerary__day-num {
	font-size: var(--text-2xl);
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--c-ink);
	line-height: 1;
}

.tour-itinerary__day-word {
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--c-muted);
}

.tour-itinerary__item-title {
	flex: 1;
	font-size: var(--text-base);
	font-weight: 600;
	color: var(--c-ink);
	line-height: 1.4;
}

.tour-itinerary__chevron {
	flex-shrink: 0;
	color: var(--c-muted);
	transition: transform 250ms ease;
	font-size: 1.25rem;
	line-height: 1;
}

details[open] > .tour-itinerary__summary .tour-itinerary__chevron {
	transform: rotate(180deg);
}

.tour-itinerary__content {
	padding: 0 0 var(--sp-5) calc(68px + var(--sp-4));
	font-size: var(--text-sm);
	color: var(--c-ink-2);
	line-height: 1.75;
}

.tour-itinerary__content p { margin-bottom: var(--sp-3); }
.tour-itinerary__content p:last-child { margin-bottom: 0; }

/* ── Included / Not included ───────────────────────────────────────────── */

.tour-included-grid {
	display: grid;
	gap: var(--sp-4);
}

.tour-included-grid--two-col {
	grid-template-columns: 1fr 1fr;
}

.tour-included-panel {
	padding: var(--sp-5);
	border-radius: var(--r-xl);
	background: var(--c-surface-2);
	border-left: 3px solid transparent;
	display: grid;
	gap: var(--sp-4);
}

.tour-included-panel--yes { border-left-color: #16A34A; }
.tour-included-panel--no  { border-left-color: #DC2626; }

.tour-included-panel h3 {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0;
}

.tour-included-panel--yes h3 { color: #16A34A; }
.tour-included-panel--no  h3 { color: #DC2626; }
.tour-included-panel h3 i { font-size: 1rem; line-height: 1; }

.tour-included-panel > div {
	font-size: var(--text-sm);
	color: var(--c-ink-2);
	line-height: 1.7;
}

.tour-included-panel > div p              { margin-bottom: var(--sp-2); }
.tour-included-panel > div p:last-child   { margin-bottom: 0; }
.tour-included-panel > div ul             { padding-left: var(--sp-4); }
.tour-included-panel > div li             { margin-bottom: var(--sp-1); }

/* ── Tag clouds (seasons, languages) ──────────────────────────────────── */

.tour-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-top: var(--sp-3);
}

.tour-tags span {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.75rem;
	background: var(--c-surface-2);
	border-radius: var(--r-pill);
	font-size: var(--text-sm);
	font-weight: 500;
	color: var(--c-ink-2);
}

/* ── Pricing tiers table ───────────────────────────────────────────────── */

.tour-price-tiers {
	display: grid;
	border: 1px solid var(--c-line);
	border-radius: var(--r-md);
	overflow: hidden;
}

.tour-price-tier {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--sp-3) var(--sp-5);
	font-size: var(--text-sm);
	border-bottom: 1px solid var(--c-line);
	transition: background 120ms;
}

.tour-price-tier:last-child { border-bottom: none; }

.tour-price-tier--head {
	background: var(--c-surface-2);
	font-size: var(--text-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--c-muted);
}

.tour-price-tier:not(.tour-price-tier--head):hover { background: var(--c-surface-2); }

.tour-price-tier__price {
	font-weight: 700;
	color: var(--c-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. STICKY SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */

.single-tour__sidebar {
	position: sticky;
	top: calc(var(--header-h) + var(--sp-5));
	display: grid;
	gap: var(--sp-4);
}

/* ── Booking panel ─────────────────────────────────────────────────────── */

.booking-panel {
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	padding: var(--sp-5) var(--sp-6);
	display: grid;
	gap: var(--sp-4);
	box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
}

.booking-panel__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	padding-bottom: var(--sp-4);
	border-bottom: 1px solid var(--c-line);
}

.booking-panel__from {
	font-size: var(--text-sm);
	color: var(--c-muted);
	font-weight: 500;
}

.booking-panel__amount {
	font-size: var(--text-3xl);
	font-weight: 800;
	letter-spacing: -0.04em;
	color: var(--c-ink);
	line-height: 1;
}

.booking-panel__basis {
	font-size: var(--text-sm);
	color: var(--c-muted);
	font-weight: 500;
}

.booking-panel__heading {
	font-size: var(--text-lg);
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0;
}

/* ── Sidebar guide card ────────────────────────────────────────────────── */

.sidebar-guide {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	padding: var(--sp-4);
	background: var(--c-surface);
	border: 1px solid var(--c-line);
	border-radius: var(--r-xl);
	text-decoration: none;
	color: inherit;
	transition: border-color 150ms, box-shadow 150ms;
}

.sidebar-guide:hover {
	border-color: var(--c-accent);
	box-shadow: 0 0 0 3px var(--c-accent-bg);
}

.sidebar-guide__avatar {
	width: 48px;
	height: 48px;
	border-radius: var(--r-pill);
	object-fit: cover;
	flex-shrink: 0;
}

.sidebar-guide__info {
	flex: 1;
	display: grid;
	gap: 2px;
}

.sidebar-guide__label {
	font-size: var(--text-xs);
	color: var(--c-muted);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
}

.sidebar-guide__name {
	font-size: var(--text-base);
	font-weight: 700;
	color: var(--c-ink);
	letter-spacing: -0.02em;
}

.sidebar-guide__location {
	font-size: var(--text-xs);
	color: var(--c-muted);
}

.sidebar-guide > svg,
.sidebar-guide > i {
	flex-shrink: 0;
	color: var(--c-muted);
	transition: transform 200ms ease, color 200ms ease;
	font-size: 1rem;
	line-height: 1;
}

.sidebar-guide:hover > svg,
.sidebar-guide:hover > i {
	transform: translateX(3px);
	color: var(--c-accent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. PHOTO LIGHTBOX OVERLAY
   ═══════════════════════════════════════════════════════════════════════════ */

/* Mosaic tiles are clickable */
.tour-mosaic__main[data-lightbox-open],
.tour-mosaic__thumb[data-lightbox-open] {
	cursor: zoom-in;
}

/* Overlay */
.tour-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(0, 0, 0, .93);
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.tour-lightbox.is-open { display: flex; }

body.tour-lightbox-open { overflow: hidden; }

/* Close button */
.tour-lightbox__close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 150ms;
	z-index: 2;
}

.tour-lightbox__close:hover { background: rgba(255, 255, 255, .25); }

/* Prev / Next */
.tour-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 150ms;
	z-index: 2;
}

.tour-lightbox__nav:hover { background: rgba(255, 255, 255, .25); }
.tour-lightbox__prev { left: 18px; }
.tour-lightbox__next { right: 18px; }

/* Main image stage */
.tour-lightbox__stage {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 88px 16px;
	max-height: calc(100dvh - 140px);
	width: 100%;
	box-sizing: border-box;
}

.tour-lightbox__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 8px 48px rgba(0, 0, 0, .55);
	transition: opacity 180ms ease;
}

.tour-lightbox__img.is-loading { opacity: 0; }

/* Counter  "3 / 7" */
.tour-lightbox__counter {
	color: rgba(255, 255, 255, .6);
	font-size: var(--text-sm);
	font-weight: 600;
	letter-spacing: 0.05em;
	padding-block: 10px 6px;
	flex-shrink: 0;
}

/* Thumbnail strip */
.tour-lightbox__strip {
	display: flex;
	gap: 6px;
	padding: 6px 18px 18px;
	overflow-x: auto;
	scrollbar-width: none;
	flex-shrink: 0;
	max-width: 100%;
}

.tour-lightbox__strip::-webkit-scrollbar { display: none; }

.tour-lightbox__strip-thumb {
	flex-shrink: 0;
	width: 64px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
	padding: 0;
	cursor: pointer;
	background: none;
	opacity: 0.55;
	transition: opacity 150ms, border-color 150ms;
}

.tour-lightbox__strip-thumb:hover { opacity: 0.85; }

.tour-lightbox__strip-thumb.is-active {
	border-color: #fff;
	opacity: 1;
}

.tour-lightbox__strip-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Mobile lightbox adjustments */
@media (max-width: 640px) {
	.tour-lightbox__stage {
		padding: 56px 16px 8px;
	}

	.tour-lightbox__nav {
		width: 40px;
		height: 40px;
	}

	.tour-lightbox__prev { left: 8px; }
	.tour-lightbox__next { right: 8px; }

	.tour-lightbox__strip-thumb {
		width: 52px;
		height: 40px;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ≤1060px — sidebar drops below content */
@media (max-width: 1060px) {
	.single-tour__layout {
		grid-template-columns: 1fr;
	}

	.single-tour__sidebar {
		position: static;
		max-width: 540px;
	}
}

/* ≤900px — mosaic collapses to single column */
@media (max-width: 900px) {
	.tour-mosaic {
		grid-template-columns: 1fr;
		grid-template-rows: 300px 160px;
		height: auto;
	}

	.tour-mosaic__thumbs {
		/* stays 2×2 but row height is now 160px total */
	}
}

/* ≤768px — header stacks, minor adjustments */
@media (max-width: 768px) {
	.single-tour__header {
		flex-direction: column;
		gap: var(--sp-4);
	}

	.single-tour__guide-pill {
		min-width: 0;
		width: 100%;
	}

	.tour-mosaic {
		border-radius: var(--r-md);
		margin-block: var(--sp-4);
		grid-template-rows: 240px 130px;
	}

	.tour-included-grid--two-col {
		grid-template-columns: 1fr;
	}

	.tour-section--tags {
		grid-template-columns: 1fr;
	}

	.tour-itinerary__content {
		padding-left: calc(68px + var(--sp-2));
	}
}

/* ≤480px — hide thumbs, show only hero image */
@media (max-width: 480px) {
	.tour-mosaic {
		grid-template-columns: 1fr;
		height: 220px;
		grid-template-rows: 1fr;
	}

	.tour-mosaic__thumbs { display: none; }

	.booking-panel { padding: var(--sp-4); }
}
