/* ==========================================================
   Booking Window Widget — plain CSS version
   Colors/sizes are collected at the top as a comment for
   reference — CSS custom properties aren't required, but
   using them (as below) still lets you re-theme by editing
   just these lines, without needing SCSS.
   ========================================================== */

:root {
	--booking-accent: #012f48;
	--booking-accent-hover: #011f30;
	--booking-gold: #d4a35b;
	--booking-border: #e2e2e2;
	--booking-radius: 14px;
}

.booking-window,
.booking-window * {
	box-sizing: border-box;
}

.booking-window label {
	position: static;
	top: auto;
	left: auto;
	transform: none;
	display: block;
	pointer-events: auto;
}

.booking-window input,
.booking-window select {
	position: static;
	margin: 0;
}

.booking-window {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	background: #ffffff;
	border-radius: var(--booking-radius);
	border-top: 3px solid var(--booking-gold);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	padding: 8px;
	position: relative;
	z-index: 5;
	margin: 16px auto -56px;
	max-width: 960px;
}

.booking-field {
	flex: 1 1 0;
	min-width: 140px;
	padding: 10px 20px;
	border-right: 1px solid var(--booking-border);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.booking-field:last-of-type {
	border-right: none;
}

.booking-field label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b6b6b;
	margin-bottom: 4px;
}

/* Check in / check out */
.booking-field--date .date-display {
	display: flex;
	align-items: baseline;
	gap: 6px;
	cursor: pointer;
}

.booking-field--date .date-display #checkin,
.booking-field--date .date-display #checkout {
	border: none;
	outline: none;
	background: transparent;
	font-size: 20px;
	font-weight: 600;
	width: 34px;
	padding: 0;
	cursor: pointer;
	color: #000;
}

.booking-field--date .date-display .checkin-month,
.booking-field--date .date-display .checkout-month {
	font-size: 14px;
	color: #6b6b6b;
	text-transform: capitalize;
}

/* Guests */
.booking-field--guests select {
	border: none;
	outline: none;
	background: transparent;
	font-size: 16px;
	padding: 0;
	cursor: pointer;
}

/* Promo code */
.booking-field--promo input {
	border: none;
	outline: none;
	background: transparent;
	font-size: 16px;
	padding: 0;
	width: 100%;
}

.booking-field--promo input::placeholder {
	color: #b3b3b3;
}

/* Submit button */
.booking-button.btn {
	flex: 0 0 auto;
	align-self: center;
	margin: 8px;
	padding: 0 28px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--booking-accent);
	color: #fff;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.booking-button.btn:hover {
	background: var(--booking-accent-hover);
	color: #fff;
}

/* Responsive: stack fields on small/tablet screens */
@media (max-width: 991px) {
	.booking-window {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0;
		margin: 16px auto;
		padding: 6px;
	}

	.booking-field {
		flex: none;
		border-right: 1px solid var(--booking-border);
		border-bottom: 1px solid var(--booking-border);
		min-height: auto;
		padding: 8px 12px;
		align-items: center;
		text-align: center;
	}

	.booking-field--date .date-display {
		justify-content: center;
	}

	.booking-field:nth-child(2n) {
		border-right: none;
	}

	.booking-field--guests,
	.booking-field--promo {
		border-bottom: none;
	}

	.booking-field label {
		font-size: 10px;
		margin-bottom: 2px;
	}

	.booking-field--date .date-display #checkin,
	.booking-field--date .date-display #checkout {
		font-size: 17px;
	}

	.booking-field--date .date-display .checkin-month,
	.booking-field--date .date-display .checkout-month {
		font-size: 12px;
	}

	.booking-field--guests select,
	.booking-field--promo input {
		font-size: 16px; /* prevents iOS Safari from auto-zooming on focus */
		text-align: center;
		text-align-last: center;
	}

	.booking-button.btn {
		grid-column: 1 / -1;
		margin: 8px 6px 4px;
		width: calc(100% - 12px);
		min-height: 46px;
	}
}

/* jQuery UI datepicker popup — booking.js adds this class automatically.
   Keeps the calendar visually in line with the widget above. */
.booking-datepicker-div {
	border-radius: 10px;
	border: 1px solid var(--booking-border);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	font-family: inherit;
}

.booking-datepicker-div .ui-datepicker-header {
	background: var(--booking-accent);
	color: #fff;
	border: none;
}

.booking-datepicker-div .ui-state-active {
	background: var(--booking-accent) !important;
	border-color: var(--booking-accent) !important;
}
