/* Waheguru 3D Travel Carousel */
.wgtc {
	--wgtc-accent: #ff3b12;
	--wgtc-bg: #0e1626;
	--wgtc-card-h: 460px;
	--wgtc-interval: 4500ms;
	/* Width follows the admin card height, but never outgrows the screen width or a short (landscape) screen. */
	--wgtc-card-w: min(calc(var(--wgtc-card-h) * 0.7), 70vw, 46vh);
	/* --wgtc-fit-w is set by the script so the whole carousel fits one screen height. */
	--wgtc-w: min(var(--wgtc-card-w), var(--wgtc-fit-w, 9999px));
	--wgtc-card-real-h: calc(var(--wgtc-w) / 0.7);
	--wgtc-radius: 22px;
	--wgtc-ease: cubic-bezier(.2, .75, .2, 1);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	--wgtc-top: 0px;
	padding: calc(clamp(28px, 3.5vw, 56px) + var(--wgtc-top)) 0 clamp(24px, 3vw, 40px);
	scroll-margin-top: 100px;
	background: var(--wgtc-bg);
	color: #f3f5fa;
	font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}
.wgtc *, .wgtc *::before, .wgtc *::after { box-sizing: border-box; }

/* Ambient glow taken from the active photo */
.wgtc__ambient { position: absolute; inset: -15%; z-index: -2; pointer-events: none; }
.wgtc__ambient span {
	position: absolute; inset: 0;
	background-size: cover; background-position: center;
	filter: blur(80px) saturate(1.35);
	opacity: 0;
	transition: opacity 1.4s ease;
}
.wgtc__ambient span.is-on { opacity: .42; }
.wgtc::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(120% 70% at 50% 0%, transparent 0%, var(--wgtc-bg) 85%),
		linear-gradient(to bottom, transparent 55%, var(--wgtc-bg) 100%);
	opacity: .9;
}

/* Heading */
.wgtc__head {
	max-width: 1200px; margin: 0 auto; padding: 0 24px;
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.wgtc__eyebrow {
	margin: 0 0 14px; color: var(--wgtc-accent);
	font-size: 13px; font-weight: 600; letter-spacing: .12em;
}
.wgtc .wgtc__title {
	max-width: none; margin: 0; padding: 0; color: #fff; text-transform: none;
	font-family: inherit; font-weight: 700;
	font-size: clamp(30px, 3.2vw, 56px); line-height: 1.04; letter-spacing: -.035em;
}
@media (min-width: 1025px) {
	.wgtc__head { flex-wrap: nowrap; align-items: flex-end; }
	.wgtc__intro { flex: 1 1 auto; min-width: 0; }
	.wgtc__aside { flex: 0 0 auto; width: clamp(300px, 28vw, 440px); flex-direction: column; align-items: flex-start; gap: 16px; }
	.wgtc__desc { max-width: none; font-size: 15px; line-height: 1.55; }
}
/* Brand name on its own line: "Thailand Tours & Activities with" / "Thai Waheguru Travels" */
.wgtc .wgtc__title em { display: block; }
.wgtc .wgtc__title em {
	font-family: "Instrument Serif", Georgia, "Times New Roman", serif !important;
	font-style: italic; font-weight: 400; letter-spacing: -.01em;
	color: var(--wgtc-accent);
}
.wgtc__aside {
	display: flex; align-items: center; gap: 24px;
}
.wgtc__desc {
	max-width: 38ch; margin: 0;
	color: rgba(236, 241, 250, .72); font-size: 16px; line-height: 1.6;
}
.wgtc__more {
	display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0;
	min-height: 46px; padding: 0 22px; border-radius: 999px;
	color: #fff !important; text-decoration: none !important;
	font-size: 15px; font-weight: 600; white-space: nowrap;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .28);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
	backdrop-filter: blur(14px) saturate(160%);
	-webkit-backdrop-filter: blur(14px) saturate(160%);
	transition: background .2s, border-color .2s;
}
.wgtc__more svg { transition: transform .2s; }
.wgtc__more:hover { background: var(--wgtc-accent); border-color: var(--wgtc-accent); }
.wgtc__more:hover svg { transform: translateX(3px); }
.wgtc__more:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Stage */
.wgtc__stage {
	position: relative;
	height: calc(var(--wgtc-card-real-h) * 1.14 + 24px);
	margin-top: clamp(16px, 2.5vw, 36px);
	perspective: 1500px;
	perspective-origin: 50% 35%;
	touch-action: pan-y;
	user-select: none; -webkit-user-select: none;
	cursor: grab; outline: none;
}
.wgtc__stage.is-dragging { cursor: grabbing; }
.wgtc__stage:focus-visible { box-shadow: inset 0 0 0 2px var(--wgtc-accent); border-radius: 12px; }

/* Card */
.wgtc-card {
	position: absolute; top: 12px; left: 50%;
	width: var(--wgtc-w); height: var(--wgtc-card-real-h);
	margin-left: calc(var(--wgtc-w) / -2);
	transform-style: preserve-3d;
	transition: transform .85s var(--wgtc-ease), opacity .6s ease, filter .6s ease;
	will-change: transform;
}
.wgtc__stage.is-dragging .wgtc-card { transition: none; }

.wgtc-card__frame {
	position: relative; width: 100%; height: 100%;
	border-radius: var(--wgtc-radius); overflow: hidden;
	background: #1b2438;
	box-shadow:
		0 40px 70px -28px rgba(0, 0, 0, .8),
		0 0 0 1px rgba(255, 255, 255, .09);
}
.wgtc .wgtc-card__frame img.wgtc-card__img {
	position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
	width: 100% !important; height: 100% !important;
	max-width: none !important; max-height: none !important; min-height: 100% !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
	object-fit: cover !important; object-position: center !important;
	opacity: 1 !important; pointer-events: none;
	transition: transform 1.2s var(--wgtc-ease);
}
.wgtc .wgtc-card.is-active .wgtc-card__frame img.wgtc-card__img { transform: scale(1.04); }

/* Glass sheen across the photo */
.wgtc-card__frame::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
	background:
		linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .04) 28%, transparent 42%),
		linear-gradient(to bottom, transparent 45%, rgba(6, 10, 20, .55) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

.wgtc-card__badge {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	padding: 7px 12px; border-radius: 999px;
	font-size: 12px; font-weight: 600; color: #fff;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .28);
	backdrop-filter: blur(12px) saturate(160%);
	-webkit-backdrop-filter: blur(12px) saturate(160%);
}

/* Frosted glass panel with the button at the bottom */
.wgtc-card__glass {
	position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
	padding: 16px 16px 14px;
	border-radius: calc(var(--wgtc-radius) - 6px);
	background: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .06));
	border: 1px solid rgba(255, 255, 255, .24);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 12px 30px -12px rgba(0, 0, 0, .5);
	backdrop-filter: blur(18px) saturate(170%);
	-webkit-backdrop-filter: blur(18px) saturate(170%);
	transition: opacity .5s ease, transform .6s var(--wgtc-ease);
}
.wgtc-card__sub {
	margin: 0 0 4px; font-size: 12.5px; line-height: 1.4;
	color: rgba(255, 255, 255, .8);
}
.wgtc-card__title {
	margin: 0; color: #fff;
	font-family: inherit; font-size: clamp(16px, 1.6vw, 20px); font-weight: 700;
	line-height: 1.22; letter-spacing: -.01em;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .25);
}
.wgtc-card__foot {
	display: flex; flex-direction: column; align-items: stretch; gap: 10px;
	margin-top: 10px;
}
/* "Starting from" + amount above a full-width Enquire now button */
.wgtc .wgtc-card__price {
	display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px;
	margin: 0; padding: 0; color: #fff; line-height: 1.2;
}
.wgtc-card__price-label { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.wgtc-card__price-amount { font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.wgtc-card__foot .wgtc-card__btn { width: 100%; }
/* Theme/Elementor button styles must not change the card button */
.wgtc button.wgtc-card__btn {
	margin: 0; border: 0 !important; outline-offset: 3px;
	font-family: inherit; line-height: 1.1; letter-spacing: normal; text-transform: none;
	background: var(--wgtc-accent) !important; color: #fff !important; cursor: pointer;
}
/* Long activity names: two lines on the card, full name in the popup */
.wgtc-card__title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.wgtc-card__btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 40px; padding: 0 18px; border-radius: 999px;
	background: var(--wgtc-accent); color: #fff !important;
	font-size: 14px; font-weight: 600; text-decoration: none !important; white-space: nowrap;
	box-shadow: 0 10px 22px -10px var(--wgtc-accent), inset 0 1px 0 rgba(255, 255, 255, .3);
	transition: transform .2s ease, filter .2s ease;
}
.wgtc-card__btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wgtc-card__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.wgtc-card__foot--solo .wgtc-card__btn { flex: 1; }
.wgtc-card__badge { max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Side cards: content dimmed, button inactive until the card comes to the front */
.wgtc-card:not(.is-active) .wgtc-card__glass { opacity: .85; transform: translateY(4px); }
.wgtc-card:not(.is-active) .wgtc-card__btn { pointer-events: none; }
.wgtc-card:not(.is-active) { cursor: pointer; }

/* Mirror reflection */
.wgtc-card__reflection {
	position: absolute; left: 0; right: 0;
	top: calc(100% + 8px); height: 100%;
	border-radius: var(--wgtc-radius);
	background-size: cover; background-position: center;
	transform: scaleY(-1);
	opacity: .45;
	filter: blur(1.5px) saturate(1.1);
	-webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .25) 18%, transparent 38%);
	mask-image: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .25) 18%, transparent 38%);
	pointer-events: none;
}
.wgtc--no-reflection .wgtc__stage { height: calc(var(--wgtc-card-real-h) + 40px); }

/* Navigation pill */
.wgtc__nav {
	position: relative; z-index: 3;
	display: flex; align-items: center; gap: 14px;
	width: max-content; max-width: calc(100% - 32px);
	margin: calc(var(--wgtc-card-real-h) * -0.1) auto 0;
	padding: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.wgtc--no-reflection .wgtc__nav { margin-top: 0; }
.wgtc__arrow {
	display: grid; place-items: center;
	width: 42px; height: 42px; padding: 0; border-radius: 50%;
	color: #fff; background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .2);
	cursor: pointer; transition: background .2s, border-color .2s;
}
.wgtc__arrow:hover { background: var(--wgtc-accent); border-color: var(--wgtc-accent); }
.wgtc__arrow:focus-visible, .wgtc__dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.wgtc__dots { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center; }
.wgtc__dot {
	position: relative; overflow: hidden;
	width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
	background: rgba(255, 255, 255, .35); cursor: pointer;
	transition: width .45s var(--wgtc-ease), background .3s;
}
.wgtc__dot:hover { background: rgba(255, 255, 255, .6); }
.wgtc__dot.is-active { width: 30px; background: rgba(255, 255, 255, .25); }
.wgtc__dot.is-active::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit;
	background: var(--wgtc-accent);
	transform-origin: left center;
}
/* Progress fill while auto sliding */
.wgtc.is-playing .wgtc__dot.is-active::after { animation: wgtc-fill var(--wgtc-interval) linear forwards; }
.wgtc.is-playing.is-paused .wgtc__dot.is-active::after { animation-play-state: paused; }
@keyframes wgtc-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.wgtc--single .wgtc__stage { cursor: default; }

/* Credit line for the active photo */
.wgtc__credit {
	position: absolute; right: 20px; bottom: 8px; z-index: 3;
	max-width: min(420px, 45%);
	margin: 0; text-align: right;
	font-size: 10.5px; line-height: 1.4; color: rgba(236, 241, 250, .45);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	transition: opacity .4s ease;
}
.wgtc__credit:empty { visibility: hidden; }

/* Card without a photo yet */
.wgtc-card--noimg .wgtc-card__frame { background: linear-gradient(160deg, #2b3d63 0%, #121a2c 100%); }

/* Large desktops */
@media (min-width: 1200px) {
	.wgtc { --wgtc-card-w: min(calc(var(--wgtc-card-h) * 0.8), 70vw, 52vh); }
	.wgtc__head { max-width: 1360px; }
}
@media (min-width: 1600px) {
	.wgtc { --wgtc-card-w: min(calc(var(--wgtc-card-h) * 0.86), 70vw, 54vh); }
	.wgtc__head { max-width: 1520px; }
}

/* Tablets */
@media (max-width: 1024px) {
	.wgtc__head { flex-direction: column; align-items: flex-start; gap: 14px; }
	.wgtc__aside { width: 100%; justify-content: space-between; }
	.wgtc__head { padding: 0 32px; }
	.wgtc .wgtc__title { font-size: clamp(30px, 5vw, 46px); }
	.wgtc-card__title { font-size: 18px; }
}

/* Phones */
@media (max-width: 640px) {
	.wgtc { --wgtc-card-w: min(calc(var(--wgtc-card-h) * 0.7), 68vw, 46vh); --wgtc-radius: 18px; }
	.wgtc__head { align-items: flex-start; flex-direction: column; gap: 14px; }
	.wgtc__aside { flex-direction: column; align-items: flex-start; gap: 14px; }
	.wgtc__credit { left: 16px; right: 16px; max-width: none; text-align: center; }
	.wgtc__more { min-height: 42px; font-size: 14px; padding: 0 18px; }
	.wgtc .wgtc__title { font-size: clamp(24px, 7vw, 34px); }
	.wgtc .wgtc__title em { display: inline; }
	.wgtc-card__title { font-size: 16px; }
	.wgtc-card__badge { top: 10px; left: 10px; padding: 6px 10px; font-size: 11px; }
	.wgtc__head { padding: 0 20px; }
	.wgtc__desc { font-size: 15px; }
	.wgtc-card__glass { left: 10px; right: 10px; bottom: 10px; padding: 12px; }
	.wgtc-card__btn { min-height: 38px; }
	.wgtc-card__price-amount { font-size: 16px; }
	.wgtc-card__price-label { font-size: 11px; }
	.wgtc__arrow { width: 38px; height: 38px; }
	.wgtc__nav { gap: 10px; }
	.wgtc__dots { gap: 6px; }
}

/* Small phones */
@media (max-width: 360px) {
	.wgtc__head { padding: 0 16px; }
	.wgtc-card__glass { padding: 10px; }
	.wgtc-card__sub { font-size: 11.5px; }
	.wgtc__dot { width: 6px; height: 6px; }
	.wgtc__dot.is-active { width: 22px; }
}

/* Short screens (laptops, small browser windows): compact heading so the cards stay big */
@media (max-height: 820px) and (min-width: 641px) {
	.wgtc { padding-top: calc(20px + var(--wgtc-top)); padding-bottom: 28px; }
	.wgtc__eyebrow { margin-bottom: 6px; font-size: 13px; }
	.wgtc .wgtc__title { font-size: clamp(28px, 3vw, 44px); }
	.wgtc__stage { margin-top: 12px; }
}
@media (max-height: 700px) and (min-width: 641px) {
	.wgtc__eyebrow { display: none; }
	.wgtc__desc { font-size: 14px; line-height: 1.45; }
}
@media (max-height: 700px) and (max-width: 640px) {
	.wgtc__desc { font-size: 13.5px; line-height: 1.45; }
	.wgtc { padding-top: calc(22px + var(--wgtc-top)); }
}

/* Landscape phones: short screens get compact spacing */
@media (max-height: 520px) and (orientation: landscape) {
	.wgtc { padding: 24px 0 20px; --wgtc-card-w: min(calc(var(--wgtc-card-h) * 0.7), 40vw, 54vh); }
	.wgtc__head { flex-direction: row; align-items: flex-end; }
	.wgtc__title { font-size: 30px; }
	.wgtc__eyebrow { margin-bottom: 6px; }
	.wgtc__desc { display: none; }
	.wgtc__stage { margin-top: 16px; }
	.wgtc-card__badge { display: none; }
	.wgtc-card__glass { left: 8px; right: 8px; bottom: 8px; padding: 10px; }
	.wgtc-card__sub { font-size: 11px; margin-bottom: 2px; }
	.wgtc-card__title { font-size: 14px; }
	.wgtc-card__foot { margin-top: 8px; }
	.wgtc-card__btn { min-height: 32px; font-size: 12.5px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
	.wgtc-card, .wgtc-card__img, .wgtc-card__glass, .wgtc__ambient span { transition-duration: .01ms !important; }
	.wgtc.is-playing .wgtc__dot.is-active::after { animation: none; transform: scaleX(1); }
}

/* ---------- Automatic compact levels (added by the script only when space is short) ---------- */
.wgtc.wgtc--compact { padding-top: calc(18px + var(--wgtc-top)); padding-bottom: 14px; }
.wgtc--compact .wgtc__eyebrow { margin-bottom: 6px; font-size: 12px; }
.wgtc.wgtc--compact .wgtc__title { font-size: clamp(24px, 2.6vw, 42px); line-height: 1.05; }
.wgtc--compact .wgtc__desc { font-size: 14px; line-height: 1.45; }
.wgtc--compact .wgtc__aside { gap: 10px; }
.wgtc--compact .wgtc__more { min-height: 40px; font-size: 14px; padding: 0 18px; }
.wgtc--compact .wgtc__stage { margin-top: 10px; height: calc(var(--wgtc-card-real-h) * 1.08 + 18px); }
.wgtc--compact .wgtc__nav { margin-top: calc(var(--wgtc-card-real-h) * -0.06); }

.wgtc--tight .wgtc__eyebrow { display: none; }
.wgtc.wgtc--tight .wgtc__title { font-size: clamp(22px, 2.2vw, 36px); }
.wgtc--tight .wgtc__desc {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
	font-size: 13.5px;
}
.wgtc--tight .wgtc__head { gap: 10px; }
.wgtc--tight .wgtc__arrow { width: 36px; height: 36px; }
.wgtc--tight .wgtc__nav { padding: 4px; }

@media (max-width: 640px) {
	.wgtc.wgtc--compact .wgtc__title { font-size: clamp(22px, 6.4vw, 30px); }
	.wgtc.wgtc--tight .wgtc__title { font-size: clamp(20px, 6vw, 26px); }
	.wgtc--compact .wgtc__head { gap: 10px; }
	.wgtc--compact .wgtc__aside { gap: 10px; }
	.wgtc--tight .wgtc__more { min-height: 36px; font-size: 13px; }
}
/* Landscape phones: title + button on one row */
@media (max-height: 500px) and (orientation: landscape) {
	.wgtc--tight .wgtc__desc { display: none; }
	.wgtc--tight .wgtc__head { flex-direction: row; align-items: center; justify-content: space-between; }
	.wgtc--tight .wgtc__aside { width: auto; }
	.wgtc.wgtc--tight .wgtc__title { font-size: 20px; }
	.wgtc.wgtc--tight .wgtc__title em { display: inline; }
	.wgtc.wgtc--tight { padding-top: calc(10px + var(--wgtc-top)); padding-bottom: 8px; }
	.wgtc--tight .wgtc__more { min-height: 34px; font-size: 13px; padding: 0 14px; }
	.wgtc--tight .wgtc__stage { margin-top: 8px; height: calc(var(--wgtc-card-real-h) + 14px); }
	.wgtc--tight .wgtc-card__reflection { display: none; }
	.wgtc--tight .wgtc__nav { margin-top: 2px; }
	.wgtc--tight .wgtc__arrow { width: 30px; height: 30px; }
	.wgtc--tight .wgtc-card__sub { display: none; }
	.wgtc--tight .wgtc-card__title { font-size: 12.5px; }
	.wgtc--tight .wgtc-card__glass { left: 6px; right: 6px; bottom: 6px; padding: 8px; }
	.wgtc--tight .wgtc-card__foot { margin-top: 6px; }
	.wgtc--tight .wgtc-card__btn { min-height: 28px; font-size: 11.5px; padding: 0 10px; }
	.wgtc--tight .wgtc__credit { display: none; }
}

/* ---------- Heading that follows the active slide ---------- */
.wgtc__head--slides .wgtc__intro,
.wgtc__head--slides .wgtc__aside { transition: opacity .22s ease, transform .22s ease; }
.wgtc__head--slides.is-swapping .wgtc__intro,
.wgtc__head--slides.is-swapping .wgtc__aside { opacity: 0; transform: translateY(6px); }
.wgtc__head--slides [hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
	.wgtc__head--slides .wgtc__intro, .wgtc__head--slides .wgtc__aside { transition: none; }
}
/* Stacked layout (tablet/phone): keep the text right under the heading; spare height goes below */
@media (max-width: 1024px) {
	.wgtc__head--slides { justify-content: flex-start; }
}
