/*
 * Baseline styling for property cards/grids so they look reasonable even
 * under a theme that doesn't style .bcp-* classes itself. The Beverley
 * Cummin theme's own stylesheet re-styles these more fully; this is just a
 * safety net so nothing looks broken.
 */
.bcp-property-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 1.5rem;
	margin: 1.5rem 0;
}

@media (min-width: 640px) {
	.bcp-property-grid.bcp-columns-2 { grid-template-columns: repeat(2, 1fr); }
	.bcp-property-grid.bcp-columns-3 { grid-template-columns: repeat(2, 1fr); }
	.bcp-property-grid.bcp-columns-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
	.bcp-property-grid.bcp-columns-3 { grid-template-columns: repeat(3, 1fr); }
	.bcp-property-grid.bcp-columns-4 { grid-template-columns: repeat(4, 1fr); }
}

.bcp-card {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.bcp-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.bcp-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #f0f0f0;
	overflow: hidden;
}

.bcp-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bcp-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	background: #1c1c1c;
	color: #fff;
	font-size: 0.7rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 0.25rem 0.6rem;
	border-radius: 3px;
}

.bcp-card__body {
	padding: 1rem;
}

.bcp-card__price {
	font-weight: 700;
}

.bcp-card__title {
	margin: 0.25rem 0;
	font-size: 1.1rem;
}

.bcp-card__meta {
	display: flex;
	gap: 1rem;
	font-size: 0.85rem;
	color: #555;
	margin-top: 0.5rem;
}
