/*
 * Interactive lot map (property block).
 *
 * bl-map-button and bl-lot-item replace the Webflow classes map-button and
 * lot-list-item (IX2 click triggers in js/ppm-baja.js); their styles are copied
 * here at the same breakpoints. Layout classes (interactive-map, map-main,
 * map-aside, lots-list-wrap, card-wrap.is-lot-list-detail) are unchanged.
 */

.bl-map {
	--bl-available: #34c759;
	--bl-reserved: #b8bcc4; /* sold and reserved grey like not for sale (Anna, 2026-11-04) */
	--bl-sold: #b8bcc4;
	--bl-not_for_sale: #b8bcc4;
}
/* The theme styles every "ul li" (wp.css): bullet, padding, position. Not inside
   the map: the lot card must position against .map-aside, not the list item. */
.bl-map ul > li { position: static; padding-left: 0; margin-bottom: 0; }
.bl-map ul > li::before { content: none; }

/* Target of anchor links (#explore-property), one sticky header height above
   the section so the heading isn't hidden. A marker instead of scroll-margin:
   the Webflow script (ppm-baja.js) scrolls to the element's offset itself. */
.bl-anchor { position: relative; top: calc(-1 * var(--bl-header, 0px)); display: block; height: 0; }

.bl-status--available { --bl-status: var(--bl-available, #34c759); }
.bl-status--reserved { --bl-status: var(--bl-reserved, #3d8bfd); }
.bl-status--sold { --bl-status: var(--bl-sold, #ff5a5f); }
.bl-status--not_for_sale { --bl-status: var(--bl-not_for_sale, #b8bcc4); }

/* ---- Map ------------------------------------------------------------------ */

.bl-map .map-main {
	transition: width .3s ease;
	background: var(--_theme---misc--tint);
}
/* Two classes: mapbox-gl.css gives the same element .mapboxgl-map { position: relative }. */
.bl-map .bl-map-canvas {
	position: absolute;
	inset: 0;
}
.bl-map-fallback {
	position: absolute;
	inset: 0;
	z-index: 2;
	margin: 0;
	padding: var(--space--1-25rem);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.bl-map-fallback[hidden] { display: none; }

/* Copied from .map-button (Webflow). */
.bl-map-button {
	z-index: 30;
	padding: var(--_spacing---space--2) var(--_spacing---space--4);
	background-color: var(--swatch--active);
	color: var(--swatch--dark);
	border: 0;
	border-radius: 0;
	font-family: inherit;
	font-size: var(--space--1rem);
	font-weight: var(--_typography---fonts--font-bold);
	text-transform: uppercase;
	cursor: pointer;
	justify-content: center;
	align-items: center;
	min-height: 52px;
	display: flex;
	position: absolute;
	inset: 0% auto auto 0%;
}
.bl-map-button.is-expand,
.bl-map-button.is-close-lot-list-detail { inset: 0% 0% auto auto; }
.bl-map-button[hidden] { display: none; }
.bl-map-button:focus-visible { outline: 3px solid var(--swatch--dark); outline-offset: -3px; }
.bl-map-button.is-expand .arrow,
.bl-map-button.is-close-lot-list-detail .arrow { border-color: var(--swatch--dark); }
/* .arrow.is-right is a box turned 45deg: pressed (map enlarged) it turns half a circle more and points left (Tomas's QA, 2026-10-29). */
.bl-map-button.is-expand[aria-pressed="true"] .arrow { transform: rotate(225deg); }

.bl-map.bl-is-expanded .map-main { width: 100%; }
.bl-map.bl-is-expanded .map-aside { display: none; }
.bl-map.bl-instant .map-main { transition: none; }

.bl-legend {
	position: absolute;
	left: 10px;
	bottom: 34px; /* above the Mapbox logo */
	z-index: 5;
	margin: 0;
	padding: 6px 10px;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	background: rgba(255, 255, 255, .92);
	color: var(--swatch--dark);
	font-size: .75rem;
	line-height: 1.4;
}
.bl-legend[hidden],
.bl-legend-item[hidden] { display: none; }
.bl-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.bl-legend-count { opacity: .6; }
.bl-swatch {
	width: 12px;
	height: 12px;
	border: 2px solid var(--bl-status);
	background: color-mix(in srgb, var(--bl-status) 40%, transparent);
}

/* Based on .tooltip (Webflow), positioned by JS at the pointer. */
.bl-tooltip {
	z-index: 10;
	position: absolute;
	padding: var(--space--0-5rem) var(--space--1rem);
	border-top: 3px solid var(--swatch--active);
	background-color: var(--swatch--white);
	color: var(--swatch--dark);
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 170px;
	pointer-events: none;
	transform: translate(-50%, calc(-100% - 14px));
	box-shadow: 0 12px 48px #00000026;
}
.bl-tooltip[hidden] { display: none; }

/* ---- Section view: title, tabs, media panes -------------------------------- */

.bl-section-title { margin: 0 0 var(--space--1-25rem); min-height: 1.2em; }
/* Only in a section: on the overview its empty space only added a gap under the intro (Tomas's QA, 2026-10-29). */
.bl-section-title[hidden] { display: none; }

.bl-map { --bl-tabs-h: 72px; }
/* The tab bar sits at the bottom of the main window; the map and the panes end above it. */
.bl-map.bl-has-tabs .map-main > .bl-map-canvas,
.bl-map.bl-has-tabs .bl-pane { bottom: var(--bl-tabs-h); }
.bl-map.bl-has-tabs .bl-legend { bottom: calc(var(--bl-tabs-h) + 34px); }
.bl-map.bl-has-tabs .map-main .mapboxgl-ctrl-bottom-right,
.bl-map.bl-has-tabs .map-main .mapboxgl-ctrl-bottom-left { bottom: 0; }

.bl-tabs {
	position: absolute;
	inset: auto 0 0 0;
	z-index: 25;
	display: flex;
	gap: 1px;
	background-color: #e6e6e6;
}
.bl-tabs[hidden] { display: none; }
/* .map-tab-link (Webflow) is a link; here it's a button. */
.bl-tab {
	min-height: var(--bl-tabs-h);
	margin: 0;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	font-family: inherit;
	cursor: pointer;
}
.bl-tab[hidden] { display: none; }
.bl-tab.is-current { border-bottom-color: var(--swatch--active); }
.bl-tab:focus-visible { outline: 2px solid var(--swatch--active); outline-offset: -4px; }
.bl-tab > span { font-size: .7rem; line-height: 1; letter-spacing: .5px; }

.bl-pane {
	position: absolute;
	inset: 0;
	z-index: 8;
	background: #0b0d0f;
}
.bl-pane[hidden] { display: none; }
.bl-video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.bl-pano { position: absolute; inset: 0; }
/* Pannellum's zoom and fullscreen buttons: top right, clear of the Back button. */
.bl-pano .pnlm-controls-container { left: auto; right: 4px; top: 4px; }
.bl-pano-message {
	margin: 0;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-align: center;
	padding: var(--space--1-25rem);
}

/* Photos: one per view, swipe or arrows. */
.bl-gallery {
	height: 100%;
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.bl-gallery::-webkit-scrollbar { display: none; }
.bl-gallery-img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.bl-gallery-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 48px;
	height: 48px;
	margin-top: -24px;
	border: 0;
	background: rgba(255, 255, 255, .85);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.bl-gallery-nav.is-prev { left: 12px; }
.bl-gallery-nav.is-next { right: 12px; }
.bl-gallery-nav .arrow { border-color: var(--swatch--dark); }
.bl-gallery-nav.is-prev .arrow { transform: rotate(225deg); margin: 0 0 0 3px; } /* the theme only has a right arrow */

/* While a media tab is open, the map's own overlays step aside. */
/* "SECTION 2 · 360 VIEW" next to Back over the section media (Anna, 2026-10-14). left/height follow Back (lot-map.js). */
.bl-media-label {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 30;
	display: flex;
	align-items: center;
	gap: .4em;
	margin: 0;
	padding: 0 var(--_spacing---space--4);
	min-height: 52px;
	background: rgba(29, 33, 37, .9);
	color: #fff;
	font-size: var(--space--1rem);
	font-weight: var(--_typography---fonts--font-bold);
	letter-spacing: .5px;
	text-transform: uppercase;
	white-space: nowrap;
	pointer-events: none;
}
.bl-media-label[hidden] { display: none; }
.bl-media-label-kind { color: var(--swatch--active); }
/* The 360 tab with a lot selected: the lot's 360 or the section's. */
.bl-pano-switch {
	position: absolute;
	left: var(--_spacing---space--4);
	bottom: var(--_spacing---space--4);
	z-index: 30;
	display: flex;
	background: rgba(29, 33, 37, .9);
}
.bl-pano-switch[hidden] { display: none; }
.bl-pano-switch-btn {
	padding: 10px 16px;
	border: 0;
	background: none;
	color: #fff;
	font-family: inherit;
	font-size: .85rem;
	font-weight: var(--_typography---fonts--font-bold);
	letter-spacing: .5px;
	text-transform: uppercase;
	cursor: pointer;
}
.bl-pano-switch-btn[aria-pressed="true"] { background: var(--swatch--active); color: var(--swatch--dark); }
.bl-pano-switch-btn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
/* Phones, zoomed-out map: "Tap a number to see its lots". */
.bl-map-hint {
	position: absolute;
	left: 50%;
	bottom: 34px;
	z-index: 20;
	transform: translateX(-50%);
	margin: 0;
	padding: 6px 14px;
	background: rgba(29, 33, 37, .88);
	color: #fff;
	font-size: .85rem;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
}
.bl-map-hint[hidden],
.bl-map.bl-on-aerial .bl-map-hint { display: none; }
.bl-map.bl-media-open .bl-legend,
.bl-map.bl-media-open .bl-map-button.is-expand,
.bl-map.bl-media-open .bl-tooltip { display: none; }

/* ---- Starting point #2: aerial photo with section pins ---------------------- */

.bl-aerial {
	position: absolute;
	inset: 0;
	z-index: 9;
	overflow: hidden;
	container-type: size;
	display: none;
	background: var(--_theme---misc--tint);
}
.bl-map.bl-on-aerial .bl-aerial { display: block; }
.bl-map.bl-on-aerial .bl-legend,
.bl-map.bl-on-aerial .bl-map-button.is-expand { display: none; }
/* The photo covers the window like object-fit: cover, and the pins move with it. */
.bl-aerial-frame {
	position: absolute;
	left: 50%;
	top: 50%;
	width: max(100cqw, 100cqh * var(--bl-aerial-ar, 2));
	aspect-ratio: var(--bl-aerial-ratio, 2 / 1);
	transform: translate(-50%, -50%);
}
.bl-aerial-img { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Copied from .map-pin / .tooltip (Webflow); map-pin is an IX2 trigger, so not used. */
.bl-pin {
	position: absolute;
	z-index: 2;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	transform: translate(-50%, -100%);
	display: flex;
	justify-content: center;
}
.bl-pin-icon { height: 48px; display: block; transition: transform .2s ease; }
.bl-pin:focus-visible .bl-pin-icon { transform: translateY(-4px); }
/* A ripple where the pin points, a few times once the photo is in view (lot-map.js), like the phone map's markers (Jordan, 2026-10-27). */
.bl-pin::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: #eaad0c;
	opacity: 0;
	z-index: -1; /* under the pin's point */
	pointer-events: none;
}
.bl-map.bl-pins-pulse .bl-pin::after { animation: bl-pin-pulse 1.1s ease-out 3; }
@keyframes bl-pin-pulse {
	from { transform: scale(1); opacity: .75; }
	to { transform: scale(3); opacity: 0; }
}
.bl-pin:focus-visible { outline: 2px solid var(--swatch--active); outline-offset: 4px; }
.bl-pin-tip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	padding: var(--space--1rem) var(--space--1-25rem) var(--space--0-5rem);
	border-top: 3px solid var(--swatch--active);
	background-color: var(--swatch--white);
	color: var(--swatch--dark);
	min-width: 170px;
	display: none;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	text-align: left;
	box-shadow: 0 12px 48px #00000026;
	pointer-events: none;
}
.bl-pin:focus-visible .bl-pin-tip { display: flex; }
/* Mouse only: on phones a tap opens the section, and a :hover card only flashed up before it (Jordan, 2026-10-27). */
@media (hover: hover) {
	.bl-pin:hover .bl-pin-icon { transform: translateY(-4px); }
	.bl-pin:hover .bl-pin-tip { display: flex; }
}
.bl-pin-tip .map-lots-available { margin: 0; color: var(--swatch--white); font-size: .8rem; }

/* ---- Aside: section card and price slider ----------------------------------- */

.bl-section-card[hidden] { display: none; }
.bl-section-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	padding: 0;
	border: 0;
	background: var(--_theme---misc--tint);
	cursor: default;
	overflow: hidden;
}
.bl-section-cover { position: absolute; inset: 0; height: 100%; }
.bl-section-card:not(.has-cover) .bl-section-cover { visibility: hidden; }
.bl-mini-map { position: absolute; inset: 0; display: none; }
.bl-mini-map .bl-map-canvas { pointer-events: none; }
.bl-mini-map .mapboxgl-ctrl-group { display: none; } /* zoom buttons; the logo and attribution stay */
.bl-map.bl-media-open .bl-mini-map { display: block; }
.bl-map.bl-media-open .bl-section-cover { visibility: hidden; }
.bl-map.bl-media-open .bl-section-media { cursor: pointer; }
.bl-section-media:focus-visible { outline: 3px solid var(--swatch--active); outline-offset: -3px; }
.bl-section-overlay {
	position: absolute;
	inset: 0 0 auto 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space--0-5rem);
	background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
	pointer-events: none;
}
.bl-section-overlay .map-lots-available { margin: 0; }
/* Desktop section view: the card shows the section name and count, so the list heading steps aside. */
@media screen and (min-width: 992px) {
	.bl-map.bl-in-section .bl-aside-head { display: none; }
}

.bl-price[hidden] { display: none; }
.bl-price.is-single .bl-price-track,
.bl-price.is-single .bl-price-max { display: none; }
.bl-price { align-items: center; }
.bl-price strong { white-space: nowrap; min-width: 3.5em; }
.bl-price strong.bl-price-max { text-align: right; }
.bl-price-track { height: 20px; }
.bl-price-fill {
	position: absolute;
	left: var(--bl-lo, 0%);
	right: calc(100% - var(--bl-hi, 100%));
	height: 6px;
	background: var(--swatch--active);
	pointer-events: none;
}
/* Two range inputs on one track; only their thumbs take the pointer. */
.bl-price-input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 20px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}
.bl-price-input::-webkit-slider-runnable-track { background: none; border: 0; }
.bl-price-input::-moz-range-track { background: none; border: 0; }
.bl-price-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 50%;
	background: var(--_theme---headlines);
	pointer-events: auto;
	cursor: pointer;
}
.bl-price-input::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border: 0;
	border-radius: 50%;
	background: var(--_theme---headlines);
	pointer-events: auto;
	cursor: pointer;
}
.bl-price.bl-low-on-top .bl-price-input.is-low { z-index: 2; }
.bl-price-input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--swatch--active); outline-offset: 2px; }
.bl-price-input:focus-visible::-moz-range-thumb { outline: 2px solid var(--swatch--active); outline-offset: 2px; }
/* Fingers: the track takes the drag (lot-map.js bindPriceTouch), with a taller target; vertical swipes still scroll. */
@media (pointer: coarse) {
	.bl-price-track { touch-action: pan-y; }
	.bl-price-track::before { content: ""; position: absolute; inset: -14px -10px; }
	.bl-price-input::-webkit-slider-thumb { pointer-events: none; }
	.bl-price-input::-moz-range-thumb { pointer-events: none; }
}

/* ---- Lot list -------------------------------------------------------------- */

.bl-aside-head {
	padding-bottom: var(--space--1rem);
	border-bottom: 1px solid var(--_theme---misc--dividers);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space--0-5rem);
}
.bl-aside-head .map-lots-available { margin: 0; }

.bl-lot-list {
	margin: 0;
	padding-left: 0;
	list-style: none;
}
.bl-lot-wrap { margin: 0; }
.bl-lot-wrap[hidden] { display: none; }
.bl-empty { margin: 0; padding: var(--space--1rem) 0; }
.bl-empty[hidden] { display: none; }

/* Copied from .lot-list-item (Webflow), as a button. */
.bl-lot-item {
	width: 100%;
	padding: 0 48px var(--space--1-25rem) 0;
	border: 0;
	border-bottom: 1px solid var(--_theme---misc--dividers);
	background: none;
	color: var(--_theme---headlines);
	font: inherit;
	text-align: left;
	cursor: pointer;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}
.bl-lot-item:hover .arrow,
.bl-lot-wrap.is-selected .arrow { border-color: var(--swatch--dark); }
.bl-lot-item:hover .lot-action,
.bl-lot-wrap.is-selected .lot-action { background: var(--swatch--active); }
.bl-lot-item:focus-visible { outline: 2px solid var(--swatch--active); outline-offset: 4px; }

.bl-lot-meta { display: inline-flex; align-items: center; gap: 6px; }
.bl-lot-meta::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--bl-status);
}

/* ---- Lot card --------------------------------------------------------------- */

.bl-card:not(.is-open) { display: none !important; }
.bl-card {
	justify-content: flex-start;
	gap: var(--space--1-25rem);
	overflow-y: auto;
}
.bl-card:focus { outline: none; }
.bl-card-body {
	width: 100%;
	padding-right: 56px;
	display: flex;
	flex-direction: column;
	gap: var(--space--1-25rem);
}
.bl-card-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space--0-5rem); }
.bl-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.bl-status-badge::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--bl-status);
}
.bl-facts {
	margin: 0;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 16px;
}
.bl-facts dt { font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .5px; }
.bl-facts dd { margin: 0; }
.bl-financing { display: flex; flex-direction: column; gap: var(--space--0-75rem); }
.bl-financing-option { padding-left: var(--space--0-75rem); border-left: 2px solid var(--swatch--active); }
.bl-financing-terms { font-weight: 700; }
.bl-card-note { margin: 0; }

/* ---- Lot 360 pop-up --------------------------------------------------------- */

.bl-pano-dialog {
	width: min(1200px, calc(100vw - 32px));
	height: min(760px, calc(100dvh - 32px));
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	background: #0b0d0f;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.bl-pano-dialog[open] { display: flex; flex-direction: column; }
.bl-pano-dialog::backdrop { background: rgba(15, 23, 42, .75); }
/* Header: what this is, the lot's status and number, so it's never confused with the section 360. */
.bl-pano-head {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space--1rem);
	padding: var(--_spacing---space--4) var(--_spacing---space--4) var(--_spacing---space--4) var(--_spacing---space--6);
	background: #fff;
	border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.bl-pano-head-text { min-width: 0; }
.bl-pano-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 4px;
	color: #9a7417; /* the gold of the close button, darker for small text on white */
	font-size: .75rem;
	line-height: 1.4;
}
.bl-pano-eyebrow .bl-status-badge {
	padding-left: 12px;
	border-left: 1px solid rgba(0, 0, 0, .2);
	color: var(--swatch--dark);
	font-size: .75rem;
	letter-spacing: 1px;
}
.bl-pano-eyebrow .bl-status-badge::before { width: 8px; height: 8px; }
.bl-pano-eyebrow .bl-status-badge[hidden] { display: none; } /* the section's 360 */
.bl-pano-title { margin: 0; color: var(--swatch--dark); }
.bl-pano-close {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border: 0;
	background: var(--swatch--active);
	color: var(--swatch--dark);
	cursor: pointer;
}
.bl-pano-close:hover { filter: brightness(1.06); }
.bl-pano-close:focus-visible { outline: 3px solid var(--swatch--dark); outline-offset: 2px; }
.bl-pano-stage { position: relative; flex: 1; min-height: 0; background: #0b0d0f; }
.bl-pano-dialog-view { position: absolute; inset: 0; }
/* Dark labels over the panorama, as in Tomas's design. */
.bl-pano-hint {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 5;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 10px 18px;
	background: rgba(29, 33, 37, .88);
	color: #fff;
	font-size: .9rem;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
}
.bl-pano-hint[hidden],
.bl-pano-tools[hidden],
.bl-pano-tool[hidden] { display: none; }
.bl-pano-tools {
	position: absolute;
	right: var(--_spacing---space--4);
	bottom: var(--_spacing---space--4);
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}
.bl-pano-tool-group { display: flex; flex-direction: column; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.bl-pano-tool-group .bl-pano-tool { box-shadow: none; }
.bl-pano-tool-group .bl-pano-tool + .bl-pano-tool { border-top: 1px solid rgba(0, 0, 0, .12); }
.bl-pano-tool {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: #fff;
	color: var(--swatch--dark);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	cursor: pointer;
}
.bl-pano-tool:hover { background: #f1f1ef; }
.bl-pano-tool:focus-visible { outline: 3px solid var(--swatch--active); outline-offset: 0; }
/* Pannellum's 26 px buttons are too small for fingers. */
@media (pointer: coarse) {
	.pnlm-controls-container { transform: scale(1.6); transform-origin: top left; }
	.bl-pano .pnlm-controls-container { transform-origin: top right; }
}
/* "View Lot 360" above "Reserve Lot", both the card's full width (Anna, 2026-11-02). */
.bl-card-actions { display: flex; flex-direction: column; align-items: stretch; gap: var(--space--0-75rem); }
.bl-card-actions .button { text-align: center; }
/* Green as the cash discount: white text stays readable (4.9:1). */
.bl-card .bl-pano-btn {
	border-color: #1e7b34;
	background-color: #1e7b34;
	color: #fff;
}
.bl-card .bl-pano-btn:hover {
	border-color: #17662a;
	background-color: #17662a;
	color: #fff;
}
/* Cash purchase discount: green to draw the eye; darker than the map's green so white text stays readable (4.9:1). */
.bl-cash-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	background: #1e7b34;
	color: #fff;
	font-size: .8em;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	vertical-align: 1px;
	white-space: nowrap;
}

/* ---- Phones and tablets: lot details in the map's place (Tomas's design, Anna 2026-11-03) ---- */

.bl-details-top,
.bl-back-arrow { display: none; }
.bl-crumbs[hidden],
.bl-details-btn[hidden] { display: none; }

/* ---- Reservation dialog ----------------------------------------------------- */

.bl-reserve {
	width: min(560px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}
.bl-reserve::backdrop { background: rgba(15, 23, 42, .6); }
.bl-reserve-inner {
	position: relative;
	width: 100%;
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space--1rem);
}
.bl-reserve-inner > p { margin: 0; }
/* Deposit form (Stripe): product and total stay in the DOM for the price calculation, but the note shows the amount. */
.bl-reserve .bl-offscreen {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.bl-reserve .bl-deposit-note { margin: 0; }
/* Phones: City / Region and ZIP / Country stay in pairs instead of one per row (Gravity Forms stacks them below 640 px). */
@media (max-width: 640px) {
	.bl-reserve .ginput_container_address .ginput_left,
	.bl-reserve .ginput_container_address .ginput_right { flex: 0 0 calc(50% - var(--gf-field-grid-col-gap, 16px) / 2); inline-size: auto; }
}
.bl-reserve-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	color: var(--_theme---headlines);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

/* ---- Responsive (same breakpoints as the theme) ---------------------------- */

@media screen and (max-width: 991px) {
	/* The sticky header (--bl-header, measured by lot-map.js) covers the top of the page. */
	.bl-map { scroll-margin-top: var(--bl-header, 0px); }
	.bl-lot-wrap { scroll-margin-top: calc(var(--bl-header, 0px) + 12px); }
	.bl-map-button { min-height: auto; }
	.bl-map-button.is-expand,
	.bl-card-close { display: none; }
	.bl-map.bl-is-expanded .map-main { width: 100%; }
	.bl-map.bl-is-expanded .map-aside { display: flex; }
	.bl-tooltip { display: none; }
	.bl-section-card { display: none !important; } /* the media panes cover the map; the Map tab brings it back */
	.bl-map.bl-in-section .bl-aside-name { display: none; } /* the title above the map already names the section */
	/* The list grows with the page here (no inner scroll box, which would catch the swipe on touch screens). */
	.bl-map .bl-lot-list { overflow: visible; }
	.bl-map .map-main { scroll-margin-top: var(--bl-header, 0px); }
	.bl-aside-head { padding-top: var(--space--1rem); } /* clear of the tabs above (Anna, 2026-11-04) */

	/* Back gets its arrow, and "/ Section 1 / Lot 1-7" continues it (lot-map.js updateCrumbs); this
	   breadcrumb also names the open media tab, instead of the dark label. */
	.bl-map-button.is-close { gap: 8px; }
	.bl-map:has(.bl-crumbs:not([hidden])) .bl-map-button.is-close { padding-right: 0; }
	.bl-map-button .bl-back-arrow { display: block; flex: none; border-color: var(--swatch--dark); transform: rotate(225deg); margin: 0 0 0 3px; }
	.bl-media-label { display: none !important; }
	.bl-crumbs {
		position: absolute;
		top: 0;
		z-index: 30;
		display: flex;
		align-items: center;
		gap: .5em;
		margin: 0;
		padding: 0 var(--_spacing---space--3) 0 .5em;
		background: var(--swatch--active);
		color: var(--swatch--dark);
		font-size: .8rem;
		font-weight: var(--_typography---fonts--font-bold);
		letter-spacing: .5px;
		text-transform: uppercase;
		white-space: nowrap;
		pointer-events: none;
	}
	/* A lot tapped on the map: its details are one tap away. */
	.bl-map-button.bl-details-btn {
		inset: auto auto var(--_spacing---space--4) 50%;
		transform: translateX(-50%);
		min-height: 0;
		padding: var(--space--0-75rem) var(--_spacing---space--5);
		font-size: .8rem;
		white-space: nowrap;
	}
	.bl-map.bl-has-tabs .bl-map-button.bl-details-btn { bottom: calc(var(--bl-tabs-h) + var(--_spacing---space--4)); }

	/* The details take the map's place: the map area grows with them and stops being sticky; the map stays
	   loaded underneath, hidden, for "Back to map". */
	/* The card only shows as the details: a lot just tapped on the map offers them with the button above. */
	.bl-map:not(.bl-details-open) .bl-card { display: none !important; }
	.bl-map.bl-details-open .map-main { position: relative; top: auto; height: auto; aspect-ratio: auto; overflow: visible; }
	.bl-map.bl-details-open .map-main > :not(.bl-card) { visibility: hidden; }
	/* The map keeps its own size underneath, not the details' height (it may even be created now: ?reserve= links). */
	.bl-map.bl-details-open .map-main > .bl-map-canvas { bottom: auto; aspect-ratio: 3 / 2; }
	/* Nothing under the details: the lots count and the list come back with "Back to map" (Anna, 2026-11-04). */
	.bl-map.bl-details-open .map-aside { display: none; }
	.bl-map.bl-details-open .bl-card {
		position: relative;
		inset: auto;
		z-index: 31;
		display: flex;
		width: 100%;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: var(--_theme---misc--tint);
		overflow: visible;
	}
	.bl-card-body { padding: 0 0 var(--_spacing---space--6); }
	.bl-card-body > :not(.bl-details-top) { margin-left: var(--site--padding); margin-right: var(--site--padding); }
	/* The bar and the media row stay at the top while the details scroll, as the map does (Anna, 2026-11-04). */
	.bl-details-top { display: block; position: sticky; top: var(--bl-header, 62px); z-index: 2; }
	/* "‹ Back / Section 5 / Lot 5-23", as over the map. */
	.bl-details-bar {
		display: flex;
		align-items: center;
		gap: .5em;
		min-height: 44px;
		padding: 0 var(--_spacing---space--3);
		background: var(--swatch--active);
		color: var(--swatch--dark);
		font-size: .8rem;
		font-weight: var(--_typography---fonts--font-bold);
		letter-spacing: .5px;
		text-transform: uppercase;
		white-space: nowrap;
	}
	.bl-details-back {
		display: flex;
		align-items: center;
		gap: 8px;
		align-self: stretch;
		padding: 0;
		border: 0;
		background: none;
		color: inherit;
		font: inherit;
		letter-spacing: inherit;
		text-transform: inherit;
		cursor: pointer;
	}
	.bl-details-back:focus-visible { outline: 2px solid var(--swatch--dark); outline-offset: 2px; }
	.bl-details-back .arrow { border-color: var(--swatch--dark); transform: rotate(225deg); margin-left: 3px; }
	/* Under the bar: the map, small (tap: back to the map), and the lot's 360 with "View Lot 360" (Anna, 2026-11-04). */
	.bl-details-media { display: grid; grid-template-columns: 1fr; }
	.bl-details-media.has-pano { grid-template-columns: 1fr 1fr; }
	.bl-details-map {
		position: relative;
		display: block;
		width: 100%;
		aspect-ratio: 3 / 2;
		padding: 0;
		border: 0;
		background: var(--_theme---misc--tint);
		overflow: hidden;
		cursor: pointer;
	}
	.bl-details-map .bl-map-canvas { pointer-events: none; }
	.bl-details-map .mapboxgl-ctrl-group { display: none; } /* zoom buttons; the logo and attribution stay */
	.bl-details-map:focus-visible { outline: 3px solid var(--swatch--active); outline-offset: -3px; }
	.bl-details-pano { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #0b0d0f; }
	.bl-details-pano[hidden] { display: none; }
	.bl-details-pano-img { display: block; width: 100%; height: 100%; object-fit: cover; }
	.bl-details-pano .bl-pano-btn { position: absolute; left: 50%; bottom: var(--_spacing---space--3); transform: translateX(-50%); white-space: nowrap; }
	.bl-card-actions .bl-pano-btn { display: none; } /* it's on the 360 preview */
	.bl-card-head { flex-direction: row; align-items: center; justify-content: space-between; }
	.bl-card-head .u-headline-4 { margin: 0; }
	.bl-facts { gap: 0; }
	.bl-facts dt,
	.bl-facts dd { padding: 8px 0; border-bottom: 1px solid var(--_theme---misc--dividers); }
	.bl-facts dt,
	.bl-facts dd { font-size: .9rem; line-height: 1.4; }
	.bl-facts dd { text-align: right; }

	/* The legend moves to the top right (free on tablets: no enlarge button), clear of the lots at the bottom. */
	.bl-legend,
	.bl-map.bl-has-tabs .bl-legend { top: 6px; right: 6px; bottom: auto; left: auto; }
	.bl-pin-icon { height: 44px; }
}

@media screen and (max-width: 767px) {
	.bl-map-button {
		padding: var(--space--0-5rem) var(--_spacing---space--3);
		font-size: .8rem;
	}
	/* The map is sticky below the header and above the list: scroll selected items below both.
	   The theme's own offset (62px / 56px) leaves out the header's notice bar. */
	.bl-map .map-main { top: var(--bl-header, 62px); }
	/* A square map, bigger than the theme's 3:2 (Anna, 2026-11-04); it stays sticky above the list. */
	.bl-map .map-main,
	.bl-map.bl-details-open .map-main > .bl-map-canvas { aspect-ratio: 1 / 1; }
	.bl-lot-wrap { scroll-margin-top: calc(var(--bl-header, 62px) + 100vw + 12px); }
	.bl-legend,
	.bl-map.bl-has-tabs .bl-legend { padding: 3px 6px; gap: 2px 8px; font-size: .65rem; }
	/* In a section the breadcrumb takes the top row: the legend goes to the bottom left, in the margin the map
	   keeps around the section (fitSection), above the Mapbox logo. */
	.bl-map.bl-in-section .bl-legend,
	.bl-map.bl-in-section.bl-has-tabs .bl-legend { top: auto; right: auto; bottom: 28px; left: 6px; }
	.bl-map.bl-in-section.bl-has-tabs .bl-legend { bottom: calc(var(--bl-tabs-h) + 28px); }
	/* A lot tapped on the map: "Click to view lot details" takes the legend's place (Tomas's design shows no legend). */
	.bl-map:has(.bl-details-btn:not([hidden])) .bl-legend { display: none; }
	.bl-map { --bl-tabs-h: 58px; }
	.bl-tab .map-tab-icon { height: 22px; }
	/* The video starts below the Back button instead of under it. */
	.bl-map.bl-media-open .bl-pane.is-video { top: 30px; }
	.bl-media-label { min-height: 0; padding: 0 var(--_spacing---space--3); font-size: .8rem; }
	.bl-pano-switch { left: var(--_spacing---space--3); bottom: var(--_spacing---space--3); }
	.bl-pano-switch-btn { padding: 8px 12px; font-size: .75rem; }
	.bl-pin-icon { height: 34px; }
	.bl-gallery-nav { width: 40px; height: 40px; margin-top: -20px; }
	.bl-pano-dialog { width: 100vw; height: 100dvh; } /* phones: full screen */
	.bl-pano-head { padding: var(--_spacing---space--3) var(--_spacing---space--3) var(--_spacing---space--3) var(--_spacing---space--4); }
	.bl-pano-close { width: 44px; height: 44px; }
	.bl-pano-tool { width: 44px; height: 44px; }
}

/* ---- Customer dashboard (Reservation block, Anna's mockup 2026-10-07) ---- */

.bl-dash { display: flex; flex-direction: column; gap: var(--space--1-25rem); max-width: 760px; }
.bl-dash h1, .bl-dash h2, .bl-dash h3, .bl-dash p { margin: 0; }
.bl-dash-buyer { padding: var(--_spacing---space--4) var(--_spacing---space--5); border: 2px solid var(--swatch--active); }
.bl-dash-lots { display: flex; flex-direction: column; gap: var(--space--1rem); padding: var(--_spacing---space--5); background: #f2f2f2; }
.bl-dash-lot { display: flex; flex-direction: column; gap: 4px; }
.bl-dash-out button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.bl-dash-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space--0-75rem); }
.bl-dash-form label { flex: 0 0 100%; font-weight: 700; }
.bl-dash-form input[type="email"] { flex: 1 1 260px; min-height: 48px; padding: 0 12px; border: 1px solid #b8bcc4; font-size: 16px; }
.bl-dash-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bl-dash-notice { padding: 12px 16px; background: #f2f2f2; border-left: 3px solid var(--swatch--active); }
