/**
 * Tour Packages Cards & Page Format Styling
 * Theme: HL Transportes Turísticos / JupiterX Child
 *
 * Grid: col-12 col-md-6 col-lg-4 (3 cards per row on desktop)
 * Design: High-impact adventure & tour package card with floating price tag,
 *         duration pill, sites tag cloud, and modern hover elevation.
 */

/* ==========================================================================
   1. Packages Page Layout & Hero Section
   ========================================================================== */
.stp-packages-archive {
	background-color: #f8fafc;
	min-height: 70vh;
}

.stp-packages-toolbar {
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	padding: 1.25rem 0;
	position: relative;
	z-index: 2;
}

.stp-pkg-filter-btn {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #475569;
	font-size: 0.88rem;
	font-weight: 600;
	padding: 0.5rem 1.2rem;
	border-radius: 9999px;
	cursor: pointer;
	transition: all 0.25s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.stp-pkg-filter-btn:hover {
	border-color: #cbd5e1;
	color: #0f172a;
	background: #f8fafc;
}

.stp-pkg-filter-btn.active {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* ==========================================================================
   2. Package Card (col-md-4 / 3 Columns)
   ========================================================================== */
.stp-pkg-card {
	background: #ffffff;
	border: 1px solid #e9edf2;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.05);
	transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
	            box-shadow 0.4s ease,
	            border-color 0.4s ease;
	position: relative;
	height: 100%;
}

.stp-pkg-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 38px -10px rgba(15, 23, 42, 0.12),
	            0 10px 18px -4px rgba(15, 23, 42, 0.06);
	border-color: rgba(16, 185, 129, 0.35);
}

/* 2.1 Media Area & Image Aspect Ratio */
.stp-pkg-media {
	position: relative;
	height: 230px;
	overflow: hidden;
	background-color: #0f172a;
}

.stp-pkg-img-link {
	display: block;
	width: 100%;
	height: 100%;
}

.stp-pkg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
	will-change: transform;
}

.stp-pkg-card:hover .stp-pkg-img {
	transform: scale(1.07);
}

.stp-pkg-media-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(15, 23, 42, 0.35) 0%,
		rgba(15, 23, 42, 0.05) 45%,
		rgba(15, 23, 42, 0.7) 100%
	);
	pointer-events: none;
	z-index: 1;
}

/* Badges on Media */
.stp-pkg-badge-duration {
	position: absolute;
	top: 0.85rem;
	left: 0.85rem;
	z-index: 2;
	background: rgba(15, 23, 42, 0.78);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #ffffff;
	font-size: 0.76rem;
	font-weight: 700;
	padding: 0.35rem 0.75rem;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.stp-pkg-badge-highlight {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 2;
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 0.35rem 0.75rem;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* Floating Price Tag on Image Bottom-Right */
.stp-pkg-floating-price {
	position: absolute;
	bottom: 0.85rem;
	right: 0.85rem;
	z-index: 2;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	padding: 0.35rem 0.75rem;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.22);
	display: flex;
	align-items: baseline;
	gap: 0.25rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stp-pkg-card:hover .stp-pkg-floating-price {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.stp-pkg-price-prefix {
	font-size: 0.68rem;
	text-transform: uppercase;
	font-weight: 700;
	color: #64748b;
	line-height: 1;
}

.stp-pkg-price-val {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
}

.stp-pkg-price-val sup {
	font-size: 0.72rem;
	font-weight: 700;
	color: #10b981;
	top: -0.3em;
}

.stp-pkg-price-sub {
	font-size: 0.7rem;
	color: #94a3b8;
	font-weight: 600;
}

/* Floating Route on Bottom-Left */
.stp-pkg-floating-route {
	position: absolute;
	bottom: 0.85rem;
	left: 0.85rem;
	z-index: 2;
	max-width: 55%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #f8fafc;
	font-size: 0.78rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.stp-pkg-floating-route i {
	color: #fbbf24;
}

/* ==========================================================================
   3. Card Body & Typography
   ========================================================================== */
.stp-pkg-body {
	padding: 1.35rem 1.4rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.stp-pkg-meta-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5rem;
}

.stp-pkg-location {
	font-size: 0.76rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #059669;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
}

.stp-pkg-rating {
	font-size: 0.76rem;
	font-weight: 700;
	color: #0f172a;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.stp-pkg-rating i {
	color: #f59e0b;
}

.stp-pkg-title {
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 0.5rem;
	color: #0f172a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7rem;
}

.stp-pkg-title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.25s ease;
}

.stp-pkg-card:hover .stp-pkg-title a,
.stp-pkg-title a:hover {
	color: #059669;
}

.stp-pkg-excerpt {
	color: #64748b;
	font-size: 0.85rem;
	line-height: 1.5;
	margin-bottom: 0.9rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Tag Cloud of Visited Places */
.stp-pkg-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin-bottom: 1rem;
}

.stp-pkg-tag {
	background: #f1f5f9;
	color: #475569;
	font-size: 0.72rem;
	font-weight: 600;
	padding: 0.25rem 0.6rem;
	border-radius: 6px;
	white-space: nowrap;
	border: 1px solid #e2e8f0;
}

/* Horizontal 3-Item Quick Specs Strip */
.stp-pkg-specs-strip {
	background: #f8fafc;
	border-radius: 10px;
	padding: 0.65rem 0.75rem;
	margin-bottom: 1rem;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	text-align: center;
	border: 1px solid #f1f5f9;
}

.stp-pkg-spec-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.stp-pkg-spec-unit:not(:last-child) {
	border-right: 1px solid #e2e8f0;
}

.stp-pkg-spec-icon {
	color: #10b981;
	font-size: 0.85rem;
	margin-bottom: 0.2rem;
}

.stp-pkg-spec-text {
	font-size: 0.72rem;
	font-weight: 700;
	color: #334155;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 90px;
}

/* ==========================================================================
   4. Card Footer & CTAs
   ========================================================================== */
.stp-pkg-footer {
	margin-top: auto;
	padding-top: 0.9rem;
	border-top: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.stp-pkg-guarantee {
	font-size: 0.72rem;
	font-weight: 600;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.stp-pkg-guarantee i {
	color: #10b981;
}

.stp-pkg-cta-group {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.stp-pkg-btn-wa {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(37, 211, 102, 0.12);
	color: #16a34a !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	text-decoration: none;
	transition: all 0.25s ease;
	border: 1px solid rgba(37, 211, 102, 0.3);
}

.stp-pkg-btn-wa:hover {
	background: #25d366;
	color: #ffffff !important;
	transform: scale(1.08);
	box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
}

.stp-pkg-btn-explore {
	background: #0f172a;
	color: #ffffff !important;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 0.45rem 1rem;
	border-radius: 9999px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	transition: all 0.25s ease;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.stp-pkg-btn-explore i {
	transition: transform 0.25s ease;
}

.stp-pkg-btn-explore:hover {
	background: #059669;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.stp-pkg-btn-explore:hover i {
	transform: translateX(3px);
}

/* ==========================================================================
   5. Filter Hide / Show Animation
   ========================================================================== */
.stp-pkg-col {
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.stp-pkg-col.is-hidden {
	display: none !important;
}

/* ==========================================================================
   6. Packages Custom Consultation Banner
   ========================================================================== */
.stp-pkg-cta-banner {
	background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
	border-radius: 20px;
	color: #ffffff;
	padding: 3rem 2rem;
	position: relative;
	overflow: hidden;
	box-shadow: 0 20px 40px -15px rgba(6, 78, 59, 0.35);
}

.stp-pkg-cta-banner::before {
	content: '';
	position: absolute;
	top: -40%;
	right: -15%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

/* ==========================================================================
   7. Responsive Tweaks
   ========================================================================== */
@media (max-width: 767.98px) {
	.stp-pkg-media {
		height: 200px;
	}
	.stp-pkg-title {
		min-height: auto;
	}
	.stp-pkg-specs-strip {
		padding: 0.5rem;
	}
}
