/**
 * Woning-loop-kaarten (grid-house-item) — getoond over de hele site
 * (recente woningen, open huizen) én op /aanbod. Handgeschreven CSS,
 * afgestemd op de huisstijl (Montserrat + brand-rood #C8102E).
 *
 * Markup: partials/objects/loop/grid-object.php
 */

:root {
	--eu-rood: #c8102e;
	--eu-rood-donker: #a50d25;
	--eu-kaart-rand: #ece8e4;
	--eu-tekst: #1a1a1a;
	--eu-tekst-zacht: #6b6661;
}

/* Kaart-wrapper (link) */
.grid-house-item {
	display: block;
	background: #fff;
	border: 1px solid var(--eu-kaart-rand);
	border-radius: 14px;
	overflow: hidden;
	color: var(--eu-tekst);
	text-decoration: none;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}

.grid-house-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

/* Afbeelding */
.grid-house-item__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: #f4f1ee;
}

.grid-house-item__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.grid-house-item:hover .grid-house-item__image img {
	transform: scale(1.04);
}

/* Status-badge (verkocht / onder bod / etc.) */
.grid-house-item__status {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 5px 12px;
	border-radius: 4px;
	font-family: "Montserrat", sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
	background: var(--eu-rood);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.grid-house-item__status.status--verkocht,
.grid-house-item__status.status--verkocht-onder-voorbehoud {
	background: #1a1a1a;
}

.grid-house-item__status.status--onder-bod,
.grid-house-item__status.status--onder-optie {
	background: #e67e22;
}

.grid-house-item--verkocht .grid-house-item__image img {
	filter: saturate(0.85);
}

/* Open-huis-band (rode balk onderaan de foto) */
.open-huis-band {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	padding: 8px 14px;
	background: var(--eu-rood);
	color: #fff;
	font-family: "Montserrat", sans-serif;
}

.open-huis-band .oh-titel {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.open-huis-band .oh-datum {
	font-size: 13px;
	font-weight: 600;
	text-transform: capitalize;
}

.open-huis-band .oh-tijd {
	font-size: 13px;
	font-weight: 400;
	opacity: 0.9;
	margin-left: auto;
}

/* Inhoud */
.grid-house-item_content {
	padding: 18px 20px 22px;
	font-family: "Montserrat", sans-serif;
}

.grid-house-item__title {
	margin: 0 0 2px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
	color: var(--eu-tekst);
}

.grid-house-item_content .zipcode-tekst {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--eu-tekst-zacht);
}

.grid-house-item_content .clr-red,
.grid-house-item_content h6.clr-red {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: var(--eu-rood);
}

/* Kenmerken-lijst met icomoon-iconen */
.grid-house-item_content ul {
	list-style: none;
	margin: 0 0 12px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--eu-kaart-rand);
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.grid-house-item_content ul li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--eu-tekst-zacht);
}

.grid-house-item_content ul li span {
	font-weight: 600;
	color: var(--eu-tekst);
}

.grid-house-item_content ul li [class^="icon-"],
.grid-house-item_content ul li [class*=" icon-"] {
	font-size: 16px;
	color: var(--eu-rood);
	line-height: 1;
}

/* Korte omschrijving */
.grid-house-item_content > p:last-child {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--eu-tekst-zacht);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Wrapper-resets uit de oude markup */
.grid-house-item .news-item-details,
.grid-house-item .news-title {
	display: block;
}

/* ------------------------------------------------------------------ *
 * Native contactformulier op de single-woningpagina (broker-card).
 * Vervangt het oude CF7-formulier; gestyled in de huisstijl zodat het
 * naadloos in de bestaande .broker-contact-card past.
 * ------------------------------------------------------------------ */
.broker-info .broker-role {
	display: block;
	font-size: 13px;
	color: var(--eu-tekst-zacht);
	margin: 2px 0 10px;
}

.broker-form .eu-form {
	margin: 0;
}

.broker-form .rw-form-intro {
	font-size: 14px;
	line-height: 1.5;
	color: var(--eu-tekst-zacht);
	margin: 0 0 16px;
}

.broker-form .rw-form-row {
	margin-bottom: 12px;
}

.broker-form input[type="text"],
.broker-form input[type="email"],
.broker-form input[type="tel"],
.broker-form textarea {
	width: 100%;
	display: block;
	box-sizing: border-box;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	color: var(--eu-tekst);
	background: #fff;
	border: 1px solid var(--eu-kaart-rand);
	border-radius: 8px;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.broker-form input::placeholder,
.broker-form textarea::placeholder {
	color: #9a948e;
}

.broker-form input:focus,
.broker-form textarea:focus {
	border-color: var(--eu-rood);
	box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}

.broker-form textarea {
	resize: vertical;
	min-height: 110px;
}

.broker-form .rw-form-submit {
	display: inline-block;
	width: 100%;
	margin-top: 4px;
	padding: 13px 20px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: var(--eu-rood);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease;
}

.broker-form .rw-form-submit:hover {
	background: var(--eu-rood-donker);
}

.broker-form .eu-form-status {
	margin: 12px 0 0;
	font-size: 14px;
	text-align: center;
}

.broker-form .eu-form-status--ok {
	color: #1a7f37;
}

.broker-form .eu-form-status--error {
	color: var(--eu-rood);
}
