/* Booking form as a popup: any <a href="#visit"> opens it instead of scrolling. */
.booking-backdrop { position: fixed; inset: 0; z-index: 200; background: rgb(22 32 58 / 62%); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s; }
.booking-close { display: none; }
body.booking-open { overflow: hidden; }
body.booking-open .booking-backdrop { opacity: 1; visibility: visible; }
body.booking-open .booking {
	position: fixed; z-index: 210; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
	overflow-y: auto; overscroll-behavior: contain;
	animation: booking-pop .22s ease-out;
}
body.booking-open .booking-close {
	display: grid; place-items: center; position: absolute; right: 12px; top: 12px;
	width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--mist, #f1f4f9); color: var(--ink, #16203a); font-size: 26px; line-height: 1;
}
body.booking-open .booking-close:hover { background: #e3e8f1; }
body.booking-open .booking__title { padding-right: 48px; }
@keyframes booking-pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
@media (prefers-reduced-motion: reduce) { body.booking-open .booking { animation: none; } }

/* Compact layout so the whole form is visible without scrolling. */
body.booking-open .booking { padding: 18px 24px 20px; border-radius: 18px; }
body.booking-open .booking__title { font-size: 1.3rem; padding-right: 44px; }
body.booking-open .booking__lede { margin: 2px 0 12px; font-size: .9rem; }
body.booking-open .booking__form { gap: 10px; }
body.booking-open .field { gap: 3px; }
body.booking-open .field label, body.booking-open .field legend { font-size: .9rem; }
body.booking-open .choices { gap: 6px; margin-top: 4px; }
body.booking-open .choice span { padding: 6px 12px; font-size: .84rem; }
body.booking-open .field input, body.booking-open .field textarea { padding: 8px 12px; font-size: 1rem; }
body.booking-open .field textarea { height: 52px; min-height: 0; resize: none; }
body.booking-open .booking__actions { margin-top: 2px; gap: 10px; }
body.booking-open .booking__actions .btn { padding: 11px 18px; font-size: .95rem; }
body.booking-open .booking-close { width: 34px; height: 34px; font-size: 22px; right: 10px; top: 10px; }
@media (max-height: 640px), (max-width: 480px) {
	body.booking-open .booking { padding: 14px 16px 16px; }
	body.booking-open .booking__lede { display: none; }
	body.booking-open .booking__form { gap: 7px; }
	body.booking-open .choice span { padding: 5px 10px; font-size: .8rem; }
	body.booking-open .field input, body.booking-open .field textarea { padding: 7px 10px; }
	body.booking-open .field textarea { height: 40px; }
	body.booking-open .booking__actions .btn { padding: 9px 14px; font-size: .9rem; }
}
