/* -----------------------------------------------------------------------
 * Retire the old "booking coming soon" Divi popup.
 * The Book Now buttons still point at #popup-booking-coming-soon; this plugin
 * intercepts those clicks and opens the real availability dialog instead. The
 * rule below means that even if the Divi popup plugin wins a race and opens its
 * placeholder, the guest sees our dialog and no leftover "coming soon" panel.
 * Deactivate this plugin to bring the original popup back.
 * -------------------------------------------------------------------- */
#popup-booking-coming-soon {
	display: none !important;
}

/* Reef 906 availability calendar + booking dialog */

/* Palette is declared on both the inline block and the dialog: custom properties
 * inherit, so declaring it on .r906 alone left every var(--r906-*) undefined
 * inside the modal, which made a selected day lose its background while keeping
 * white text - an invisible date. */
.r906,
.r906-modal {
	--r906-ink: #12263a;
	--r906-muted: #5a6b7c;
	--r906-line: #d7dee6;
	--r906-free: #e9f7ef;
	--r906-free-ink: #1d6b45;
	--r906-blocked: #f4e3e3;
	--r906-blocked-ink: #8c2f2f;
	--r906-picked: #4968ff;
	--r906-picked-soft: #dfe6ff;
	--r906-accent: #4968ff;
}

.r906 {
	color: var(--r906-ink, #12263a);
	max-width: 900px;
}

.r906__heading {
	margin: 0 0 0.35em;
}

.r906__intro {
	margin: 0 0 1em;
	color: var(--r906-muted);
}

/* legend */
.r906-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1.1em;
	list-style: none;
	margin: 0 0 1em;
	padding: 0;
	font-size: 0.9em;
	color: var(--r906-muted);
}

.r906-legend li {
	display: flex;
	align-items: center;
	gap: 0.45em;
	margin: 0;
}

.r906-dot {
	width: 0.85em;
	height: 0.85em;
	border-radius: 50%;
	display: inline-block;
	border: 1px solid var(--r906-line);
}

.r906-dot--free { background: var(--r906-free); border-color: #b9dfc8; }
.r906-dot--blocked { background: var(--r906-blocked); border-color: #e3bcbc; }
.r906-dot--picked { background: var(--r906-picked); border-color: var(--r906-picked); }

/* calendar */
.r906-cal {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5em;
	margin-bottom: 1.2em;
}

.r906-month { width: 100%; }

.r906-month__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.5em;
}

.r906-month__label {
	font-weight: 700;
	font-size: 1.05em;
}

.r906-nav {
	border: 1px solid var(--r906-line);
	background: #fff;
	border-radius: 6px;
	width: 2em;
	height: 2em;
	line-height: 1;
	cursor: pointer;
	color: var(--r906-ink);
	font-size: 1.1em;
}

.r906-nav:hover { background: #f3f6fa; }
.r906-nav--ghost { border: 0; background: none; pointer-events: none; }

.r906-jump {
	display: block;
	margin: 0 0 0.6em;
	padding: 0;
	border: 0;
	background: none;
	color: var(--r906-accent, #4968ff);
	font-size: 0.82em;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.r906-grid {
	width: 100%;
	border-collapse: separate;
	border-spacing: 2px;
	table-layout: fixed;
}

.r906-grid th {
	font-size: 0.72em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--r906-muted);
	font-weight: 600;
	padding: 0.25em 0;
}

.r906-cell {
	text-align: center;
	padding: 0;
	height: 2.4em;
	vertical-align: middle;
	border-radius: 6px;
	font-size: 0.95em;
}

.r906-grid td.r906-cell {
	position: relative;
}

.r906-num {
	display: block;
	padding: 0.45em 0 0.15em;
	line-height: 1.1;
}

/* tiny in/out marker so a chosen arrival and departure are obvious */
.r906-tag {
	display: block;
	font-size: 8px;
	font-style: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1;
	padding-bottom: 0.45em;
	opacity: 0.9;
}

.r906-cell--day { cursor: pointer; border: 1px solid transparent; }

/* hover only ever lifts a still-choosable day: picked, pending and past
   cells keep their own fill instead of washing out to near-white. */
.r906-cell.is-free:not(.is-picked):not(.is-pending):not(.is-past):hover {
	background: var(--r906-free-hover, #dfe7ff);
	border-color: var(--r906-picked, #4968ff);
}

.r906-cell.is-past {
	color: #9aa5b1;
	background: #f7f9fb;
	cursor: default;
}

.r906-cell.is-blocked {
	background: var(--r906-blocked, #f4e3e3);
	color: var(--r906-blocked-ink, #8c2f2f);
	text-decoration: line-through;
	cursor: pointer;
}

.r906-cell.is-today { border-color: var(--r906-picked, #4968ff); font-weight: 700; }

.r906-cell.is-pending {
	background: var(--r906-picked, #4968ff);
	color: #fff;
	font-weight: 700;
}

.r906-cell.is-picked {
	background: var(--r906-picked-soft, #dfe6ff);
	color: var(--r906-picked, #4968ff);
	font-weight: 600;
}

.r906-cell.is-picked-start {
	border-top-left-radius: 6px;
	border-bottom-left-radius: 6px;
	box-shadow: inset 3px 0 0 var(--r906-picked, #4968ff);
}

.r906-cell.is-picked-end {
	border-top-right-radius: 6px;
	border-bottom-right-radius: 6px;
	box-shadow: inset -3px 0 0 var(--r906-picked, #4968ff);
}

/* selected summary */
.r906-selected { margin: 0 0 0.8em; }

.r906-stays {
	list-style: none;
	margin: 0 0 0.4em;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45em;
}

.r906-stay {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6em 0.9em;
	background: #f5f8ff;
	border: 1px solid #d5e0ff;
	border-radius: 10px;
	padding: 0.6em 0.8em;
	font-size: 0.92em;
	margin: 0;
}

/* "Option 1" / "Option 2" — every card is labelled once comparing starts, the
   first one included, so a new option is obvious from its first click. */
.r906-stay__num {
	display: inline-block;
	background: var(--r906-picked, #4968ff);
	color: #fff;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	padding: 0.28em 0.6em;
	border-radius: 999px;
	white-space: nowrap;
}

.r906-stay .r906-stay__num { flex: 0 0 auto; }

.r906-pending .r906-stay__num,
.r906-auto .r906-stay__num { margin-right: 0.35em; }

.r906-auto {
	margin: 0 0 0.7em;
	padding: 0.6em 0.8em;
	background: #eef6f2;
	border-left: 4px solid var(--r906-picked, #4968ff);
	border-radius: 8px;
	font-size: 0.9em;
}

.r906-hint {
	margin: 0.2em 0 0.8em;
	font-size: 0.88em;
	font-weight: 600;
	color: var(--r906-picked, #4968ff);
}

.r906-stay__field {
	display: flex;
	flex-direction: column;
	gap: 0.1em;
	min-width: 8.5em;
}

.r906-stay__field em {
	font-style: normal;
	font-size: 0.72em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--r906-muted, #5a6b7c);
}

.r906-stay__field strong {
	font-weight: 700;
	color: var(--r906-ink, #12263a);
}

.r906-stay__arrow { color: var(--r906-picked, #4968ff); font-weight: 700; }

.r906-stay__nights {
	margin-left: auto;
	background: #fff;
	border: 1px solid #d5e0ff;
	border-radius: 999px;
	padding: 0.2em 0.7em;
	font-size: 0.85em;
	font-weight: 600;
	color: var(--r906-picked, #4968ff);
	white-space: nowrap;
}

.r906-stay__x {
	border: 0;
	background: rgba(73, 104, 255, 0.1);
	color: var(--r906-picked, #4968ff);
	border-radius: 50%;
	width: 1.7em;
	height: 1.7em;
	line-height: 1;
	cursor: pointer;
	font-size: 1em;
	flex: 0 0 auto;
}

.r906-totals {
	margin: 0 0 0.5em;
	font-size: 0.92em;
	color: var(--r906-ink, #12263a);
}

.r906-pending {
	margin: 0 0 0.6em;
	padding: 0.55em 0.75em;
	background: #eef3ff;
	border-left: 3px solid var(--r906-picked, #4968ff);
	border-radius: 4px;
	font-size: 0.92em;
}

.r906-more { margin: 0 0 0.6em; }

.r906-linkbtn {
	background: none;
	border: 0;
	padding: 0;
	color: var(--r906-picked, #4968ff);
	font: inherit;
	font-size: 0.88em;
	text-decoration: underline;
	cursor: pointer;
}

.r906-none { color: var(--r906-muted); font-size: 0.9em; margin: 0 0 0.8em; }

/* times and policies */
.r906-policy {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 1.2em;
	margin: 0.5em 0 0;
	font-size: 0.88em;
	color: var(--r906-muted, #5a6b7c);
}

.r906-policy span { display: inline-flex; gap: 0.35em; }

.r906-policy em {
	font-style: normal;
	font-weight: 700;
	color: var(--r906-ink, #12263a);
}

.r906-policy__note {
	margin: 0.35em 0 0;
	font-size: 0.82em;
	color: var(--r906-muted, #5a6b7c);
}

.r906-nudge {
	background: #fff8e6;
	border: 1px solid #f0dfa8;
	color: #7a5a00;
	border-radius: 8px;
	padding: 0.6em 0.8em;
	font-size: 0.92em;
	margin: 0 0 0.8em;
}

.r906-error {
	color: #a12b2b;
	font-size: 0.92em;
	margin: 0 0 0.8em;
	min-height: 0;
}

.r906-loading { color: var(--r906-muted); }

/* buttons */
.r906-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
	margin: 0.6em 0 0;
}

/* "nothing here is confirmed" note, right under the calendar */
.r906-disclaimer {
	margin: 0.6em 0 0.8em;
	padding: 0.55em 0.75em;
	background: #fff8e6;
	border-left: 3px solid #e0a800;
	border-radius: 4px;
	font-size: 0.85em;
	line-height: 1.4;
	color: #6b4e00;
}

.r906-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.65em 1.1em;
	border-radius: 8px;
	border: 1px solid var(--r906-line, #d7dee6);
	background: #fff;
	color: var(--r906-ink, #12263a);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95em;
	line-height: 1.2;
	cursor: pointer;
}

/* inline SVG icons keep the buttons readable at a glance */
.r906-icon {
	width: 1.15em;
	height: 1.15em;
	flex: 0 0 auto;
	display: block;
}

.r906-btn:hover { background: #f3f6fa; color: var(--r906-ink); }

.r906-btn--primary {
	background: linear-gradient(90deg, #4968ff 0%, #6fe5f3 100%);
	border: 0;
	color: #fff;
}

.r906-btn--primary:hover { color: #fff; opacity: 0.94; }

/* ------------------------------------------------------------------ */
/* Book Now in the site menu (header, compressed header, mobile menu)   */
/* ------------------------------------------------------------------ */

#top-menu > li.r906-booknow,
#et-secondary-nav > li.r906-booknow {
	padding-right: 0 !important;
}

#top-menu > li.r906-booknow > a,
#et-secondary-nav > li.r906-booknow > a {
	display: inline-block;
	background: var(--r906-picked, #4968ff);
	color: #fff !important;
	border-radius: 999px;
	padding: 0.5em 1.05em !important;
	margin-top: 0.15em;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.01em;
	text-decoration: none;
	opacity: 1 !important;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

#top-menu > li.r906-booknow > a:hover,
#et-secondary-nav > li.r906-booknow > a:hover {
	background: #3550e0;
	color: #fff !important;
	opacity: 1 !important;
}

/* the compressed/fixed header is shorter, so tighten the pill with it */
.et-fixed-header #top-menu > li.r906-booknow > a {
	padding: 0.4em 0.95em !important;
	margin-top: 0.1em;
}

/* mobile slide-in menu */
#mobile_menu li.r906-booknow > a,
.et_mobile_menu li.r906-booknow > a {
	background: var(--r906-picked, #4968ff);
	color: #fff !important;
	border-radius: 8px;
	margin: 0.35em 0.75em;
	text-align: center;
	font-weight: 700;
}

/* dialog */
.r906-lock, .r906-lock body { overflow: hidden; }

.r906-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1em;
}

.r906-modal[hidden] { display: none !important; }

.r906-modal__veil {
	position: absolute;
	inset: 0;
	background: rgba(8, 20, 34, 0.62);
}

.r906-modal__box {
	position: relative;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(6, 18, 32, 0.35);
	width: min(760px, 100%);
	max-height: calc(100vh - 2em);
	overflow: auto;
	padding: 1.6em 1.6em 1.4em;
	color: var(--r906-ink, #12263a);
}

.r906-modal__close {
	position: absolute;
	top: 0.5em;
	right: 0.6em;
	border: 0;
	background: none;
	font-size: 2em;
	line-height: 1;
	cursor: pointer;
	color: var(--r906-muted);
	padding: 0 0.2em;
}

.r906-modal__title { margin: 0 0 0.2em; font-size: 1.4em; }
.r906-modal__sub { margin: 0 0 1em; color: var(--r906-muted); font-size: 0.95em; }

/* The call comes first and reads loudest; the calendar is a guide underneath. */
.r906-callfirst {
	background: #eef6f2;
	border: 1px solid #cfe6da;
	border-left: 5px solid var(--r906-picked);
	border-radius: 10px;
	padding: 0.95em 1.15em;
	margin: 0 0 1.1em;
}

.r906-callfirst__lead {
	margin: 0 0 0.15em;
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--r906-muted);
}

.r906-callfirst__phone {
	margin: 0 0 0.35em;
	font-size: 1.6em;
	font-weight: 800;
	line-height: 1.15;
}

.r906-callfirst__phone a {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--r906-picked);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.r906-callfirst__phone a:hover,
.r906-callfirst__phone a:focus-visible { border-bottom-color: currentColor; }

.r906-callfirst__note { margin: 0; font-size: 0.95em; }

/* Availability is deliberately demoted: a quiet label, not the headline. */
.r906-avail-label {
	margin: 0 0 0.4em;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--r906-muted);
}

.r906-callout {
	background: #f3f7ff;
	border: 1px solid #d5e0ff;
	border-radius: 10px;
	padding: 0.8em 1em;
	margin: 0 0 1em;
	font-size: 0.95em;
}

.r906-callout p { margin: 0.2em 0; }

.r906-label {
	display: block;
	font-weight: 600;
	font-size: 0.9em;
	margin-bottom: 0.35em;
}

.r906-text {
	width: 100%;
	border: 1px solid var(--r906-line);
	border-radius: 8px;
	padding: 0.65em 0.75em;
	font: inherit;
	font-size: 0.95em;
	resize: vertical;
	margin-bottom: 0.35em;
}

.r906-small { color: var(--r906-muted); font-size: 0.82em; margin: 0 0 0.9em; }

/* who's coming: adults, children, cars */
.r906-party {
	border: 1px solid var(--r906-line, #dbe3ec);
	border-radius: 10px;
	padding: 0.7em 0.85em 0.85em;
	margin: 0 0 0.9em;
	display: flex;
	flex-wrap: wrap;
	gap: 0.7em 1.1em;
}

.r906-party legend {
	font-weight: 600;
	font-size: 0.9em;
	padding: 0 0.4em;
}

.r906-party__field {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
	font-size: 0.82em;
	color: var(--r906-muted, #5a6b7c);
}

.r906-party__field input {
	width: 5.5em;
	padding: 0.4em 0.5em;
	border: 1px solid var(--r906-line, #dbe3ec);
	border-radius: 8px;
	font: inherit;
	font-size: 1.05em;
	color: var(--r906-ink, #12263a);
}

/* mobile */
@media (max-width: 640px) {
	.r906-modal { padding: 0; align-items: flex-end; }
	.r906-modal__box {
		width: 100%;
		max-height: 92vh;
		border-radius: 14px 14px 0 0;
		padding: 1.2em 1em 1.4em;
	}
	.r906-cal { grid-template-columns: 1fr; }
	.r906-btn { flex: 1 1 100%; text-align: center; }
	.r906-grid { font-size: 0.95em; }
}

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