/*Home hero - full-bleed top section, pulled up under the fixed header so it owns the
top of the viewport, with the quick search sitting directly on the background (no card)*/

.home-hero {
	position: relative;
	margin-top: -50px;
	min-height: calc(80vh + 50px);
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #263544;
	background-position: center center;
	background-size: cover;
	padding: 90px 0px 70px 0px;
	overflow: hidden;
}

/*Video and YouTube/Vimeo backgrounds sit between the hero's background image - which stays on as
their poster frame - and the overlay. Neither one takes the pointer, the hero search owns it*/

.home-hero-media {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	border: 0;
	pointer-events: none;
}

video.home-hero-media {
	object-fit: cover;
}

.home-hero-embed iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	/*The player keeps its own 16:9 box, so it is oversized on whichever axis falls short of the hero*/
	width: 100vw;
	height: 56.25vw;
	min-width: 177.78vh;
	min-height: 100%;
	border: 0;
	pointer-events: none;
}

/*Backgrounds are decoration only - nothing the player would normally draw over the video
may ever show. The native controls are hidden outright, and the YouTube/Vimeo iframe is
oversized past the hero so the player's own title bar and control bar fall outside of it*/

video.home-hero-media::-webkit-media-controls,
video.home-hero-media::-webkit-media-controls-enclosure,
video.home-hero-media::-webkit-media-controls-panel,
video.home-hero-media::-webkit-media-controls-start-playback-button,
video.home-hero-media::-webkit-media-controls-overlay-play-button {
	display: none !important;
	-webkit-appearance: none;
	opacity: 0;
}

.home-hero-embed-youtube iframe {
	/*A bit over 1/8th of the player height is chrome at the top and again at the bottom*/
	transform: translate(-50%, -50%) scale(1.4);
}

.home-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	background: linear-gradient(to bottom, rgba(12,20,32,.72) 0%, rgba(12,20,32,.55) 45%, rgba(12,20,32,.82) 100%);
}

.home-hero-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	color: #fff;
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.home-hero-eyebrow {
	margin: 0px 0px 18px 0px;
	font-size: 14px;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: rgba(255,255,255,.75);
}

.home-hero-title {
	margin: 0px;
	font-size: 54px;
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.home-hero-subtitle {
	margin: 22px 0px 0px 0px;
	font-size: 20px;
	color: rgba(255,255,255,.85);
}

/*Search fields sit bare on the hero - no panel, no border, no shadow around them*/

.home-hero-search {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-end;
	gap: 15px;
	width: 100%;
	max-width: 1000px;
	margin: 40px auto 0px auto;
}

.home-hero-field {
	flex: 1 1 0px;
	min-width: 0px;
	text-align: left;
}

.home-hero-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255,255,255,.8);
}

.home-hero-search .form-control {
	height: 52px;
	padding: 6px 15px;
	font-size: 16px;
	color: #1b2431;
	background-color: rgba(255,255,255,.96);
	border: none;
	border-radius: 6px;
	box-shadow: none;
}

.home-hero-search .form-control:focus {
	background-color: #fff;
	box-shadow: 0 0 0 3px rgba(255,255,255,.35);
}

.home-hero-search .form-control[disabled] {
	background-color: rgba(255,255,255,.6);
	color: #6b7480;
}

.home-hero-field-submit {
	flex: 0 0 auto;
	min-width: 0px;
	white-space: nowrap;
}

.home-hero-search .btn {
	height: 52px;
	padding: 0px 32px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 6px;
}

@media (max-width: 960px) {
	.home-hero {
		min-height: calc(80vh + 50px);
		padding-top: 110px;
	}

	.home-hero-title {
		font-size: 34px;
	}

	.home-hero-subtitle {
		font-size: 17px;
	}
}

@media (max-width: 767px) {
	.home-hero-search {
		display: block;
	}

	.home-hero-field {
		margin-bottom: 15px;
	}

	.home-hero-search .btn {
		width: 100%;
	}
}

#index-map-container iframe {
	display: block;
}

