/**
 * Vandra Homepage CSS
 *
 * Cinematic Scandinavian Hero, Compact Trail Finder, Asymmetric Discovery Grid
 */

/* Cinematic Hero */
.v-hero {
	position: relative;
	min-height: min(640px, 78vh);
	display: flex;
	align-items: stretch;
	padding-top: var(--v-space-3xl);
	padding-bottom: var(--v-space-lg);
	background-color: var(--v-color-pine-950);
	overflow: visible;
}

@media (max-width: 768px) {
	.v-hero {
		min-height: auto;
		padding-top: var(--v-space-2xl);
		padding-bottom: var(--v-space-md);
	}
}

.v-hero-media-wrap {
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
}

.v-hero-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.v-hero-gradient {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 55% at 50% 38%, rgba(8, 20, 12, 0.5) 0%, rgba(8, 20, 12, 0) 100%),
		linear-gradient(
		180deg,
		rgba(8, 20, 12, 0.4) 0%,
		rgba(8, 20, 12, 0.65) 60%,
		rgba(8, 20, 12, 0.94) 100%
	);
}

.v-hero-container {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--v-space-3xl);
	width: 100%;
}

/* One even column: headline, subtitle and search share the same width */
.v-hero-content {
	width: min(720px, 100%);
	margin: auto;
	text-align: center;
}

.v-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background-color: rgba(255, 255, 255, 0.12);
	color: #FFFFFF;
	padding: 5px 12px;
	border-radius: var(--v-radius-xs);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: var(--v-space-sm);
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.v-hero-headline {
	font-family: var(--v-font-serif);
	font-size: 3.5rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: #FFFFFF;
	line-height: 1.05;
	text-wrap: balance;
	margin-bottom: var(--v-space-md);
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
	.v-hero-headline {
		font-size: 2.4rem;
		line-height: 1.1;
	}
}

.v-hero-subheadline {
	font-size: 1.15rem;
	color: #F8FAF7;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
	text-wrap: balance;
	line-height: 1.55;
	margin: 0 auto var(--v-space-xl);
	max-width: none;
}

@media (max-width: 768px) {
	.v-hero-subheadline {
		font-size: 0.9375rem;
		margin-bottom: var(--v-space-md);
	}
}

.v-hero-actions {
	display: flex;
	justify-content: center;
	gap: var(--v-space-sm);
	flex-wrap: wrap;
}

/* Hero call to action: search straight into the trail explorer */
.v-hero-search {
	display: flex;
	width: 100%;
	margin-inline: auto;
	background: #F4F1EA;
	border-radius: var(--v-radius-xs);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}

.v-hero-search:focus-within {
	outline: 2px solid #F4F1EA;
	outline-offset: 3px;
}

.v-hero-search-field {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 18px;
	color: #5B6B60;
	cursor: text;
}

.v-hero-search-field .v-icon {
	flex: 0 0 auto;
}

.v-hero-search-field input {
	flex: 1 1 auto;
	min-width: 0;
	height: 60px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 1.1875rem;
	color: var(--v-color-text-main);
	outline: none;
}

.v-hero-search-field input::placeholder {
	color: #6B786F;
}

.v-hero-search-btn {
	flex: 0 0 auto;
	padding: 0 28px;
	border: 0;
	background: var(--v-color-pine-700);
	color: #FFFFFF;
	font: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color var(--v-transition-fast);
}

.v-hero-search-btn:hover,
.v-hero-search-btn:focus-visible {
	background: var(--v-color-pine-800);
}

@media (max-width: 480px) {
	.v-hero-search {
		flex-direction: column;
	}

	.v-hero-search-field input {
		height: 54px;
		font-size: 1.0625rem;
	}

	.v-hero-search-btn {
		height: 52px;
	}
}

/* Status strip under the hero button: activities, fault reports, latest news */
/* Separate band along the bottom edge of the hero, full container width */
.v-hero-status {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	gap: var(--v-space-md);
	width: 100%;
}

.v-status-card {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: var(--v-space-sm);
	min-height: 80px;
	padding: var(--v-space-md) var(--v-space-lg) var(--v-space-md) var(--v-space-md);
	background: rgba(236, 237, 233, 0.94);
	border-radius: var(--v-radius-xs);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
	color: var(--v-color-text-main);
}

.v-status-icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	color: var(--v-color-pine-700);
}

.v-status-icon .v-icon {
	width: 24px;
	height: 24px;
}

.v-status-text {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.3;
}

.v-status-label {
	font-family: var(--v-font-body);
	font-size: 1.1875rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.v-status-meta {
	font-size: 0.875rem;
	color: var(--v-color-text-muted);
}

.v-status-link {
	flex: 0 0 auto;
	margin-left: var(--v-space-lg);
	font-family: var(--v-font-body);
	font-size: 1.1875rem;
	font-weight: 600;
	color: var(--v-color-amber-600);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.v-status-link:hover {
	color: var(--v-color-pine-700);
}

@media (max-width: 1024px) {
	.v-hero-status {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--v-space-md);
	}

	.v-status-card.is-wide {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.v-hero-status {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--v-space-sm);
	}

	.v-status-card {
		min-height: 64px;
	}

	.v-status-label,
	.v-status-link {
		font-size: 1.0625rem;
	}

	.v-status-label {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}

	.v-status-link {
		margin-left: var(--v-space-sm);
	}
}

/* Integrated Compact Trail Finder Card */
.v-hero-finder {
	background: #FFFFFF;
	border-radius: var(--v-radius-lg);
	padding: var(--v-space-md) var(--v-space-lg);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
	.v-hero-finder {
		padding: var(--v-space-md);
	}
}

.v-finder-form {
	display: grid;
	grid-template-columns: repeat(3, 1fr) 150px;
	gap: var(--v-space-md);
	align-items: flex-end;
}

@media (max-width: 900px) {
	.v-finder-form {
		grid-template-columns: 1fr;
		gap: var(--v-space-sm);
	}
}

.v-finder-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	position: relative;
	z-index: 5;
}

.v-finder-field:has(.is-open),
.v-finder-field.is-dropdown-open {
	z-index: 20;
}

.v-finder-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--v-color-pine-800);
}

.v-finder-select,
.v-finder-input {
	height: 44px;
	padding: 0 12px;
	border-radius: var(--v-radius-sm);
	border: 1px solid var(--v-color-border);
	background-color: #FAFAFA;
	font-family: var(--v-font-body);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--v-color-text-main);
	outline: none;
	transition: all var(--v-transition-fast);
}

.v-finder-select {
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A4D2E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px 16px;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
}

.v-finder-select:hover,
.v-finder-input:hover {
	border-color: var(--v-color-pine-400);
	background-color: #FFFFFF;
}

.v-finder-select:focus,
.v-finder-input:focus {
	border-color: var(--v-color-pine-700);
	background-color: #FFFFFF;
	box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.15);
}

/* Featured Trails Asymmetric Grid */
/* Featured Large Editorial Trail Card */
.v-featured-hero-card {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	border-radius: var(--v-radius-lg);
	overflow: hidden;
	background-color: var(--v-color-card);
	border: 1px solid var(--v-color-border);
	box-shadow: var(--v-shadow-sm);
	transition: all var(--v-transition-smooth);
}

.v-featured-hero-card:hover {
	border-color: rgba(26, 77, 46, 0.3);
	box-shadow: var(--v-shadow-md);
}

@media (max-width: 768px) {
	.v-featured-hero-card {
		grid-template-columns: 1fr;
	}
	.v-featured-hero-card .v-card-media {
		min-height: 200px !important;
		height: 200px !important;
	}
}

/* Interactive Map Overview Section */
.v-home-map-filter-bar .v-filter-pill {
	display: inline-flex;
	align-items: center;
	padding: 7px 16px;
	background-color: var(--v-color-surface);
	border: 1px solid var(--v-color-border);
	border-radius: var(--v-radius-xs);
	font-family: var(--v-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--v-color-text-body);
	cursor: pointer;
	transition: var(--v-transition-fast);
}

.v-home-map-filter-bar .v-filter-pill:hover {
	border-color: var(--v-color-pine-600);
	color: var(--v-color-pine-900);
	background-color: var(--v-color-bg-subtle);
}

.v-home-map-filter-bar .v-filter-pill.is-active {
	background-color: var(--v-color-pine-700);
	border-color: var(--v-color-pine-700);
	color: #FFFFFF;
	box-shadow: none;
}

.v-home-map-container {
	height: 480px;
	border-radius: var(--v-radius-lg);
	overflow: hidden;
	border: 1px solid var(--v-color-border);
	box-shadow: var(--v-shadow-md);
	position: relative;
	background-color: var(--v-color-border);
}

/* Editorial & Knowledge Grid */
.v-editorial-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--v-space-xl);
}

@media (max-width: 768px) {
	.v-editorial-grid {
		grid-template-columns: 1fr;
		gap: var(--v-space-lg);
	}
}
