/**
 * Single Tour – Layout & Komponenten (Child-Theme).
 *
 * Schriftgrößen kommen bewusst vom Parent-Theme:
 * - Fließtext/Listen/Überschriften der WYSIWYG-Felder erben über die
 *   zusätzliche Klasse .post-content die Theme-Typografie.
 * - Eigene Titel/Labels sind relativ (em) zur Theme-Basisgröße gesetzt,
 *   keine festen Kleinwerte.
 */

.single-tours {
	--tt-accent: #b02418;          /* an das rote Tiger-Trail-Branding angelehnt */
	--tt-accent-dark: #8e1c12;
	--tt-muted: #6b7280;
	--tt-line: #e5e7eb;
	--tt-bg-soft: #f7f6f4;
	--tt-radius: 8px;
}

/* ============ HERO (nativer .entry-header des Themes) ============ */
.tt-tour-hero {
	position: relative;
	min-height: 68vh; /* Fallback; die reale Höhe setzt das Theme (header_image_height) */
	background-color: #22303a;
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
}
.tt-tour-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.28));
}
/* Titel-Block: horizontal zentriert; vertikaler Abstand = Top Distance des Themes
   (--tt-hero-top wird in page-header.php aus title_tagline_logo_distance gesetzt),
   genau wie das Theme das Logo per .header-logo { padding-top } positioniert. */
.tt-hero {
	max-width: 900px;
	margin: 0 auto;
	padding: var(--tt-hero-top, 120px) 1.5rem 0;
}
.tt-hero__title {
	margin: 0 0 0.4em;
	font-size: clamp(2.2rem, 5vw, 3.6rem);
	line-height: 1.12;
	color: #fff;
}
.tt-hero__subtitle {
	margin: 0;
	font-size: clamp(1.1rem, 2.2vw, 1.5rem);
	font-weight: 400;
	line-height: 1.5;
	opacity: 0.95;
}

/* ============ BUTTONS ============ */
.tt-btn {
	display: inline-block;
	padding: 0.7em 1.5em;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border-radius: var(--tt-radius);
	transition: background-color 0.15s ease;
	cursor: pointer;
	border: 0;
}
.tt-btn--primary {
	background: var(--tt-accent);
	color: #fff;
}
.tt-btn--primary:hover,
.tt-btn--primary:focus {
	background: var(--tt-accent-dark);
	color: #fff;
}
.tt-btn--large {
	padding: 0.85em 2.2em;
	font-size: 1.1em;
}

/* ============ QUICK-INFO-BAR ============ */
.tt-quickbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 2rem;
	padding: 1.5rem 0;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--tt-line);
}
.tt-quickbar__items {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tt-quick {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
}
.tt-quick__label {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tt-muted);
}
.tt-quick__value {
	font-size: 1.1em;
	font-weight: 700;
}

/* ============ INHALT ============ */
.tt-tour__body {
	max-width: 900px;
	margin: 0 auto;
}
.tt-section {
	margin: 0 0 3rem;
}
.tt-section__title {
	font-size: 1.7em;
	line-height: 1.2;
	margin: 0 0 0.8em;
	padding-bottom: 0.35em;
	position: relative;
}
.tt-section__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 52px;
	height: 3px;
	background: var(--tt-accent);
	border-radius: 2px;
}

/* WYSIWYG-Inhalt: Typografie kommt von .post-content (Theme). Nur Feinschliff: */
.tt-richtext > *:first-child {
	margin-top: 0;
}
.tt-richtext img {
	max-width: 100%;
	height: auto;
	border-radius: var(--tt-radius);
}

/* ============ SUMMARY / READ-MORE ============ */
.tt-summary__inner {
	position: relative;
	max-height: 10em;
	overflow: hidden;
	transition: max-height 0.3s ease;
}
.tt-summary.is-open .tt-summary__inner {
	max-height: none;
}
.tt-summary:not(.is-open) .tt-summary__inner::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4em;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}
.tt-readmore {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin-top: 0.75em;
	padding: 0;
	background: none;
	border: 0;
	color: var(--tt-accent);
	font-weight: 700;
	font-size: 1em;
	cursor: pointer;
}
.tt-readmore::after {
	content: "\25BE"; /* ▾ */
	transition: transform 0.2s ease;
}
.tt-summary.is-open .tt-readmore::after {
	transform: rotate(180deg);
}

/* ============ GALERIE ============ */
.tt-gallery {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 12px;
}
.tt-gallery__main {
	min-width: 0; /* verhindert Slick-Overflow im Grid */
}
.tt-gallery__main .tt-gallery__slide img,
.tt-gallery__link img {
	display: block;
	width: 100%;
	height: 440px;
	object-fit: cover;
	border-radius: var(--tt-radius);
}
.tt-gallery__link {
	position: relative;
	display: block;
	cursor: zoom-in;
}
.tt-gallery__zoom {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	transition: opacity 0.15s ease;
}
.tt-gallery__zoom::before,
.tt-gallery__zoom::after {
	content: "";
	position: absolute;
	background: #fff;
}
.tt-gallery__zoom::before { /* horizontale Linie des + */
	left: 11px;
	top: 19px;
	width: 18px;
	height: 2px;
}
.tt-gallery__zoom::after { /* vertikale Linie des + */
	left: 19px;
	top: 11px;
	width: 2px;
	height: 18px;
}
.tt-gallery__link:hover .tt-gallery__zoom {
	opacity: 1;
}
.tt-gallery__thumbs .tt-gallery__thumb img {
	display: block;
	width: 100%;
	height: 138px;
	object-fit: cover;
	border-radius: var(--tt-radius);
	cursor: pointer;
}
.tt-gallery__thumbs .slick-current .tt-gallery__thumb img {
	outline: 3px solid var(--tt-accent);
	outline-offset: -3px;
}
/* Slick-Pfeile sichtbar über dem Bild */
.tt-gallery__main .slick-prev,
.tt-gallery__main .slick-next {
	z-index: 5;
	width: 40px;
	height: 40px;
}
.tt-gallery__main .slick-prev { left: 12px; }
.tt-gallery__main .slick-next { right: 12px; }

/* ============ INKLUSIVE / NICHT INKLUSIVE ============ */
.tt-services {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}
.tt-services__col {
	padding: 1.5rem;
	border-radius: var(--tt-radius);
	background: var(--tt-bg-soft);
	border: 1px solid var(--tt-line);
}
.tt-services__col--in {
	border-left: 4px solid #3f9b52;
}
.tt-services__col--out {
	border-left: 4px solid #c94b4b;
}
.tt-services .tt-section__title {
	font-size: 1.25em;
}
.tt-services .tt-section__title::after {
	display: none;
}

/* ============ LIGHTBOX ============ */
body.tt-lb-open {
	overflow: hidden;
}
.tt-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.9);
}
.tt-lb.is-open {
	display: flex;
}
.tt-lb__stage {
	margin: 0;
	max-width: 92vw;
	max-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tt-lb__img {
	max-width: 92vw;
	max-height: 88vh;
	object-fit: contain;
	cursor: zoom-in;
	transition: transform 0.2s ease;
}
.tt-lb__img.is-zoomed {
	transform: scale(1.8);
	cursor: zoom-out;
}
.tt-lb__close,
.tt-lb__nav {
	position: absolute;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border: 0;
	cursor: pointer;
	line-height: 1;
	transition: background 0.15s ease;
}
.tt-lb__close:hover,
.tt-lb__nav:hover {
	background: rgba(255, 255, 255, 0.28);
}
.tt-lb__close {
	top: 18px;
	right: 22px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 1.8rem;
}
.tt-lb__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 54px;
	height: 54px;
	border-radius: 50%;
	font-size: 2.2rem;
}
.tt-lb__prev { left: 22px; }
.tt-lb__next { right: 22px; }

/* ============ TERMINE ============ */
.tt-dates__scroll {
	overflow-x: auto;
}
/* Gruppen-Überschrift (Titel) */
.tt-dates__group {
	margin: 1.75em 0 0.25em;
	color: var(--tt-accent);
	font-size: 1.15em;
}
.tt-dates__group:first-child {
	margin-top: 0;
}
.tt-dates__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}
.tt-dates__when strong {
	font-weight: 700;
}
.tt-dates__code {
	color: var(--tt-muted);
}
.tt-dates__price {
	font-weight: 700;
	white-space: nowrap;
}
.tt-dates__table th,
.tt-dates__table td {
	padding: 0.85em 1em;
	text-align: left;
	border-bottom: 1px solid var(--tt-line);
	vertical-align: middle;
}
.tt-dates__table thead th {
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--tt-muted);
	border-bottom-width: 2px;
}
.tt-dates__table tbody tr:not(.tt-dates__detailrow):hover {
	background: var(--tt-bg-soft);
}
.tt-dates__title {
	font-weight: 600;
}
.tt-dates__cta,
.tt-dates__cta-head {
	text-align: right;
	white-space: nowrap;
}

/* Info-Button (i) */
.tt-dates__info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5em;
	height: 1.5em;
	margin-left: 0.5em;
	padding: 0;
	font-style: italic;
	font-weight: 700;
	font-size: 0.85em;
	line-height: 1;
	color: var(--tt-accent);
	background: transparent;
	border: 1.5px solid var(--tt-accent);
	border-radius: 50%;
	cursor: pointer;
	vertical-align: middle;
	transition: background 0.15s ease, color 0.15s ease;
}
.tt-dates__info:hover,
.tt-dates__info[aria-expanded="true"] {
	background: var(--tt-accent);
	color: #fff;
}

/* Aufklappbare Detailzeile */
.tt-dates__detailrow {
	display: none;
}
.tt-dates__detailrow.is-open {
	display: table-row;
}
.tt-dates__detailrow > td {
	background: var(--tt-bg-soft);
	border-bottom: 1px solid var(--tt-line);
}
.tt-dates__box {
	padding: 0.5em 0.25em;
}
.tt-dates__desc {
	margin: 0;
}
.tt-dates__form {
	margin-top: 0.75em;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
	.tt-gallery {
		grid-template-columns: 1fr;
	}
	.tt-gallery__thumbs {
		margin-top: 12px;
	}
	.tt-gallery__main .tt-gallery__slide img,
	.tt-gallery__link img {
		height: 320px;
	}
}

@media (max-width: 782px) {
	.tt-tour-hero {
		min-height: 56vh;
	}
	.tt-quickbar {
		flex-direction: column;
		align-items: flex-start;
	}
	.tt-services {
		grid-template-columns: 1fr;
	}
	.tt-lb__nav {
		width: 44px;
		height: 44px;
		font-size: 1.8rem;
	}

	/* Termine-Tabelle als Karten stapeln */
	.tt-dates__table thead {
		display: none;
	}
	.tt-dates__table,
	.tt-dates__table tbody,
	.tt-dates__table tr,
	.tt-dates__table td {
		display: block;
		width: 100%;
	}
	.tt-dates__table tr:not(.tt-dates__detailrow) {
		margin-bottom: 1rem;
		padding: 0.5rem 0.75rem;
		border: 1px solid var(--tt-line);
		border-radius: var(--tt-radius);
	}
	.tt-dates__table td {
		border-bottom: none;
		padding: 0.35em 0;
	}
	.tt-dates__table td[data-label]:not([data-label=""])::before {
		content: attr(data-label);
		display: block;
		font-size: 0.75em;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		color: var(--tt-muted);
	}
	.tt-dates__cta {
		text-align: left;
	}
	.tt-dates__detailrow.is-open {
		display: block;
	}
	.tt-dates__detailrow > td {
		padding: 0.75em;
		border-radius: var(--tt-radius);
	}
}
