/* BinduBooking – the map itself. Shared by the editor, the admin thumbnails and the front end. */
.bb-map { position: relative; width: 100%; }
.bb-map-wrap { position: relative; overflow: hidden; border-radius: 10px; }

.bb-canvas {
	--bb-avail-bg: #ece8ff;
	--bb-avail-bd: #7a63f0;
	--bb-sel-bg: #5b3fe0;
	--bb-sel-tx: #ffffff;
	--bb-off-bg: #e5e7eb;
	--bb-off-bd: #9ca3af;
	--bb-text: #1f2937;
	position: relative;
	transform-origin: 0 0;
	background-color: #fff;
	background-size: cover;
	background-position: center;
	box-sizing: border-box;
	-webkit-user-select: none;
	user-select: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bb-item {
	position: absolute;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 3px;
	transform-origin: 50% 50%;
	background-size: cover;
	background-position: center;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.1;
	color: var(--bb-text);
}
.bb-label {
	pointer-events: none;
	text-align: center;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0 2px;
}

/* Shapes */
.bb-s-round { border-radius: 50%; }
.bb-s-rounded { border-radius: 10px; }
.bb-s-rect { border-radius: 4px; }
.bb-s-seat { border-radius: 9px 9px 4px 4px; }

/* Bookable */
.bb-bookable {
	background-color: var(--bb-c, var(--bb-avail-bg));
	border: 2px dashed var(--bb-avail-bd);
}
.bb-bookable.bb-hasc { border-color: rgba(0, 0, 0, .28); }
.bb-bookable.bb-k-seat { font-size: 10px; }
.bb-bookable.bb-k-stool, .bb-bookable.bb-k-chair { font-size: 10px; }

/* More bookable kinds */
.bb-bookable.bb-k-court { background-color: var(--bb-c, #4aa3df); color: #fff; }
.bb-item.bb-k-court::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid rgba(255, 255, 255, .9); pointer-events: none; }
.bb-item.bb-k-court::after { content: ""; position: absolute; inset: 10px 14px; border: 2px solid rgba(255, 255, 255, .7); pointer-events: none; }
.bb-k-court .bb-label, .bb-k-court .bb-cap { position: relative; z-index: 1; }
.bb-item.bb-k-lounger::before { content: ""; position: absolute; left: 18%; right: 18%; top: 6px; height: 14px; border-radius: 6px; background: rgba(255, 255, 255, .75); pointer-events: none; }
.bb-item.bb-k-cottage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 34%; border-radius: 8px 8px 0 0; background: rgba(0, 0, 0, .13); pointer-events: none; }
.bb-item.bb-k-mat::before { content: ""; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .6); transform: translateX(-50%); pointer-events: none; }
.bb-k-mat .bb-label, .bb-k-lounger .bb-label, .bb-k-cottage .bb-label { position: relative; z-index: 1; }

.bb-chairs { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.bb-chair {
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 5px;
	background: #cbd5e1;
	border: 1px solid #94a3b8;
	box-sizing: border-box;
}

.bb-disabled,
.bb-booked {
	background-color: var(--bb-off-bg) !important;
	border-color: var(--bb-off-bd) !important;
	color: #6b7280;
}
.bb-disabled .bb-label { text-decoration: line-through; }

/* Interactive (front end / preview) */
.bb-selectable { cursor: pointer; transition: box-shadow .12s, background-color .12s; }
.bb-selectable:hover { box-shadow: 0 0 0 3px rgba(98, 70, 234, .35); }
.bb-selectable:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }
.bb-item.bb-selected:not(.bb-hasimg) {
	background-color: var(--bb-sel-bg) !important;
	color: var(--bb-sel-tx);
}
.bb-item.bb-selected { border-color: var(--bb-sel-bg) !important; }
.bb-item.bb-hasimg.bb-selected { box-shadow: 0 0 0 4px var(--bb-sel-bg); }
.bb-hasimg .bb-label { background: rgba(255, 255, 255, .85); border-radius: 6px; padding: 1px 6px; }
.bb-cap { pointer-events: none; display: inline-flex; align-items: center; gap: 3px; background: rgba(17, 24, 39, .75); color: #fff; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.bb-3d { box-shadow: 0 14px 18px -8px rgba(0, 0, 0, .35); }
.bb-hasimg.bb-disabled, .bb-hasimg.bb-booked { background-color: var(--bb-off-bg) !important; opacity: .55; filter: grayscale(1); }
.bb-tiny .bb-label { display: none; }
.bb-tiny .bb-chair { display: none; }

/* Decor */
.bb-decor { border: 0; }
.bb-k-wall { background: #4b5563; border-radius: 2px; }
.bb-k-door { background: #fcd34d; border-radius: 2px; }
.bb-k-bar { background: #8b5e3c; color: #fff; border-radius: 8px; }
.bb-k-stage { background: #ddd6fe; border: 2px solid rgba(76, 29, 149, .28); color: #4c1d95; border-radius: 8px; }
.bb-k-screen {
	background: linear-gradient(#f1f5f9, #94a3b8);
	color: #334155;
	letter-spacing: .3em;
	box-shadow: 0 10px 16px -10px rgba(0, 0, 0, .45);
	border-radius: 6px;
}
.bb-k-zone {
	background: rgba(100, 116, 139, .07);
	border: 1px dashed rgba(100, 116, 139, .5);
	border-radius: 12px;
	color: #64748b;
	align-items: flex-start;
	justify-content: flex-start;
	padding: 6px 10px;
}
.bb-k-zone .bb-label { text-align: left; }
.bb-k-pitch { background: #4caf6a; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .1) inset; color: #fff; }
.bb-k-pitch::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; background: #fff; transform: translateX(-50%); }
.bb-k-pitch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; border: 3px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); }
.bb-k-label { background: transparent; font-size: 16px; font-weight: 700; }
.bb-k-plant { background: #bfe6cf; border: 2px solid #7cc79b; }

/* Windows, pillars, lounge, water, roads, vehicles */
.bb-k-window { background: linear-gradient(#e0f2fe, #bae6fd); border: 1px solid #7dd3fc; box-shadow: inset 0 0 0 1px #fff; border-radius: 2px; }
.bb-k-pillar { background: #cbd5e1; border: 3px solid #94a3b8; }
.bb-k-sofa { background: #d9d4f2; border: 2px solid #b9b0e6; color: #4c3f9e; border-radius: 14px; }
.bb-item.bb-k-sofa::before { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 32%; border-radius: 8px; background: rgba(255, 255, 255, .45); pointer-events: none; }
.bb-k-pool { background: repeating-linear-gradient(135deg, #bae6fd 0 14px, #a5dcf9 14px 28px); border: 6px solid #e0f2fe; box-shadow: 0 0 0 2px #38bdf8, inset 0 0 0 2px #38bdf8; color: #075985; border-radius: 26px; }
.bb-k-road { background: #dde3ec; color: #64748b; }
.bb-item.bb-k-road::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; border-top: 3px dashed rgba(255, 255, 255, .95); pointer-events: none; }
.bb-k-road .bb-label { position: relative; z-index: 1; background: var(--bb-c, #dde3ec); padding: 0 8px; }
.bb-k-vehicle { background: #f8fafc; border: 3px solid #94a3b8; border-radius: 34px; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px #e2e8f0; align-items: flex-start; justify-content: flex-start; color: #64748b; }
.bb-k-vehicle .bb-label { z-index: 1; }
.bb-decor[style*="--bb-c"] { background: var(--bb-c); }

/* Items that sit under others */
.bb-k-pitch .bb-label, .bb-k-zone .bb-label { z-index: 1; }

@media (prefers-reduced-motion: reduce) {
	.bb-selectable { transition: none; }
}
