/* LatValley Booking Box component styles */
.section-booking-box {
	position: absolute;
	right: 0;
	bottom: var(--lv-bb-offset, -56px);
	left: 0;
	z-index: var(--lv-z-sticky, 100);
	width: 100%;
	pointer-events: none;
}

.booking-box {
	width: min(calc(100% - 32px), 1200px);
	margin: 0 auto;
	padding: 0;
	pointer-events: auto;
}

.booking-box__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(150px, 0.8fr) minmax(250px, 1.35fr);
	align-items: center;
	gap: 20px;
	padding: 18px 24px;
	border: 1px solid rgba(240, 217, 138, 0.42);
	border-radius: var(--lv-radius-md, 8px);
	background: rgba(46, 58, 26, 0.84);
	box-shadow: var(--lv-shadow-lg, 0 8px 40px rgba(30, 45, 15, 0.16));
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
}

.booking-box__field {
	display: grid;
	grid-template-rows: auto 44px;
	align-self: start;
	min-width: 0;
}

.booking-box__label {
	display: block;
	margin-bottom: 6px;
	color: rgba(251, 248, 242, 0.82);
	font-family: var(--lv-font-body, Roboto, sans-serif);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}

.booking-box__input,
.booking-box__stepper {
	box-sizing: border-box;
	height: 44px;
	min-height: 44px;
	border: 1px solid rgba(251, 248, 242, 0.5);
	border-radius: var(--lv-radius-sm, 4px);
	background: rgba(251, 248, 242, 0.12);
	color: var(--lv-bg, #FBF8F2);
}

.booking-box__input {
	display: block;
	width: 100%;
	padding: 10px 12px;
	font-family: var(--lv-font-body, Roboto, sans-serif);
	font-size: 14px;
}

.booking-box__input::placeholder {
	color: rgba(251, 248, 242, 0.7);
}

.booking-box__input:focus,
.booking-box__stepper:focus-within {
	border-color: var(--lv-gold-light, #E0BB5A);
	box-shadow: 0 0 0 2px rgba(240, 217, 138, 0.2);
	outline: none;
}

/* Keep Vietnamese month labels readable when Flatpickr renders diacritics and descenders. */
.flatpickr-calendar .flatpickr-months .flatpickr-month {
	height: 40px;
}

.flatpickr-calendar .flatpickr-current-month {
	line-height: 1.25;
}

.flatpickr-calendar .flatpickr-current-month .cur-month {
	display: inline-block;
	line-height: 1.25;
	padding-bottom: 2px;
}

.booking-box__divider {
	align-self: end;
	width: 1px;
	height: 44px;
	background: rgba(251, 248, 242, 0.24);
}

.booking-box__stepper {
	display: grid;
	grid-template-columns: 40px minmax(34px, 1fr) 40px;
	align-items: center;
	text-align: center;
}

.booking-box__stepper-button {
	align-self: stretch;
	border: 0;
	background: transparent;
	color: var(--lv-gold-light, #E0BB5A);
	font-size: 22px;
	line-height: 1;
}

.booking-box__stepper-button:hover,
.booking-box__stepper-button:focus-visible {
	background: rgba(251, 248, 242, 0.12);
	color: var(--lv-bg, #FBF8F2);
}

.booking-box__stepper-value {
	font-size: 15px;
	font-weight: 700;
}

.booking-box__actions {
	align-self: end;
	align-items: stretch;
	display: flex;
	min-height: 44px;
	justify-content: flex-end;
	gap: 8px;
}

.cta-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.cta-btn__icon {
	display: inline-grid;
	width: 18px;
	height: 18px;
	place-items: center;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 11px;
	line-height: 1;
}

@media (max-width: 1199px) {
	.booking-box__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.booking-box__divider {
		display: none;
	}

	.booking-box__actions {
		grid-column: 1 / -1;
		justify-content: stretch;
	}

	.booking-box__actions .cta-btn {
		flex: 1 1 0;
	}
}

@media (max-width: 767px) {
	.section-booking-box {
		position: fixed;
		bottom: 0;
	}

	.booking-box {
		width: 100%;
	}

	.booking-box__inner {
		display: flex;
		align-items: center;
		gap: 0;
		height: 60px;
		max-height: 60px;
		padding: 8px 16px;
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 0;
	}

	.booking-box__field,
	.booking-box__divider {
		display: none;
	}

	.booking-box__actions {
		width: 100%;
		gap: 8px;
	}

	.booking-box__actions .cta-btn {
		flex: 1 1 0;
		min-width: 0;
	}
}

/* Collection search variant: reuses the Home booking-box proportions while keeping the GET search contract. */
.booking-box--collection {
	display: block;
	width: 100%;
	margin: 0 0 var(--lv-space-9, 60px);
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.booking-box--collection .booking-box__inner {
	box-sizing: border-box;
	width: 100%;
	grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(150px, 0.8fr);
	align-items: end;
	gap: var(--lv-space-4, 16px);
	padding: var(--lv-space-6, 24px);
	border: 1px solid var(--lv-border, #E4E0D8);
	border-radius: var(--lv-radius-md, 8px);
	background: var(--lv-surface, #FFFFFF);
	box-shadow: var(--lv-shadow-sm, 0 2px 8px rgba(30, 45, 15, 0.06));
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.booking-box--collection .booking-box__field {
	display: block;
	align-self: start;
	min-width: 0;
}

.booking-box--collection .booking-box__label {
	display: block;
	margin-bottom: 8px;
	color: var(--lv-green-deep, #2E3A1A);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

.booking-box--collection .booking-box__input {
	box-sizing: border-box;
	height: 46px;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--lv-border, #E4E0D8);
	border-radius: var(--lv-radius-sm, 4px);
	background: var(--lv-bg, #FBF8F2);
	color: var(--lv-body, #3D3028);
	font-size: 16px;
}

.booking-box--collection .booking-box__input::placeholder { color: var(--lv-muted, #8A8078); }
.booking-box--collection .booking-box__submit { align-self: start; height: 46px; min-height: 46px; margin-top: 25px; }
.booking-box--collection .lv-room-search__error { display: block; min-height: 0; margin: 0; color: var(--lv-wood, #7B4F2E); font-size: 12px; line-height: 1.3; }

@media (max-width: 1199px) {
	.booking-box--collection .booking-box__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.booking-box--collection .booking-box__submit { grid-column: 1 / -1; width: auto; margin-top: 0; }
}

@media (max-width: 767px) {
	.booking-box--collection {
		width: 100%;
		margin-bottom: 40px;
	}
	.booking-box--collection .booking-box__inner {
		display: grid;
		grid-template-columns: 1fr;
		height: auto;
		max-height: none;
		gap: 14px;
		padding: 16px;
		border-right: 1px solid var(--lv-border, #E4E0D8);
		border-bottom: 1px solid var(--lv-border, #E4E0D8);
		border-left: 1px solid var(--lv-border, #E4E0D8);
		border-radius: var(--lv-radius-md, 8px);
	}
	.booking-box--collection .booking-box__field { display: block; }
	.booking-box--collection .booking-box__submit { grid-column: auto; width: 100%; margin-top: 0; }
}

/* Override ghost/outline button inside booking box to have readable light gold contrast on dark green background */
.booking-box__inner .lv-btn--ghost {
	border-color: var(--lv-gold-light, #E0BB5A);
	color: var(--lv-gold-light, #E0BB5A) !important;
}

.booking-box__inner .lv-btn--ghost:hover,
.booking-box__inner .lv-btn--ghost:focus-visible {
	background: var(--lv-gold-light, #E0BB5A);
	color: var(--lv-green-deep, #2E3A1A) !important;
	border-color: var(--lv-gold-light, #E0BB5A);
}