/* Real Estate Manager — front-end styles */

.linkify-re-property-grid {
	display: grid;
	grid-template-columns: repeat(var(--linkify-re-columns, 3), 1fr);
	gap: 24px;
}

@media (max-width: 782px) {
	.linkify-re-property-grid {
		grid-template-columns: 1fr;
	}
}

.linkify-re-property-card {
	position: relative;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.linkify-re-property-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.linkify-re-property-card--inactive {
}

.linkify-re-property-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f0f0f0;
}

.linkify-re-property-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.linkify-re-ribbon {
	position: absolute;
	top: -20px;
	left: 0;
	width: 240px;
	padding: 10px 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-align: center;
	transform: rotate(-35deg);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	z-index: 2;
}

.linkify-re-ribbon--top-left {
	left: -84px;
}

.linkify-re-ribbon--top-right {
	right: -84px;
	left: auto;
	transform: rotate(35deg);
}

.linkify-re-property-card__status-badge,
.linkify-re-status-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	position: absolute;
	top: 12px;
	left: 10px;
	padding: 4px 10px;
	border-radius: 4px;
	letter-spacing: 0.04em;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
}

.linkify-re-status--for_sale { background-color: #2c7a4b; }
.linkify-re-status--for_rent { background-color: #2563a6; }
.linkify-re-status--sold,
.linkify-re-status--rented { background-color: #6b6b6b; }

.linkify-re-property-card__body {
	padding: 14px 16px;
}

.linkify-re-property-card__title {
	margin: 0 0 6px;
	font-size: 16px;
}

.linkify-re-property-card__title a {
	text-decoration: none;
	color: inherit;
}

.linkify-re-property-card__price {
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 18px;
}

.linkify-re-property-card__specs {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
	color: #555;
}

.linkify-re-no-results {
	padding: 24px;
	text-align: center;
	color: #666;
}

/* Search form */

.linkify-re-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	margin-bottom: 24px;
}

.linkify-re-search-form__field {
	display: flex;
	flex-direction: column;
	font-size: 13px;
}

.linkify-re-search-form__field label {
	margin-bottom: 4px;
	font-weight: 600;
}

/* Single property page */

.linkify-re-single-property__gallery {
	position: relative;
}

.linkify-re-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.linkify-re-gallery-thumbs img {
	width: 110px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
}

.linkify-re-single-property__details {
	margin: 20px 0;
	border-collapse: collapse;
}

.linkify-re-single-property__details th {
	text-align: left;
	padding: 6px 16px 6px 0;
	color: #555;
}

.linkify-re-property-map {
	border-radius: 6px;
	overflow: hidden;
	margin: 20px 0;
}

.linkify-re-single-property__contact {
	margin-top: 24px;
	padding: 16px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
}

/* Leaflet popup content */

.linkify-re-map-popup__title {
	font-weight: 700;
	margin-bottom: 4px;
}
