/**
 * Sidebar Book Now widget.
 */

/* Author display rules below would otherwise beat the UA [hidden] style. */
.eys-sidebar-book [hidden],
.eys-book-bar [hidden] {
	display: none !important;
}

.eys-sidebar-book {
	--eys-primary: #9A7B4F;
	--eys-dark: #2C2620;
	--eys-gold: #C4A574;
	--eys-bg: #FFFFFF;
	--eys-text: #2C2620;
	--eys-muted: #6F6559;
	--eys-border: #E5E7EB;
	--eys-font: "Outfit", "Segoe UI", sans-serif;

	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	width: 100%;
	max-width: 320px;
	min-height: 360px;
	margin: 0;
	background: var(--eys-bg);
	border: 1px solid var(--eys-border);
	border-radius: 4px;
	overflow: hidden;
	font-family: var(--eys-font);
	color: var(--eys-text);
	box-shadow: 0 8px 24px rgba(44, 38, 32, 0.06);
}

.eys-sidebar-book *,
.eys-sidebar-book *::before,
.eys-sidebar-book *::after {
	box-sizing: border-box;
}

.eys-sidebar-book__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.85rem 0.85rem 0.95rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.eys-sidebar-book__guests {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.eys-sidebar-book__field {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	margin: 0;
}

.eys-sidebar-book__label {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--eys-muted);
	line-height: 1.25;
}

.eys-sidebar-book__stepper {
	display: inline-grid;
	grid-template-columns: minmax(2.6rem, 1fr) 1.35rem;
	align-items: stretch;
	width: 4.4rem;
	min-height: 2.15rem;
	border: 1px solid var(--eys-dark);
	border-radius: 3px;
	background: #fff;
	overflow: hidden;
}

.eys-sidebar-book__input {
	width: 100%;
	min-width: 0;
	min-height: 100%;
	padding: 0.15rem 0.2rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--eys-text);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

.eys-sidebar-book__input::-webkit-outer-spin-button,
.eys-sidebar-book__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.eys-sidebar-book__stepper:focus-within {
	outline: 2px solid var(--eys-gold);
	outline-offset: 1px;
	border-color: var(--eys-gold);
}

.eys-sidebar-book__spinners {
	display: flex;
	flex-direction: column;
	border-left: 1px solid var(--eys-border);
	background: #f7f5f1;
}

.eys-sidebar-book__spin {
	flex: 1 1 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 1.05rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--eys-dark);
	font-size: 0.62rem;
	line-height: 1;
	cursor: pointer;
}

.eys-sidebar-book__spin--up {
	border-bottom: 1px solid var(--eys-border);
}

.eys-sidebar-book__spin:hover {
	background: color-mix(in srgb, var(--eys-gold) 28%, transparent);
}

.eys-sidebar-book__spin:focus-visible {
	outline: 2px solid var(--eys-gold);
	outline-offset: -2px;
	z-index: 1;
}

.eys-sidebar-book__calendar {
	user-select: none;
}

.eys-sidebar-book__cal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.35rem;
	padding: 0.4rem 0.45rem;
	background: var(--eys-dark);
	color: #fff;
	border-radius: 2px 2px 0 0;
}

.eys-sidebar-book__cal-label {
	flex: 1 1 auto;
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.eys-sidebar-book__cal-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: transparent;
	color: inherit;
	font-size: 1.05rem;
	line-height: 1;
	cursor: pointer;
}

.eys-sidebar-book__cal-nav:hover {
	background: rgba(255, 255, 255, 0.12);
}

.eys-sidebar-book__cal-dows,
.eys-sidebar-book__cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
}

.eys-sidebar-book__cal-dows {
	margin-top: 0.4rem;
	padding: 0 0.1rem;
}

.eys-sidebar-book__cal-dows span {
	text-align: center;
	font-size: 0.62rem;
	font-weight: 700;
	color: var(--eys-muted);
}

.eys-sidebar-book__cal-grid {
	margin-top: 0.2rem;
}

.eys-sidebar-book__day {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	min-height: 1.65rem;
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: transparent;
	color: var(--eys-text);
	font: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.eys-sidebar-book__day.is-empty,
.eys-sidebar-book__day:disabled {
	color: #c4bfb8;
	cursor: default;
	background: transparent;
}

.eys-sidebar-book__day.is-today:not(.is-selected) {
	box-shadow: inset 0 0 0 1px var(--eys-gold);
}

.eys-sidebar-book__day.is-selected {
	background: var(--eys-primary);
	color: #fff;
}

.eys-sidebar-book__day:not(:disabled):not(.is-empty):hover {
	background: color-mix(in srgb, var(--eys-gold) 28%, transparent);
}

.eys-sidebar-book__day.is-selected:hover {
	background: var(--eys-primary);
}

.eys-sidebar-book__error {
	margin: 0;
	padding: 0.4rem 0.5rem;
	border-radius: 3px;
	background: #fde8e8;
	color: #9b1c1c;
	font-size: 0.72rem;
	font-weight: 600;
}

.eys-book-widget__cost {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0;
	padding: 0.55rem 0.65rem;
	border-radius: 3px;
	background: #ececec;
	color: var(--eys-muted);
	font-size: 0.78rem;
	font-weight: 600;
}

.eys-book-widget__cost-label {
	/* 6.6:1 on the #ececec strip; the gold tint was 2.98:1. */
	color: #5a5148;
}

.eys-book-widget__cost-value {
	/* Deep gold, 6.5:1. Plain --eys-gold measured 1.98:1 here. */
	color: #6b4e1e;
	font-size: 0.95rem;
	font-weight: 800;
	white-space: nowrap;
}

.eys-book-widget__cost--bar {
	margin-top: 0.65rem;
}

.eys-sidebar-book__cta {
	flex: 0 0 2.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0.65rem 0.2rem;
	border: 0;
	border-left: 1px solid var(--eys-border);
	background: color-mix(in srgb, var(--eys-gold) 55%, #fff);
	color: var(--eys-dark);
	cursor: pointer;
	transition: filter 0.15s ease, background 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.eys-sidebar-book__cta:hover {
	filter: brightness(0.97);
	background: color-mix(in srgb, var(--eys-gold) 72%, #fff);
}

.eys-sidebar-book__cta:focus-visible {
	outline: 3px solid rgba(196, 165, 116, 0.75);
	outline-offset: -3px;
}

.eys-sidebar-book__cta-inner {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	gap: 0.45rem;
	transform: rotate(-90deg);
	white-space: nowrap;
}

.eys-sidebar-book__cta-icon {
	display: inline-flex;
	align-items: center;
	transform: rotate(90deg);
}

.eys-sidebar-book__cta-text {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Phones & narrow columns */
@media (max-width: 640px) {
	.eys-sidebar-book {
		max-width: 100%;
		width: 100%;
		min-height: 0;
		flex-direction: column;
		border-radius: 8px;
	}

	.eys-sidebar-book__body {
		padding: 1rem 1rem 0.85rem;
		gap: 1rem;
	}

	.eys-sidebar-book__guests {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.65rem 0.5rem;
	}

	.eys-sidebar-book__field {
		align-items: stretch;
	}

	.eys-sidebar-book__label {
		font-size: 0.68rem;
		min-height: 2.1em;
	}

	.eys-sidebar-book__stepper {
		width: 100%;
		/* Two 1.5rem spin targets need 3rem of column to sit in. */
		min-height: 3rem;
		grid-template-columns: minmax(0, 1fr) 2rem;
	}

	.eys-sidebar-book__input {
		font-size: 1.05rem;
	}

	.eys-sidebar-book__spin {
		/* 24px is the minimum accessible target. */
		min-height: 1.5rem;
		font-size: 0.75rem;
	}

	.eys-sidebar-book__cal-nav {
		width: 2.25rem;
		height: 2.25rem;
		font-size: 1.2rem;
	}

	.eys-sidebar-book__cal-label {
		font-size: 0.78rem;
	}

	.eys-sidebar-book__day {
		min-height: 2.15rem;
		font-size: 0.82rem;
	}

	.eys-sidebar-book__cta {
		flex: 0 0 auto;
		width: 100%;
		min-height: 3.25rem;
		border-left: 0;
		border-top: 1px solid var(--eys-border);
		padding: 0.85rem 1rem;
	}

	.eys-sidebar-book__cta-inner {
		transform: none;
	}

	.eys-sidebar-book__cta-icon {
		transform: none;
	}

	.eys-sidebar-book__cta-text {
		font-size: 0.88rem;
	}
}

/* Very small phones: stack guest rows for readable labels */
@media (max-width: 380px) {
	.eys-sidebar-book__guests {
		grid-template-columns: 1fr;
		gap: 0.7rem;
	}

	.eys-sidebar-book__field {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 5.5rem;
		align-items: center;
		column-gap: 0.65rem;
	}

	.eys-sidebar-book__label {
		min-height: 0;
		font-size: 0.78rem;
	}

	.eys-sidebar-book__stepper {
		width: 100%;
		min-height: 2.6rem;
	}
}

html[dir="rtl"] .eys-sidebar-book {
	direction: rtl;
}

html[dir="rtl"] .eys-sidebar-book__cta {
	border-left: 0;
	border-right: 1px solid var(--eys-border);
}

html[dir="rtl"] .eys-sidebar-book__spinners {
	border-left: 0;
	border-right: 1px solid var(--eys-border);
}

html[dir="rtl"] .eys-sidebar-book__cta-inner {
	transform: rotate(90deg);
}

html[dir="rtl"] .eys-sidebar-book__cta-icon {
	transform: rotate(-90deg);
}

@media (max-width: 640px) {
	html[dir="rtl"] .eys-sidebar-book__cta {
		border-right: 0;
		border-top: 1px solid var(--eys-border);
	}

	html[dir="rtl"] .eys-sidebar-book__cta-inner,
	html[dir="rtl"] .eys-sidebar-book__cta-icon {
		transform: none;
	}
}

/* Horizontal homepage Book Now bar.
   Heights are fixed and controls are absolutely placed inside their own box so
   theme margins on select/button/input cannot shift a field out of the row. */
.eys-book-bar {
	--eys-primary: #9A7B4F;
	--eys-dark: #2C2620;
	--eys-gold: #C4A574;
	--eys-bg: #FFFFFF;
	--eys-text: #2C2620;
	--eys-muted: #6F6559;
	--eys-border: #E5E7EB;
	--eys-font: "Outfit", "Segoe UI", sans-serif;
	--eys-bar-label-h: 1.1rem;
	--eys-bar-control-h: 2.75rem;
	--eys-bar-gap: 0.4rem;
	--eys-bar-field-h: calc(var(--eys-bar-label-h) + var(--eys-bar-gap) + var(--eys-bar-control-h));
	--eys-bar-stepper-w: 4.6rem;

	box-sizing: border-box;
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0.9rem 1rem;
	background: var(--eys-bg);
	border: 1px solid var(--eys-border);
	border-radius: 10px;
	font-family: var(--eys-font);
	color: var(--eys-text);
	box-shadow: 0 10px 28px rgba(44, 38, 32, 0.08);
	overflow: visible;
}

.eys-book-bar *,
.eys-book-bar *::before,
.eys-book-bar *::after {
	box-sizing: border-box;
}

.eys-book-bar__inner * {
	margin: 0 !important;
	float: none !important;
	text-shadow: none;
}

.eys-book-bar__inner {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: flex-end !important;
	justify-content: flex-start;
	gap: 0.7rem;
	margin: 0 !important;
	padding: 0 !important;
}

.eys-book-bar__field {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-end !important;
	gap: var(--eys-bar-gap);
	height: var(--eys-bar-field-h) !important;
	min-height: 0 !important;
	max-height: none !important;
	padding: 0 !important;
	border: 0 !important;
	min-width: 0;
}

.eys-book-bar__field--safari {
	flex: 1 1 10.5rem;
	min-width: 9rem;
}

.eys-book-bar__field--guest {
	flex: 0 0 auto;
	min-width: var(--eys-bar-stepper-w);
}

.eys-book-bar__field--date {
	flex: 1 1 9rem;
	min-width: 8.5rem;
}

.eys-book-bar__field--cta {
	flex: 0 0 auto;
}

.eys-book-bar__label {
	display: flex !important;
	align-items: flex-end;
	flex: 0 0 auto;
	height: var(--eys-bar-label-h) !important;
	min-height: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	white-space: nowrap;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-transform: none;
	color: var(--eys-muted);
}

.eys-book-bar__label--spacer {
	visibility: hidden;
	pointer-events: none;
	user-select: none;
}

.eys-book-bar__control {
	position: relative !important;
	flex: 0 0 auto;
	width: 100%;
	height: var(--eys-bar-control-h) !important;
	min-height: 0 !important;
}

.eys-book-bar__control--guest {
	width: var(--eys-bar-stepper-w);
	flex: 0 0 auto;
}

.eys-book-bar__control > .eys-book-bar__select,
.eys-book-bar__control > .eys-book-bar__date-btn,
.eys-book-bar__control > .eys-sidebar-book__stepper {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 0 !important;
	max-height: none !important;
}

.eys-book-bar__select,
.eys-book-bar__date-btn {
	display: block;
	padding: 0 0.7rem !important;
	border: 1px solid var(--eys-dark) !important;
	border-radius: 4px;
	background-color: #fff;
	color: var(--eys-text);
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.2;
	box-shadow: none;
}

.eys-book-bar__select {
	padding-right: 1.75rem !important;
	appearance: none;
	-webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--eys-dark) 50%), linear-gradient(135deg, var(--eys-dark) 50%, transparent 50%);
	background-position: calc(100% - 0.95rem) calc(50% - 0.12rem), calc(100% - 0.65rem) calc(50% - 0.12rem);
	background-size: 0.32rem 0.32rem, 0.32rem 0.32rem;
	background-repeat: no-repeat;
}

.eys-book-bar__select:focus,
.eys-book-bar__date-btn:focus-visible {
	outline: 2px solid var(--eys-gold);
	outline-offset: 1px;
	border-color: var(--eys-gold) !important;
}

.eys-book-bar__date-btn {
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	text-align: left;
	cursor: pointer;
	color: var(--eys-muted);
}

.eys-book-bar__date-btn.has-value {
	color: var(--eys-text);
}

.eys-book-bar .eys-sidebar-book__stepper {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) 1.4rem;
	align-items: stretch;
	border: 1px solid var(--eys-dark);
	border-radius: 4px;
	overflow: hidden;
	height: 100%;
	position: relative;
	z-index: 2;
}

.eys-book-bar .eys-sidebar-book__stepper > p {
	display: none !important;
}

.eys-book-bar .eys-sidebar-book__input {
	display: block;
	width: 100%;
	height: 100% !important;
	min-height: 0 !important;
	padding: 0 0.15rem !important;
	border: 0 !important;
	line-height: 1 !important;
	font-size: 0.95rem;
	font-weight: 700;
	text-align: center;
	box-shadow: none;
	grid-column: 1;
	grid-row: 1;
}

.eys-book-bar .eys-sidebar-book__spinners {
	display: flex !important;
	flex-direction: column !important;
	height: 100%;
	grid-column: 2;
	grid-row: 1;
	position: relative;
	z-index: 3;
	pointer-events: auto;
}

.eys-book-bar .eys-sidebar-book__spin {
	flex: 1 1 50%;
	height: 50%;
	min-height: 1.2rem !important;
	padding: 0 !important;
	border-radius: 0;
	font-size: 0.6rem;
	line-height: 1 !important;
	pointer-events: auto;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.eys-book-bar .eys-sidebar-book__spin br {
	display: none !important;
}

.eys-book-bar__cal-pop {
	position: absolute;
	left: 0;
	top: calc(100% + 0.4rem);
	z-index: 120;
	width: min(17.5rem, 86vw);
	padding: 0.55rem;
	background: #fff;
	border: 1px solid var(--eys-border);
	border-radius: 8px;
	box-shadow: 0 14px 32px rgba(44, 38, 32, 0.16);
}

.eys-book-bar__field--cta .eys-book-bar__control {
	display: flex !important;
	align-items: stretch;
	width: auto;
}

.eys-book-bar__cta {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	height: 100% !important;
	min-height: 0 !important;
	padding: 0 1.25rem !important;
	border: 0 !important;
	border-radius: 4px;
	background: color-mix(in srgb, var(--eys-gold) 70%, #fff);
	color: var(--eys-dark);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	-webkit-tap-highlight-color: transparent;
}

.eys-book-bar__cta:hover {
	filter: brightness(0.97);
	background: color-mix(in srgb, var(--eys-gold) 85%, #fff);
}

.eys-book-bar__cta:focus-visible {
	outline: 3px solid rgba(196, 165, 116, 0.75);
	outline-offset: 2px;
}

.eys-book-bar__cta-icon {
	display: inline-flex;
	align-items: center;
}

.eys-book-bar__error {
	margin: 0.7rem 0 0 !important;
}

@media (max-width: 900px) {
	.eys-book-bar {
		--eys-bar-label-h: 2rem;
	}

	.eys-book-bar__inner {
		flex-wrap: wrap !important;
	}

	.eys-book-bar__field--safari,
	.eys-book-bar__field--date,
	.eys-book-bar__field--cta {
		flex: 1 1 100%;
		min-width: 0;
	}

	.eys-book-bar__field--guest {
		flex: 1 1 0;
		min-width: 7.5rem;
	}

	.eys-book-bar__control--guest {
		width: 100%;
	}

	.eys-book-bar__label {
		white-space: normal;
		overflow: visible;
		color: var(--eys-text);
	}

	.eys-book-bar__field--guest .eys-book-bar__label {
		min-height: 2.4em;
		line-height: 1.25;
	}

	.eys-book-bar__field--cta {
		height: var(--eys-bar-control-h) !important;
	}

	.eys-book-bar__field--cta .eys-book-bar__label--spacer {
		display: none !important;
	}

	.eys-book-bar__field--cta .eys-book-bar__control {
		width: 100%;
	}
}

@media (max-width: 560px) {
	.eys-book-bar {
		padding: 0.85rem;
		border-radius: 8px;
		/* Two stacked spin buttons share this height. At 2.75rem each one came
		   out 22px, under the 24px minimum accessible target. */
		--eys-bar-control-h: 3.25rem;
		--eys-bar-stepper-w: 5rem;
	}

	/* The bar variant kept the narrow 1.35rem spin column from the base rule,
	   so the buttons measured 21px wide. Widening the column and the stepper
	   together keeps the number field legible. */
	.eys-book-bar .eys-sidebar-book__stepper {
		grid-template-columns: minmax(0, 1fr) 1.75rem;
	}

	.eys-book-bar__field--guest {
		flex: 1 1 100%;
		flex-direction: row !important;
		align-items: center !important;
		justify-content: space-between !important;
		height: auto !important;
		min-height: var(--eys-bar-control-h) !important;
		gap: 0.65rem;
	}

	.eys-book-bar__field--guest .eys-book-bar__label {
		flex: 1 1 auto !important;
		flex-shrink: 1;
		min-width: 8rem !important;
		width: auto !important;
		height: auto !important;
		overflow: visible !important;
		white-space: normal !important;
		align-items: center;
		font-size: 0.78rem;
		color: var(--eys-text) !important;
	}

	.eys-book-bar__field--guest .eys-book-bar__control,
	.eys-book-bar__field--guest .eys-book-bar__control--guest {
		width: var(--eys-bar-stepper-w) !important;
		max-width: var(--eys-bar-stepper-w) !important;
		flex: 0 0 var(--eys-bar-stepper-w) !important;
	}
}

html[dir="rtl"] .eys-book-bar__date-btn {
	text-align: right;
}

html[dir="rtl"] .eys-book-bar__cal-pop {
	left: auto;
	right: 0;
}
