/* ==========================================================================
   Availability page (slug: scheme). Hotspot site plan - desktop only (lg+).
   ========================================================================== */
.ap-plan {
	position: relative;
	background: var(--g14-navy, #0e182f);
	line-height: 0;
}
.ap-plan__base,
.ap-plan__layer {
	display: block;
	width: 100%;
	height: auto;
}
.ap-plan__layer {
	position: absolute;
	inset: 0;
	height: 100%;
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
}
.ap-plan__layer.is-visible { opacity: 1; }

.ap-plan__hits {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.ap-zone { outline: none; }
.ap-hit { fill: transparent; }
.ap-zone.has-target .ap-hit,
.ap-zone.has-target.is-active .ap-callout { cursor: pointer; }
/* The callout only takes the pointer while its zone is showing, so the empty plan stays clean */
.ap-callout { fill: transparent; pointer-events: none; }
.ap-zone.is-active .ap-callout { pointer-events: all; }

/* Append ?apdebug to the URL to see the hotspots */
.ap-plan--debug .ap-hit { fill: rgba(255, 0, 80, .35); stroke: #ff0050; stroke-width: 3; }
.ap-plan--debug .ap-callout { fill: rgba(0, 120, 255, .25); stroke: #0078ff; stroke-width: 3; }

/* ==========================================================================
   Zone detail rows (below the plan). Rows alternate white / light grey.
   Desktop proportions follow the 2000px design; type sizes use vw.
   ========================================================================== */
.ap-row {
	background: #fff;
	color: #1d1d1b;
	scroll-margin-top: 5.5rem; /* clear the sticky header when the plan scrolls here */
}
.ap-row:nth-child(even) { background: #ebebeb; }

.ap-row__inner { padding: 2rem 1rem; }
.ap-row__img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: .6rem;
}

.ap-row__text { padding-top: 1.5rem; }
.ap-row__title {
	margin: 0;
	font-size: 3rem;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	color: var(--z-title);
}
.ap-row__acres {
	margin: .6rem 0 0;
	font-size: 1.5rem;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--z-sub);
}
.ap-row__acres strong { font-weight: 800; margin-right: .35em; }
.ap-row__acres span { font-weight: 300; font-size: .85em; }
.ap-row__avail {
	margin: .9rem 0 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--z-avail);
}
.ap-row__intro { margin: 1.5rem 0 0; max-width: 34em; font-weight: 300; line-height: 1.4; }
.ap-row__intro strong { font-weight: 700; }

.ap-row__spec-title {
	margin: 2rem 0 .75rem;
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--z-avail);
}
.ap-spec {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 1;
	font-size: .95rem;
	font-weight: 300;
}
.ap-spec li { break-inside: avoid; padding: .2rem 0 .2rem .9em; position: relative; }
.ap-spec li::before { content: "\00B7"; position: absolute; left: 0; font-weight: 700; }

@media (min-width: 576px) {
	.ap-spec { columns: var(--ap-cols, 3); column-gap: 1.5rem; }
}

@media (min-width: 992px) {
	.ap-row__inner {
		display: grid;
		grid-template-columns: 44% 52%;
		justify-content: space-between;
		align-items: start;
		padding-block: 1.3vw; /* side gutters come from .container */
	}
	.ap-row__text { padding-top: 0; }
	.ap-row__img { border-radius: .7vw; }

	.ap-row__title { font-size: 3.2vw; }
	.ap-row__acres { margin-top: 0.5vw; font-size: 2.15vw; }
	.ap-row__avail { margin-top: 0.5vw; font-size: 1.57vw; }
	.ap-row__intro { margin-top: 1.5vw; font-size: 1.28vw; line-height: 1.3; max-width: 31.5vw; }
	.ap-row__spec-title { margin: 2vw 0 .9vw; font-size: 1.3vw; }
	.ap-spec { font-size: .8vw; line-height: 1.2; column-gap: 1vw; }
	.ap-spec li { white-space: nowrap; }
	.ap-spec li { padding: .25vw 0 .25vw .9em; }
}

/* ---- Row extras: heading row with button, feature (Stowmarket) variant, buttons ---- */
.ap-row__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ap-btn {
	display: inline-block;
	padding: .55rem 1.1rem;
	border-radius: 1rem;
	background: var(--z-btn, #ccc);
	color: #fff;
	font-size: .85rem;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}
.ap-btn:hover,
.ap-btn:focus-visible { color: #fff; filter: brightness(.92); }
.ap-row__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.ap-row--feature .ap-row__title { font-size: 2.4rem; line-height: .95; }
.ap-row--feature .ap-row__sub { margin-top: 1rem; line-height: 1; }
.ap-row__url {
	margin: .8rem 0 0;
	font-size: .95rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #a8a8a8;
	overflow-wrap: anywhere;
}

@media (min-width: 992px) {
	.ap-row__head { flex-wrap: nowrap; }
	.ap-btn { padding: .7vw 1.4vw; border-radius: 1.2vw; font-size: 1vw; margin-top: .6vw; }
	.ap-row__actions { gap: 1.3vw; margin-top: 0; }

	.ap-row--feature .ap-row__inner { align-items: stretch; }
	.ap-row--feature .ap-row__text { display: flex; flex-direction: column; }
	.ap-row--feature .ap-row__actions { margin-top: auto; }
	.ap-row--feature .ap-row__title { font-size: 2.9vw; }
	.ap-row--feature .ap-row__sub { margin-top: 1.2vw; font-size: 1.5vw; max-width: 34vw; }
	.ap-row__url { margin-top: 1vw; font-size: 1vw; }
}

/* Zone 4: long heading line stays on one line on desktop */
@media (min-width: 992px) {
	.ap-row--wide-title .ap-row__acres { font-size: 1.85vw; white-space: nowrap; }
}

/* The row content puffs in (scale from large) - clip sideways so the band never causes horizontal scroll */
.ap-row { overflow-x: clip; }
