/**
 * Tashkentguide DMC — Booking Engine front end.
 * Blue-forward, and built to sit inside a constrained theme column.
 */

.tg-tours,
.tg-book,
.tg-confirm {
	--tg-blue: #1668c4;
	--tg-blue-dark: #0d3f7d;
	--tg-blue-mid: #2f86e0;
	--tg-blue-pale: #e8f1fc;
	--tg-blue-wash: #f5f9fe;
	--tg-ink: #0f2743;
	--tg-muted: #5a7291;
	--tg-rule: #cfdeef;
	--tg-rule-soft: #e6eef8;
	--tg-green: #1aa06a;
}

/* ---------- tour cards: 283px, Viator style ---------- */

.tg-tours {
	display: grid;
	gap: 22px 16px;
	grid-template-columns: repeat(auto-fill, minmax(283px, 283px));
	justify-content: start;
	margin: 32px 0;
	max-width: 100% !important;
}

.tg-tours--cols-2 { grid-template-columns: repeat(auto-fill, minmax(283px, 340px)); }
.tg-tours--cols-4 { grid-template-columns: repeat(auto-fill, minmax(283px, 283px)); }

.tg-vcard {
	width: 100%;
	max-width: 283px;
	background: #fff;
	border: 1px solid var(--tg-rule, #cfdeef);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .18s ease;
}

.tg-vcard:hover { box-shadow: 0 8px 24px -14px rgba(13, 63, 125, .45); }

/* --- media / carousel --- */

.tg-vcard__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--tg-blue-pale, #e8f1fc);
	overflow: hidden;
}

.tg-vcard__slides { position: absolute; inset: 0; }

.tg-vcard__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .25s ease;
	display: block;
}

.tg-vcard__slide.is-active { opacity: 1; }

.tg-vcard__slide img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.tg-vcard__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .92);
	color: var(--tg-ink, #0f2743);
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition: opacity .15s ease;
	box-shadow: 0 1px 5px rgba(0, 0, 0, .25);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.tg-vcard__nav--prev { left: 8px; }
.tg-vcard__nav--next { right: 8px; }
.tg-vcard:hover .tg-vcard__nav,
.tg-vcard__nav:focus-visible { opacity: 1; }

.tg-vcard__dots {
	position: absolute;
	bottom: 10px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 5px;
}

.tg-vcard__dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, .55);
	cursor: pointer;
}

.tg-vcard__dot.is-active { background: #fff; }

.tg-vcard__wish {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .92);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 1px 5px rgba(0, 0, 0, .2);
}

.tg-vcard__wish svg { width: 18px; height: 18px; }

.tg-vcard__wish path {
	fill: none;
	stroke: var(--tg-ink, #0f2743);
	stroke-width: 1.8;
}

.tg-vcard__wish.is-on path { fill: #e0245e; stroke: #e0245e; }

.tg-vcard__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--tg-blue-dark, #0d3f7d);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	padding: 3px 9px;
	border-radius: 4px;
}

/* --- body --- */

.tg-vcard__body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1;
}

.tg-vcard__title { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; }

.tg-vcard__title a {
	color: var(--tg-ink, #0f2743);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tg-vcard__title a:hover { color: var(--tg-blue, #1668c4); }

.tg-vcard__facts {
	margin: 0;
	font-size: 13px;
	color: var(--tg-muted, #5a7291);
}

.tg-vcard__rating {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--tg-ink, #0f2743);
	display: flex;
	align-items: center;
	gap: 4px;
}

.tg-vcard__star { color: #1aa06a; font-size: 14px; }
.tg-vcard__reviews { color: var(--tg-muted, #5a7291); }

.tg-vcard__price {
	margin-top: auto;
	padding-top: 8px;
	text-align: right;
}

.tg-vcard__from { font-size: 12px; color: var(--tg-muted, #5a7291); margin-right: 3px; }

.tg-vcard__price strong {
	font-size: 20px;
	color: var(--tg-ink, #0f2743);
	font-variant-numeric: tabular-nums;
}

.tg-vcard__note {
	display: block;
	font-size: 11px;
	color: var(--tg-muted, #5a7291);
}

@media (max-width: 360px) {
	.tg-tours { grid-template-columns: 1fr; }
	.tg-vcard { max-width: 100%; }
}

/* ---------- booking form ---------- */

.tg-book {
	margin: 40px 0;
	padding: 26px;
	border: 1px solid var(--tg-rule);
	border-top: 4px solid var(--tg-blue);
	border-radius: 10px;
	background: var(--tg-blue-wash);
}

.tg-book__title {
	margin: 0 0 18px;
	font-size: 22px;
	color: var(--tg-blue-dark);
}

.tg-form__grid {
	display: grid;
	gap: 14px 18px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.tg-field { margin: 0; display: flex; flex-direction: column; gap: 5px; }
.tg-field--wide { margin-top: 14px; }

.tg-field label {
	font-size: 13px;
	font-weight: 600;
	color: var(--tg-blue-dark);
}

.tg-field input,
.tg-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tg-rule);
	border-radius: 5px;
	font: inherit;
	font-size: 15px;
	background: #fff;
	box-sizing: border-box;
}

.tg-field input:focus,
.tg-field textarea:focus {
	outline: 2px solid var(--tg-blue);
	outline-offset: 1px;
	border-color: var(--tg-blue);
}

/* Honeypot — hidden from people, visible to bots. */
.tg-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 1px;
	overflow: hidden;
}

.tg-plan {
	margin: 18px 0 0;
	border: 1px solid var(--tg-rule);
	border-radius: 6px;
	padding: 12px 16px;
	background: #fff;
}

.tg-plan legend {
	font-size: 13px;
	font-weight: 700;
	padding: 0 6px;
	color: var(--tg-blue-dark);
}

.tg-plan__opt {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 5px 0;
	font-size: 14px;
	cursor: pointer;
}

/* ---------- guest steppers ---------- */

.tg-step { display: flex; align-items: stretch; }

.tg-step input[type="number"] {
	width: 100%;
	min-width: 0;
	text-align: center;
	border-radius: 0;
	border-left: 0;
	border-right: 0;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	-moz-appearance: textfield;
	appearance: textfield;
}

.tg-step input[type="number"]::-webkit-outer-spin-button,
.tg-step input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.tg-step__btn {
	flex: 0 0 42px;
	background: var(--tg-blue-pale);
	border: 1px solid var(--tg-rule);
	color: var(--tg-blue-dark);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	border-radius: 5px 0 0 5px;
	padding: 0;
}

.tg-step__btn:last-child { border-radius: 0 5px 5px 0; }

.tg-step__btn:hover,
.tg-step__btn:focus-visible {
	background: var(--tg-blue);
	color: #fff;
	border-color: var(--tg-blue);
}

/* ---------- group price table (collapsed by default) ---------- */

.tg-tiertable {
	margin-top: 16px;
	background: #fff;
	border: 1px solid var(--tg-rule);
	border-radius: 6px;
	overflow: hidden;
}

.tg-tiertable__title {
	display: block;
	background: var(--tg-blue-pale);
	color: var(--tg-blue-dark);
	font-size: 13px;
	font-weight: 600;
	padding: 10px 14px;
	cursor: pointer;
	list-style: none;
}

.tg-tiertable__title::-webkit-details-marker { display: none; }

.tg-tiertable__title::before {
	content: "+";
	display: inline-block;
	width: 16px;
	font-weight: 700;
}

.tg-tiertable[open] .tg-tiertable__title::before { content: "\2212"; }

.tg-tiertable ul { list-style: none; margin: 0; padding: 0; }

.tg-tiertable li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 9px 14px;
	border-bottom: 1px solid var(--tg-rule-soft);
	font-size: 14px;
}

.tg-tiertable li:last-child { border-bottom: 0; }

.tg-tiertable li.is-active {
	background: var(--tg-blue-pale);
	box-shadow: inset 3px 0 0 var(--tg-blue);
}

.tg-tiertable__pax { font-weight: 600; color: var(--tg-ink); }
.tg-tiertable__label { color: var(--tg-muted); font-size: 12.5px; }

.tg-tiertable__price {
	margin-left: auto;
	font-weight: 700;
	color: var(--tg-blue-dark);
	font-variant-numeric: tabular-nums;
}

/* ---------- totals ---------- */

.tg-total {
	margin-top: 18px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--tg-rule);
	border-radius: 6px;
}

.tg-total__row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 4px 0;
	font-variant-numeric: tabular-nums;
}

.tg-total__row--pp {
	font-size: 17px;
	color: var(--tg-blue-dark);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--tg-rule-soft);
}

.tg-total__row--pp strong { font-size: 22px; }

.tg-total__row--due {
	border-top: 1px solid var(--tg-rule-soft);
	margin-top: 6px;
	padding-top: 10px;
	font-size: 19px;
	color: var(--tg-blue-dark);
}

/* ---------- WeChat ---------- */

.tg-wechat { position: relative; display: inline-block; }

.tg-wechat > summary {
	list-style: none;
	background: #07c160;
	color: #fff;
	user-select: none;
}

.tg-wechat > summary::-webkit-details-marker { display: none; }
.tg-wechat > summary:hover { background: #06a850; }

.tg-wechat__panel {
	position: absolute;
	z-index: 20;
	bottom: calc(100% + 8px);
	left: 0;
	min-width: 210px;
	background: #fff;
	border: 1px solid var(--tg-rule);
	border-radius: 8px;
	box-shadow: 0 14px 34px -18px rgba(15, 39, 67, .5);
	padding: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.tg-wechat__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--tg-muted);
}

.tg-wechat__id {
	font-size: 16px;
	font-weight: 700;
	color: var(--tg-ink);
	background: var(--tg-blue-pale);
	padding: 4px 10px;
	border-radius: 4px;
	user-select: all;
}

.tg-wechat__qr {
	width: 160px;
	height: 160px;
	object-fit: contain;
	display: block;
}

.tg-wechat__hint { font-size: 12px; color: var(--tg-muted); }

@media (max-width: 560px) {
	.tg-wechat { position: static; }
	.tg-wechat__panel { position: static; margin-top: 10px; width: 100%; box-sizing: border-box; }
}

.tg-total__note {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: var(--tg-muted);
}

.tg-book__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.tg-btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	line-height: 1.2;
}

.tg-btn--primary { background: var(--tg-blue); color: #fff; }
.tg-btn--primary:hover { background: var(--tg-blue-dark); color: #fff; }

.tg-btn--primary:disabled {
	background: #b7c8dc;
	cursor: not-allowed;
}

.tg-btn--wa { background: var(--tg-green); color: #fff; }
.tg-btn--wa:hover { background: #158a5a; color: #fff; }

.tg-btn--ghost {
	background: #fff;
	color: var(--tg-blue);
	border-color: var(--tg-rule);
}

.tg-btn--ghost:hover { border-color: var(--tg-blue); }

.tg-alert {
	padding: 11px 14px;
	border-radius: 5px;
	margin-bottom: 16px;
	font-size: 14px;
}

.tg-alert--error {
	background: #fdeaea;
	color: #8a2020;
	border: 1px solid #f0c8c8;
}

/* ---------- confirmation ---------- */

.tg-confirm { max-width: 620px; margin: 32px auto; }
.tg-confirm__ref { font-size: 14px; color: var(--tg-muted); }

.tg-confirm__ref strong {
	display: block;
	font-size: 26px;
	color: var(--tg-blue-dark);
	letter-spacing: .02em;
}

.tg-confirm__table { width: 100%; border-collapse: collapse; margin: 20px 0; }

.tg-confirm__table th,
.tg-confirm__table td {
	text-align: left;
	padding: 9px 12px;
	border-bottom: 1px solid var(--tg-rule-soft);
	font-size: 15px;
}

.tg-confirm__table th { color: var(--tg-muted); font-weight: 500; width: 45%; }

.tg-confirm__wait {
	background: var(--tg-blue-pale);
	border-left: 3px solid var(--tg-blue);
	padding: 12px 14px;
	border-radius: 0 4px 4px 0;
}

@media (max-width: 480px) {
	.tg-book { padding: 18px 16px; }
	.tg-form__grid { grid-template-columns: 1fr; }
	.tg-tiertable li { flex-wrap: wrap; }
}

/* ---------- service packages ---------- */

.tg-packages,
.tg-extras {
	margin: 18px 0 0;
	border: 1px solid var(--tg-rule);
	border-radius: 8px;
	padding: 14px 16px;
	background: #fff;
}

.tg-packages legend,
.tg-extras legend {
	font-size: 13px;
	font-weight: 700;
	padding: 0 6px;
	color: var(--tg-blue-dark);
}

.tg-pkg {
	display: block;
	border: 1px solid var(--tg-rule);
	border-radius: 7px;
	padding: 12px 14px;
	margin-bottom: 10px;
	cursor: pointer;
	position: relative;
	transition: border-color .15s ease, background .15s ease;
}

.tg-pkg:last-child { margin-bottom: 0; }
.tg-pkg:hover { border-color: var(--tg-blue-mid); }

.tg-pkg.is-selected {
	border-color: var(--tg-blue);
	background: var(--tg-blue-wash);
	box-shadow: inset 3px 0 0 var(--tg-blue);
}

.tg-pkg > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tg-pkg__body { display: block; }

.tg-pkg__top {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tg-pkg__letter {
	flex: 0 0 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	border-radius: 50%;
	background: var(--tg-blue-pale);
	color: var(--tg-blue-dark);
	font-weight: 700;
	font-size: 13px;
}

.tg-pkg.is-selected .tg-pkg__letter { background: var(--tg-blue); color: #fff; }
.tg-pkg__name { font-weight: 600; color: var(--tg-ink); flex: 1; min-width: 140px; }

.tg-pkg__delta {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	text-align: right;
	white-space: nowrap;
}

.tg-pkg__delta small {
	display: block;
	font-size: 11px;
	font-weight: 400;
	color: var(--tg-muted);
}

.tg-pkg__delta.is-plus { color: var(--tg-blue-dark); }
.tg-pkg__delta.is-minus { color: #1aa06a; }
.tg-pkg__delta.is-zero { color: var(--tg-muted); font-weight: 600; }

.tg-pkg__desc {
	display: block;
	margin-top: 6px;
	font-size: 13.5px;
	color: var(--tg-muted);
}

.tg-pkg__lists {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 8px;
}

.tg-pkg__list { display: flex; flex-direction: column; gap: 2px; }
.tg-pkg__item { font-size: 12.5px; padding-left: 16px; position: relative; }
.tg-pkg__item::before { position: absolute; left: 0; font-weight: 700; }
.tg-pkg__list--in .tg-pkg__item { color: var(--tg-ink); }
.tg-pkg__list--in .tg-pkg__item::before { content: "\2713"; color: #1aa06a; }
.tg-pkg__list--out .tg-pkg__item { color: var(--tg-muted); }
.tg-pkg__list--out .tg-pkg__item::before { content: "\00D7"; color: #c0504d; }

/* ---------- extras ---------- */

.tg-extra {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px solid var(--tg-rule-soft);
}

.tg-extra:last-child { border-bottom: 0; }
.tg-extra__info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tg-extra__info strong { color: var(--tg-ink); font-size: 14.5px; }

.tg-extra__price {
	font-size: 12.5px;
	color: var(--tg-blue-dark);
	font-variant-numeric: tabular-nums;
}

.tg-extra__desc { font-size: 12.5px; color: var(--tg-muted); }
.tg-step--extra { flex: 0 0 132px; }
.tg-step--extra .tg-step__btn { flex-basis: 36px; font-size: 17px; }

@media (max-width: 480px) {
	.tg-pkg__top { align-items: flex-start; }
	.tg-pkg__delta { text-align: left; }
	.tg-extra { flex-wrap: wrap; }
}

/* ---------- single tour: two columns ---------- */

.tg-single {
	--tg-blue: #1668c4;
	--tg-blue-dark: #0d3f7d;
	--tg-blue-mid: #2f86e0;
	--tg-blue-pale: #e8f1fc;
	--tg-blue-wash: #f5f9fe;
	--tg-ink: #0f2743;
	--tg-muted: #5a7291;
	--tg-rule: #cfdeef;
	--tg-rule-soft: #e6eef8;
	--tg-green: #1aa06a;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 36px;
	align-items: start;
	max-width: 100% !important;
}

@media (max-width: 980px) {
	.tg-single { grid-template-columns: 1fr; gap: 24px; }
}

.tg-single__side { position: sticky; top: 24px; }

@media (max-width: 980px) {
	.tg-single__side { position: static; }
}

.tg-single__main > * { max-width: 100%; }

.tg-h2 {
	font-size: 22px;
	color: var(--tg-ink);
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--tg-blue-pale);
}

.tg-about,
.tg-included,
.tg-plan-days,
.tg-meeting { margin: 32px 0; }

/* --- about list --- */

.tg-about__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px 24px;
}

.tg-about__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }

.tg-about__icon {
	flex: 0 0 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--tg-blue-pale);
	color: var(--tg-blue-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.tg-about__list strong { display: block; color: var(--tg-ink); }
.tg-about__list span span,
.tg-about__list li > span:last-child { color: var(--tg-muted); }

/* --- included / not included --- */

.tg-included__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 8px 28px;
}

.tg-included__list { list-style: none; margin: 0; padding: 0; }

.tg-included__list li {
	position: relative;
	padding: 5px 0 5px 24px;
	font-size: 14.5px;
}

.tg-included__list li::before {
	position: absolute;
	left: 0;
	top: 5px;
	font-weight: 700;
}

.tg-included__list--in li { color: var(--tg-ink); }
.tg-included__list--in li::before { content: "\2713"; color: var(--tg-green); }
.tg-included__list--out li { color: var(--tg-muted); }
.tg-included__list--out li::before { content: "\00D7"; color: #c0504d; }

/* --- day by day --- */

.tg-days { list-style: none; margin: 0; padding: 0; }

.tg-day {
	display: flex;
	gap: 14px;
	padding-bottom: 18px;
	position: relative;
}

.tg-day:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 13px;
	top: 30px;
	bottom: 4px;
	width: 2px;
	background: var(--tg-blue-pale);
}

.tg-day__num {
	flex: 0 0 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--tg-blue);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	z-index: 1;
}

.tg-day__body h3 { margin: 3px 0 4px; font-size: 16px; color: var(--tg-ink); }
.tg-day__body p { margin: 0; font-size: 14.5px; color: var(--tg-muted); }

/* --- meeting / pickup --- */

.tg-meeting__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.tg-meeting__box {
	border: 1px solid var(--tg-rule);
	border-left: 4px solid var(--tg-blue);
	border-radius: 8px;
	padding: 14px 16px;
	background: var(--tg-blue-wash);
}

.tg-meeting__box--dropoff { border-left-color: var(--tg-blue-mid); }

.tg-meeting__label {
	display: block;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--tg-blue-dark);
	font-weight: 700;
	margin-bottom: 5px;
}

.tg-meeting__box p { margin: 0; font-size: 14.5px; color: var(--tg-ink); }
.tg-meeting__time { display: block; margin-top: 6px; font-size: 13px; color: var(--tg-muted); }
.tg-meeting__note { margin: 12px 0 0; font-size: 14px; color: var(--tg-muted); }

/* ---------- booking card header ---------- */

.tg-book__head {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--tg-rule);
}

.tg-book__from { font-size: 13px; color: var(--tg-muted); }

.tg-book__price {
	font-size: 28px;
	font-weight: 700;
	color: var(--tg-ink);
	font-variant-numeric: tabular-nums;
}

.tg-book__pp { font-size: 13px; color: var(--tg-muted); }

.tg-book__rating {
	margin-left: auto;
	font-size: 14px;
	color: var(--tg-ink);
	white-space: nowrap;
}

.tg-book__rating span[aria-hidden] { color: var(--tg-green); }
.tg-book__rating small { color: var(--tg-muted); }

/* ---------- inline calendar ---------- */

.tg-cal {
	background: #fff;
	border: 1px solid var(--tg-rule);
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 16px;
}

.tg-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.tg-cal__month { font-weight: 700; color: var(--tg-blue-dark); font-size: 14.5px; }

.tg-cal__nav {
	width: 30px;
	height: 30px;
	border-radius: 6px;
	border: 1px solid var(--tg-rule);
	background: #fff;
	color: var(--tg-blue-dark);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.tg-cal__nav:hover:not(:disabled) { background: var(--tg-blue); color: #fff; border-color: var(--tg-blue); }
.tg-cal__nav:disabled { opacity: .35; cursor: not-allowed; }

.tg-cal__dow,
.tg-cal__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}

.tg-cal__dow span {
	text-align: center;
	font-size: 11px;
	color: var(--tg-muted);
	padding-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.tg-cal__day {
	aspect-ratio: 1 / 1;
	border: 1px solid transparent;
	border-radius: 6px;
	background: var(--tg-blue-wash);
	color: var(--tg-ink);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tg-cal__day:hover:not(:disabled) { background: var(--tg-blue-pale); border-color: var(--tg-blue-mid); }
.tg-cal__day.is-today { border-color: var(--tg-blue-mid); font-weight: 700; }

.tg-cal__day.is-selected {
	background: var(--tg-blue);
	border-color: var(--tg-blue);
	color: #fff;
	font-weight: 700;
}

.tg-cal__day.is-past {
	background: transparent;
	color: #c4cfdd;
	cursor: not-allowed;
}

.tg-cal__selected {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--tg-blue-dark);
	font-weight: 600;
	min-height: 18px;
}

/* The native date field stays as the fallback; the calendar replaces it. */
.tg-form.has-calendar .tg-field--date { display: none; }

/* ---------- promo code ---------- */

.tg-promo {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tg-promo > label { font-size: 13px; font-weight: 600; color: var(--tg-blue-dark); }
.tg-promo__row { display: flex; gap: 8px; }

.tg-promo__row input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--tg-rule);
	border-radius: 5px;
	font: inherit;
	font-size: 15px;
	text-transform: uppercase;
	background: #fff;
}

.tg-promo__apply {
	flex: 0 0 auto;
	padding: 0 16px;
	border: 1px solid var(--tg-blue);
	background: #fff;
	color: var(--tg-blue);
	border-radius: 5px;
	font-weight: 600;
	cursor: pointer;
}

.tg-promo__apply:hover { background: var(--tg-blue); color: #fff; }
.tg-promo__apply:disabled { opacity: .6; cursor: wait; }
.tg-promo__msg { font-size: 12.5px; min-height: 16px; }
.tg-promo__msg.is-ok { color: var(--tg-green); font-weight: 600; }
.tg-promo__msg.is-bad { color: #c0504d; }

.tg-total__row--discount { color: var(--tg-green); font-weight: 600; }

/* ---------- consent ---------- */

.tg-consent {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--tg-muted);
}

.tg-consent label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.tg-consent input { margin-top: 3px; }
.tg-consent a { color: var(--tg-blue); }

/* ---------- calendar states ---------- */

.tg-cal__day.is-soldout {
	background: #f6f8fb;
	color: #b9c6d6;
	text-decoration: line-through;
	cursor: not-allowed;
}

.tg-cal__day.is-few { box-shadow: inset 0 -3px 0 #e0a02a; }

/* ---------- cancellation policy ---------- */

.tg-policy { margin: 32px 0; }
.tg-policy__list { list-style: none; margin: 0; padding: 0; }

.tg-policy__list li {
	position: relative;
	padding: 6px 0 6px 22px;
	font-size: 14.5px;
	color: var(--tg-ink);
}

.tg-policy__list li::before {
	content: "\2022";
	position: absolute;
	left: 4px;
	color: var(--tg-blue);
	font-weight: 700;
}

.tg-policy__note { margin: 8px 0 0; font-size: 13px; color: var(--tg-muted); }

/* ---------- start time chips ---------- */

.tg-times {
	margin: 18px 0 0;
	border: 1px solid var(--tg-rule);
	border-radius: 8px;
	padding: 14px 16px;
	background: #fff;
}

.tg-times legend {
	font-size: 13px;
	font-weight: 700;
	padding: 0 6px;
	color: var(--tg-blue-dark);
}

.tg-times__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.tg-timechip { cursor: pointer; }
.tg-timechip input { position: absolute; opacity: 0; pointer-events: none; }

.tg-timechip span {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--tg-rule);
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--tg-ink);
	background: #fff;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.tg-timechip:hover span { border-color: var(--tg-blue-mid); }

.tg-timechip input:checked + span {
	background: var(--tg-blue);
	border-color: var(--tg-blue);
	color: #fff;
}

.tg-timechip input:focus-visible + span { outline: 2px solid var(--tg-blue); outline-offset: 2px; }
.tg-timechip--other span { font-weight: 500; }
.tg-times__custom { margin-top: 12px; max-width: 200px; }
.tg-times__none { margin: 0 0 10px; font-size: 14px; color: var(--tg-muted); }

.tg-field__hint { font-size: 12.5px; color: var(--tg-muted); }

/* ---------- button text must win over theme link colours ---------- */

.tg-book .tg-btn,
.tg-book a.tg-btn,
.tg-book button.tg-btn { text-decoration: none; }

.tg-book .tg-btn--primary,
.tg-book a.tg-btn--primary { color: #fff !important; background: var(--tg-blue); }

.tg-book .tg-btn--wa,
.tg-book a.tg-btn--wa { color: #fff !important; background: var(--tg-green); }

.tg-book .tg-btn--wechat,
.tg-book summary.tg-btn--wechat { color: #fff !important; background: #07c160; }

.tg-book .tg-btn--ghost,
.tg-book a.tg-btn--ghost { color: var(--tg-blue) !important; background: #fff; }

/* ---------- section jump nav ---------- */

.tg-jump {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 24px 0 8px;
	padding-bottom: 2px;
	border-bottom: 1px solid var(--tg-rule);
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tg-jump a {
	flex: 0 0 auto;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--tg-muted);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}

.tg-jump a:hover,
.tg-jump a:focus-visible {
	color: var(--tg-blue-dark);
	border-bottom-color: var(--tg-blue-mid);
}

/* Anchors land below a sticky theme header rather than under it. */
.tg-single [id^="tg-"] { scroll-margin-top: 90px; }

.tg-overview__text {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--tg-rule-soft);
	font-size: 15.5px;
	line-height: 1.7;
}

.tg-overview__text > *:first-child { margin-top: 0; }
.tg-overview__text > *:last-child { margin-bottom: 0; }

/* =====================================================================
   Tour page, Viator-style layout
   The theme sets a serif display face and a narrow column; both are
   overridden inside .tg-single only, so the rest of the site is untouched.
   ===================================================================== */

body.single-tg_tour .tg-hero,
body.single-tg_tour .wp-block-post-featured-image + .wp-block-post-title,
body.single-tg_tour .entry-header .entry-meta,
body.single-tg_tour .wp-block-post-date { display: none !important; }

.tg-single {
	/* Break out of the theme's constrained column. */
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: min(1180px, 100vw - 40px);
	max-width: none !important;
	margin: 12px 0 40px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	color: var(--tg-ink);
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 40px;
}

@media (max-width: 1040px) {
	.tg-single { grid-template-columns: 1fr; gap: 24px; }
}

.tg-single h2,
.tg-single h3,
.tg-single h4 {
	font-family: inherit !important;
	letter-spacing: -0.01em;
	color: var(--tg-ink);
}

.tg-single .tg-h2 {
	font-size: 20px !important;
	font-weight: 700;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--tg-rule);
}

.tg-single p { font-size: 15px; line-height: 1.65; }

/* ---------- photo gallery ---------- */

.tg-gal {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 8px;
	margin-bottom: 20px;
}

@media (max-width: 640px) {
	.tg-gal { grid-template-columns: 1fr; }
	.tg-gal__thumbs { display: none; }
}

.tg-gal__thumbs {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tg-gal__thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: var(--tg-blue-pale);
	aspect-ratio: 1 / 1;
	line-height: 0;
}

.tg-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tg-gal__thumb.is-active { border-color: var(--tg-blue); }
.tg-gal__thumb:hover { border-color: var(--tg-blue-mid); }

.tg-gal__main {
	position: relative;
	aspect-ratio: 3 / 2;
	border-radius: 10px;
	overflow: hidden;
	background: var(--tg-blue-pale);
}

.tg-gal__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	transition: opacity .2s ease;
}

.tg-gal__slide.is-active { opacity: 1; }
.tg-gal__slide img { width: 100%; height: 100% !important; object-fit: cover; display: block; }

.tg-gal__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, .94);
	color: var(--tg-ink);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.tg-gal__nav--prev { left: 12px; }
.tg-gal__nav--next { right: 12px; }

.tg-gal__count {
	position: absolute;
	right: 12px;
	bottom: 12px;
	background: rgba(15, 39, 67, .75);
	color: #fff;
	font-size: 12px;
	padding: 3px 9px;
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
}

/* ---------- jump nav on one line ---------- */

.tg-jump {
	flex-wrap: nowrap;
	gap: 0;
	margin: 0 0 18px;
	position: sticky;
	top: 0;
	z-index: 5;
	background: #fff;
}

.tg-jump a { padding: 12px 16px 10px; font-size: 14px; }
.tg-jump a:first-child { padding-left: 0; }

/* ---------- sections ---------- */

.tg-single section { margin: 26px 0; }
.tg-single .tg-about__list li { font-size: 14px; }
.tg-single .tg-included__list li { font-size: 14px; padding-left: 26px; }
.tg-single .tg-day__body h3 { font-size: 15px; font-weight: 700; }
.tg-single .tg-day__body p { font-size: 14px; }

/* ---------- booking card ---------- */

.tg-single .tg-book {
	margin: 0;
	padding: 18px;
	border-radius: 12px;
	border: 1px solid var(--tg-rule);
	border-top: 1px solid var(--tg-rule);
	box-shadow: 0 6px 22px -16px rgba(13, 63, 125, .55);
	background: #fff;
}

.tg-single .tg-book__head { padding-bottom: 10px; margin-bottom: 10px; }
.tg-single .tg-book__price { font-size: 26px; }

.tg-single .tg-book__title {
	font-size: 16px !important;
	font-weight: 700;
	margin: 0 0 12px;
}

.tg-single .tg-form__grid { grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.tg-single .tg-field label { font-size: 12px; }
.tg-single .tg-field input,
.tg-single .tg-field textarea,
.tg-single .tg-field select { padding: 9px 10px; font-size: 14px; }
.tg-single .tg-field--wide { grid-column: 1 / -1; }
.tg-single .tg-packages,
.tg-single .tg-extras,
.tg-single .tg-times,
.tg-single .tg-plan { padding: 12px; margin-top: 12px; }
.tg-single .tg-pkg { padding: 10px 12px; }
.tg-single .tg-pkg__name { font-size: 14px; }
.tg-single .tg-btn { padding: 12px 18px; font-size: 15px; width: 100%; text-align: center; }
.tg-single .tg-book__actions { flex-direction: column; gap: 8px; }
.tg-single .tg-wechat { display: block; }
.tg-single .tg-wechat > summary { width: 100%; text-align: center; }

/* Date field that opens the calendar */

.tg-datefield {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--tg-rule);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	margin-bottom: 12px;
}

.tg-datefield:hover { border-color: var(--tg-blue); }
.tg-datefield__text { display: flex; flex-direction: column; gap: 1px; }

.tg-datefield__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--tg-muted);
}

.tg-datefield__value { font-size: 15px; font-weight: 600; color: var(--tg-ink); }
.tg-datefield__chev { color: var(--tg-blue); font-size: 12px; }
.tg-datefield[aria-expanded="true"] .tg-datefield__chev { transform: rotate(180deg); }

.tg-single .tg-cal { margin-bottom: 12px; }

/* Reassurance bullets under the button */

.tg-benefits {
	list-style: none;
	margin: 14px 0 0;
	padding: 12px 0 0;
	border-top: 1px solid var(--tg-rule-soft);
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.tg-benefits li {
	position: relative;
	padding-left: 22px;
	font-size: 13px;
	color: var(--tg-ink);
	line-height: 1.45;
}

.tg-benefits li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--tg-green);
	font-weight: 700;
}

/* Admin-only prompt where the WeChat button will sit */

.tg-btn--setup {
	background: #fff8e6;
	border: 1px dashed #c08a2e;
	color: #8a5a12 !important;
	font-size: 13px !important;
	font-weight: 600;
}

/* =====================================================================
   Option cards on the tour page
   ===================================================================== */

.tg-options { margin: 30px 0; }

.tg-search {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	background: var(--tg-blue-wash);
	border: 1px solid var(--tg-rule);
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 16px;
}

.tg-search__field { display: flex; flex-direction: column; gap: 5px; }

.tg-search__field label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--tg-blue-dark);
	font-weight: 700;
}

.tg-search__field input[type="date"] {
	padding: 9px 10px;
	border: 1px solid var(--tg-rule);
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
	background: #fff;
}

.tg-step--sm { width: 116px; }
.tg-step--sm .tg-step__btn { flex-basis: 32px; font-size: 17px; }
.tg-step--sm input[type="number"] { font-size: 14px; padding: 8px 0; }

.tg-search__go {
	margin-left: auto;
	padding: 11px 20px;
	border: 0;
	border-radius: 6px;
	background: var(--tg-blue);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
}

.tg-search__go:hover { background: var(--tg-blue-dark); }

.tg-options__soldout {
	background: #fdeaea;
	border-left: 3px solid #c0504d;
	padding: 10px 14px;
	border-radius: 0 6px 6px 0;
	font-size: 14px;
	color: #8a2020;
}

.tg-optcards { display: flex; flex-direction: column; gap: 14px; }

.tg-optcard {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 210px;
	border: 1px solid var(--tg-rule);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

@media (max-width: 720px) {
	.tg-optcard { grid-template-columns: 1fr; }
}

.tg-optcard.is-unavailable { opacity: .65; }
.tg-optcard__left { padding: 16px 18px; }

.tg-optcard__title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 6px;
	font-size: 16px !important;
	font-weight: 700;
}

.tg-optcard__letter {
	flex: 0 0 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	border-radius: 50%;
	background: var(--tg-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
}

.tg-optcard__desc { margin: 0 0 8px; font-size: 14px; color: var(--tg-muted); }
.tg-optcard__inc { list-style: none; margin: 0 0 10px; padding: 0; }

.tg-optcard__inc li {
	position: relative;
	padding-left: 20px;
	font-size: 13.5px;
	color: var(--tg-ink);
	margin-bottom: 3px;
}

.tg-optcard__inc li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--tg-green);
	font-weight: 700;
}

.tg-optcard__times { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.tg-slot { cursor: pointer; }
.tg-slot input { position: absolute; opacity: 0; pointer-events: none; }

.tg-slot span {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--tg-blue);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--tg-blue);
	background: #fff;
}

.tg-slot input:checked + span { background: var(--tg-blue); color: #fff; }
.tg-slot input:focus-visible + span { outline: 2px solid var(--tg-blue); outline-offset: 2px; }

.tg-optcard__notes {
	list-style: none;
	margin: 10px 0 0;
	padding: 10px 12px;
	background: #eef7f2;
	border-radius: 6px;
}

.tg-optcard__notes li {
	position: relative;
	padding-left: 20px;
	font-size: 13px;
	color: #14503a;
	margin-bottom: 3px;
}

.tg-optcard__notes li:last-child { margin-bottom: 0; }

.tg-optcard__notes li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--tg-green);
	font-weight: 700;
}

.tg-optcard__right {
	border-left: 1px solid var(--tg-rule);
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 4px;
	text-align: right;
}

@media (max-width: 720px) {
	.tg-optcard__right { border-left: 0; border-top: 1px solid var(--tg-rule); text-align: left; }
}

.tg-optcard__price {
	font-size: 22px;
	font-weight: 700;
	color: var(--tg-ink);
	font-variant-numeric: tabular-nums;
}

.tg-optcard__each { font-size: 12.5px; color: var(--tg-muted); margin-bottom: 10px; }
.tg-optcard__go { margin: 0; }
.tg-optcard__go .tg-btn { width: 100%; }
.tg-optcard__sold { font-size: 15px; font-weight: 700; color: #a52a2a; }
.tg-optcard__soldnote { font-size: 12.5px; color: var(--tg-muted); margin: 4px 0 0; }

/* ---------- sidebar availability card ---------- */

.tg-availcard {
	border: 1px solid var(--tg-rule);
	border-radius: 12px;
	padding: 18px;
	background: #fff;
	box-shadow: 0 6px 22px -16px rgba(13, 63, 125, .55);
}

.tg-availcard__head {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: wrap;
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--tg-rule);
}

.tg-availcard__form { display: flex; flex-direction: column; gap: 12px; }
.tg-availcard__form .tg-btn { width: 100%; }

/* =====================================================================
   Checkout
   ===================================================================== */

.tgco {
	--tg-blue: #1668c4;
	--tg-blue-dark: #0d3f7d;
	--tg-blue-pale: #e8f1fc;
	--tg-blue-wash: #f5f9fe;
	--tg-ink: #0f2743;
	--tg-muted: #5a7291;
	--tg-rule: #cfdeef;
	--tg-rule-soft: #e6eef8;
	--tg-green: #1aa06a;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: min(1100px, 100vw - 40px);
	max-width: none !important;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 32px;
	align-items: start;
	margin: 20px 0 48px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--tg-ink);
}

@media (max-width: 980px) {
	.tgco { grid-template-columns: 1fr; gap: 20px; }
}

.tgco h2, .tgco h3 { font-family: inherit !important; }

.tgco__step {
	border: 1px solid var(--tg-rule);
	border-radius: 10px;
	background: #fff;
	margin-bottom: 14px;
	overflow: hidden;
}

.tgco__step.is-open { border-color: var(--tg-blue); box-shadow: 0 4px 18px -14px rgba(13, 63, 125, .6); }

.tgco__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
}

.tgco__num {
	flex: 0 0 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	border-radius: 50%;
	background: var(--tg-rule-soft);
	color: var(--tg-muted);
	font-weight: 700;
	font-size: 13px;
}

.tgco__step.is-open .tgco__num { background: var(--tg-ink); color: #fff; }
.tgco__step.is-done .tgco__num { background: var(--tg-green); color: #fff; }
.tgco__head h2 { margin: 0; font-size: 17px !important; font-weight: 700; flex: 1; }

.tgco__edit {
	background: none;
	border: 0;
	color: var(--tg-blue);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	text-decoration: underline;
}

.tgco__done {
	padding: 0 18px 16px 56px;
	font-size: 14px;
	color: var(--tg-muted);
}

.tgco__body { display: none; padding: 0 18px 18px; }
.tgco__step.is-open .tgco__body { display: block; }
.tgco__lead { font-size: 14px; color: var(--tg-muted); margin: 0 0 14px; }

.tgco__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 14px;
	margin-bottom: 14px;
}

@media (max-width: 560px) {
	.tgco__grid { grid-template-columns: 1fr; }
}

.tgco__grid .tg-field--wide { grid-column: 1 / -1; }

.tgco .tg-field input,
.tgco .tg-field select,
.tgco .tg-field textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--tg-rule);
	border-radius: 7px;
	font: inherit;
	font-size: 15px;
	background: #fff;
	box-sizing: border-box;
}

.tgco .tg-field label { font-size: 12px; font-weight: 600; color: var(--tg-muted); }

.tgco__traveller {
	font-size: 14px !important;
	font-weight: 700;
	margin: 14px 0 8px;
	padding-top: 12px;
	border-top: 1px solid var(--tg-rule-soft);
}

.tgco__traveller:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.tgco__traveller small { font-weight: 400; color: var(--tg-muted); }

.tgco__subhead {
	font-size: 15px !important;
	font-weight: 700;
	margin: 18px 0 6px;
	padding-top: 14px;
	border-top: 1px solid var(--tg-rule-soft);
}

.tgco__choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.tgco__choice {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	border: 1px solid var(--tg-rule);
	border-radius: 8px;
	padding: 13px 15px;
	cursor: pointer;
}

.tgco__choice:has( input:checked ) { border-color: var(--tg-blue); background: var(--tg-blue-wash); }
.tgco__choice.is-disabled { opacity: .55; cursor: not-allowed; }
.tgco__choice input { margin-top: 3px; flex: 0 0 auto; }
.tgco__choice-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.tgco__choice-body strong { font-size: 15px; }
.tgco__choice-note { font-size: 13px; color: var(--tg-muted); }
.tgco__pickup { margin-top: 8px; }

.tgco__choice-price {
	font-weight: 700;
	font-size: 16px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.tgco__cards { font-size: 12px; color: var(--tg-muted); font-weight: 700; letter-spacing: .05em; }
.tgco__next, .tgco__submit { width: auto; min-width: 150px; margin-top: 6px; }

.tgco__contact {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--tg-rule-soft);
	font-size: 13.5px;
	color: var(--tg-muted);
}

.tgco__contact .tg-btn { padding: 8px 16px; font-size: 14px; }
.tgco__wechat code { background: var(--tg-blue-pale); padding: 3px 8px; border-radius: 4px; font-weight: 700; }

/* ---------- checkout sidebar ---------- */

.tgco__side { position: sticky; top: 20px; }

@media (max-width: 980px) {
	.tgco__side { position: static; }
}

.tgco__card {
	border: 1px solid var(--tg-rule);
	border-radius: 10px;
	background: #fff;
	padding: 16px;
	margin-bottom: 16px;
}

.tgco__cardtop { display: flex; gap: 12px; margin-bottom: 14px; }

.tgco__thumb {
	width: 66px;
	height: 66px;
	object-fit: cover;
	border-radius: 8px;
	flex: 0 0 auto;
}

.tgco__tourname {
	font-size: 14px;
	font-weight: 700;
	color: var(--tg-blue-dark);
	text-decoration: none;
	line-height: 1.35;
}

.tgco__facts { list-style: none; margin: 0 0 12px; padding: 0; }

.tgco__facts li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	font-size: 13.5px;
	border-bottom: 1px solid var(--tg-rule-soft);
}

.tgco__facts li:last-child { border-bottom: 0; }
.tgco__facts strong { font-variant-numeric: tabular-nums; }
.tgco__fact--ok span { color: var(--tg-green); font-weight: 600; }

.tgco__promo { margin: 12px 0; }
.tgco__promo label { display: block; font-size: 12px; font-weight: 600; color: var(--tg-muted); margin-bottom: 5px; }

.tgco__promo input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tg-rule);
	border-radius: 7px;
	font: inherit;
	text-transform: uppercase;
	box-sizing: border-box;
}

.tgco__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--tg-rule);
	font-size: 15px;
}

.tgco__total strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.tgco__due { margin: 6px 0 0; font-size: 13px; color: var(--tg-muted); }

.tgco__trust { padding: 0 4px; }
.tgco__trust h3 { font-size: 16px !important; margin: 0 0 10px; }
.tgco__trust p { font-size: 13.5px; color: var(--tg-muted); margin: 0 0 12px; line-height: 1.55; }
.tgco__trust strong { color: var(--tg-ink); }

/* Check availability → option cards */
.tg-options { scroll-margin-top: 100px; }
.tg-options--flash .tg-optcards { animation: tg-flash 1.6s ease-out 1; border-radius: 12px; }
@keyframes tg-flash {
	0%   { box-shadow: 0 0 0 0 rgba(25, 103, 210, .45); }
	40%  { box-shadow: 0 0 0 8px rgba(25, 103, 210, .18); }
	100% { box-shadow: 0 0 0 0 rgba(25, 103, 210, 0); }
}
.tg-availcard .tg-btn.is-loading { opacity: .75; cursor: progress; }

/* Book now disabled because the checkout page is not set up */
.tg-optcard__setup { margin-top: 8px; font-size: 13px; line-height: 1.4; }
.tg-optcard__right .tg-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Telegram button ---------- */
.tg-btn--tg { background: #229ed9; color: #fff; }
.tg-btn--tg:hover { background: #1b8cc2; color: #fff; }
.tg-book .tg-btn--tg,
.tg-book a.tg-btn--tg,
.tgco a.tg-btn--tg { color: #fff !important; background: #229ed9; }
.tgco a.tg-btn--wa { color: #fff !important; }
.tgco .tg-wechat > summary { color: #fff; }
.tgco__contact .tg-wechat > summary { padding: 8px 16px; font-size: 14px; }

/* ---------- Checkout: how can we reach you ---------- */
.tgco__reach { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.tgco__reach legend { padding: 0; margin-bottom: 2px; font-size: 13px; font-weight: 600; color: var(--tg-ink); }
.tgco__reach .tg-field__hint { margin: -2px 0 2px; }
.tgco__reach-row { display: flex; align-items: stretch; gap: 0; margin: 0; }
.tgco__reach-badge {
	flex: 0 0 104px;
	display: flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 700; color: #fff;
	border-radius: 8px 0 0 8px;
}
.tgco__reach-badge--wa { background: var(--tg-green); }
.tgco__reach-badge--tg { background: #229ed9; }
.tgco__reach-badge--wc { background: #07c160; }
.tgco__reach-row input { flex: 1; min-width: 0; border-radius: 0 8px 8px 0 !important; }
.tgco__reach.is-invalid .tgco__reach-row input { border-color: #d63638; }
@media (max-width: 480px) { .tgco__reach-badge { flex-basis: 84px; font-size: 12px; } }

/* =====================================================================
 * 0.8.5 — Checkout: centred on any theme, larger type
 * The old left:50% + translateX(-50%) trick broke when the theme
 * overrode transforms, leaving the checkout pushed to the right.
 * Negative inline margins centre it without transforms.
 * ================================================================== */

.tgco {
	left: auto !important;
	transform: none !important;
	width: min(1180px, calc(100vw - 32px)) !important;
	max-width: none !important;
	margin-top: 24px !important;
	margin-bottom: 56px !important;
	margin-left: calc(50% - min(590px, 50vw - 16px)) !important;
	margin-right: calc(50% - min(590px, 50vw - 16px)) !important;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 36px;
	font-size: 16px;
	line-height: 1.5;
	box-sizing: border-box;
}

@media (max-width: 980px) {
	.tgco { grid-template-columns: 1fr; gap: 24px; }
}

/* Step headers */
.tgco__head { padding: 18px 22px !important; }
.tgco__head h2 { font-size: 21px !important; }
.tgco__num { width: 30px !important; height: 30px !important; font-size: 15px !important; }
.tgco__edit, .tgco__done { font-size: 15px !important; }
.tgco__body { padding: 0 22px 22px !important; }
.tgco__lead { font-size: 16px !important; margin-bottom: 18px !important; }

/* Fields */
.tgco__grid { gap: 16px 18px !important; }
.tgco .tg-field label,
.tgco__reach legend { font-size: 15px !important; font-weight: 600; color: var(--tg-ink) !important; margin-bottom: 6px; display: block; }
.tgco .tg-field input,
.tgco .tg-field select,
.tgco .tg-field textarea { font-size: 17px !important; padding: 13px 14px !important; }
.tgco .tg-field__hint { font-size: 14px !important; }
.tgco__reach-badge { font-size: 15px !important; flex-basis: 120px !important; }
.tgco__traveller { font-size: 17px !important; }
.tgco__subhead { font-size: 18px !important; }

/* Choices (payment, pickup) */
.tgco__choice { font-size: 16px; padding: 16px !important; }
.tgco__choice-body strong { font-size: 17px !important; }
.tgco__choice-note { font-size: 15px !important; }
.tgco__choice-price { font-size: 17px !important; }
.tgco__cards { font-size: 14px !important; }

/* Buttons */
.tgco .tg-btn { font-size: 17px !important; }
.tgco__next, .tgco__submit { min-width: 180px; padding: 14px 28px !important; }
.tgco__contact { font-size: 16px !important; gap: 12px !important; }
.tgco__contact .tg-btn,
.tgco__contact .tg-wechat > summary { font-size: 16px !important; padding: 10px 20px !important; }
.tgco .tg-consent { font-size: 15px !important; }

/* Sidebar */
.tgco__card { padding: 20px !important; }
.tgco__thumb { width: 76px !important; height: 76px !important; }
.tgco__tourname { font-size: 18px !important; line-height: 1.3; }
.tgco__facts li { font-size: 16px !important; padding: 10px 0 !important; }
.tgco__promo label { font-size: 15px !important; }
.tgco__promo input { font-size: 16px !important; padding: 12px 14px !important; }
.tgco__total { font-size: 17px !important; }
.tgco__total strong { font-size: 26px !important; }
.tgco__due { font-size: 15px !important; }
.tgco__trust h3 { font-size: 19px !important; }
.tgco__trust p { font-size: 15.5px !important; }

@media (max-width: 560px) {
	.tgco { width: calc(100vw - 24px) !important; margin-left: calc(50% - 50vw + 12px) !important; margin-right: calc(50% - 50vw + 12px) !important; }
	.tgco__head h2 { font-size: 19px !important; }
	.tgco__reach-badge { flex-basis: 96px !important; font-size: 14px !important; }
}
.tgco .tg-field label.tgco__reach-row { display: flex !important; align-items: stretch; margin: 0 !important; font-size: inherit !important; }
.tgco .tgco__reach-row input { border-radius: 0 8px 8px 0 !important; }

/* =====================================================================
 * 0.8.6
 * ================================================================== */

/* Never show two checkouts side by side before JS runs. */
[data-tgco-root] ~ [data-tgco-root] { display: none !important; }

/* Booking card: adults / children / infants */
.tg-availcard__pax { display: flex; flex-direction: column; gap: 10px; }
.tg-availcard__paxrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tg-availcard__paxrow label { display: flex; flex-direction: column; line-height: 1.2; margin: 0; }
.tg-availcard__paxrow label strong { font-size: 15px; color: var(--tg-ink, #0f2743); }
.tg-availcard__paxrow label small { font-size: 13px; color: var(--tg-muted, #5a7291); }

/* Mobile slot for the booking card (filled by JS under the gallery) */
.tg-mobile-avail:empty { display: none; }
.tg-mobile-avail { margin: 16px 0 24px; }

/* "Prices for … · Change" line that replaced the second date box */
.tg-options__for {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
	margin: 0 0 16px; padding: 14px 16px;
	background: var(--tg-blue-wash, #f5f9fe); border: 1px solid var(--tg-rule, #cfdeef); border-radius: 10px;
	font-size: 16px; color: var(--tg-ink, #0f2743);
}
.tg-options__change {
	background: #fff; color: var(--tg-blue, #1668c4); border: 1px solid var(--tg-blue, #1668c4);
	border-radius: 8px; padding: 8px 16px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.tg-options__change:hover { background: var(--tg-blue, #1668c4); color: #fff; }

/* =====================================================================
 * 0.8.7 — tour page order + long text never spills out
 * ================================================================== */
.tg-single__main,
.tg-single__side { min-width: 0; }

.tg-single__main p,
.tg-single__main li,
.tg-single__main span,
.tg-single__main div,
.tg-single__main h2,
.tg-single__main h3,
.tg-single__main strong,
.tg-single__main small,
.tgco p, .tgco li, .tgco span, .tgco strong, .tgco a {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.tg-overview__text,
.tg-plan-days,
.tg-meeting,
.tg-included,
.tg-optcard,
.tg-policy { max-width: 100%; overflow: hidden; }

/* Key facts block now sits without its own heading, right above the options. */
.tg-about--facts { margin: 8px 0 8px; padding-top: 16px; border-top: 1px solid var(--tg-rule-soft, #e6eef8); }
.tg-about--facts .tg-about__list { margin-bottom: 0; }
.tg-overview { margin-top: 32px; }
.tg-overview__text { font-size: 16px; line-height: 1.65; }
.tg-about.tg-overview { border-top: 0 !important; padding-top: 0 !important; }
.tg-overview .tg-overview__text { border-top: 0 !important; padding-top: 0 !important; margin-top: 0; }

/* =====================================================================
 * 0.9.0 — Viator-style gallery, photo toolbar, icon row
 * Viator: 5 stacked thumbnails (~112px wide) beside a 4:3 main photo of
 * the same height.
 * ================================================================== */
.tg-single .tg-gal {
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 10px;
	align-items: stretch;
	margin-bottom: 14px;
}
.tg-single .tg-gal__main { aspect-ratio: 4 / 3; border-radius: 12px; }
.tg-single .tg-gal__thumbs {
	display: grid;
	grid-template-rows: repeat(5, minmax(0, 1fr));
	gap: 8px;
	min-height: 0;
	overflow: hidden;
}
.tg-single .tg-gal__thumb {
	position: relative;
	aspect-ratio: auto;
	width: 100%;
	height: 100%;
	min-height: 0;
	border-radius: 8px;
	border: 2px solid transparent;
}
.tg-single .tg-gal__thumb.is-active { border-color: var(--tg-ink); }
.tg-gal__more {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0, 0, 0, .5); color: #fff;
	font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center;
}
@media (max-width: 640px) {
	.tg-single .tg-gal { grid-template-columns: 1fr; }
	.tg-single .tg-gal__thumbs { display: none; }
}

/* Share / Wishlist / PDF over the photo */
.tg-gal__tools { position: absolute; top: 12px; right: 12px; z-index: 5; display: flex; gap: 8px; }
.tg-tool {
	display: inline-flex; align-items: center; gap: 6px;
	height: 36px; padding: 0 14px;
	background: #fff; color: #1a1a1a !important;
	border: 0; border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
	font-size: 14px; font-weight: 600; line-height: 1;
	text-decoration: none !important; cursor: pointer; list-style: none;
}
.tg-tool:hover { background: #f3f5f8; }
.tg-tool::-webkit-details-marker { display: none; }
.tg-tool .tg-ico { width: 18px; height: 18px; }
.tg-tool--wish.is-on .tg-ico { fill: #e0245e; stroke: #e0245e; }
.tg-share { position: relative; }
.tg-share__menu {
	position: absolute; right: 0; top: calc(100% + 6px);
	min-width: 180px; padding: 6px;
	background: #fff; border-radius: 10px; box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
	display: flex; flex-direction: column;
}
.tg-share__menu a, .tg-share__menu button {
	display: flex; align-items: center; gap: 8px;
	padding: 9px 12px; border: 0; background: none; border-radius: 6px;
	font-size: 14px; color: var(--tg-ink, #0f2743) !important; text-decoration: none !important; text-align: left; cursor: pointer;
}
.tg-share__menu a:hover, .tg-share__menu button:hover { background: var(--tg-blue-wash, #f5f9fe); }
.tg-toolbar-static { position: relative; height: 48px; margin-bottom: 8px; }
.tg-toolbar-static .tg-gal__tools { top: 0; right: 0; }
@media (max-width: 640px) {
	.tg-tool span { display: none; }
	.tg-tool { padding: 0 10px; }
}

/* Icon row under the photos */
.tg-facts {
	list-style: none; margin: 0 0 16px; padding: 14px 0;
	display: flex; flex-wrap: wrap; gap: 12px 26px;
	border-top: 1px solid var(--tg-rule-soft, #e6eef8);
	border-bottom: 1px solid var(--tg-rule-soft, #e6eef8);
}
.tg-facts li { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; color: var(--tg-ink, #0f2743); }
.tg-facts .tg-ico { width: 22px; height: 22px; flex: 0 0 auto; color: var(--tg-ink, #0f2743); }

/* 0.9.2 — Download tour PDF on the checkout */
.tgco__pdf {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px;
	margin-top: 14px; padding: 14px 16px;
	background: #fbf6ea; border: 1px solid #e6d7b3; border-radius: 10px;
	font-size: 15px; color: var(--tg-ink, #0f2743);
}
.tgco a.tg-btn--pdf,
.tg-btn--pdf {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--tg-blue-dark, #0d3f7d); color: #fff !important;
	border-radius: 8px; padding: 10px 18px !important; font-size: 16px !important; font-weight: 700; text-decoration: none !important;
}
.tg-btn--pdf:hover { background: var(--tg-blue, #1668c4); }
.tg-btn--pdf .tg-ico { width: 18px; height: 18px; }
.tgco__pdflink {
	display: inline-flex; align-items: center; gap: 6px;
	margin: -4px 0 12px; font-size: 14px !important; font-weight: 600;
	color: var(--tg-blue, #1668c4) !important; text-decoration: none !important;
}
.tgco__pdflink:hover { text-decoration: underline !important; }
.tgco__pdflink .tg-ico { width: 16px; height: 16px; }

/* 0.9.3 — blue icons */
.tg-facts .tg-ico { color: var(--tg-blue, #1668c4) !important; }
.tg-meeting__label { display: inline-flex !important; align-items: center; gap: 7px; }
.tg-meeting__label .tg-ico { width: 20px; height: 20px; color: var(--tg-blue, #1668c4); flex: 0 0 auto; }
.tg-tool .tg-ico { color: var(--tg-blue, #1668c4); }
.tg-tool--wish.is-on .tg-ico { color: #e0245e; }
.tgco__optional { font-weight: 400; color: var(--tg-muted, #5a7291); font-size: 0.9em; }

/* =====================================================================
 * 0.9.5 — Viator-style photos (no blue/black gaps) + toolbar in icon row
 * ================================================================== */

/* Main photo: fills the frame edge to edge, subject centred. */
.tg-single .tg-gal__main {
	background: #ffffff !important;
	border: 1px solid #e4e7ec;
	border-radius: 12px !important;
	overflow: hidden;
	padding: 0 !important;
	box-shadow: none !important;
}
.tg-single .tg-gal__slide,
.tg-single .tg-gal__slide.wp-block-image {
	position: absolute !important;
	inset: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: #ffffff !important;
	line-height: 0;
}
.tg-single .tg-gal__slide img,
.tg-single .tg-gal__thumb img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: #ffffff !important;
	object-fit: cover !important;
	object-position: center center !important;
}
/* Portrait / square photos are shown whole on a pure white background
   instead of being cropped (heads and landmarks stay visible). */
.tg-single .tg-gal__slide.is-contain img { object-fit: contain !important; }

/* Thumbnails: clean white tiles, rounded, no theme button styling. */
.tg-single .tg-gal__thumb {
	-webkit-appearance: none; appearance: none;
	padding: 0 !important;
	margin: 0 !important;
	background: #ffffff !important;
	border: 2px solid #e4e7ec !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	overflow: hidden;
	min-height: 0 !important;
	line-height: 0;
}
.tg-single .tg-gal__thumb:hover { border-color: #b8c4d4 !important; }
.tg-single .tg-gal__thumb.is-active { border-color: #1a1a1a !important; }
.tg-single .tg-gal__thumb:focus { outline: 2px solid var(--tg-blue, #1668c4); outline-offset: 1px; }

/* Arrows and counter stay readable on any photo. */
.tg-single .tg-gal__nav { background: #ffffff !important; color: #1a1a1a !important; }

/* Icon row with Share / Wishlist / PDF at its end (next to "Starts …"). */
.tg-factsbar {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
	gap: 12px 20px;
	margin: 0 0 16px; padding: 14px 0;
	border-top: 1px solid var(--tg-rule-soft, #e6eef8);
	border-bottom: 1px solid var(--tg-rule-soft, #e6eef8);
}
.tg-factsbar .tg-facts { margin: 0; padding: 0; border: 0; flex: 1 1 420px; }
.tg-factsbar .tg-gal__tools { position: static; display: flex; gap: 8px; flex: 0 0 auto; margin-left: auto; }
.tg-factsbar .tg-tool {
	height: 36px; padding: 0 14px;
	background: #ffffff; border: 1px solid #d5dce6; box-shadow: none;
	font-size: 14px;
}
.tg-factsbar .tg-tool:hover { background: #f5f8fc; border-color: var(--tg-blue, #1668c4); }
.tg-factsbar .tg-share__menu { right: 0; left: auto; top: calc(100% + 6px); z-index: 30; }
@media (max-width: 640px) {
	.tg-factsbar .tg-gal__tools { width: 100%; margin-left: 0; }
	.tg-factsbar .tg-tool span { display: inline; }
	.tg-factsbar .tg-tool { flex: 1; justify-content: center; padding: 0 8px; }
}
/* The thumbnail column never sets the height: the 4:3 main photo does.
   (A tall portrait thumbnail used to stretch the whole gallery.) */
.tg-single .tg-gal__thumbs { contain: size; height: auto; align-self: stretch; }
.tg-single .tg-gal__thumb { height: 100% !important; }
/* Icons and buttons share one flowing line: the buttons follow "Starts …". */
.tg-factsbar { gap: 12px 26px; }
.tg-factsbar .tg-facts { display: contents; }
.tg-factsbar .tg-facts li { flex: 0 0 auto; }
.tg-factsbar .tg-gal__tools { margin-left: auto; }
.tg-factsbar { justify-content: flex-start !important; position: relative; z-index: 40; }
.tg-factsbar .tg-share[open] { z-index: 50; }
.tg-factsbar .tg-share__menu { z-index: 60; }
.tg-factsbar .tg-tool { white-space: nowrap; }
@media (max-width: 640px) {
	.tg-factsbar .tg-tool { font-size: 13px; gap: 5px; padding: 0 6px; }
}

/* =====================================================================
 * 0.9.6 — vertical photos fill the frame automatically
 * The whole photo stays visible in the centre; the empty sides are filled
 * with a blurred, enlarged copy of the same photo (no white or black bars).
 * ================================================================== */
.tg-single .tg-gal__slide { overflow: hidden; }
.tg-single .tg-gal__slide.is-contain::before {
	content: "";
	position: absolute;
	inset: -40px;
	background-image: var(--tg-fill);
	background-size: cover;
	background-position: center;
	filter: blur(28px) saturate(1.15) brightness(.92);
	transform: scale(1.12);
	z-index: 0;
}
.tg-single .tg-gal__slide.is-contain img {
	position: relative;
	z-index: 1;
	background: transparent !important;
	object-fit: contain !important;
	filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .28));
}

/* Theme lightbox/zoom buttons (WordPress core, Elementor, Jetpack…) don't
   belong on our gallery; they covered the photo counter. */
.tg-single .tg-gal .lightbox-trigger,
.tg-single .tg-gal button[class*="lightbox"],
.tg-single .tg-gal .wp-lightbox-overlay,
.tg-single .tg-gal [class*="zoom-icon"],
.tg-single .tg-gal .elementor-lightbox-trigger { display: none !important; }
.tg-single .tg-gal__count { z-index: 3; }
.tg-single .tg-gal__nav { z-index: 3; }

/* Tour cards in lists: keep faces in frame for tall photos. */
.tg-vcard__slide img { object-position: center 35%; }

/* =====================================================================
 * 0.9.7 — vertical photos: crop to fill (cover) instead of blurred sides
 * Keeps the upper-middle of the photo (faces, domes, landmarks).
 * ================================================================== */
.tg-single .tg-gal__slide.is-contain::before { content: none !important; display: none !important; }
.tg-single .tg-gal__slide.is-contain img {
	object-fit: cover !important;
	object-position: center 30% !important;
	filter: none !important;
	position: static;
}
