/* ==========================================================================
   NEPAL TRIP SERVICES — REUSABLE MODERN PACKAGE CARD SYSTEM
   Stylesheet: public/css/package-card-modern.css
   Version: 1.0
   Design Benchmark: view/layout/home.php (#home-tour-section)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section Layout & Header (When used in standalone featured sections)
   -------------------------------------------------------------------------- */
.featured-packages-section {
	background: #fbfcfd;
	padding: 70px 0 65px 0;
	position: relative;
}

.featured-packages-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 36px;
	gap: 20px;
	flex-wrap: wrap;
}

.featured-packages-header-left {
	flex: 1;
	min-width: 280px;
}

.featured-pkg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: #5c6f84;
	letter-spacing: 0.2px;
	margin-bottom: 6px;
}

.featured-pkg-compass-icon {
	color: #e05a1e;
	flex-shrink: 0;
}

/* Section header icon: wooden signpost illustration replaces the compass on every section header
   (shared headers + "Explore by Travel Style"); raster at 3x of the 22x34 display size: WebP with PNG fallback */
.featured-pkg-eyebrow .featured-pkg-compass-icon,
.travel-style-intro .fa-compass {
	display: none;
}

.featured-pkg-eyebrow::before,
.travel-style-intro::before {
	content: "";
	flex-shrink: 0;
	width: 22px;
	height: 34px;
	background: url("../images/illustrations/heading-signpost.png") center / contain no-repeat;
	background-image: image-set(url("../images/illustrations/heading-signpost.webp") type("image/webp"), url("../images/illustrations/heading-signpost.png") type("image/png"));
}

.featured-pkg-heading {
	font-size: 32px;
	font-weight: 800;
	color: #0f2942;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0;
	line-height: 1.2;
}

.featured-packages-header-right {
	flex-shrink: 0;
}

.featured-pkg-view-all-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 24px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #0f2942;
	background: transparent;
	border: 1.5px solid #0f2942;
	border-radius: 50px;
	text-decoration: none !important;
	transition: all 0.25s ease;
}

.featured-pkg-view-all-btn:hover {
	background: #0f2942;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(15, 41, 66, 0.15);
}

.featured-pkg-btn-arrow {
	font-size: 15px;
	line-height: 1;
	transition: transform 0.2s ease;
}

.featured-pkg-view-all-btn:hover .featured-pkg-btn-arrow {
	transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Grid Container System
   -------------------------------------------------------------------------- */
.featured-pkg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	width: 100%;
}

/* --------------------------------------------------------------------------
   Card Container
   -------------------------------------------------------------------------- */
.featured-pkg-card {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #eef2f6;
	box-shadow: 0 4px 20px rgba(15, 41, 66, 0.05);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
	position: relative;
}

/* --------------------------------------------------------------------------
   Card Media & Visual Badges
   -------------------------------------------------------------------------- */
.featured-pkg-media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e2e8f0;
}

.featured-pkg-img-link {
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.featured-pkg-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Only the image reacts to hover (the card itself stays still) */
.featured-pkg-media:hover img {
	transform: scale(1.06);
}

.featured-pkg-tag-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	background: #ffffff;
	color: #0f2942;
	font-size: 11.5px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 50px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	letter-spacing: 0.3px;
	text-transform: capitalize;
	pointer-events: none;
}

.top10-rank-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	background: linear-gradient(135deg, #e05a1e 0%, #d0460c 100%);
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	padding: 5px 12px;
	border-radius: 50px;
	box-shadow: 0 2px 10px rgba(224, 90, 30, 0.4);
	letter-spacing: 0.3px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Card Floating Action Buttons (Wishlist & Route Map)
   -------------------------------------------------------------------------- */
.featured-pkg-media-actions {
	position: absolute;
	bottom: 14px;
	left: 14px;
	z-index: 2;
	display: flex;
	gap: 8px;
}

.featured-pkg-action-btn {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #ffffff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #334155;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none !important;
	padding: 0;
}

.featured-pkg-action-btn:hover {
	background: #e05a1e;
	color: #ffffff !important;
	transform: scale(1.08);
}

.featured-pkg-wishlist-btn.active {
	color: #e05a1e;
	background: #fff0eb;
}

.featured-pkg-wishlist-btn.active svg {
	fill: #e05a1e;
}

/* --------------------------------------------------------------------------
   Card Content Body
   -------------------------------------------------------------------------- */
.featured-pkg-content {
	padding: 22px 22px 18px 22px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.featured-pkg-meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 13px;
	color: #64748b;
}

.featured-pkg-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
}

.featured-pkg-meta-icon {
	color: #d97706;
	flex-shrink: 0;
}

.featured-pkg-meta-item strong {
	font-weight: 700;
	color: #1e293b;
}

.featured-pkg-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.38;
	margin: 0 0 14px 0;
	min-height: 48px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.featured-pkg-title a {
	color: #0f2942;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

.featured-pkg-title a:hover {
	color: #e05a1e;
}

/* --------------------------------------------------------------------------
   Pricing & Reviews Block
   -------------------------------------------------------------------------- */
.featured-pkg-pricing {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	margin-top: auto;
}

.featured-pkg-pricing-col {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.featured-pkg-price-label {
	font-size: 11.5px;
	color: #94a3b8;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.featured-pkg-price-values {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.featured-pkg-price-current {
	font-size: 22px;
	font-weight: 800;
	color: #e05a1e;
	letter-spacing: -0.3px;
}

.featured-pkg-price-original {
	font-size: 14px;
	font-weight: 500;
	color: #94a3b8;
	text-decoration: line-through;
}

.featured-pkg-price-inquire {
	font-size: 16px;
	font-weight: 700;
	color: #0f2942;
}

.featured-pkg-rating-col {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	flex-shrink: 0;
}

.featured-pkg-stars {
	display: flex;
	align-items: center;
	gap: 2px;
	color: #f7a32f;
}

.featured-pkg-stars svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
	display: block;
}

.featured-pkg-rating-meta {
	display: flex;
	align-items: baseline;
	gap: 4px;
	font-size: 13px;
	line-height: 1.2;
}

.featured-pkg-rating-score {
	font-weight: 800;
	color: #0f2942;
}

.featured-pkg-rating-count {
	color: #64748b;
	font-weight: 500;
}

/* --------------------------------------------------------------------------
   Route Footer (Start -> End)
   -------------------------------------------------------------------------- */
.featured-pkg-route-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-top: 14px;
	border-top: 1px dashed #e2e8f0;
	font-size: 12.5px;
}

.featured-pkg-route-point {
	display: flex;
	align-items: center;
	gap: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 45%;
}

.featured-pkg-route-label {
	color: #94a3b8;
	font-weight: 500;
}

.featured-pkg-route-val {
	color: #0f2942;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.featured-pkg-route-divider {
	flex-grow: 1;
	height: 1px;
	background: #cbd5e1;
	position: relative;
	margin: 0 4px;
	min-width: 20px;
}

.featured-pkg-route-divider::after {
	content: "";
	position: absolute;
	right: 0;
	top: -3px;
	width: 7px;
	height: 7px;
	border-top: 1px solid #94a3b8;
	border-right: 1px solid #94a3b8;
	transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Listing Pages Grid Padding & Adjustments
   -------------------------------------------------------------------------- */
.listing-pkg-grid-wrapper {
	padding: 20px 0 40px 0;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.featured-pkg-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px;
	}
	.featured-pkg-heading {
		font-size: 28px;
	}
}

@media (max-width: 640px) {
	.featured-pkg-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.featured-packages-section {
		padding: 50px 0 45px 0;
	}
	.featured-packages-header {
		flex-direction: column;
		align-items: flex-start;
		margin-bottom: 26px;
		gap: 16px;
	}
	.featured-pkg-view-all-btn {
		width: 100%;
		justify-content: center;
	}
	.featured-pkg-heading {
		font-size: 24px;
	}
}
