/* ==========================================================================
   Represented — Front-end Styles
   ========================================================================== */

/* Grid layout */
.represented-listings {
	display: grid;
	gap: 24px;
	margin: 24px 0;
}
.represented-cols-1 { grid-template-columns: 1fr; }
.represented-cols-2 { grid-template-columns: repeat(2, 1fr); }
.represented-cols-3 { grid-template-columns: repeat(3, 1fr); }
.represented-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.represented-cols-3,
	.represented-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.represented-cols-2,
	.represented-cols-3,
	.represented-cols-4 { grid-template-columns: 1fr; }
}

/* Card */
.represented-listing-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(0,0,0,.07);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.represented-listing-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,.12);
	transform: translateY(-2px);
}

/* Card image */
.represented-card-image {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f1f5f9;
}
.represented-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.represented-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	font-size: 13px;
}

/* Card body */
.represented-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Status badge */
.represented-status {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 3px 9px;
	border-radius: 4px;
	margin-bottom: 8px;
	color: #fff;
}
.represented-status--for-sale   { background: #16a34a; }
.represented-status--for-rent   { background: #2563eb; }
.represented-status--sold       { background: #dc2626; }
.represented-status--rented     { background: #7c3aed; }
.represented-status--off-market { background: #64748b; }

/* Title */
.represented-card-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 4px;
	line-height: 1.3;
}
.represented-card-title a {
	color: inherit;
	text-decoration: none;
}
.represented-card-title a:hover { text-decoration: underline; }

/* Address */
.represented-card-address {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 8px;
}

/* Price */
.represented-card-price {
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 10px;
}

/* Specs */
.represented-card-specs {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: flex;
	gap: 16px;
	font-size: 13px;
	color: #475569;
}
.represented-card-specs li span {
	font-weight: 700;
	color: #0f172a;
}

/* Excerpt */
.represented-card-excerpt {
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
	flex: 1;
	margin-bottom: 14px;
}
.represented-card-excerpt p { margin: 0; }

/* CTA link */
.represented-card-link {
	display: inline-block;
	background: #1d4ed8;
	color: #fff;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	align-self: flex-start;
	transition: background 0.15s ease;
}
.represented-card-link:hover {
	background: #1e40af;
	color: #fff;
}

/* No listings message */
.represented-no-listings {
	color: #64748b;
	font-style: italic;
}
