/* Tour Packages Grid – Elementor Widget v1.0.5
   ========================================================================== */

/* ── Grid ─────────────────────────────────────────────────────────────────── */
.tpw-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 1024px) {
	.tpw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.tpw-grid { grid-template-columns: 1fr; }
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.tpw-card {
	position: relative;
	border-radius: 20px;
	overflow: hidden;
	min-height: 500px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-color: #1a1a1a;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tpw-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 56px rgba(0,0,0,0.35);
}

/* ── Overlay ──────────────────────────────────────────────────────────────── */
.tpw-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 60%);
	z-index: 1;
	pointer-events: none;
	transition: background 0.35s ease;
}
.tpw-card:hover .tpw-card-overlay {
	background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.12) 70%);
}

/* ── Body ─────────────────────────────────────────────────────────────────── */
.tpw-card-body {
	position: relative;
	z-index: 2;
	margin-top: auto;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* ── Badge ────────────────────────────────────────────────────────────────── */
.tpw-badge {
	display: inline-block;
	background: rgba(255,255,255,0.92);
	color: #111;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 4px 14px;
	border-radius: 50px;
	width: fit-content;
	line-height: 1.6;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* ── Title ────────────────────────────────────────────────────────────────── */
.tpw-title {
	color: #fff;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	padding: 0;
}

/* ── Meta row ─────────────────────────────────────────────────────────────── */
.tpw-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	color: #fff;
	font-size: 14px;
}
.tpw-rating,
.tpw-days {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
/* Base size — Elementor slider overrides via inline selector */
.tpw-star {
	width: 14px;
	height: 14px;
	min-width: 14px;
	flex-shrink: 0;
	display: block;
}
.tpw-days svg {
	width: 14px;
	height: 14px;
	min-width: 14px;
	flex-shrink: 0;
	display: block;
}

/* ── Included ─────────────────────────────────────────────────────────────── */
.tpw-included-label {
	color: #fff;
	font-size: 13px;
	margin: 4px 0 0;
	padding: 0;
}
.tpw-included-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.tpw-inc-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: rgba(255,255,255,0.12);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.45);
	font-size: 12px;
	padding: 6px 14px;
	border-radius: 8px;
	line-height: 1.4;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.tpw-inc-badge img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	display: block;
	flex-shrink: 0;
	filter: brightness(0) invert(1);
}

/* ── Price ────────────────────────────────────────────────────────────────── */
.tpw-price-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}
.tpw-offer-price {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}
.tpw-original-price {
	color: rgba(255,255,255,0.60);
	font-size: 14px;
}

/* ── Actions wrapper ─────────────────────────────────────────────────────── */
.tpw-actions-wrap {
	overflow: hidden;
}
.tpw-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 6px;
}

/* ── Hover reveal ────────────────────────────────────────────────────────── */
.tpw-hover-reveal .tpw-actions-wrap {
	max-height: 0 !important;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.tpw-hover-reveal .tpw-actions {
	opacity: 0 !important;
	transform: translateY(10px) !important;
	transition: opacity 0.3s ease 0.08s, transform 0.3s ease 0.08s !important;
}
.tpw-hover-reveal .tpw-card:hover .tpw-actions-wrap {
	max-height: 80px !important;
}
.tpw-hover-reveal .tpw-card:hover .tpw-actions {
	opacity: 1 !important;
	transform: translateY(0) !important;
}
@media (hover: none) {
	.tpw-hover-reveal .tpw-actions-wrap { max-height: 80px !important; }
	.tpw-hover-reveal .tpw-actions { opacity: 1 !important; transform: none !important; }
}

/* ── Icon buttons ────────────────────────────────────────────────────────── */
.tpw-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255,255,255,0.18);
	color: #fff;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.2s ease;
}
.tpw-icon-btn:hover {
	background: rgba(255,255,255,0.35);
	transform: scale(1.08);
}
.tpw-icon-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	display: block;
	flex-shrink: 0;
}

/* ── CTA Button ──────────────────────────────────────────────────────────── */
.tpw-cta-btn {
	flex: 1 1 auto;
	display: inline-block;
	text-align: center;
	background: #4a7c5a;
	color: #fff !important;
	text-decoration: none !important;
	padding: 12px 24px;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	transition: background 0.2s ease;
	white-space: nowrap;
}
.tpw-cta-btn:hover {
	background: #3a6349;
	color: #fff !important;
}

/* ── Load More button ────────────────────────────────────────────────────── */
.tpw-load-more-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-top: 32px;
}
.tpw-load-more-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #4a7c5a;
	color: #fff;
	border: none;
	cursor: pointer;
	padding: 13px 40px;
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.01em;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	outline: none;
	box-shadow: 0 4px 16px rgba(74,124,90,0.30);
	min-width: 160px;
}
.tpw-load-more-btn:hover:not(:disabled) {
	background: #3a6349;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(74,124,90,0.42);
}
.tpw-load-more-btn:disabled {
	opacity: 0.75;
	cursor: not-allowed;
}

/* Button spinner — hidden by default, shown via JS display:inline-block */
.tpw-lm-spinner {
	display: none;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	stroke: currentColor;
	animation: tpw-spin 0.7s linear infinite;
}

/* ── Outer wrapper (position context for overlay) ───────────────────────── */
.tpw-outer {
	position: relative;
}

/* ── Grid overlay spinner (centered over grid while loading) ─────────────── */
.tpw-grid-overlay {
	display: none; /* shown via JS as flex */
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255,255,255,0.45);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 50;
	align-items: center;
	justify-content: center;
	border-radius: 20px;
	pointer-events: none;
}
.tpw-grid-spinner {
	width: 56px;
	height: 56px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.tpw-grid-spinner svg {
	width: 28px;
	height: 28px;
	stroke: #4a7c5a;
	animation: tpw-spin 0.7s linear infinite;
}

@keyframes tpw-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}
