/* Genomada Featured Trips - Frontend Cards */

/* Featured Trips Section */
.featured-trips-section {
	margin: 3rem 0;
}

/* Grid Layout */
.featured-trips-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Featured Trip Card */
.featured-trip-card {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 450px;
}

.featured-trip-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Overlay gradient for content visibility */
.featured-trip-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0) 0%,
		rgba(0, 0, 0, 0.3) 40%,
		rgba(0, 0, 0, 0.7) 100%
	);
	pointer-events: none;
	z-index: 1;
}

/* Content Container - stacked from bottom */
.featured-trip-content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem;
	position: relative;
	z-index: 2;
	color: #fff;
}

/* Title */
.featured-trip-title {
	font-size: 1.8rem;
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Divider */
.featured-trip-divider {
	height: 2px;
	background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.5));
	margin: 0;
	opacity: 0.6;
}

/* Footer - Price & Button Row */
.featured-trip-footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1.5rem;
}

/* Price section - left side */
.featured-trip-price {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.price-label {
	font-size: 0.75rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.7);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.price-amount {
	font-size: 1.6rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

/* CTA Button - right side */
.featured-trip-cta {
	flex-shrink: 0;
}

.featured-trip-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border: 2px solid white;
	color: white;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.featured-trip-button:hover {
	background: #ffffff22;
	transform: translateY(-2px);
	color: white;
	box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
}

.featured-trip-button:focus {
	outline: none;
	border-color: #fff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.featured-trip-button:active {
	transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
	.featured-trips-section {
		padding: 2rem 0;
	}

	.featured-trips-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.featured-trip-card {
		min-height: 400px;
	}

	.featured-trip-title {
		font-size: 1.4rem;
	}

	.featured-trip-content {
		padding: 1.25rem;
		gap: 0.75rem;
	}

	.featured-trip-footer {
		gap: 1rem;
	}

	.price-amount {
		font-size: 1.4rem;
	}

	.featured-trip-button {
		padding: 0.65rem 1.25rem;
		font-size: 0.85rem;
	}

	.featured-trips-header h2 {
		font-size: 1.5rem;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.featured-trips-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1025px) {
	.featured-trips-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Accessibility */
.featured-trip-button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Print styles */
@media print {
	.featured-trips-section {
		page-break-inside: avoid;
	}

	.featured-trip-card {
		page-break-inside: avoid;
		box-shadow: none;
		border: 1px solid #ddd;
	}
}
