/*
 * Book Now Location Selector
 * ---------------------------------------------------------------------------
 * Everything is namespaced with .bns- so it cannot collide with a theme.
 * Key visual rules are written with a doubled class (.bns-btn.bns-btn) on
 * purpose: it lifts specificity above the usual theme selectors such as
 * `.entry-content a` without resorting to !important, which would make the
 * button impossible for you to restyle later.
 *
 * Re-brand by overriding the custom properties below (Appearance > Customize >
 * Additional CSS, or the book_now_css_variables filter). Do not edit this file.
 */

:root {
	--bns-accent: #0f6b5f;
	--bns-accent-hover: #0a4f46;
	--bns-on-accent: #ffffff;
	--bns-ink: #10201f;
	--bns-muted: #5c6b6a;
	--bns-surface: #ffffff;
	--bns-line: rgba(16, 32, 31, 0.14);
	--bns-focus: #f2b544;
	--bns-radius-btn: 999px;
	--bns-radius-panel: 18px;
	--bns-shadow: 0 24px 60px -18px rgba(6, 26, 24, 0.45);
	--bns-backdrop: rgba(9, 24, 22, 0.62);
	--bns-z: 100000;
}

/* ---------------------------------------------------------------- layout - */

.bns-wrap {
	display: inline-block;
	max-width: 100%;
	min-width: 0;
	vertical-align: middle;
	padding-bottom: 10px;
}

.bns-wrap--left,
.bns-wrap--center,
.bns-wrap--right,
.bns-wrap--full {
	display: block;
}

.bns-wrap--left {
	text-align: left;
}

.bns-wrap--center {
	text-align: center;
}

.bns-wrap--right {
	text-align: right;
}

.bns-wrap--full .bns-btn {
	display: flex;
	width: 100%;
	/* Full-width buttons are wide enough that wrapping stays rectangular. */
	white-space: normal;
}

/* ---------------------------------------------------------------- button - */

.bns-btn.bns-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	max-width: 100%;
	min-width: 0;
	/* Two-line wrapping inside a pill radius turns the button into a circle. */
	white-space: nowrap;
	margin: 0;
	padding: 0.85em 1.85em;
	border: 2px solid var(--bns-accent);
	border-radius: var(--bns-radius-btn);
	background: var(--bns-accent);
	color: var(--bns-on-accent);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	box-shadow: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.bns-btn.bns-btn:hover,
.bns-btn.bns-btn:focus {
	background: var(--bns-accent-hover);
	border-color: var(--bns-accent-hover);
	color: var(--bns-on-accent);
	text-decoration: none;
	transform: translateY(-1px);
}

.bns-btn.bns-btn:active {
	transform: translateY(0);
}

.bns-btn.bns-btn:focus-visible {
	outline: 3px solid var(--bns-focus);
	outline-offset: 3px;
}

/* Older browsers without :focus-visible still get a ring. */
.bns-btn.bns-btn:focus:not(:focus-visible) {
	outline: 3px solid var(--bns-focus);
	outline-offset: 3px;
}

.bns-btn__label {
	display: inline-block;
	white-space: nowrap;
}

.bns-btn__icon {
	flex: 0 0 auto;
	transition: transform 0.18s ease;
}

.bns-btn.bns-btn[aria-expanded="true"] .bns-btn__icon {
	transform: rotate(180deg);
}

/* Variants */

.bns-btn--outline.bns-btn--outline {
	background: transparent;
	border-color: var(--bns-accent);
	color: var(--bns-accent);
}

.bns-btn--outline.bns-btn--outline:hover,
.bns-btn--outline.bns-btn--outline:focus {
	background: var(--bns-accent);
	color: var(--bns-on-accent);
}

.bns-btn--dark.bns-btn--dark {
	background: var(--bns-ink);
	border-color: var(--bns-ink);
	color: #fff;
}

.bns-btn--dark.bns-btn--dark:hover,
.bns-btn--dark.bns-btn--dark:focus {
	background: #000;
	border-color: #000;
	color: #fff;
}

.bns-btn--light.bns-btn--light {
	background: #fff;
	border-color: #fff;
	color: var(--bns-ink);
}

.bns-btn--light.bns-btn--light:hover,
.bns-btn--light.bns-btn--light:focus {
	background: #f3f1ec;
	border-color: #f3f1ec;
	color: var(--bns-ink);
}

/* Sizes */

.bns-btn--small.bns-btn--small {
	padding: 0.6em 1.3em;
	font-size: 0.875rem;
}

.bns-btn--large.bns-btn--large {
	padding: 1.05em 2.4em;
	font-size: 1.125rem;
}

/* Opt-in compact button for tight theme headers and sticky bars:
   [book_now class="bns-btn--compact"] */
.bns-btn.bns-btn.bns-btn--compact {
	gap: 0.35em;
	padding: 0.55em 1.05em;
	border-width: 1px;
	font-size: 0.875rem;
	letter-spacing: 0;
}

.bns-btn--compact .bns-btn__icon {
	width: 14px;
	height: 14px;
}

/* ----------------------------------------------------------------- modal - */

.bns-modal {
	position: fixed;
	inset: 0;
	z-index: var(--bns-z);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

/* JavaScript on: state is driven by a class. */
.bns-modal.is-open {
	display: flex;
}

/* JavaScript off: the button is a plain #hash link and :target opens the panel. */
html:not(.bns-js) .bns-modal:target {
	display: flex;
}

.bns-modal__backdrop {
	position: absolute;
	inset: 0;
	display: block;
	background: var(--bns-backdrop);
	text-decoration: none;
	cursor: default;
}

@supports (backdrop-filter: blur(3px)) {
	.bns-modal__backdrop {
		backdrop-filter: blur(3px);
	}
}

.bns-modal__dialog {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 34px 30px 26px;
	border-radius: var(--bns-radius-panel);
	background: var(--bns-surface);
	color: var(--bns-ink);
	font-family: inherit;
	box-shadow: var(--bns-shadow);
	animation: bns-rise 0.22s ease-out both;
}

.bns-modal__dialog:focus {
	outline: none;
}

@keyframes bns-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.bns-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: transparent;
	color: var(--bns-muted);
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.bns-modal__close:hover,
.bns-modal__close:focus {
	background: rgba(16, 32, 31, 0.07);
	color: var(--bns-ink);
	text-decoration: none;
}

.bns-modal__close:focus-visible {
	outline: 3px solid var(--bns-focus);
	outline-offset: 2px;
}

.bns-modal__eyebrow {
	margin: 0 0 6px;
	color: var(--bns-accent);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.bns-modal__title {
	margin: 0 0 6px;
	padding: 0;
	font-family: inherit;
	font-weight: 700;
	line-height: 1.2;
	/* !important so themes that style .entry-content h2 cannot win. */
	font-size: 24px !important;
	color: black !important;
}

.bns-modal__description {
	margin: 0 0 22px;
	color: var(--bns-muted);
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* ---------------------------------------------------------- destinations - */

.bns-destinations {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--bns-line);
}

.bns-destinations__item {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--bns-line);
}

.bns-destinations__item::before,
.bns-destinations__item::marker {
	content: none;
}

.bns-destination {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 14px 15px 16px;
	color: var(--bns-ink);
	text-decoration: none;
	transition: background-color 0.16s ease, padding-left 0.16s ease;
}

/* Signature: a hairline on the left edge that fills with the accent colour. */
.bns-destination::before {
	content: "";
	position: absolute;
	top: 12px;
	bottom: 12px;
	left: 0;
	width: 2px;
	background: var(--bns-accent);
	opacity: 0;
	transition: opacity 0.16s ease;
}

.bns-destination:hover,
.bns-destination:focus {
	background: rgba(15, 107, 95, 0.06);
	color: var(--bns-ink);
	text-decoration: none;
	padding-left: 22px;
}

.bns-destination:hover::before,
.bns-destination:focus::before {
	opacity: 1;
}

.bns-destination:focus-visible {
	outline: 3px solid var(--bns-focus);
	outline-offset: -3px;
}

.bns-destination__text {
	display: block;
	min-width: 0;
}

.bns-destination__name {
	display: block;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
}

.bns-destination__meta {
	display: block;
	margin-top: 2px;
	color: var(--bns-muted);
	font-size: 0.8125rem;
	line-height: 1.35;
}

.bns-destination__meta--here {
	color: var(--bns-accent);
	font-weight: 600;
}

.bns-destination__arrow {
	flex: 0 0 auto;
	color: var(--bns-accent);
	transition: transform 0.16s ease;
}

.bns-destination:hover .bns-destination__arrow,
.bns-destination:focus .bns-destination__arrow {
	transform: translateX(3px);
}

/* ----------------------------------------------------------- page state - */

.bns-modal-open {
	overflow: hidden;
}

.bns-u-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------- mobile - */

@media (max-width: 600px) {
	.bns-modal {
		align-items: flex-end;
		padding: 0;
	}

	.bns-modal__dialog {
		max-width: none;
		max-height: 88vh;
		padding: 28px 20px 22px;
		border-radius: var(--bns-radius-panel) var(--bns-radius-panel) 0 0;
		animation-name: bns-sheet;
	}

	.bns-destination {
		padding-top: 17px;
		padding-bottom: 17px;
	}

	.bns-wrap--full .bns-btn,
	.bns-btn--large.bns-btn--large {
		font-size: 1rem;
	}
}

/* Tablet and phone headers: the default desktop padding is too generous to
   sit next to a logo and a hamburger, and overflow forces the label to wrap. */
@media (max-width: 782px) {
	.bns-btn.bns-btn {
		gap: 0.4em;
		padding: 0.72em 1.3em;
		font-size: 0.9375rem;
	}

	.bns-btn--large.bns-btn--large {
		padding: 0.8em 1.5em;
		font-size: 1rem;
	}

	.bns-btn--small.bns-btn--small {
		padding: 0.55em 1.05em;
		font-size: 0.8125rem;
	}
}

@media (max-width: 420px) {
	.bns-btn.bns-btn {
		padding: 0.65em 1.05em;
		font-size: 0.875rem;
		letter-spacing: 0;
	}

	/* A full-width CTA has room; keep it at a comfortable tap size. */
	.bns-wrap--full .bns-btn.bns-btn {
		padding: 0.9em 1.2em;
		font-size: 1rem;
	}

	.bns-btn__icon {
		width: 14px;
		height: 14px;
	}
}

@keyframes bns-sheet {
	from {
		transform: translateY(100%);
	}

	to {
		transform: translateY(0);
	}
}

/* ------------------------------------------------------- user preferences */

@media (prefers-reduced-motion: reduce) {
	.bns-btn.bns-btn,
	.bns-btn__icon,
	.bns-destination,
	.bns-destination__arrow,
	.bns-modal__close {
		transition: none;
	}

	.bns-modal__dialog {
		animation: none;
	}

	.bns-btn.bns-btn:hover,
	.bns-btn.bns-btn:focus {
		transform: none;
	}
}

@media (prefers-contrast: more) {
	.bns-destinations,
	.bns-destinations__item {
		border-color: var(--bns-ink);
	}
}

@media print {
	.bns-modal {
		display: none !important;
	}
}
