/* ── PropBook Calendar widget v1.6.9 ─────────────────────────────── */
.propbook-cal {
	--pb-cal-day-size: 3.5rem;
	--pb-cal-day-max:  3.75rem;
	--pb-navy:      #0f2044;
	--pb-gold:      #c9a84c;
	--pb-gold-lt:   rgba(201,168,76,0.12);
	--pb-gold-fg:   #fff;
	--pb-text:      #1a2840;
	--pb-muted:     #6b7280;
	--pb-border:    #e8ecf2;
	--pb-surface:   #ffffff;
	--pb-bg2:       #f5f7fa;
	--pb-radius:    16px;

	display: flex;
	flex-direction: column;
	/* Width is controlled by the Elementor section / column container.
	   Use the max_width shortcode attribute or Elementor's column width
	   setting to restrict it. */
	width: 100%;
	background: var(--pb-surface);
	border-radius: var(--pb-radius);
	box-shadow: 0 4px 28px rgba(15,32,68,0.10);
	overflow: hidden;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--pb-text);
}

@media (min-width: 700px) {
	.propbook-cal {
		--pb-cal-day-size: 4.125rem;
		--pb-cal-day-max:  4.5rem;
		flex-direction: row;
		min-height: 520px;
	}
}

/* ── Calendar column (≈75% width vs slot column when in a row) ────── */
.propbook-cal__calendar-col {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 1.5rem;
}
@media (min-width: 700px) {
	/* Explicit ~75% calendar / 25% slots (Elementor often fights flex:3/1) */
	.propbook-cal__calendar-col {
		flex: 0 1 75%;
		max-width: 75%;
		min-width: 0;
	}
}

/* Top bar: 🌐 TZ + session type — one tight row; calendar ~75% / slots ~25% (see .calendar-col / .side) */
.propbook-cal .propbook-cal__embed-bar {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	align-content: center;
	justify-content: space-between;
	gap: 0.35rem 0.75rem;
	padding: 0 0 0.4rem;
	margin: 0 0 0.5rem;
	border-bottom: 1px solid var(--pb-border);
	font-size: 0.8rem;
	min-height: 0;
	min-width: 0;
}
@media (min-width: 400px) {
	.propbook-cal .propbook-cal__embed-bar {
		flex-wrap: nowrap !important;
	}
}
.propbook-cal .propbook-cal__embed-bar-left {
	display: inline-flex !important;
	align-items: center;
	gap: 0.35rem;
	color: var(--pb-muted);
	min-width: 0;
	flex: 0 1 auto;
	width: auto !important;
	max-width: 100%;
}
/* Label + select behave as one control; resists theme full-width label/select */
.propbook-cal .propbook-cal__type-group {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-wrap: nowrap !important;
	gap: 0.4rem 0.5rem;
	min-width: 0;
	max-width: 100%;
	flex: 1 1 12rem;
	margin: 0 !important;
}
@media (min-width: 400px) {
	.propbook-cal .propbook-cal__type-group {
		flex: 0 1 auto;
		margin-left: auto !important;
	}
}
.propbook-cal__globe {
	font-size: 1rem;
	line-height: 1;
	opacity: 0.85;
}
.propbook-cal__tz-label {
	font-weight: 500;
	color: var(--pb-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.propbook-cal .propbook-cal__embed-bar .propbook-cal__type-group .propbook-cal__type-label,
.propbook-cal .propbook-cal__embed-bar .propbook-cal__type-label {
	display: inline !important;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--pb-muted);
	white-space: nowrap;
	flex: 0 0 auto;
	margin: 0 !important;
	width: auto !important;
	max-width: none !important;
	line-height: 1.2;
}
.propbook-cal .propbook-cal__type-group .propbook-cal__type-select,
.propbook-cal .propbook-cal__type-select {
	width: auto !important;
	max-width: min(14rem, 100%) !important;
	min-width: 7.5rem;
	min-height: 0;
	flex: 1 1 auto;
	padding: 0.3rem 0.45rem;
	border-radius: 8px;
	border: 1px solid var(--pb-border);
	background: #fff;
	font-size: 0.78rem;
	color: var(--pb-text);
	box-sizing: border-box;
}

/* Toolbar */
.propbook-cal__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.propbook-cal__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--pb-navy);
}

.propbook-cal__nav {
	appearance: none;
	border: none;
	background: transparent;
	color: var(--pb-muted);
	font-size: 1.4rem;
	line-height: 1;
	width: 2rem;
	height: 2rem;
	border-radius: 6px;
	cursor: pointer;
	transition: color 0.12s, background 0.12s;
}
.propbook-cal__nav:hover:not(:disabled) { color: var(--pb-gold); background: var(--pb-gold-lt); }
.propbook-cal__nav:disabled { opacity: 0.28; cursor: not-allowed; }

/* Grid */
.propbook-cal__grid { width: 100%; border-collapse: collapse; }
.propbook-cal__grid th {
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--pb-muted);
	padding: 0 0.1rem 0.65rem;
	text-align: center;
}
.propbook-cal__grid td {
	padding: 0.35rem;
	text-align: center;
	vertical-align: middle;
}

.propbook-cal__day {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: var(--pb-cal-day-max);
	min-width: 0;
	min-height: var(--pb-cal-day-size);
	height: var(--pb-cal-day-size);
	padding: 0;
	border: 1px solid transparent;
	border-radius: 12px;
	background: transparent;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--pb-text);
	cursor: pointer;
	transition: border-color 0.12s, background 0.12s, color 0.12s, box-shadow 0.12s;
	box-sizing: border-box;
}
.propbook-cal__day--has {
	font-weight: 600;
	border-color: #e5e7eb;
	background: #f3f4f6;
}
.propbook-cal__day--has:hover {
	border-color: #cbd5e1;
	color: var(--pb-navy);
	background: #eef2f7;
}
/* Local “today” — gold inset ring (distinct from availability border) */
.propbook-cal__day--today {
	box-shadow: inset 0 0 0 2px var(--pb-gold, #c9a84c);
}
.propbook-cal__day--today:hover:not(:disabled) {
	box-shadow: inset 0 0 0 2px var(--pb-gold, #c9a84c);
}
/* Selected day is the focus; drop today ring so blue fill reads cleanly */
.propbook-cal__day--selected.propbook-cal__day--today {
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25) !important;
}
.propbook-cal__day--selected {
	background: #2563eb !important;
	border-color: #1d4ed8 !important;
	color: #fff !important;
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}
.propbook-cal__day:disabled { opacity: 0.22; cursor: not-allowed; }
/* Today without availability: still readable + ring (general disabled is very faint) */
.propbook-cal__day--today:disabled {
	opacity: 0.5;
	box-shadow: inset 0 0 0 2px var(--pb-gold, #c9a84c);
}

/* ── Slots panel (right) ───────────────────────────────────────────── */
.propbook-cal__side {
	padding: 1.5rem;
	border-top: 1px solid var(--pb-border);
}

@media (min-width: 700px) {
	.propbook-cal__side {
		flex: 0 1 25%;
		max-width: 25%;
		min-width: 0;
		border-top: none;
		border-left: 1px solid var(--pb-border);
		overflow-y: auto;
		max-height: 620px;
	}
}

.propbook-cal__hint {
	margin: 0 0 0.75rem;
	color: var(--pb-muted);
	font-size: 0.82rem;
}

.propbook-cal__loading { color: var(--pb-muted); font-size: 0.82rem; margin: 0; }

.propbook-cal__slots-date {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pb-navy);
	margin: 0 0 0.6rem;
}

.propbook-cal__slot-btns { display: flex; flex-direction: column; gap: 0.3rem; }

.propbook-cal__slots-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.45rem;
}
.propbook-cal__slots-head .propbook-cal__slots-date { margin-bottom: 0; }

.propbook-cal__slots-help-toggle {
	flex-shrink: 0;
	appearance: none;
	cursor: pointer;
	margin: 0;
	padding: 0.1rem 0.25rem;
	border: none;
	border-radius: 4px;
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--pb-muted);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	transition: color 0.12s, background 0.12s;
}
.propbook-cal__slots-help-toggle:hover {
	color: var(--pb-navy);
	background: rgba(15, 32, 68, 0.06);
}
.propbook-cal__slots-help__icon {
	display: block;
	font-family: inherit;
}

.propbook-cal__help-popover {
	position: fixed;
	z-index: 100002;
	background: var(--pb-card, #fff);
	border: 1px solid var(--pb-border);
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(15, 32, 68, 0.2);
	box-sizing: border-box;
	max-width: min(288px, calc(100vw - 16px));
}
.propbook-cal__help-popover[hidden] {
	display: none !important;
}
.propbook-cal__help-popover-header {
	display: flex;
	justify-content: flex-end;
	padding: 0.2rem 0.35rem 0;
}
.propbook-cal__help-popover-close {
	appearance: none;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	color: var(--pb-muted);
	padding: 0.1rem 0.35rem;
	border-radius: 4px;
}
.propbook-cal__help-popover-close:hover {
	color: var(--pb-navy);
	background: var(--pb-bg2);
}
.propbook-cal__help-popover-body {
	padding: 0 0.65rem 0.65rem;
	font-size: 0.78rem;
	line-height: 1.45;
	color: var(--pb-muted);
}

.propbook-cal__slot-actions { margin-top: 0.65rem; }
.propbook-cal__slot-selection {
	margin: 0 0 0.45rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--pb-navy);
	min-height: 1.2em;
}
.propbook-cal__slot-continue {
	appearance: none;
	display: block;
	width: 100%;
	padding: 0.5rem 0.65rem;
	border: none;
	border-radius: 8px;
	background: var(--pb-gold);
	color: #fff;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s, background 0.15s;
}
.propbook-cal__slot-continue:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}
.propbook-cal__slot-continue:not(:disabled):hover {
	background: var(--pb-gold-dk, #b8923f);
}

.propbook-cal__slot {
	appearance: none;
	display: block;
	width: 100%;
	text-align: center;
	padding: 0.45rem 0.5rem;
	border: 1px solid var(--pb-border);
	border-radius: 8px;
	background: var(--pb-surface);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 500;
	color: var(--pb-text);
	cursor: pointer;
	transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.propbook-cal__slot:hover {
	border-color: var(--pb-gold);
	background: var(--pb-gold-lt);
	color: var(--pb-navy);
}
.propbook-cal .propbook-cal__slot--selected {
	border-color: #0f2044 !important;
	background-color: #0f2044 !important;
	color: #fff !important;
}
.propbook-cal .propbook-cal__slot--selected:hover {
	border-color: #0f2044 !important;
	background-color: #1a2d52 !important;
	color: #fff !important;
}

.propbook-cal__err,
.propbook-cal__empty { margin: 0; color: var(--pb-muted); font-size: 0.82rem; }

.propbook-cal-error {
	padding: 0.75rem 1rem;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	color: #991b1b;
	background: #fef2f2;
	font-size: 0.875rem;
}

/* ── Booking modal ───────────────────────────────────────────────── */
.pb-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	/* Portal lives on <body>, outside .propbook-cal - re-declare tokens so var() works */
	--pb-navy: #0f2044;
	--pb-gold: #c9a84c;
	--pb-text: #1a2840;
	--pb-muted: #6b7280;
	--pb-border: #e8ecf2;
	--pb-gold-lt: rgba(201, 168, 76, 0.12);
	background: rgba(15,32,68,0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	transition: opacity 0.22s ease;
}
.pb-modal-overlay--open { opacity: 1; }

.pb-modal {
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 500px;
	max-height: 92vh;
	overflow-y: auto;
	padding: 1.75rem 1.75rem 2rem;
	position: relative;
	box-shadow: 0 24px 64px rgba(15,32,68,0.22);
	transform: translateY(20px);
	transition: transform 0.22s ease;
}
.pb-modal-overlay--open .pb-modal { transform: translateY(0); }

.pb-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	appearance: none;
	border: none;
	background: transparent;
	font-size: 1.35rem;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
	padding: 0.25rem 0.35rem;
	border-radius: 6px;
	transition: color 0.12s, background 0.12s;
}
.pb-modal__close:hover { color: #111827; background: #f3f4f6; }

.pb-modal__title {
	margin: 0 2rem 1rem 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--pb-navy);
	line-height: 1.3;
}
.pb-modal__meta { display: flex; flex-direction: column; gap: 0.4rem; }
.pb-modal__meta-row { display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.88rem; color: #374151; }
.pb-modal__meta-key {
	flex-shrink: 0;
	width: 5rem;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #9ca3af;
}

.pb-modal__hr { border: none; border-top: 1px solid #f3f4f6; margin: 1.25rem 0; }

.pb-modal__section-label {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #9ca3af;
	margin: 0 0 0.85rem;
}

.pb-modal__sep { border-top: 1px solid #f3f4f6; margin: 1rem 0; }

.pb-q { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.85rem; }

.pb-q-label {
	font-size: 0.88rem;
	font-weight: 500;
	color: #374151;
	line-height: 1.4;
}

.pb-q-req { color: #dc2626; margin-left: 0.15rem; font-weight: 700; }

.pb-q-input,
.pb-q textarea,
.pb-q select {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.7rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
	font: inherit;
	font-size: 0.9rem;
	color: #111827;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.pb-q-input:focus,
.pb-q textarea:focus,
.pb-q select:focus {
	outline: none;
	border-color: var(--pb-gold);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(201,168,76,0.14);
}

.pb-q-options { display: flex; flex-direction: column; gap: 0.4rem; }
.pb-q-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.88rem;
	color: #374151;
	cursor: pointer;
}
.pb-q-option input { cursor: pointer; accent-color: var(--pb-gold); }

.pb-modal__result {
	font-size: 0.88rem;
	color: #dc2626;
	margin-bottom: 0.6rem;
	min-height: 1.2em;
}

/* Explicit hex + !important: Elementor / theme often resets generic `button` inside popups */
.pb-modal-overlay .pb-modal .pb-modal__form button.pb-modal__submit[type="submit"] {
	appearance: none;
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	margin-top: 0.25rem;
	border: 1px solid #a0883a;
	border-radius: 10px;
	background-color: var(--pb-gold, #c9a84c) !important;
	color: #ffffff !important;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: filter 0.15s, transform 0.1s, background-color 0.15s;
}
.pb-modal-overlay .pb-modal .pb-modal__form button.pb-modal__submit[type="submit"]:hover:not(:disabled) {
	filter: brightness(1.08);
	background-color: #d4b45c !important;
}
.pb-modal-overlay .pb-modal .pb-modal__form button.pb-modal__submit[type="submit"]:active:not(:disabled) { transform: scale(0.98); }
.pb-modal-overlay .pb-modal .pb-modal__form button.pb-modal__submit[type="submit"]:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	filter: none;
}

.pb-modal__success {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.5rem 0;
	gap: 0.75rem;
}
.pb-modal__success-check {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--pb-navy);
	color: #fff;
	font-size: 1.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
}
.pb-modal__success-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--pb-navy); }
.pb-modal__success-detail { margin: 0; font-size: 0.9rem; color: #6b7280; }
.pb-modal__done-btn {
	appearance: none;
	margin-top: 0.5rem;
	padding: 0.55rem 1.5rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: transparent;
	font: inherit;
	font-size: 0.9rem;
	cursor: pointer;
	color: #374151;
	transition: background 0.12s;
}
.pb-modal__done-btn:hover { background: #f3f4f6; }
