/* CH Lot Map — interactive homesite selector

   Chip rules are scoped under .ch-lot-map__chips on purpose. The Hello
   Elementor reset styles every [type="button"] in its own pink, at the same
   specificity as a single class, and it loads after this file — so a bare
   .ch-lot-map__chip would lose the tie on source order. */

.ch-lot-map__box {
	position: relative;
	min-height: 320px;
}

.ch-lot-map__placeholder-image {
	display: none !important;
}

.ch-lot-map__canvas {
	width: 100%;
	aspect-ratio: 3 / 2;
	min-height: 320px;
	background-color: #15140F;
}

/* The Elementor box around the old placeholder carries its own aspect-ratio.
   Filling it outright keeps the map flush instead of leaving a bare strip
   wherever the two ratios disagree. */
.ch-lot-map__box > .ch-lot-map__canvas {
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	min-height: 0;
	aspect-ratio: auto;
}

.ch-lot-map__canvas--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
	background-color: rgba(184, 157, 114, 0.08);
	border: 1px dashed rgba(184, 157, 114, 0.45);
}

.ch-lot-map__notice {
	max-width: 42ch;
	font-family: Roboto, sans-serif;
	font-size: 13px;
	line-height: 1.7;
	letter-spacing: 0.02em;
	color: rgba(26, 26, 26, 0.72);
	text-align: center;
}

/* The caption is an absolutely positioned overlay on the placeholder image.
   Once it is moved out from over the map it has to go back into normal flow. */
.ch-lot-map__caption {
	position: static !important;
	inset: auto !important;
	transform: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 16px 0 0 !important;
	padding: 0 !important;
	text-align: left !important;
	background: none !important;
	border: 0 !important;
}

.ch-lot-map__chips {
	margin-top: 22px;
}

.ch-lot-map__chips .ch-lot-map__chips-label {
	margin: 0 0 12px;
	font-family: Roboto, sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #B89D72;
}

.ch-lot-map__chips .ch-lot-map__chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ch-lot-map__chips .ch-lot-map__chip {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 11px 15px;
	font-family: Roboto, sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #1A1A1A;
	background-color: transparent;
	border: 1px solid rgba(184, 157, 114, 0.45);
	border-radius: 0;
	cursor: pointer;
	transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.ch-lot-map__chips .ch-lot-map__chip::before {
	content: "";
	width: 8px;
	height: 8px;
	flex: 0 0 auto;
	background-color: var(--ch-lot-color, #B89D72);
}

.ch-lot-map__chips .ch-lot-map__chip:hover,
.ch-lot-map__chips .ch-lot-map__chip:focus-visible {
	color: #B89D72;
	border-color: #B89D72;
	background-color: transparent;
}

.ch-lot-map__chips .ch-lot-map__chip:focus-visible {
	outline: 2px solid #B89D72;
	outline-offset: 3px;
}

.ch-lot-map__chips .ch-lot-map__chip.is-selected {
	color: #FFFFFF;
	background-color: #B89D72;
	border-color: #B89D72;
}

.ch-lot-map__chips .ch-lot-map__chip.is-selected::before {
	background-color: #FFFFFF;
}

@media (max-width: 767px) {
	.ch-lot-map__canvas {
		aspect-ratio: 4 / 3;
		min-height: 280px;
	}

	.ch-lot-map__box {
		min-height: 280px;
	}

	.ch-lot-map__chips .ch-lot-map__chip {
		padding: 10px 12px;
		letter-spacing: 0.1em;
	}
}
