/**
 * Explore Perth & Beyond Section Stylesheet
 *
 * @package Horizontal_Traders
 */

.ht-ep-section {
	padding: 3.25rem 0 3.5rem;
	background: #ffffff;
	position: relative;
	overflow: hidden;
}

.ht-ep-layout {
	display: grid;
	grid-template-columns: 44% 56%;
	gap: 3.5rem;
	align-items: center;
}

/* Grid and flex items default to min-width: auto, which refuses to shrink below
   the item's min-content width. The destination row below is a nowrap flex
   scroller whose min-content is the sum of all five cards (~900px), so without
   this the whole column was pinned to ~716px and the section's overflow:hidden
   silently clipped the heading, copy, cards and CTA on every phone. */
.ht-ep-hero-col,
.ht-ep-content-col {
	min-width: 0;
}

/* ==========================================================================
   Left Hero Scenic Card
   ========================================================================== */

.ht-ep-hero-col {
	position: relative;
	width: 100%;
}

.ht-ep-hero-card {
	position: relative;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 20px 48px rgba(0, 21, 46, 0.12);
	border: 1px solid #e2ecf5;
	background: #f1f8fe;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.ht-ep-hero-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 28px 60px rgba(0, 21, 46, 0.16);
}

.ht-ep-hero-img-box {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3.4;
	overflow: hidden;
	display: flex;
}

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

.ht-ep-hero-card:hover .ht-ep-hero-img {
	transform: scale(1.03);
}

/* Script Overlay Badge */
.ht-ep-script-badge {
	position: absolute;
	top: 24px;
	left: 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	z-index: 2;
	pointer-events: none;
	filter: drop-shadow(0 2px 8px rgba(0, 21, 46, 0.25));
}

.ht-ep-script-text {
	font-family: 'Caveat', cursive, sans-serif;
	font-size: 2.25rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 0.95;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 8px rgba(0, 21, 46, 0.7);
}

.ht-ep-script-sub {
	font-size: 2.35rem;
	color: #06c1d5;
	text-shadow: 0 2px 8px rgba(0, 21, 46, 0.7);
}

.ht-ep-script-squiggle {
	margin-top: 2px;
	filter: drop-shadow(0 1px 3px rgba(6, 193, 213, 0.4));
}

/* Location Floating Pill */
.ht-ep-location-pill {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background: rgba(0, 21, 46, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 0.55rem 1rem 0.55rem 0.75rem;
	border-radius: 50px;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	z-index: 2;
}

.ht-ep-loc-icon {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #01757f;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ht-ep-loc-info {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.ht-ep-loc-info strong {
	font-family: 'Manrope', 'Inter', system-ui, sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	color: #ffffff;
}

.ht-ep-loc-info span {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.72rem;
	color: #cbd5e1;
}

/* ==========================================================================
   Right Content Area
   ========================================================================== */

.ht-ep-content-col {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.ht-ep-header {
	margin-bottom: 2rem;
}

.ht-ep-eyebrow {
	display: inline-block;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 800;
	color: #01757f;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.ht-ep-heading {
	font-family: 'Manrope', 'Inter', system-ui, sans-serif;
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 800;
	color: #00152e;
	line-height: 1.15;
	letter-spacing: -0.025em;
	margin: 0 0 1rem 0;
}

.ht-ep-heading-highlight {
	color: #01757f;
	display: block;
}

.ht-ep-desc {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 1rem;
	color: #5c758a;
	line-height: 1.6;
	margin: 0;
	max-width: 580px;
}

/* ==========================================================================
   4 Destination Cards (2x2 Grid)
   ========================================================================== */

.ht-ep-destinations-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-bottom: 2.25rem;
}

.ht-ep-dest-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #d2e3eb;
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 14px rgba(0, 21, 46, 0.04);
}

.ht-ep-dest-card:hover {
	transform: translateY(-5px);
	border-color: #06c1d5;
	box-shadow: 0 14px 28px rgba(0, 21, 46, 0.08);
}

.ht-ep-dest-media {
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f0f8fa;
}

.ht-ep-dest-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ht-ep-dest-card:hover .ht-ep-dest-img {
	transform: scale(1.06);
}

.ht-ep-dest-body {
	padding: 0.85rem 0.85rem 1rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.ht-ep-dest-title {
	font-family: 'Manrope', 'Inter', system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 800;
	color: #00152e;
	margin: 0 0 0.25rem 0;
	transition: color 0.2s ease;
}

.ht-ep-dest-card:hover .ht-ep-dest-title {
	color: #01757f;
}

.ht-ep-dest-desc {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.78125rem;
	color: #64748b;
	line-height: 1.4;
	margin: 0;
}

/* ==========================================================================
   Bottom CTA Bar & Travel Guide Link
   ========================================================================== */

.ht-ep-cta-bar {
	display: flex;
	align-items: center;
	gap: 1.75rem;
	padding-top: 0.5rem;
}

.ht-ep-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	background: linear-gradient(135deg, #01757f 0%, #02667c 100%);
	color: #ffffff;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	padding: 0.85rem 1.6rem;
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 14px rgba(1, 117, 127, 0.3);
}

.ht-ep-btn-primary:hover {
	background: #00152e;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 21, 46, 0.4);
}

.ht-ep-divider {
	width: 1px;
	height: 48px;
	background: #d2e3eb;
	flex-shrink: 0;
}

.ht-ep-guide-wrap {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.ht-ep-guide-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.ht-ep-guide-content {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.ht-ep-guide-title {
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.8125rem;
	color: #475569;
	margin: 0;
	line-height: 1.35;
}

.ht-ep-guide-title strong {
	color: #00152e;
	display: block;
	font-weight: 700;
}

.ht-ep-guide-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #01757f;
	text-decoration: none;
	transition: color 0.2s ease, gap 0.2s ease;
}

.ht-ep-guide-link:hover {
	color: #02667c;
	gap: 0.55rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1260px) {
	.ht-ep-layout {
		/* minmax(0, 1fr), not 1fr: a bare 1fr track cannot shrink below the
		   min-content width of what it holds. */
		grid-template-columns: minmax(0, 1fr);
		gap: 2.5rem;
	}

	.ht-ep-hero-img-box {
		aspect-ratio: 16 / 9;
		max-height: 420px;
	}

	.ht-ep-destinations-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 1024px) {
	.ht-ep-destinations-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1rem;
	}

	.ht-ep-cta-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
	}

	.ht-ep-divider {
		display: none;
	}
}

@media (max-width: 768px) {
	.ht-ep-section {
		padding: 3rem 0;
	}

	.ht-ep-heading {
		font-size: 1.65rem;
	}

	.ht-ep-desc {
		font-size: 0.875rem;
	}

	.ht-ep-hero-img-box {
		aspect-ratio: 16 / 10;
		max-height: 300px;
	}

	.ht-ep-script-text {
		font-size: 1.75rem;
	}

	.ht-ep-script-sub {
		font-size: 1.85rem;
	}

	.ht-ep-location-pill {
		bottom: 12px;
		left: 12px;
		padding: 0.45rem 0.75rem;
	}

	.ht-ep-destinations-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		min-width: 0;
		overflow: visible;
		gap: 0.75rem;
		padding: 0.25rem 0 0.5rem;
		margin: 0 0 1.5rem;
	}

	.ht-ep-dest-card {
		min-width: 0;
		max-width: none;
	}

	.ht-ep-dest-media { aspect-ratio: 16 / 10; }
	.ht-ep-dest-body { padding: 0.7rem 0.7rem 0.85rem; }
	.ht-ep-dest-title { font-size: 0.85rem; }
	.ht-ep-dest-desc { font-size: 0.72rem; }

	.ht-ep-btn-primary {
		width: 100%;
		justify-content: center;
	}

	.ht-ep-guide-wrap {
		width: 100%;
		align-items: flex-start;
	}

	.ht-ep-guide-content { min-width: 0; }
	.ht-ep-guide-link { flex-wrap: wrap; }
}
