/* Template 18 — BL booking widget (2026-10). Markup: layouts/tpl.php .bl-book, JS: js/bl-widget.js */
.bl-hero { position: relative; }

.bl-book {
	--blb-blue: #1b3e94;
	--blb-blue-dark: #132d6e;
	--blb-blue-08: rgba(27, 62, 148, .08);
	--blb-blue-16: rgba(27, 62, 148, .16);
	--blb-red: #c10000;
	--blb-red-dark: #990000;
	--blb-ink: #1c2333;
	--blb-muted: #6b7385;
	--blb-line: #e1e5ee;
	--blb-radius: 12px;
	position: absolute;
	top: 28px;
	left: clamp(24px, 3vw, 56px);
	z-index: 30;
	width: 340px;
	font-family: 'Roboto', sans-serif;
	color: var(--blb-ink);
}
.bl-book *, .bl-book *::before, .bl-book *::after { box-sizing: border-box; }

.bl-book-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 22px 22px 20px;
	background: #fff;
	border-radius: 16px;
	border-top: 4px solid var(--blb-blue);
	box-shadow: 0 22px 50px -12px rgba(8, 22, 64, .45), 0 2px 6px rgba(8, 22, 64, .12);
}

.bl-book-head { margin-bottom: 2px; }
.bl-book-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--blb-red);
}
.bl-book-title {
	margin: 4px 0 0;
	padding: 0;
	font-family: inherit;
	font-size: 25px;
	font-weight: 500;
	line-height: 1.15;
	color: var(--blb-blue);
	text-align: left;
}

/* Fields */
.bl-book-dates {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.bl-field {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 9px 12px 10px 40px;
	text-align: left;
	font: inherit;
	color: inherit;
	background: #f6f8fc;
	border: 1px solid var(--blb-line);
	border-radius: var(--blb-radius);
	cursor: pointer;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.bl-field:hover { border-color: #b9c3dc; background: #fff; }
.bl-field:focus { outline: none; }
.bl-field:focus-visible,
.bl-field.is-active {
	background: #fff;
	border-color: var(--blb-blue);
	box-shadow: 0 0 0 3px var(--blb-blue-16);
}
.bl-field::before {
	content: "";
	position: absolute;
	left: 13px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background: var(--blb-blue);
	-webkit-mask: var(--blb-icon) center / contain no-repeat;
	mask: var(--blb-icon) center / contain no-repeat;
}
.bl-field-date {
	--blb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='2.5'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E");
}
.bl-field-guests {
	--blb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.6 2.9-6 6.5-6s6.5 2.4 6.5 6'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14.3c2.1.7 3.5 2.7 3.5 5.7'/%3E%3C/svg%3E");
	padding-right: 36px;
}
.bl-field-guests::after {
	content: "";
	position: absolute;
	right: 15px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid var(--blb-muted);
	border-bottom: 2px solid var(--blb-muted);
	transform: rotate(45deg);
	transition: transform .2s, margin-top .2s;
}
.bl-field-guests[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
.bl-field-label {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--blb-muted);
	line-height: 1.4;
}
.bl-field-value {
	display: block;
	margin-top: 1px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--blb-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bl-field-value.is-empty { font-weight: 400; color: #9aa1b1; }

.bl-book-nights {
	grid-column: 1 / -1;
	order: 3;
	font-size: 12.5px;
	color: var(--blb-muted);
	line-height: 1.2;
	padding-left: 2px;
}
.bl-book-nights:empty { display: none; }
.bl-book-nights b { color: var(--blb-blue); font-weight: 700; }

.bl-book-guests { position: relative; }

/* Submit */
.bl-book-submit {
	display: block;
	width: 100%;
	height: 50px;
	margin: 4px 0 0;
	padding: 0 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	background: var(--blb-red);
	border: 0;
	border-radius: var(--blb-radius);
	box-shadow: 0 8px 18px -8px rgba(193, 0, 0, .7);
	cursor: pointer;
	transition: background-color .15s, transform .15s, box-shadow .15s;
}
.bl-book-submit:hover { background: var(--blb-red-dark); transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(193, 0, 0, .8); }
.bl-book-submit:active { transform: none; }
.bl-book-submit:focus { outline: none; }
.bl-book-submit:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(193, 0, 0, .45); }

/* Popovers */
.bl-pop {
	position: absolute;
	z-index: 40;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 60px -16px rgba(8, 22, 64, .45), 0 0 0 1px rgba(8, 22, 64, .06);
}
.bl-pop[hidden] { display: none !important; }

/* Guests */
.bl-guests {
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	padding: 6px 16px 14px;
}
.bl-guests.is-up { top: auto; bottom: calc(100% + 8px); }
.bl-step {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 0;
	border-bottom: 1px solid #eef1f6;
}
.bl-step-text b { font-size: 15px; font-weight: 500; color: var(--blb-ink); }
.bl-step-text small { display: block; margin-top: 1px; font-size: 12px; color: var(--blb-muted); }
.bl-step-ctrl { display: inline-flex; align-items: center; gap: 4px; }
.bl-step-ctrl output { min-width: 30px; text-align: center; font-size: 16px; font-weight: 700; color: var(--blb-ink); }
.bl-step-ctrl button {
	width: 34px;
	height: 34px;
	padding: 0;
	font-size: 18px;
	line-height: 1;
	color: var(--blb-blue);
	background: #fff;
	border: 1.5px solid #c9d1e4;
	border-radius: 50%;
	cursor: pointer;
	transition: border-color .15s, background-color .15s, color .15s;
}
.bl-step-ctrl button:hover:not(:disabled) { border-color: var(--blb-blue); background: var(--blb-blue-08); }
.bl-step-ctrl button:disabled { color: #c3c8d3; border-color: #e6e9f0; cursor: default; }
.bl-guests-done {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 10px;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--blb-blue);
	background: var(--blb-blue-08);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}
.bl-guests-done:hover { background: var(--blb-blue-16); }

/* Calendar */
.bl-cal {
	top: 0;
	left: calc(100% + 14px);
	padding: 18px 20px 14px;
	width: max-content;
}
.bl-cal-months { display: flex; gap: 28px; }
.bl-cal-month { width: 266px; }
.bl-cal-title {
	height: 34px;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 34px;
	text-align: center;
	color: var(--blb-ink);
}
.bl-cal-nav {
	position: absolute;
	top: 18px;
	width: 34px;
	height: 34px;
	padding: 0;
	background: #fff;
	border: 1px solid var(--blb-line);
	border-radius: 50%;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.bl-cal-nav::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	border-left: 2px solid var(--blb-blue);
	border-bottom: 2px solid var(--blb-blue);
	transform: translate(-30%, -50%) rotate(45deg);
}
.bl-cal-nav.next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.bl-cal-nav.prev { left: 20px; }
.bl-cal-nav.next { right: 20px; }
.bl-cal-nav:hover:not(:disabled) { background: var(--blb-blue-08); border-color: #b9c3dc; }
.bl-cal-nav:disabled { opacity: .35; cursor: default; }
.bl-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 38px);
	row-gap: 2px;
}
.bl-cal-dow {
	height: 26px;
	font-size: 11px;
	font-weight: 700;
	line-height: 26px;
	letter-spacing: .06em;
	text-align: center;
	text-transform: uppercase;
	color: #9aa1b1;
}
.bl-cal-day {
	position: relative;
	height: 38px;
	padding: 0;
	font: inherit;
	font-size: 14px;
	color: var(--blb-ink);
	background: transparent;
	border: 0;
	cursor: pointer;
}
.bl-cal-day span {
	position: relative;
	z-index: 1;
	display: block;
	width: 36px;
	height: 36px;
	margin: 1px auto;
	line-height: 36px;
	border-radius: 50%;
	transition: background-color .12s, color .12s;
}
.bl-cal-day:hover span { background: var(--blb-blue-16); }
.bl-cal-day.is-today span { box-shadow: inset 0 0 0 1.5px var(--blb-blue); }
.bl-cal-day:disabled { color: #c8cdd8; cursor: default; }
.bl-cal-day:disabled span { background: none; box-shadow: none; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.18); }
.bl-cal-day.in-range { background: var(--blb-blue-08); }
.bl-cal-day.is-start,
.bl-cal-day.is-end { background: var(--blb-blue-08); }
.bl-cal-day.is-start { border-radius: 19px 0 0 19px; }
.bl-cal-day.is-end { border-radius: 0 19px 19px 0; }
.bl-cal-day.is-start.is-end { border-radius: 19px; background: transparent; }
.bl-cal-day.is-start span,
.bl-cal-day.is-end span { background: var(--blb-blue); color: #fff; font-weight: 700; box-shadow: none; }
.bl-cal-blank { height: 38px; }
.bl-cal-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #eef1f6;
}
.bl-cal-hint { font-size: 13px; color: var(--blb-muted); }
.bl-cal-hint b { color: var(--blb-ink); }
.bl-cal-close {
	padding: 8px 16px;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--blb-blue);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}
.bl-cal-close:hover { background: var(--blb-blue-dark); }

/* Tablet + mobile: widget sits below the slider */
@media (max-width: 991px) {
	.bl-book {
		position: relative;
		top: auto;
		left: auto;
		width: auto;
		padding: 0 16px;
		margin: 16px auto 8px;
		max-width: 600px;
	}
	.bl-book-card { padding: 20px 18px 18px; }
	.bl-book-title { font-size: 22px; }
	.bl-cal {
		left: 0;
		right: 0;
		top: auto;
		width: auto;
		padding: 16px 12px 12px;
	}
	.bl-cal-months { justify-content: center; }
	.bl-cal-nav.prev { left: 12px; }
	.bl-cal-nav.next { right: 12px; }
	.bl-cal-nav { top: 16px; }
}
@media (max-width: 360px) {
	.bl-cal-grid { grid-template-columns: repeat(7, 1fr); }
	.bl-cal-month { width: 100%; }
	.bl-field { padding-left: 36px; }
	.bl-field::before { left: 11px; }
	.bl-field-value { font-size: 14px; }
}
.bl-field-guests .bl-field-value { white-space: normal; }
