/* Floor plan – shared by booking form and admin. */
.spr-plan-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 10px;
	background: #f3f1ee;
}
.spr-plan {
	position: relative;
	width: 100%;
	min-width: 640px;
	user-select: none;
}
.spr-plan-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
	pointer-events: none;
	max-width: none !important;
}
.spr-plan .spr-table {
	position: absolute;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	margin: 0;
	padding: 0;
	min-width: 0;
	border: 2px solid rgba(255, 255, 255, .9);
	border-radius: 6px;
	background: rgba(60, 60, 60, .55);
	color: #fff;
	font: 600 13px/1.1 system-ui, -apple-system, "Segoe UI", sans-serif;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
	overflow: hidden;
}
.spr-plan .spr-shape-round { border-radius: 50%; }
.spr-plan .spr-table:disabled { cursor: not-allowed; }
.spr-plan .spr-table:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
/* Labels scale with the plan (zoomed-in areas get bigger numbers). */
.spr-plan { container-type: inline-size; }
.spr-table-label { font-size: clamp(9px, 1.5cqw, 18px); }
.spr-table-sub { font-size: clamp(7px, .9cqw, 11px); font-weight: 500; max-width: 100%; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* States */
.spr-plan .is-free { background: color-mix(in srgb, var(--spr-free, rgb(31, 135, 84)) 80%, transparent); }
.spr-plan .is-free:hover { transform: scale(1.06); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.spr-plan .is-busy { background: color-mix(in srgb, var(--spr-busy, rgb(178, 46, 46)) 75%, transparent); }
.spr-plan .is-unsuitable { background: rgba(90, 90, 90, .45); border-color: rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .8); }
.spr-plan .is-selected {
	background: var(--spr-accent, #1f4e79);
	border-color: #fff;
	box-shadow: 0 0 0 3px var(--spr-accent, #1f4e79), 0 6px 18px rgba(0, 0, 0, .4);
	transform: scale(1.06);
	z-index: 2;
}
.spr-plan .is-pending { background: rgba(214, 140, 20, .85); }
.spr-plan .is-arrived { background: rgba(40, 90, 160, .85); }

.spr-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }
.spr-swatch.is-free { background: var(--spr-free, rgb(31, 135, 84)); }
.spr-swatch.is-busy { background: var(--spr-busy, rgb(178, 46, 46)); }
.spr-swatch.is-unsuitable { background: rgba(90, 90, 90, .45); }
.spr-swatch.is-selected { background: var(--spr-accent, #1f4e79); }
.spr-swatch.is-pending { background: rgb(214, 140, 20); }
.spr-swatch.is-arrived { background: rgb(40, 90, 160); }
