/* ADI interactive floorplan — override any --adi-fp-* property in the theme. */
.adi-floorplan {
	--adi-fp-hover: rgba(255, 255, 255, 0.28);
	/* Provisional = hatched, booked = solid grey: neither can be read as a
	   package colour (Mooch v3 x22). */
	--adi-fp-provisional: #211747;
	--adi-fp-provisional-bg: rgba(255, 255, 255, 0.7);
	--adi-fp-booked: #bdbdbd;
	--adi-fp-booked-opacity: 0.94;
	--adi-fp-tier-silver: #3ddbbf;
	--adi-fp-tier-gold: #450099;
	--adi-fp-tier-platinum: #c724b0;
	--adi-fp-key-text: inherit;
	--adi-fp-selected: #ffffff;
	--adi-fp-focus: #3ddbbf;
	--adi-fp-tip-bg: #211747;
	--adi-fp-tip-fg: #ffffff;
	max-width: 100%;
}

.adi-floorplan__map {
	position: relative;
}

.adi-floorplan__map svg {
	display: block;
	width: 100%;
	height: auto;
}

.adi-floorplan__hint {
	display: none;
	margin: 0.5rem 0 0;
	font-size: 14px;
}

/* Phones: keep stands big enough to tap; the plan scrolls sideways instead
   of shrinking (pinch-zoom still works — the page never disables it). */
@media (max-width: 700px) {
	.adi-floorplan__scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
	}

	.adi-floorplan__scroll svg {
		width: var(--adi-fp-mobile-width, 640px);
		max-width: none;
	}

	.adi-floorplan__hint {
		display: block;
	}
}

.adi-floorplan .adi-stand {
	fill: transparent;
	cursor: pointer;
	transition: fill 0.15s ease, fill-opacity 0.15s ease;
	outline: none;
}

.adi-floorplan .adi-stand--available:hover,
.adi-floorplan .adi-stand--provisional:hover {
	fill: var(--adi-fp-hover);
}

.adi-floorplan .adi-fp-hatch__bg {
	fill: var(--adi-fp-provisional-bg);
}

.adi-floorplan .adi-fp-hatch__line {
	fill: var(--adi-fp-provisional);
}

.adi-floorplan .adi-stand--provisional {
	fill: url(#adi-fp-hatch);
	fill-opacity: 1;
}

/* Booked stands open the waiting-list form. */
.adi-floorplan .adi-stand--booked {
	fill: var(--adi-fp-booked);
	fill-opacity: var(--adi-fp-booked-opacity);
}

.adi-floorplan__key {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 2rem;
	margin: 1rem 0 0;
	color: var(--adi-fp-key-text);
	font-size: 15px;
}

.adi-floorplan__key ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.adi-floorplan__key li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.adi-floorplan__swatch {
	display: inline-block;
	flex: none;
	width: 22px;
	height: 22px;
	border: 1px solid rgba(0, 0, 0, 0.35);
	border-radius: 3px;
}

.adi-floorplan__swatch--available {
	background: transparent;
	border-style: dashed;
}

.adi-floorplan__swatch--provisional {
	background: repeating-linear-gradient(45deg, var(--adi-fp-provisional) 0 3px, var(--adi-fp-provisional-bg) 3px 6px), #fff;
}

.adi-floorplan__swatch--booked {
	background: var(--adi-fp-booked);
}

.adi-floorplan__swatch--silver { background: var(--adi-fp-tier-silver); }
.adi-floorplan__swatch--gold { background: var(--adi-fp-tier-gold); }
.adi-floorplan__swatch--platinum { background: var(--adi-fp-tier-platinum); }

.adi-floorplan .adi-stand--unavailable {
	pointer-events: none;
}

.adi-floorplan .adi-stand--selected {
	stroke: var(--adi-fp-selected);
	stroke-width: 3px;
}

.adi-floorplan .adi-stand:focus-visible {
	stroke: var(--adi-fp-focus);
	stroke-width: 3px;
}

.adi-floorplan__tip {
	position: absolute;
	transform: translate(-50%, calc(-100% - 12px));
	max-width: 260px;
	padding: 6px 10px;
	border-radius: 6px;
	background: var(--adi-fp-tip-bg);
	color: var(--adi-fp-tip-fg);
	font-size: 14px;
	line-height: 1.35;
	pointer-events: none;
	white-space: normal;
	z-index: 2;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.adi-floorplan__enquiry {
	margin-top: 1.5rem;
}

.adi-floorplan__note {
	font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
	.adi-floorplan .adi-stand {
		transition: none;
	}
}
