/* Single Area page + Area archive grid. No live-site equivalent — new layout built from
   the site's existing design tokens (flagged as a design decision, not a match). */

.lm-area__hero {
	background-color: var( --lm-color-dark );
	color: var( --lm-color-white );
	padding: var( --lm-space-5 ) 0;
}

/*
 * Doubled class beats the Elementor global kit's `.elementor-kit-162 h1{...}` rule, which
 * is more specific than a single class and was overriding this to a dark, near-invisible
 * color on the dark hero background. Same pattern as `.lm-button` in base.css.
 */
.lm-area__title.lm-area__title {
	color: var( --lm-color-white );
	margin-bottom: var( --lm-space-1 );
}

.lm-area__meta {
	display: flex;
	gap: var( --lm-space-3 );
	color: var( --lm-color-dark-muted );
	font-weight: 600;
	margin: 0;
}

.lm-area__content {
	padding: var( --lm-space-5 ) var( --lm-space-3 );
}

.lm-area__description {
	max-width: 70ch;
	margin-bottom: var( --lm-space-5 );
}

.lm-area__garages {
	margin-bottom: var( --lm-space-6 );
}

.lm-garage-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: var( --lm-space-3 );
}

@media ( max-width: 900px ) {
	.lm-garage-grid {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 600px ) {
	.lm-garage-grid {
		grid-template-columns: 1fr;
	}
}

.lm-area__no-garages {
	color: var( --lm-color-text-muted );
}

.lm-area__forms {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	gap: var( --lm-space-5 );
	padding-top: var( --lm-space-5 );
	border-top: 1px solid var( --lm-color-border );
}

/*
 * .lm-area__form-block is stretched to match its (taller) sibling by the grid, but a
 * stretched block element just gains empty space below its content — it doesn't push
 * the plugin's submit button down with it. Making the block a column flex container,
 * and its form a flex child that itself fills the remaining space, lets the button
 * (the form's last <p>) be pinned to the bottom via margin-top: auto below.
 */
.lm-area__form-block {
	display: flex;
	flex-direction: column;
}

.lm-area__form-intro {
	color: var( --lm-color-text-muted );
}

@media ( max-width: 800px ) {
	.lm-area__forms {
		grid-template-columns: 1fr;
	}
}

/* Area archive */

.lm-area-archive {
	padding: var( --lm-space-5 ) 0;
}

.lm-area-archive__header {
	margin-bottom: var( --lm-space-5 );
}

.lm-area-archive__intro {
	color: var( --lm-color-text-muted );
}

.lm-area-grid {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: var( --lm-space-3 );
}

.lm-area-card {
	display: block;
	padding: var( --lm-space-3 );
	border: 1px solid var( --lm-color-border );
	border-radius: var( --lm-radius-card );
	background-color: var( --lm-color-surface-alt );
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.lm-area-card:hover {
	border-color: var( --lm-color-primary );
	transform: translateY( -2px );
}

.lm-area-card .lm-area-card__title {
	font-size: 1.1rem;
	margin-bottom: var( --lm-space-1 );
}

.lm-area-card__region {
	color: var( --lm-color-text-muted );
	font-size: 0.9rem;
	margin: 0;
}
