/* Real Estate Automation Lab: front-end styles. Inherits the theme's fonts and colours. */
.trel-profile,
.trel-directory {
	--trel-border: rgba(127, 127, 127, 0.3);
	--trel-muted: rgba(127, 127, 127, 0.95);
	--trel-accent-bg: rgba(127, 127, 127, 0.1);
	--trel-warn-bg: rgba(230, 160, 0, 0.15);
	box-sizing: border-box;
	max-width: 100%;
}
.trel-profile *,
.trel-directory * {
	box-sizing: border-box;
}
.trel-profile__location {
	font-size: 1.05em;
	color: var(--trel-muted);
	margin: 0 0 1em;
}
.trel-profile__notice,
.trel-fictional-banner {
	background: var(--trel-warn-bg);
	border-left: 4px solid rgba(230, 160, 0, 0.9);
	padding: 0.6em 0.9em;
	margin: 0 0 1.2em;
	font-size: 0.95em;
}
.trel-profile__section {
	margin: 0 0 2em;
}
.trel-facts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 0.75em 1.5em;
	margin: 0;
}
.trel-facts > div {
	border-bottom: 1px solid var(--trel-border);
	padding: 0.4em 0;
}
.trel-facts dt {
	font-size: 0.85em;
	color: var(--trel-muted);
	margin: 0;
}
.trel-facts dd {
	margin: 0;
	font-weight: 600;
}
.trel-na {
	color: var(--trel-muted);
	font-weight: 400;
	font-style: italic;
}
.trel-unconfirmed {
	font-size: 0.8em;
	font-weight: 400;
	color: #a35f00;
}
.trel-amenities {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	list-style: none;
	padding: 0;
	margin: 0;
}
.trel-amenities li {
	background: var(--trel-accent-bg);
	border-radius: 999px;
	padding: 0.25em 0.8em;
	margin: 0;
}
.trel-listings,
.trel-directory__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1em;
	list-style: none;
	padding: 0;
	margin: 0;
}
.trel-listing,
.trel-card {
	border: 1px solid var(--trel-border);
	border-radius: 8px;
	padding: 1em;
	margin: 0;
	overflow-wrap: anywhere;
}
.trel-listing h3,
.trel-card h3 {
	margin: 0.3em 0;
	font-size: 1.15em;
}
.trel-listing p,
.trel-card p {
	margin: 0.3em 0;
}
.trel-listing__price {
	font-size: 1.2em;
	font-weight: 700;
}
.trel-listing__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
}
.trel-tag {
	display: inline-block;
	font-size: 0.75em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 0.15em 0.55em;
	border-radius: 4px;
	background: var(--trel-accent-bg);
}
.trel-tag--fictional {
	background: #a35f00;
	color: #fff;
}
.trel-listing--sold,
.trel-listing--rented {
	opacity: 0.75;
}
.trel-card__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
	margin-bottom: 0.5em;
}
.trel-card__location,
.trel-card__facts {
	font-size: 0.9em;
	color: var(--trel-muted);
}
.trel-directory__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em 1em;
	align-items: flex-end;
	margin: 0 0 1em;
}
.trel-directory__form p {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-width: 180px;
	flex: 1 1 180px;
}
.trel-directory__form .trel-directory__actions {
	flex-direction: row;
	align-items: center;
	gap: 0.75em;
	flex: 0 0 auto;
	min-width: 0;
}
.trel-directory__form input,
.trel-directory__form select {
	max-width: 100%;
}
.trel-directory__count {
	color: var(--trel-muted);
}
.trel-directory__pagination {
	margin-top: 1.5em;
}
.trel-directory__pagination .page-numbers {
	display: inline-block;
	padding: 0.25em 0.6em;
}
