/* ========================================
   MLW Hero Carousel - Ken Burns + Search
   Left: Title + How it works (text only)
   Right: Search form (glossy box)
   ======================================== */

.mlw-carousel-hero {
	position: relative;
	width: 100%;
	height: 100vh;
	min-height: 600px;
	background: #000;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.mlw-carousel-container {
	position: relative;
	width: 100%;
	height: 100%;
}

.mlw-carousel-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 0.8s ease-in-out;
	z-index: 1;
}

.mlw-carousel-slide.active {
	opacity: 1;
	z-index: 10;
}

.mlw-carousel-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	animation: mlw-ken-burns 8s ease-in-out forwards;
}

@keyframes mlw-ken-burns {
	0% { transform: scale(1) translateX(0) translateY(0); }
	100% { transform: scale(1.05) translateX(-2%) translateY(-2%); }
}

.mlw-carousel-slide:nth-child(even) .mlw-carousel-image {
	animation: mlw-ken-burns-alt 8s ease-in-out forwards;
}

@keyframes mlw-ken-burns-alt {
	0% { transform: scale(1) translateX(0) translateY(0); }
	100% { transform: scale(1.05) translateX(2%) translateY(2%); }
}

.mlw-carousel-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.65) 100%);
	z-index: 5;
	pointer-events: none;
}

/* Wrapper & Container */
.mlw-carousel-search-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 25;
	display: flex;
	align-items: center;
	pointer-events: none;
	padding: 80px;
}

.mlw-carousel-search-container {
	width: 100%;
	display: flex;
	gap: 100px;
	align-items: center;
}

/* LEFT COLUMN: Title + Description + How it works (text only, no box) */
.mlw-carousel-search-left {
	margin-top: -40px;
	margin-left: 40px;
	flex: 0 0 35%;
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

/* Title section (no box) */
.mlw-carousel-search-left > div:first-child h2 {
	font-size: 3.2rem;
	font-weight: 700;
	color: rgba(249,250,251,0.96);
	margin: 0;
	line-height: 1.1;
	text-shadow: 0 14px 38px rgba(0,0,0,0.55);
	letter-spacing: -0.5px;
}

.mlw-carousel-search-left > div:first-child p {
	font-size: 1.1rem;
	color: rgba(249,250,251,0.88);
	margin: 0;
	line-height: 1.7;
	text-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

/* RIGHT COLUMN: Search form (glossy box) */
.mlw-carousel-search-right {
	margin-left: auto;
	flex: 0 0 35%;
	pointer-events: auto;
}

/* Glossy box container for search form */
.mlw-carousel-search-form {
	background: rgba(15,23,42,0.42);
	backdrop-filter: blur(16px);
	padding: 40px;
	border-radius: 22px;
	border: 1px solid rgba(148,163,184,0.25);
	box-shadow: 0 28px 80px rgba(0,0,0,0.45);
	pointer-events: auto;
}

.mlw-carousel-search-form form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mlw-carousel-search-form .field {
	display: flex;
	flex-direction: column;
}

.mlw-carousel-search-form label {
	font-size: 0.75rem;
	font-weight: 700;
	color: rgba(148,163,184,0.85);
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}

.mlw-carousel-search-form input,
.mlw-carousel-search-form select {
	padding: 13px 15px;
	font-size: 1rem;
	border: 1px solid rgba(148,163,184,0.25);
	border-radius: 8px;
	background: rgba(15,23,42,0.5);
	color: rgba(249,250,251,0.96);
	transition: all 0.2s ease;
}

.mlw-carousel-search-form input::placeholder {
	color: rgba(148,163,184,0.5);
}

.mlw-carousel-search-form input:focus,
.mlw-carousel-search-form select:focus {
	outline: none;
	background: rgba(15,23,42,0.7);
	border-color: rgba(148,163,184,0.4);
	box-shadow: 0 0 0 3px rgba(148,163,184,0.1);
}

.mlw-carousel-search-form .field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.mlw-carousel-search-form .field-check {
	flex-direction: row;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}

.mlw-carousel-search-form .mlw-check {
	display: flex;
	align-items: center;
	gap: 8px;
	color: rgba(249,250,251,0.9);
	font-size: 0.95rem;
	cursor: pointer;
}

.mlw-carousel-search-form input[type="checkbox"] {
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: rgba(148,163,184,0.8);
	border: 1px solid rgba(148,163,184,0.3);
	background: rgba(15,23,42,0.4);
	border-radius: 3px;
}

.mlw-carousel-search-form button {
	padding: 15px 35px;
	font-size: 1.05rem;
	font-weight: 700;
	border: 1px solid rgba(148,163,184,0.28);
	border-radius: 999px;
	background: rgba(11,18,32,0.55);
	color: rgba(249,250,251,0.96);
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 18px 24px rgba(0,0,0,0.35);
	margin-top: 10px;
	letter-spacing: 0.3px;
}

.mlw-carousel-search-form button:hover {
	background: rgba(11,18,32,0.75);
	border-color: rgba(148,163,184,0.45);
	transform: translateY(-2px);
	box-shadow: 0 24px 36px rgba(0,0,0,0.45);
}

.mlw-carousel-search-form .mlw-form-error {
	background: rgba(220,80,80,0.85);
	color: rgba(249,250,251,0.96);
	padding: 11px 15px;
	border-radius: 8px;
	font-size: 0.9rem;
	margin-top: 6px;
	border: 1px solid rgba(255,100,100,0.3);
}

.mlw-carousel-search-form .mlw-input-error {
	box-shadow: 0 0 0 2px rgba(255,100,100,0.3) !important;
	border-color: rgba(255,100,100,0.5) !important;
}

.mlw-carousel-search-form .mlw-city-not-found {
	color: rgba(255,180,180,1);
	font-size: 0.9rem;
	margin-top: 6px;
}

.mlw-carousel-search-form .mlw-city-not-found a {
	color: rgba(148,163,184,1);
	text-decoration: underline;
}

/* How it works section (text only) */
.mlw-carousel-how-it-works {
	color: rgba(249,250,251,0.96);
}

.mlw-carousel-how-it-works h2 {
	font-size: 2.2rem;
	font-weight: 700;
	margin: 0 0 16px 0;
	text-shadow: 0 14px 38px rgba(0,0,0,0.55);
	letter-spacing: -0.3px;
	color: rgba(249,250,251,0.96);
}

.mlw-carousel-how-it-works p {
	font-size: 1.1rem;
	margin: 0 0 28px 0;
	text-shadow: 0 10px 22px rgba(0,0,0,0.35);
	line-height: 1.6;
	color: rgba(249,250,251,0.88);
}

.mlw-carousel-how-it-works a {
	display: inline-block;
	padding: 15px 35px;
	background: rgba(11,18,32,0.55);
	color: rgba(249,250,251,0.96);
	text-decoration: none;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1.05rem;
	transition: all 0.3s ease;
	border: 1px solid rgba(148,163,184,0.28);
	box-shadow: 0 18px 24px rgba(0,0,0,0.35);
	letter-spacing: 0.3px;
}

.mlw-carousel-how-it-works a:hover {
	background: rgba(11,18,32,0.75);
	border-color: rgba(148,163,184,0.45);
	transform: translateY(-2px);
	box-shadow: 0 24px 36px rgba(0,0,0,0.45);
}

/* Hide city bubbles */
.mlw-carousel-bottom-content,
.mlw-carousel-featured-cities {
	display: none !important;
}

/* Responsive */
@media (max-width: 1200px) {
	.mlw-carousel-search-wrapper {
		padding: 60px;
	}

	.mlw-carousel-search-container {
		flex-direction: column;
		gap: 60px;
	}

	.mlw-carousel-search-left,
	.mlw-carousel-search-right {
		flex: 0 0 auto;
		width: 100%;
	}

	.mlw-carousel-search-left > div:first-child h2 {
		font-size: 2.8rem;
	}
}

@media (max-width: 768px) {
	.mlw-carousel-hero {
		height: 70vh;
	}

	.mlw-carousel-search-wrapper {
		padding: 30px;
	}

	.mlw-carousel-search-form {
		padding: 30px;
	}

	.mlw-carousel-search-form .field-row {
		grid-template-columns: 1fr;
	}

	.mlw-carousel-search-left > div:first-child h2 {
		font-size: 2rem;
	}
}

@media (max-width: 480px) {
	.mlw-carousel-search-left {
	margin-top: -40px;
	margin-left: 40px;
		gap: 30px;
	}

	.mlw-carousel-search-form {
		padding: 24px;
	}

	.mlw-carousel-search-left > div:first-child h2 {
		font-size: 1.6rem;
	}
}
