/* Lot map suite — GRP tokens. Loaded only with the Lot Map block or shortcodes. */

.lot-map-block,
.lot-map-suite {
	--lot-primary: #85693a;
	--lot-primary-ink: #5c4828;
	--lot-dark: #1a1a1a;
	--lot-light: #efefef;
	--lot-paper: #f7f4ef;
	--lot-white: #ffffff;
	--lot-text: #333333;
	--lot-muted: #6b645c;
	--lot-line: rgba(26, 26, 26, 0.12);
	--lot-shadow: 0 18px 50px rgba(26, 26, 26, 0.18);
	--lot-shadow-soft: 0 8px 28px rgba(26, 26, 26, 0.12);
	--lot-available: #85693a;
	--lot-sold: #8b3a3a;
	--lot-reserved: #3d6b7a;
	--lot-pending: #3a3a3a;
	--lot-park: #4a7a4a;
	--lot-soon: #c4a574;
	--lot-font-display: "ivypresto-display", "IvyPresto Display", Georgia, serif;
	--lot-font-body: "nimbus-sans", "Nimbus Sans", Helvetica, system-ui, sans-serif;
	--lot-radius: 18px;
	--lot-focus: 2px solid #85693a;
}

.lot-map-suite {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	font-family: var(--lot-font-body);
	color: var(--lot-text);
}

.lot-map-stage {
	position: relative;
	isolation: isolate;
	width: 100%;
	border-radius: var(--lot-radius);
	overflow: hidden;
	background: #0f0f0f;
	box-shadow: var(--lot-shadow-soft);
}

.lot-map-canvas,
#lot_map.lot-map-canvas {
	display: block;
	width: 100% !important;
	height: 520px;
	background: #0f0f0f;
}

#lot_map .gm-style {
	width: 100% !important;
}

#lot_map .gm-style img,
.lot-map-canvas .gm-style img {
	max-width: none !important;
	height: auto !important;
}

.lot-map-auth-error {
	margin: 0;
	padding: 1.75rem;
	color: var(--lot-dark);
	font-size: 0.95rem;
	line-height: 1.5;
}

@media (min-width: 782px) {
	.lot-map-canvas,
	#lot_map.lot-map-canvas {
		height: 620px;
	}
}

@media (min-width: 1200px) {
	.lot-map-canvas,
	#lot_map.lot-map-canvas {
		height: 680px;
	}
}

/* Overlay card — solid paper. Do not inherit site header / scroll background. */
.lot-map-stage .lotInfo,
.lot-map-suite .lotInfo,
.lotInfo {
	position: absolute;
	z-index: 5;
	top: 1.15rem;
	left: 1.15rem;
	width: min(20.5rem, calc(100% - 2.3rem));
	background-color: #ffffff !important;
	background-image: none !important;
	opacity: 1 !important;
	mix-blend-mode: normal;
	color: #1a1a1a !important;
	padding: 1.1rem 1.2rem 1.2rem;
	border-radius: 14px;
	box-shadow: 0 18px 50px rgba(26, 26, 26, 0.22);
	border: 1px solid rgba(26, 26, 26, 0.08);
}

.lotInfo p,
.lotInfo h2,
.lotInfo h3,
.lotInfo h4,
.lotInfo ul,
.lotInfo dl {
	margin: 0;
	padding: 0;
	color: inherit;
	background: transparent;
}

.started-scrolling .lot-info-header,
.lotInfo .lot-info-header {
	background: transparent !important;
}

.lot-info-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.35rem;
	background: transparent !important;
	padding: 0;
}

.lot-info-identity {
	min-width: 0;
	flex: 1 1 auto;
}

.lotInfo .lot-info-kicker {
	margin: 0 0 0.35rem;
	font-family: var(--lot-font-body);
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--lot-primary);
	font-weight: 700;
}

.lotInfo .lot-info-toggle {
	flex: 0 0 auto;
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: -0.5rem -0.45rem 0 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: var(--lot-dark);
}

.lotInfo .lot-info-toggle:focus-visible {
	outline: var(--lot-focus);
	outline-offset: 2px;
}

.lotInfo .descr {
	margin: 0.35rem 0 0;
	padding: 0;
	border: 0;
	color: var(--lot-muted);
	font-size: 0.95rem;
	line-height: 1.45;
}

.lotInfo.has-lot .descr {
	display: none;
}

.lotInfo .address {
	margin: 0.1rem 0 0.15rem;
	color: var(--lot-dark) !important;
	font-family: var(--lot-font-display);
	font-size: clamp(1.7rem, 2.2vw, 2.05rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: none;
}

.lotInfo .lot-info-street {
	margin: 0 0 0.65rem;
	color: var(--lot-muted);
	font-size: 0.92rem;
	line-height: 1.3;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.lotInfo .lot-info-street:empty {
	display: none;
}

.lotInfo:not(.has-lot) .address,
.lotInfo:not(.has-lot) .lot-info-street,
.lotInfo:not(.has-lot) .status,
.lotInfo:not(.has-lot) .price,
.lotInfo:not(.has-lot) .lot-info-specs,
.lotInfo:not(.has-lot) .lot-info-cta {
	display: none;
}

.lot-status-pill:empty {
	display: none;
}

.lot-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.28rem 0.7rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.2;
	background: rgba(107, 107, 107, 0.12);
	color: #4a4a4a;
	border: 1px solid rgba(26, 26, 26, 0.08);
}

.lot-status-pill::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	background: currentColor;
}

.lot-status-pill[data-status="available"] {
	background: rgba(133, 105, 58, 0.14);
	color: var(--lot-primary-ink);
}

.lot-status-pill[data-status="available"]::before {
	background: var(--lot-available);
}

.lot-status-pill[data-status="sold"] {
	background: rgba(139, 58, 58, 0.12);
	color: #6b2e2e;
}

.lot-status-pill[data-status="sold"]::before {
	background: var(--lot-sold);
}

.lot-status-pill[data-status="reserved"] {
	background: rgba(61, 107, 122, 0.14);
	color: #2c5160;
}

.lot-status-pill[data-status="reserved"]::before {
	background: var(--lot-reserved);
}

.lot-status-pill[data-status="pending"] {
	background: rgba(107, 107, 107, 0.14);
	color: #3f3f3f;
}

.lot-status-pill[data-status="pending"]::before {
	background: var(--lot-pending);
}

.lot-status-pill[data-status="soon"] {
	background: rgba(196, 165, 116, 0.22);
	color: var(--lot-primary-ink);
}

.lot-status-pill[data-status="soon"]::before {
	background: var(--lot-soon);
}

.lot-status-pill[data-status="park"] {
	background: rgba(74, 122, 74, 0.14);
	color: #2f5a2f;
}

.lot-status-pill[data-status="park"]::before {
	background: var(--lot-park);
}

.lotInfo .status {
	margin: 0.15rem 0 0;
}

.lotInfo .price {
	margin: 0 0 0.85rem;
	font-family: var(--lot-font-display);
	font-size: 1.55rem;
	line-height: 1.1;
	color: var(--lot-dark) !important;
	text-transform: none;
	border: 0;
	padding: 0;
	font-weight: 400;
}

.lot-info-photos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
	gap: 0.45rem;
	margin: 0 0 0.85rem;
}

.lot-info-photos[hidden] {
	display: none !important;
}

.lot-info-photos a {
	display: block;
	border-radius: 0.35rem;
	overflow: hidden;
	border: 1px solid rgba(26, 26, 26, 0.12);
	aspect-ratio: 4 / 3;
}

.lot-info-photos img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lot-info-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0 0 1.15rem;
	padding: 0.9rem 0 0;
	border-top: 1px solid var(--lot-line);
}

.lot-info-specs > div {
	min-width: 0;
}

.lot-info-specs > div:has(dd:empty) {
	display: none;
}

.lot-info-specs dt {
	margin: 0 0 0.2rem;
	font-size: 0.65rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lot-muted);
	font-weight: 700;
}

.lot-info-specs dd {
	margin: 0;
	font-size: 0.92rem;
	color: var(--lot-dark);
	line-height: 1.3;
}

.lot-info-cta {
	display: inline-flex !important;
	width: 100%;
	justify-content: center;
	text-align: center;
	margin-top: 0.15rem;
	min-height: 44px;
}

.lot-info-cta.is-hidden {
	display: none !important;
}

.lot-info-envelope-row.is-hidden {
	display: none !important;
}

@media (hover: hover) {
	.lotInfo {
		transition: transform 0.35s ease, box-shadow 0.35s ease;
	}

	.lotInfo:hover {
		transform: translateY(-2px);
		box-shadow: 0 22px 56px rgba(26, 26, 26, 0.2);
	}
}

/* Legend over the map, above Google attribution. */
.lot-map-legend {
	position: absolute;
	z-index: 3;
	left: 50%;
	bottom: 3.1rem;
	transform: translateX(-50%);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.35rem;
	width: max-content;
	max-width: calc(100% - 1.5rem);
	margin: 0;
	padding: 0.4rem;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	box-shadow: var(--lot-shadow-soft);
}

.lot-map-legend .legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.7rem;
	border: 0;
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	color: var(--lot-dark);
	background: transparent;
	white-space: nowrap;
}

.legend-swatch {
	width: 0.65rem;
	height: 0.65rem;
	box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.18);
}

.legend-item[data-status="available"] .legend-swatch,
.legend-item.av .legend-swatch {
	background: rgba(133, 105, 58, 0.72);
}

.legend-item[data-status="sold"] .legend-swatch,
.legend-item.so .legend-swatch {
	background: rgba(139, 58, 58, 0.72);
}

.legend-item[data-status="reserved"] .legend-swatch,
.legend-item.re .legend-swatch {
	background: rgba(61, 107, 122, 0.72);
}

.legend-item[data-status="pending"] .legend-swatch,
.legend-item.pe .legend-swatch {
	background: rgba(107, 107, 107, 0.72);
}

.legend-item[data-status="soon"] .legend-swatch,
.legend-item.cs .legend-swatch {
	background: rgba(196, 165, 116, 0.8);
}

.legend-item[data-status="park"] .legend-swatch,
.legend-item.pk .legend-swatch {
	background: rgba(74, 122, 74, 0.72);
}

.legend-item.av::before,
.legend-item.so::before,
.legend-item.re::before,
.legend-item.pe::before,
.legend-item.cs::before,
.legend-item.pk::before {
	content: "";
	width: 0.65rem;
	height: 0.65rem;
	border-radius: 50%;
	background: currentColor;
}

.legend-item.av::before { background: var(--lot-available); }
.legend-item.so::before { background: var(--lot-sold); }
.legend-item.re::before { background: var(--lot-reserved); }
.legend-item.pe::before { background: var(--lot-pending); }
.legend-item.cs::before { background: var(--lot-soon); }
.legend-item.pk::before { background: var(--lot-park); }

/* Inventory */
.lot-map-inventory,
.lot-table-wrap,
#lot_table_container {
	margin-top: 0;
	background: var(--lot-white);
	color: var(--lot-dark);
	padding: 1.75rem 1.5rem 1.5rem;
	border-radius: var(--lot-radius);
	box-shadow: var(--lot-shadow-soft);
}

.lot-map-inventory #lot_table_container,
.lot-table-wrap #lot_table_container {
	padding: 0;
	background: transparent;
	box-shadow: none;
	border-radius: 0;
}

.lot_table {
	position: relative;
	color: var(--lot-dark);
}

.lot-table-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: 1.25rem;
}

.lot-table-kicker {
	margin: 0 0 0.35rem;
	font-size: 0.7rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--lot-primary);
	font-weight: 700;
}

.lot-table-title {
	margin: 0;
	font-family: var(--lot-font-display);
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	font-weight: 400;
	color: var(--lot-dark);
	line-height: 1.15;
}

.lot-table-count {
	margin: 0.35rem 0 0;
	color: var(--lot-muted);
	font-size: 0.9rem;
}

.lot_table_sortrow {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lot-muted);
	font-weight: 700;
}

.lot-table-filters {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	margin: 0 0 1.25rem;
	padding: 1rem;
	background: var(--lot-paper);
	border-radius: 12px;
}

.lot-table-filters > label {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin: 0;
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lot-muted);
	font-weight: 700;
}

.lot-filter-pair {
	display: flex;
	gap: 0.5rem;
	width: 100%;
	position: relative;
}

.lot-filter-pair > select {
	flex: 1 1 0;
}

.lot-table-filters > label > span:first-child {
	display: block;
}

.lot-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.lot-table-grid {
	width: 100%;
	border-collapse: collapse;
	color: var(--lot-dark);
}

.lot_table_row th,
.lot_table_header {
	padding: 0.85rem 0.9rem;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.72rem;
	color: var(--lot-muted);
	font-weight: 700;
	border-bottom: 1px solid var(--lot-line);
}

.lot_table_header a {
	color: inherit;
	margin-left: 0.35rem;
}

.lot_table_header a:focus-visible {
	outline: var(--lot-focus);
	outline-offset: 2px;
}

.lot_table_cell {
	padding: 0.95rem 0.9rem;
	text-align: left;
	font-size: 0.95rem;
	vertical-align: middle;
}

.lot_table_cell.lot_number span {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.lot_table_cell_row {
	border-top: 1px solid var(--lot-line);
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.lot_table_cell_row:hover {
	background: rgba(133, 105, 58, 0.07);
}

.lot_table_cell_row:focus,
.lot_table_cell_row:focus-visible {
	outline: var(--lot-focus);
	outline-offset: -2px;
	background: rgba(133, 105, 58, 0.1);
}

.lot_table_cell_row.is-selected {
	background: rgba(133, 105, 58, 0.12);
	box-shadow: inset 3px 0 0 var(--lot-primary);
}

.lot_table select,
.lot_table_sort_select,
.lot_table_filter_select {
	appearance: none;
	width: 100%;
	min-height: 44px;
	padding: 0.55rem 2.1rem 0.55rem 0.8rem;
	border: 1px solid var(--lot-line);
	border-radius: 8px;
	background-color: var(--lot-white);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231A1A1A' d='M1.4 0.6L6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8rem center;
	background-size: 10px 7px;
	color: var(--lot-dark);
	font: inherit;
	font-size: 0.9rem;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 400;
}

.lot_table select:focus-visible,
.lot_table_sort_select:focus-visible,
.lot_table_filter_select:focus-visible {
	outline: var(--lot-focus);
	outline-offset: 2px;
}

.lot-table-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 1.25rem;
	align-items: center;
	justify-content: flex-end;
}

button.lot_table_chg_page,
a.lot_table_chg_page {
	margin: 0;
	min-width: 44px;
	min-height: 44px;
	padding: 0.35rem 0.75rem;
	text-decoration: none;
	background: transparent;
	border: 1px solid var(--lot-line);
	cursor: pointer;
	color: var(--lot-dark);
	font: inherit;
	font-size: 0.85rem;
}

button.lot_table_chg_page:hover,
a.lot_table_chg_page:hover {
	border-color: var(--lot-primary);
}

button.lot_table_chg_page:focus-visible,
a.lot_table_chg_page:focus-visible {
	outline: var(--lot-focus);
	outline-offset: 2px;
}

button.lot_table_chg_page.active,
a.lot_table_chg_page.active {
	border-color: var(--lot-primary);
	background: var(--lot-primary);
	color: var(--lot-white);
	font-weight: 700;
}

.lot-map-goldie-note {
	margin-top: 1.25rem;
	padding: 0.75rem 1rem;
	border-left: 3px solid var(--lot-primary);
	font-size: 0.9rem;
}

.lot-map-overlay-tuner,
.lot-map-dev-tuner {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	z-index: 12;
	width: min(22rem, calc(100% - 2rem));
	max-height: 42%;
	overflow: auto;
	padding: 0.75rem 0.85rem;
	border-radius: 0.5rem;
	background: rgba(26, 26, 26, 0.92);
	color: #f7f4ef;
	font-size: 0.78rem;
	line-height: 1.4;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.lot-map-overlay-tuner__title,
.lot-map-dev-tuner__title {
	margin: 0 0 0.35rem;
	font-weight: 700;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.lot-map-overlay-tuner__hint,
.lot-map-dev-tuner__hint {
	margin: 0 0 0.55rem;
	opacity: 0.85;
}

.lot-map-dev-tuner__modes {
	display: flex;
	gap: 0.35rem;
	margin: 0 0 0.55rem;
}

.lot-map-dev-tuner__mode {
	flex: 1 1 0;
	padding: 0.35rem 0.5rem;
	border: 1px solid rgba(247, 244, 239, 0.25);
	border-radius: 0.35rem;
	background: transparent;
	color: #f7f4ef;
	font-size: 0.72rem;
	font-weight: 600;
	cursor: pointer;
}

.lot-map-dev-tuner__mode.is-active {
	border-color: #3d6b7a;
	background: rgba(61, 107, 122, 0.35);
}

.lot-map-overlay-tuner__opacity,
.lot-map-dev-tuner__opacity {
	display: block;
	margin: 0 0 0.65rem;
}

.lot-map-overlay-tuner__opacity span,
.lot-map-dev-tuner__opacity span {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.35rem;
}

.lot-map-overlay-tuner__opacity input[type="range"],
.lot-map-dev-tuner__opacity input[type="range"] {
	width: 100%;
	accent-color: var(--lot-primary);
	cursor: pointer;
}

.lot-map-overlay-tuner__output,
.lot-map-dev-tuner__output {
	margin: 0 0 0.55rem;
	padding: 0.5rem;
	border-radius: 0.35rem;
	background: rgba(0, 0, 0, 0.35);
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.68rem;
	white-space: pre-wrap;
	word-break: break-word;
}

.lot-map-overlay-tuner__copy,
.lot-map-dev-tuner__copy {
	display: inline-block;
	padding: 0.35rem 0.65rem;
	border: 0;
	border-radius: 0.35rem;
	background: var(--lot-primary);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
}

.lot-map-overlay-tuner__copy:hover,
.lot-map-dev-tuner__copy:hover {
	filter: brightness(1.05);
}

@media (max-width: 782px) {
	.lot-map-overlay-tuner,
	.lot-map-dev-tuner {
		position: static;
		width: 100%;
		max-height: none;
		margin-top: 0.75rem;
	}
}

.wp-block-shortcode:empty {
	display: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (min-width: 700px) {
	.lot-table-filters {
		grid-template-columns: 1.2fr 1.2fr 0.9fr;
		align-items: end;
	}
}

@media (max-width: 781px) {
	.lot-map-stage {
		border-radius: 14px;
	}

	.lot-map-canvas,
	#lot_map.lot-map-canvas {
		height: 70vh;
		min-height: 420px;
		max-height: 640px;
	}

	/* Match desktop selector specificity so top:1.15rem cannot stretch the card. */
	.lot-map-stage .lotInfo,
	.lot-map-suite .lotInfo,
	.lotInfo {
		top: unset;
		right: 0.65rem;
		bottom: 0.65rem;
		left: 0.65rem;
		width: auto;
		max-width: none;
		height: auto;
		max-height: 46vh;
		overflow: auto;
		padding: 0.8rem 0.9rem;
		-webkit-overflow-scrolling: touch;
	}

	.lotInfo .lot-info-toggle {
		display: inline-flex;
	}

	.lotInfo:not(.expand) {
		max-height: none;
		overflow: visible;
	}

	.lotInfo:not(.expand) .lot-info-header {
		align-items: center;
		margin: 0;
	}

	.lotInfo:not(.expand) .lot-info-kicker {
		display: none;
	}

	.lotInfo:not(.expand) #lot-info-body {
		display: none;
	}

	.lotInfo:not(.expand) .address {
		margin: 0;
		font-size: 1.35rem;
	}

	.lotInfo:not(.expand) .status {
		margin: 0.2rem 0 0;
	}

	.lot-map-legend {
		top: 0.65rem;
		right: 3.75rem;
		bottom: auto;
		left: 0.65rem;
		transform: none;
		width: auto;
		max-width: none;
		padding: 0.3rem;
		justify-content: flex-start;
	}

	.lot-map-legend .legend-item {
		padding: 0.28rem 0.5rem;
		font-size: 0.65rem;
	}

	#lot_table_container,
	.lot-map-inventory {
		padding: 1.25rem 1rem 1.1rem;
	}

	.lot_table_cell {
		font-size: 0.85rem;
		padding: 0.8rem 0.55rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lotInfo,
	.lot_table_cell_row {
		transition: none;
	}

	.lotInfo:hover {
		transform: none;
	}
}
