/**
 * Styles for the "Hero + NeoBookings Search" Elementor widget.
 */

.fayna-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 420px;
	overflow: hidden;
	color: #fff;
}

.fayna-hero__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
}

.fayna-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.fayna-hero__video.is-active {
	opacity: 1;
}

.fayna-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.35);
	z-index: 3;
}

.fayna-hero__content {
	position: relative;
	z-index: 4;
	width: 100%;
}

.fayna-hero__heading {
	margin: 0 0 12px;
	font-size: clamp(28px, 5vw, 48px);
	line-height: 1.15;
}

.fayna-hero__subheading {
	margin: 0 0 12px;
	font-size: clamp(16px, 2vw, 20px);
	opacity: 0.9;
}

.fayna-hero__text {
	margin: 0;
	font-size: clamp(14px, 1.6vw, 16px);
	opacity: 0.85;
}

/* Always-in-flow container: holds the "Width" style control so the search
   bar can be narrower than the hero. Kept separate from .fayna-hero-search-wrap
   because that element switches to position:fixed (full viewport width) once
   docked - a state its own width shouldn't affect. display:inline-block lets
   it follow the "Content Alignment" control's text-align on .fayna-hero__content
   when narrower than 100%; text-align is reset to left so it doesn't leak into
   the search bar's own fields/labels. */
.fayna-hero-search-container {
	display: inline-block;
	width: 100%;
	max-width: 100%;
	vertical-align: top;
	text-align: left;
}

.fayna-hero-search-wrap {
	position: relative;
	z-index: 10;
	width: 100%;
	/* "left"/"width" animate the grow-to-100% dock effect driven by JS
	   (dock() in fayna-hero-search-widget.js) - keep the duration here in
	   sync with DOCK_GROW_MS in that file. */
	transition: padding 0.25s ease, box-shadow 0.25s ease, left 0.25s ease, width 0.25s ease;
}

/* "Docked" state: applied when the bar sticks to the bottom of the viewport
   on desktop (past the hero). See fayna-hero-search-widget.js. The
   padding/box-shadow transition above is what makes the bar visibly "grow"
   into place. Below the desktop breakpoint the bar is never docked - it
   stays static right below the hero text. */
.fayna-hero-search-wrap.is-docked {
	z-index: 99999;
}

/* Desktop: fixed to the bottom of the viewport, applied by JS only past the
   desktop breakpoint once scrolled beyond the bar's original position. */
.fayna-hero-search-wrap.is-fixed-bottom {
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	margin-top: 0;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.fayna-hero-search-spacer {
	display: none;
	width: 100%;
}

.fayna-hero-editor-placeholder {
	padding: 20px;
	background: #f5f5f5;
	border: 1px dashed #ccc;
	text-align: center;
}

/* Fake fallback search bar (visual only, shown when the real NeoBookings
   engine fails to load/initialize, or when forced via the widget's debug
   control). See initFaynaBookingEngine() in fayna-hero-search-widget.js. */
.fayna-fake-search {
	display: none;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: center;
}

.fayna-booking-engine.is-fake-active .neo-booking-search-engine {
	display: none;
}

.fayna-booking-engine.is-fake-active .fayna-fake-search {
	display: flex;
}

.fayna-fake-search__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 140px;
}

.fayna-fake-search__field label {
	font-size: 13px;
	font-weight: 600;
}

.fayna-fake-search__field input {
	padding: 10px 12px;
	border-style: solid;
	border-width: 1px;
}

.fayna-fake-search__button {
	padding: 10px 24px;
	border: none;
	font-weight: 600;
	cursor: not-allowed;
}

.fayna-fake-search__notice {
	width: 100%;
	margin: 8px 0 0;
	text-align: center;
	font-size: 13px;
}
