/* ==========================================================
   SW Travel Packages – frontend
   All sizes/colours come from CSS variables set per section
   (Travel Packages → Settings).
   ========================================================== */

.swtp-section {
	--swtp-cols: var(--swtp-cols-d, 3);
	--swtp-g: var(--swtp-gap, 32px);
	--swtp-pad-x: var(--swtp-px, 50px);
	--swtp-pad-t: var(--swtp-pt, 80px);
	--swtp-pad-b: var(--swtp-pb, 80px);
	--swtp-text: #1E293B;
	--swtp-muted: #64748B;
	--swtp-line: rgba(12, 35, 64, .08);
	--swtp-ease: cubic-bezier(.16, 1, .3, 1);

	position: relative;
	width: 100%;
	padding: var(--swtp-pad-t) 0 var(--swtp-pad-b);
	background: var(--swtp-bg, #F8FAFC);
	font-family: var(--swtp-font, inherit);
	color: var(--swtp-text);
	-webkit-font-smoothing: antialiased;
}

.swtp-section *,
.swtp-section *::before,
.swtp-section *::after {
	box-sizing: border-box;
}

.swtp-section .swtp-container {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 var(--swtp-pad-x);
}

/* ---------- Section header ---------- */
.swtp-section .swtp-head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 52px;
}

.swtp-section .swtp-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 7px 16px;
	border-radius: 50px;
	background: rgba(255, 87, 34, .1);
	background: color-mix(in srgb, var(--swtp-accent) 10%, transparent);
	color: var(--swtp-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	line-height: 1.2;
}

.swtp-section .swtp-tag i { font-size: 13px; }

.swtp-section h2.swtp-title {
	margin: 0;
	font-family: inherit;
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.5px;
	color: var(--swtp-primary);
	text-transform: none;
}

.swtp-section h2.swtp-title span { color: var(--swtp-accent); }

.swtp-section p.swtp-sub {
	margin: 14px auto 0;
	max-width: 600px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--swtp-muted);
}

/* ---------- Track / slider ---------- */
.swtp-section .swtp-slider { position: relative; }

.swtp-section .swtp-track {
	display: flex;
	gap: var(--swtp-g);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scroll-padding-inline: 6px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	/* Room for hover lift + shadow, cancelled by negative margin so alignment stays exact */
	padding: 12px 6px 34px;
	margin: -12px -6px -34px;
	overscroll-behavior-x: contain;
}

.swtp-section .swtp-track::-webkit-scrollbar { display: none; }

.swtp-section.swtp-fits .swtp-track { justify-content: center; }

.swtp-section .swtp-track.is-dragging {
	scroll-snap-type: none;
	scroll-behavior: auto;
	cursor: grabbing;
	user-select: none;
}

.swtp-section .swtp-slot {
	flex: 0 0 calc((100% - (var(--swtp-cols) - 1) * var(--swtp-g)) / var(--swtp-cols));
	min-width: 0;
	display: flex;
	scroll-snap-align: start;
}

/* ---------- Card ---------- */
.swtp-section .swtp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	background: #fff;
	border: 1px solid var(--swtp-line);
	border-radius: var(--swtp-radius, 16px);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(12, 35, 64, .05);
	transition: transform .4s var(--swtp-ease), box-shadow .4s var(--swtp-ease), border-color .4s;
}

.swtp-section .swtp-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 44px rgba(12, 35, 64, .12);
	border-color: rgba(255, 87, 34, .3);
	border-color: color-mix(in srgb, var(--swtp-accent) 30%, transparent);
}

.swtp-section .swtp-card.is-featured {
	border: 2px solid var(--swtp-accent);
	box-shadow: 0 16px 40px rgba(255, 87, 34, .14);
	box-shadow: 0 16px 40px color-mix(in srgb, var(--swtp-accent) 16%, transparent);
}

/* Media */
.swtp-section .swtp-media {
	position: relative;
	height: var(--swtp-img-h, 240px);
	overflow: hidden;
	background: var(--swtp-primary);
	flex-shrink: 0;
}

.swtp-section .swtp-media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .8s var(--swtp-ease);
}

.swtp-section .swtp-card:hover .swtp-media img { transform: scale(1.06); }

/* Soft top shade so white badges stay readable on bright skies */
.swtp-section .swtp-media::after {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 90px;
	background: linear-gradient(180deg, rgba(12, 35, 64, .35), rgba(12, 35, 64, 0));
	pointer-events: none;
}

.swtp-section .swtp-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 54px;
	color: rgba(255, 255, 255, .25);
}

.swtp-section .swtp-badge {
	position: absolute;
	top: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: calc(50% - 20px);
	padding: 8px 14px;
	border-radius: 50px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.swtp-section .swtp-badge-left {
	left: 16px;
	background: rgba(12, 35, 64, .85);
	background: color-mix(in srgb, var(--swtp-primary) 85%, transparent);
	color: #fff;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.swtp-section .swtp-badge-right {
	right: 16px;
	background: var(--swtp-badge-bg, var(--swtp-accent));
	color: var(--swtp-badge-color, #fff);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
}

/* Body */
.swtp-section .swtp-body {
	container: swtpcard / inline-size;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 26px 28px 28px;
}

.swtp-section h3.swtp-card-title {
	margin: 0 0 10px;
	font-family: inherit;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.2px;
	color: var(--swtp-primary);
	text-transform: none;
	transition: color .3s;
}

.swtp-section h3.swtp-card-title a {
	color: inherit;
	text-decoration: none;
}

/* Whole card is clickable through the title link */
.swtp-section h3.swtp-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.swtp-section .swtp-card:hover h3.swtp-card-title { color: var(--swtp-accent); }

.swtp-section p.swtp-desc {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--swtp-muted);
}

/* Feature list */
.swtp-section ul.swtp-features {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 22px;
	padding: 0 0 20px;
	list-style: none;
	border-bottom: 1px solid var(--swtp-line);
}

.swtp-section ul.swtp-features li.swtp-feat {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--swtp-text);
}

.swtp-section ul.swtp-features li.swtp-feat::before { display: none; }

.swtp-section .swtp-feat i {
	flex-shrink: 0;
	width: 14px;
	margin-top: 4px;
	font-size: 12px;
	text-align: center;
	color: var(--swtp-accent);
}

.swtp-section ul.swtp-features li.swtp-feat.is-bold {
	font-weight: 700;
	color: var(--swtp-primary);
}

.swtp-section ul.swtp-features li.swtp-feat.is-highlight {
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--swtp-feat-bg, #FFF1EC);
	color: var(--swtp-feat-color, #9A3412);
}

.swtp-section .swtp-feat.is-highlight i { color: inherit; }

/* Footer: price + actions */
.swtp-section .swtp-foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px 12px;
	margin-top: auto;
}

.swtp-section .swtp-price {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.swtp-section .swtp-price-label {
	margin-bottom: 2px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--swtp-muted);
}

.swtp-section .swtp-price-old {
	font-size: 13px;
	font-weight: 600;
	color: #94A3B8;
	text-decoration: line-through;
}

.swtp-section .swtp-price-value {
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--swtp-primary);
	white-space: nowrap;
}

.swtp-section .swtp-price-value.is-text { font-size: 19px; }

.swtp-section .swtp-price-note {
	margin-top: 3px;
	font-size: 12px;
	color: var(--swtp-muted);
}

.swtp-section .swtp-actions {
	position: relative;
	z-index: 2; /* above the stretched title link */
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 1 0 auto;
	gap: 8px;
}

.swtp-section a.swtp-btn {
	flex: 0 1 auto;
	justify-content: center;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: 50px;
	background: var(--swtp-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	transition: background .3s;
}

.swtp-section a.swtp-btn svg { transition: transform .3s var(--swtp-ease); }

.swtp-section .swtp-card:hover a.swtp-btn { background: var(--swtp-accent); color: #fff; }
.swtp-section .swtp-card:hover a.swtp-btn svg { transform: translateX(3px); }

.swtp-section a.swtp-wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #E7F8EE;
	color: #128C4B;
	font-size: 20px;
	text-decoration: none;
	transition: background .3s, color .3s;
}

.swtp-section a.swtp-wa:hover {
	background: #25D366;
	color: #fff;
}

/* Price and buttons can't share a row in narrow cards: button fills the row */
@container swtpcard (max-width: 360px) {
	.swtp-section .swtp-actions { flex-basis: 100%; }
	.swtp-section a.swtp-btn { flex: 1 1 auto; padding: 13px 20px; }
}

/* ---------- Navigation (only shown when cards overflow) ---------- */
.swtp-section .swtp-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-top: 30px;
}

.swtp-section .swtp-nav[hidden] { display: none; }

.swtp-section .swtp-progress {
	flex: 1;
	height: 4px;
	border-radius: 4px;
	background: rgba(12, 35, 64, .08);
	overflow: hidden;
}

.swtp-section .swtp-progress span {
	display: block;
	width: 30%;
	height: 100%;
	border-radius: 4px;
	background: var(--swtp-accent);
	transition: transform .25s linear, width .25s;
}

.swtp-section .swtp-arrows {
	display: flex;
	gap: 10px;
}

.swtp-section button.swtp-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: 0;
	padding: 0;
	border: 1.5px solid rgba(12, 35, 64, .15);
	border-radius: 50%;
	background: #fff;
	color: var(--swtp-primary);
	cursor: pointer;
	box-shadow: none;
	transition: background .3s, border-color .3s, color .3s, opacity .3s;
}

.swtp-section button.swtp-arrow:hover:not(:disabled) {
	background: var(--swtp-primary);
	border-color: var(--swtp-primary);
	color: #fff;
}

.swtp-section button.swtp-arrow:disabled {
	opacity: .35;
	cursor: default;
}

/* Keyboard focus */
.swtp-section a:focus-visible,
.swtp-section button:focus-visible {
	outline: 3px solid var(--swtp-accent);
	outline-offset: 3px;
}

.swtp-section h3.swtp-card-title a:focus-visible { outline: none; }
.swtp-section h3.swtp-card-title a:focus-visible::after {
	outline: 3px solid var(--swtp-accent);
	outline-offset: -3px;
	border-radius: var(--swtp-radius, 16px);
}

/* Single card shortcode */
.swtp-section.swtp-single {
	padding: 0;
	background: transparent;
	max-width: 420px;
}

/* Admin-only notice */
.swtp-notice {
	padding: 14px 18px;
	border: 1px dashed #F59E0B;
	border-radius: 8px;
	background: #FFFBEB;
	color: #92400E;
	font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.swtp-section {
		--swtp-cols: var(--swtp-cols-t, 2);
		--swtp-pad-x: min(var(--swtp-px, 50px), 32px);
		--swtp-g: min(var(--swtp-gap, 32px), 24px);
	}
}

@media (max-width: 767px) {
	.swtp-section {
		--swtp-cols: var(--swtp-cols-m, 1);
		--swtp-pad-x: 20px;
		--swtp-pad-t: calc(var(--swtp-pt, 80px) * .7);
		--swtp-pad-b: calc(var(--swtp-pb, 80px) * .7);
		--swtp-g: 16px;
	}

	/* Show a slice of the next card so visitors know they can swipe */
	.swtp-section.swtp-peek .swtp-slot { flex-basis: 86%; }
	.swtp-section.swtp-peek.swtp-fits .swtp-slot { flex-basis: 100%; }

	.swtp-section .swtp-head { margin-bottom: 36px; }
	.swtp-section .swtp-body { padding: 22px 20px 22px; }
	.swtp-section h3.swtp-card-title { font-size: 20px; }
	.swtp-section .swtp-nav { gap: 16px; margin-top: 22px; }
	.swtp-section button.swtp-arrow { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
	.swtp-section *,
	.swtp-section .swtp-track { transition: none !important; scroll-behavior: auto !important; }
	.swtp-section .swtp-card:hover,
	.swtp-section .swtp-card:hover .swtp-media img { transform: none; }
}
