/**
 * Featured Trips Grid (3 Columns Loop) Styles
 *
 * Implements full-width greyish canvas contrast, crisp separation borders,
 * and seamlessly hosts the universal /itinerary/ card component in a 3-column grid.
 *
 * @package Brandalay
 * @subpackage Blocks/FeaturedTrips
 */

.featured-trips-section {
	width: 100%;
	position: relative;
	box-sizing: border-box;
	padding: clamp(3.5rem, 5.5vw, 5.5rem) 0;
	background-color: #f1f5f9;
	isolation: isolate;
}

/* Background Tones: Distinct Grey Canvas to Separate Adjacent White Modules */
.featured-trips-section.bg-alpine-grey {
	background-color: #f1f5f9;
}

.featured-trips-section.bg-cool-mist {
	background-color: #e2e8f0;
}

.featured-trips-section.bg-pure-white {
	background-color: #ffffff;
}

/* Crisp Separator Borders (Breaks white homepage monotony) */
.featured-trips-section.has-borders {
	border-top: 1px solid #cbd5e1;
	border-bottom: 1px solid #cbd5e1;
}

/* Container */
.featured-trips-container {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(1rem, 3vw, 2rem);
	padding-right: clamp(1rem, 3vw, 2rem);
	box-sizing: border-box;
}

/* Header Area */
.featured-trips-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: clamp(2.5rem, 4vw, 3.25rem);
}

.featured-trips-headings {
	max-width: 760px;
}

.featured-trips-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.8125rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #047857;
	margin-bottom: 0.75rem;
}

.eyebrow-icon {
	color: #059669;
}

.featured-trips-title {
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -0.025em;
	color: #0f172a;
	margin: 0 0 0.875rem 0;
}

.featured-trips-subtitle {
	font-size: clamp(0.975rem, 1.15vw, 1.125rem);
	line-height: 1.6;
	color: #64748b;
	margin: 0;
}

.featured-trips-header-cta {
	flex-shrink: 0;
}

.featured-trips-header-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.35rem;
	background-color: #ffffff;
	border: 1px solid #cbd5e1;
	color: #0f172a;
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: 9999px;
	text-decoration: none;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.featured-trips-header-btn:hover {
	background-color: #047857;
	border-color: #047857;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px -2px rgba(4, 120, 87, 0.25);
}

.featured-trips-header-btn svg {
	transition: transform 0.2s ease;
}

.featured-trips-header-btn:hover svg {
	transform: translateX(3px);
}

/* 3-Column Grid */
.featured-trips-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	box-sizing: border-box;
}

/* Ensure /itinerary/ card component fills the 3-column cell cleanly */
.featured-trips-grid .trip-card {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
}

.featured-trips-grid .trip-card:hover {
	box-shadow: 0 20px 30px -8px rgba(15, 23, 42, 0.12), 0 8px 12px -4px rgba(15, 23, 42, 0.06);
}

/* Mobile CTA button (hidden on desktop) */
.featured-trips-mobile-cta {
	display: none;
	margin-top: 2rem;
	text-align: center;
}

.featured-trips-mobile-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	max-width: 340px;
	padding: 0.85rem 1.5rem;
	background-color: #ffffff;
	border: 1px solid #cbd5e1;
	color: #0f172a;
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: 9999px;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Empty State */
.featured-trips-empty {
	padding: 3rem;
	text-align: center;
	background-color: #ffffff;
	border: 1px dashed #cbd5e1;
	border-radius: 1rem;
	color: #64748b;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */
@media (max-width: 1080px) {
	.featured-trips-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

@media (max-width: 768px) {
	.featured-trips-section {
		padding: 2.75rem 0;
	}

	.featured-trips-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.featured-trips-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
		margin-bottom: 2rem;
	}

	.featured-trips-title {
		font-size: 1.65rem;
		line-height: 1.25;
	}

	.featured-trips-subtitle {
		font-size: 0.95rem;
		line-height: 1.6;
	}

	.featured-trips-header-cta {
		display: none;
	}

	.featured-trips-mobile-cta {
		display: flex;
		justify-content: center;
		margin-top: 2rem;
	}

	.featured-trips-mobile-btn {
		width: 100%;
		max-width: 320px;
		justify-content: center;
	}
}

@media (max-width: 640px) {
	.featured-trips-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.featured-trips-grid .trip-card {
		max-width: 100%;
	}
}
