/* Pindlers Booking — public calendar. Colours come from CSS variables set on .pb-cal. */
.pb-cal {
	--pb-available: #6aae34;
	--pb-booked: #b5281f;
	--pb-pending: #d49a36;
	--pb-header: #4d4d4d;
	--pb-muted: #c9c9c9;
	margin: 1.5em 0;
}

.pb-cal__months {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	border: 6px solid var(--pb-header);
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pb-cal__month { min-width: 0; }

.pb-cal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--pb-header);
	color: #fff;
	padding: 0.9em 0.6em;
	font-size: 1.15em;
	letter-spacing: 0.03em;
}

.pb-cal__title { flex: 1; text-align: center; }

.pb-cal__nav,
.pb-cal__nav-spacer {
	width: 2em;
	flex: 0 0 2em;
}

.pb-cal__nav {
	background: none;
	border: 0;
	color: #fff;
	font-size: 1.6em;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.pb-cal__nav:hover,
.pb-cal__nav:focus-visible { opacity: 0.75; }

.pb-cal__grid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	margin: 0;
	border: 0;
}

.pb-cal__grid th {
	font-weight: 500;
	font-size: 0.85em;
	color: #555;
	padding: 0.9em 0 0.6em;
	text-align: center;
	border: 0;
	background: none;
}

.pb-day {
	text-align: center;
	padding: 0;
	height: 2.8em;
	border: 1px solid #fff;
	font-size: 0.95em;
}

.pb-day__num,
.pb-day__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 2.8em;
}

.pb-day--blank { background: #fff; }
.pb-day--past,
.pb-day--unavailable { color: var(--pb-muted); background: #fff; }
.pb-day--available { background: var(--pb-available); color: #fff; }
.pb-day--booked { background: var(--pb-booked); color: #3a0b08; }
.pb-day--pending { background: var(--pb-pending); color: #3d2a06; }

.pb-day.is-today .pb-day__num,
.pb-day.is-today .pb-day__btn { font-weight: 700; text-decoration: underline; }

/* Selectable (booking page) and linked days (availability page) */
a.pb-day__btn { color: inherit; text-decoration: none; }
.pb-day__btn {
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.pb-day--available:hover,
.pb-day--available:focus-within { filter: brightness(0.92); }
.pb-day__btn:focus-visible { outline: 3px solid #222; outline-offset: -3px; }
.pb-day.is-selected { background: #3b2a74; color: #fff; }

.pb-cal.is-loading .pb-cal__body { opacity: 0.5; transition: opacity 0.15s; }

/* Legend */
.pb-cal__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em 2em;
	list-style: none;
	margin: 1em 0 0;
	padding: 0;
	font-size: 1.1em;
}
.pb-cal__legend li { display: flex; align-items: center; gap: 0.6em; margin: 0; }
.pb-cal__swatch { display: inline-block; width: 2.2em; height: 2.2em; }
.pb-cal__swatch.pb-day--available { background: var(--pb-available); }
.pb-cal__swatch.pb-day--booked { background: var(--pb-booked); }
.pb-cal__swatch.pb-day--pending { background: var(--pb-pending); }

@media (max-width: 600px) {
	.pb-cal__months { grid-template-columns: 1fr; }
	.pb-cal__month + .pb-cal__month { border-top: 6px solid var(--pb-header); }
}

@media print {
	.pb-cal__nav { display: none; }
	.pb-day, .pb-cal__swatch, .pb-cal__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
