/* BHG Late Availability — public calendar & enquiry modal.
   Grid/toolbar theming ported from the old "wedding-scheduler" plugin
   this replaces, so every venue site keeps the same look it already had.
   Font-family is inherited from the theme rather than hardcoded (the old
   plugin hardcoded Peckforton's own "Futura PT"/"Playfair Display", but
   this plugin now runs on all three venue sites, which don't share a
   type system) — only the italic multi-month/weekday headers keep an
   explicit serif, as a deliberate design flourish, with a safe fallback. */

.bhg-la-calendar {
	max-width: 100%;
	margin: 0 auto 2rem;
	min-height: 550px;
	overflow-x: auto;
	--fc-bg-event-opacity: 0.7;
	--fc-border-color: rgba(12, 22, 58, 0.08);
	--fc-today-bg-color: rgba(205, 127, 47, 0.06);
	--fc-button-bg-color: #0c163a;
	--fc-button-border-color: #0c163a;
	--fc-button-hover-bg-color: transparent;
	--fc-button-hover-border-color: #0c163a;
	--fc-button-active-bg-color: rgba(12, 22, 58, 0.8);
}

.bhg-la-calendar .fc {
	font-family: inherit;
}

.bhg-la-calendar a {
	text-decoration: none !important;
	color: #0c163a !important;
}

/* ── Grid ─────────────────────────────────────────────────────────── */
.bhg-la-calendar .fc-daygrid-day-frame {
	padding: 15px;
}

.bhg-la-calendar .fc-daygrid-day-number {
	z-index: 1;
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.05em;
	color: #0c163a;
	text-decoration: none;
}

.bhg-la-calendar .fc-bg-event {
	cursor: pointer;
	opacity: 0.85;
}

/* ── Toolbar ──────────────────────────────────────────────────────── */
.bhg-la-calendar .fc-toolbar-title {
	text-align: center;
	font-size: clamp(1rem, 2vw, 1.75rem);
	font-weight: 200;
	letter-spacing: -0.01em;
	color: #0c163a;
	text-transform: uppercase;
}

.bhg-la-calendar .fc-toolbar-chunk {
	text-align: right;
}

.bhg-la-calendar .fc-prev-button,
.bhg-la-calendar .fc-next-button,
.bhg-la-calendar .fc-enquireButton-button {
	margin-top: 10px;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.bhg-la-calendar .fc-button-primary {
	background: #0c163a !important;
	border: 1px solid #0c163a !important;
	border-radius: 0 !important;
	font-size: 0.65rem !important;
	font-weight: 400 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	padding: 0.6rem 1.25rem !important;
	box-shadow: none !important;
	transition: background 0.3s ease, color 0.3s ease !important;
}

.bhg-la-calendar .fc-button-primary:hover,
.bhg-la-calendar .fc-button-primary:focus {
	background: transparent !important;
	color: #0c163a !important;
	border-color: #0c163a !important;
	box-shadow: none !important;
}

.bhg-la-calendar .fc-button-primary:disabled {
	background: rgba(12, 22, 58, 0.3) !important;
	border-color: transparent !important;
	cursor: not-allowed !important;
}

/* ── Table borders ────────────────────────────────────────────────── */
.bhg-la-calendar.fc-theme-standard td,
.bhg-la-calendar .fc-theme-standard td,
.bhg-la-calendar .fc-theme-standard th {
	border: 1px solid rgba(12, 22, 58, 0.08) !important;
}

/* ── Column headers ───────────────────────────────────────────────── */
.bhg-la-calendar th.fc-col-header-cell.fc-day {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-weight: 400;
	font-size: 0.9rem;
	color: rgba(12, 22, 58, 0.5);
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(12, 22, 58, 0.1) !important;
}

/* ── Day states ───────────────────────────────────────────────────── */
.bhg-la-calendar .fc-day-past,
.bhg-la-calendar .fc-day-future {
	background-color: rgba(12, 22, 58, 0.03);
}

.bhg-la-calendar .fc-day-today {
	background-color: rgba(205, 127, 47, 0.06) !important;
}

/* ── Multimonth title ─────────────────────────────────────────────── */
.bhg-la-calendar .fc-multimonth-title {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-weight: 400;
	font-size: 1.4rem;
	color: #0c163a;
	text-transform: none;
	letter-spacing: 0;
}

.bhg-la-error {
	text-align: center;
	color: #b91c1c;
	padding: 2rem 1rem;
}

/* ── Modal ──────────────────────────────────────────────────────────── */
.bhg-la-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(12, 22, 58, 0.55);
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.bhg-la-modal.is-open {
	display: flex;
}

body.bhg-la-modal-open {
	overflow: hidden;
}

.bhg-la-modal-content {
	position: relative;
	background: #fff;
	border-radius: 10px;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 2.5rem 2rem 2rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bhg-la-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.bhg-la-modal-close:hover {
	color: #0c163a;
}

.bhg-la-date {
	margin: 0 0 1rem;
	font-size: 1.4rem;
	font-weight: 600;
	color: #0c163a;
	text-align: center;
}

.bhg-la-full-price,
.bhg-la-offer-price,
.bhg-la-guests {
	text-align: center;
	margin: 0.25rem 0;
	font-size: 1.05rem;
}

.bhg-la-full-price.bhg-la-has-offer {
	text-decoration: line-through;
	color: #94a3b8;
	font-size: 0.95rem;
}

.bhg-la-offer-price {
	color: #cd7f2f;
	font-weight: 600;
}

.bhg-la-message {
	text-align: center;
	margin: 1rem 0;
	color: #334155;
}

.bhg-la-form-wrap {
	margin-top: 1.5rem;
}

.bhg-la-no-form {
	text-align: center;
	margin-top: 1.5rem;
	color: #64748b;
}

@media (max-width: 768px) {
	.bhg-la-modal {
		padding: 1rem;
	}

	.bhg-la-modal-content {
		padding: 2rem 1.25rem 2rem;
		max-height: calc(100vh - 2rem);
		max-width: calc(100vw - 2rem);
		width: 100%;
	}

	.bhg-la-calendar .fc-toolbar {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 0.75rem !important;
	}

	.bhg-la-calendar .fc-toolbar-chunk {
		text-align: left !important;
		display: flex !important;
		flex-wrap: wrap !important;
		gap: 0.5rem !important;
		width: 100% !important;
	}

	.bhg-la-calendar .fc-toolbar-title {
		font-size: 1.25rem !important;
	}

	.bhg-la-calendar .fc-button-primary {
		font-size: 0.6rem !important;
		padding: 0.5rem 0.85rem !important;
		letter-spacing: 0.12em !important;
	}

	.bhg-la-calendar .fc-enquireButton-button {
		width: 100% !important;
		margin-top: 0 !important;
		justify-content: center !important;
	}

	.bhg-la-calendar .fc-prev-button,
	.bhg-la-calendar .fc-next-button {
		margin-top: 0 !important;
		flex: 1 !important;
		justify-content: center !important;
	}

	.bhg-la-calendar .fc-multimonth {
		grid-template-columns: 1fr !important;
	}

	.bhg-la-calendar .fc-multimonth-title {
		font-size: 1.1rem !important;
	}

	.bhg-la-calendar th.fc-col-header-cell.fc-day {
		font-size: 0.75rem !important;
		padding: 0.25rem 0 !important;
	}

	.bhg-la-calendar .fc-daygrid-day-number {
		font-size: 0.65rem !important;
	}

	.bhg-la-calendar .fc-daygrid-day-frame {
		padding: 6px !important;
	}
}
