/* Homepage quick booking + sticky date bar (inc/quick-book.php, assets/js/quick-book.js). */

/* ---------- Sticky date bar ---------- */

.home #calendar-home.fox-sticky-date {
	position: sticky;
	top: var(--fox-sticky-top, 0px);
	z-index: 9;
	/* The gap under the bar lives outside the sticky box, otherwise the empty
	   space would ride along and cover the cards underneath. */
	margin-bottom: 55px;
}

/* Keep the cards' own layers (price badge z-index 9, tags) under the docked
   bar without raising the bar above the site header and its mobile menu. */
.home .booking-form .available-rooms {
	position: relative;
	z-index: 0;
}

.home #calendar-home.fox-sticky-date .fc-toolbar.fc-header-toolbar {
	margin-bottom: 0;
	transition: padding .2s ease, border-radius .2s ease, box-shadow .2s ease;
}

.home #calendar-home.fox-sticky-date .fc-toolbar-title {
	transition: font-size .2s ease;
}

.home #calendar-home.is-stuck .fc-toolbar.fc-header-toolbar {
	padding: 8px 15px;
	border-radius: 0 0 10px 10px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.home #calendar-home.is-stuck .fc-toolbar-title {
	font-size: 17px !important;
}

.home #calendar-home.is-stuck .fc-datepicker-button {
	font-size: 12px;
	padding-top: 0;
	padding-bottom: 0;
}

@media (max-width: 600px) {
	.home #calendar-home.fox-sticky-date {
		margin-bottom: 30px;
	}

	/* Docked on a phone: one slim line — arrows instead of PREV/NEXT and the
	   date on a single line. */
	.home #calendar-home.is-stuck .fc-toolbar.fc-header-toolbar {
		padding: 6px 4px;
		flex-wrap: nowrap;
	}

	.home #calendar-home.is-stuck .fc-toolbar-chunk:nth-child(2) {
		flex: 1 1 auto;
		min-width: 0;
	}

	.home #calendar-home.is-stuck .fc-toolbar-title {
		overflow: hidden;
		padding: 0 4px;
		font-size: 13px !important;
		letter-spacing: 0;
		/* Mixed case is narrower, so the full date fits on one line. */
		text-transform: none;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.home #calendar-home.is-stuck .fc-datepicker-button {
		margin: 0;
		font-size: 10px;
		line-height: 1.2;
	}

	.home #calendar-home.is-stuck .fc-prev-button,
	.home #calendar-home.is-stuck .fc-next-button {
		width: 40px;
		padding: 0;
		overflow: visible;
		font-size: 0;
		line-height: 1;
	}

	.home #calendar-home.is-stuck .fc-prev-button::before,
	.home #calendar-home.is-stuck .fc-next-button::before {
		font-size: 28px;
		font-weight: 400;
	}

	.home #calendar-home.is-stuck .fc-prev-button::before {
		content: "‹";
	}

	.home #calendar-home.is-stuck .fc-next-button::before {
		content: "›";
	}
}

/* ---------- Picked slot ---------- */

.single-room-grid .single-block.is-picked a,
.single-room-grid .single-block.is-picked a:hover {
	background-color: #ed6b06;
	box-shadow: 0 0 0 3px rgba(237, 107, 6, .25);
}

.single-room-grid.fox-qb-active .single-block.available:not(.is-picked) a {
	opacity: .55;
}

.single-room-grid.fox-qb-active .single-block.available:not(.is-picked) a:hover {
	opacity: 1;
}

/* ---------- Players panel ---------- */

.fox-qb {
	margin-top: 12px;
	padding: 14px;
	border: 1px solid #f6d3b6;
	border-radius: 12px;
	background: #fff8f2;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity .2s ease, transform .2s ease;
	scroll-margin-bottom: 16px;
}

.fox-qb.is-open {
	opacity: 1;
	transform: none;
}

.fox-qb__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.fox-qb__when {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	font-family: var(--wp--preset--font-family--gotham);
}

.fox-qb__time {
	padding: 3px 8px;
	border-radius: 6px;
	background: #ed6b06;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
}

.fox-qb__date {
	color: #555;
	font-size: 13px;
}

.fox-qb__close {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #777;
	font-size: 22px;
	line-height: 30px;
	cursor: pointer;
}

.fox-qb__close:hover {
	background: rgba(0, 0, 0, .06);
	color: #000;
}

.fox-qb__title {
	margin: 12px 0 8px;
	color: #222;
	font-family: var(--wp--preset--font-family--gotham);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.fox-qb__pills {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
	gap: 8px;
}

.fox-qb__pill {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 8px 4px;
	border: 1.5px solid #e4e4e4;
	border-radius: 10px;
	background: #fff;
	color: #222;
	font-family: var(--wp--preset--font-family--gotham);
	cursor: pointer;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.fox-qb__pill:hover:not(:disabled),
.fox-qb__pill:focus-visible {
	border-color: #ed6b06;
	box-shadow: 0 4px 12px rgba(237, 107, 6, .18);
	transform: translateY(-1px);
	outline: none;
}

.fox-qb__pill:disabled {
	cursor: default;
	opacity: .5;
}

.fox-qb__pill.is-popular {
	border-color: #ed6b06;
}

.fox-qb__num {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.1;
}

.fox-qb__price {
	margin-top: 3px;
	color: #777;
	font-size: 11px;
	white-space: nowrap;
}

.fox-qb__badge {
	position: absolute;
	top: -8px;
	left: 50%;
	transform: translateX(-50%);
	padding: 1px 6px;
	border-radius: 999px;
	background: #ed6b06;
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Chosen count while the booking is added to the cart. */
.fox-qb__pill.is-loading {
	border-color: #ed6b06;
	background: #ed6b06;
	color: #fff;
	opacity: 1;
}

.fox-qb__pill.is-loading .fox-qb__num,
.fox-qb__pill.is-loading .fox-qb__price,
.fox-qb__pill.is-loading .fox-qb__badge {
	visibility: hidden;
}

.fox-qb__pill.is-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: fox-qb-spin .7s linear infinite;
}

@keyframes fox-qb-spin {
	to { transform: rotate(360deg); }
}

/* Placeholder pills while the prices load. */
.fox-qb__pills.is-skeleton .fox-qb__pill {
	border-color: transparent;
	background: linear-gradient(90deg, #f1e6dc 25%, #f9f0e8 50%, #f1e6dc 75%);
	background-size: 200% 100%;
	animation: fox-qb-shimmer 1.2s linear infinite;
	cursor: default;
}

@keyframes fox-qb-shimmer {
	to { background-position: -200% 0; }
}

.fox-qb__hint {
	margin: 10px 0 0;
	color: #777;
	font-size: 12px;
}

.fox-qb__error {
	margin: 6px 0 0;
	color: #a12622;
	font-size: 13px;
	font-weight: 600;
}

.fox-qb__error:empty {
	display: none;
}

.fox-qb__more {
	display: inline-block;
	margin-top: 8px;
	color: #ed6b06;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.fox-qb__more:hover {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.fox-qb,
	.fox-qb__pill,
	.home #calendar-home.fox-sticky-date .fc-toolbar.fc-header-toolbar {
		transition: none;
	}
}

/* ---------- Last-minute banner / call mode ---------- */

.fox-qb__lm {
	margin-top: 12px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fff1c7;
	color: #5a4300;
	font-size: 12px;
	line-height: 1.4;
}

.fox-qb__lm-icon {
	font-size: 16px;
	line-height: 1.2;
}

.fox-qb__lm-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.fox-qb__lm-text strong {
	font-family: var(--wp--preset--font-family--gotham);
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.fox-qb__lm-fee {
	font-weight: 600;
}

.fox-qb__notice p {
	margin: 4px 0 0;
}

.fox-qb__notice a {
	color: inherit;
	font-weight: 700;
}

/* ---------- Added state: checkout / cart ---------- */

.fox-qb__added {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 4px;
}

.fox-qb__added strong {
	display: block;
	font-family: var(--wp--preset--font-family--gotham);
	font-size: 14px;
}

.fox-qb__check {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #40af5f;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	animation: fox-qb-pop .3s ease;
}

@keyframes fox-qb-pop {
	from { transform: scale(.4); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.fox-qb__summary {
	display: block;
	color: #555;
	font-size: 12px;
}

.fox-qb__actions {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 8px;
	margin-top: 12px;
}

.fox-qb__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 12px;
	border: 1.5px solid #ed6b06;
	border-radius: 10px;
	font-family: var(--wp--preset--font-family--gotham);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .15s ease, color .15s ease;
}

.fox-qb__btn--primary,
.fox-qb__btn--primary:visited {
	background: #ed6b06;
	color: #fff;
}

.fox-qb__btn--primary:hover {
	background: #d45f04;
	color: #fff;
}

.fox-qb__btn--ghost,
.fox-qb__btn--ghost:visited {
	background: #fff;
	color: #ed6b06;
}

.fox-qb__btn--ghost:hover {
	background: #fff1e6;
}

.fox-qb.is-call .fox-qb__btn {
	margin-top: 4px;
}

.fox-qb__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
	margin-top: 8px;
}

.fox-qb__link {
	padding: 0;
	border: 0;
	background: none;
	color: #ed6b06;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.fox-qb__link:hover {
	text-decoration: underline;
}

.fox-qb.is-busy {
	opacity: .6;
	pointer-events: none;
}

/* Held in this visitor's cart; links to the cart. */
.single-room-grid .single-block.is-in-cart a {
	border: 1.5px solid #ed6b06;
	background: #fff;
	color: #ed6b06;
	font-weight: 700;
	cursor: pointer;
}

.single-room-grid .single-block.is-in-cart a:hover {
	background: #fff1e6;
	color: #ed6b06;
}

@media (max-width: 380px) {
	.fox-qb__actions {
		grid-template-columns: 1fr;
	}
}

/* ---------- Remove from cart ---------- */

.fox-qb__link--remove {
	margin-left: auto;
	color: #a12622;
}

.fox-qb__link--remove::before {
	content: "✕ ";
	font-size: 10px;
}

.fox-qb__added--removed .fox-qb__check {
	background: #888;
}

.fox-qb__added--removed strong {
	font-family: var(--wp--preset--font-family--gotham);
	font-size: 14px;
}

/* ---------- Person types (adults + kids) ---------- */

.fox-qb__type {
	margin: 12px 0 6px;
	color: #555;
	font-size: 12px;
	font-weight: 600;
}

.fox-qb__extra {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
	padding: 8px 10px;
	border: 1.5px solid #e4e4e4;
	border-radius: 10px;
	background: #fff;
}

.fox-qb__extra-name {
	color: #222;
	font-size: 13px;
	font-weight: 600;
}

.fox-qb__stepper {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fox-qb__step {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1.5px solid #ed6b06;
	border-radius: 50%;
	background: #fff;
	color: #ed6b06;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.fox-qb__step:hover:not(:disabled) {
	background: #fff1e6;
}

.fox-qb__step:disabled {
	border-color: #ddd;
	color: #bbb;
	cursor: default;
}

.fox-qb__extra-count {
	min-width: 18px;
	font-family: var(--wp--preset--font-family--gotham);
	font-size: 16px;
	font-weight: 700;
	text-align: center;
}
