/* Home page Active MLS listing stats */

.psco-home-stats {
	clear: both;
	margin: 2rem 0 1.5rem;
	padding: 0;
	font-family: Lato, sans-serif;
}

.psco-home-stats__heading {
	margin: 0 0 1.5rem;
	padding: 0 0 0.65rem;
	border-bottom: 1px solid #152d4d;
	width: 100%;
	box-sizing: border-box;
	font-family: Cinzel, serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.3;
	color: #152d4d;
}

/* Shared home section titles (stats, sold, new listings) */
.psco-home-section-title {
	clear: both;
	margin: 0 0 1.5rem;
	padding: 0 0 0.65rem;
	border-bottom: 1px solid #152d4d;
	width: 100%;
	box-sizing: border-box;
	font-family: Cinzel, serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.3;
	color: #152d4d;
}

.psco-home-stats__type {
	margin: 0 0 1.75rem;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid #dcdcde;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.psco-home-stats__type-title {
	margin: 0 0 1rem;
	padding: 0 0 0.65rem;
	border-bottom: 1px solid #ececec;
	font-family: Cinzel, serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: #152d4d;
}

.psco-home-stats__towns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1.15rem;
}

.psco-home-stats__town-card {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1rem;
	background: #f6f7f7;
	border: 1px solid #e8e8ea;
}

.psco-home-stats__town-name {
	margin: 0 0 0.25rem;
	padding: 0;
	font-family: Cinzel, serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}

.psco-home-stats__town-name a {
	color: #152d4d;
	text-decoration: none;
}

.psco-home-stats__town-name a:hover,
.psco-home-stats__town-name a:focus {
	color: #21759b;
	text-decoration: underline;
}

.psco-home-stats__stat {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.55rem 0.65rem;
	background: #fff;
	border: 1px solid #e2e4e7;
	color: #152d4d;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.psco-home-stats__stat:hover,
.psco-home-stats__stat:focus {
	border-color: #152d4d;
	box-shadow: 0 2px 8px rgba(21, 45, 77, 0.08);
	color: #152d4d;
	text-decoration: none;
}

.psco-home-stats__stat--count {
	background: #152d4d;
	border-color: #152d4d;
	color: #fff;
}

.psco-home-stats__stat--count:hover,
.psco-home-stats__stat--count:focus {
	background: #1c3a61;
	border-color: #1c3a61;
	color: #fff;
}

.psco-home-stats__stat-value {
	display: block;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
}

.psco-home-stats__stat-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	opacity: 0.85;
	color: inherit;
}

.psco-home-stats__counties {
	padding-top: 0.35rem;
	border-top: 1px solid #ececec;
}

.psco-home-stats__counties-label {
	margin: 0 0 0.55rem;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #646970;
}

.psco-home-stats__county-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.4;
}

.psco-home-stats__county-table th,
.psco-home-stats__county-table td {
	padding: 0.45rem 0.5rem;
	border-bottom: 1px solid #ececec;
	text-align: left;
	vertical-align: middle;
	color: #313131;
}

.psco-home-stats__county-table thead th {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #646970;
	border-bottom-color: #dcdcde;
}

.psco-home-stats__county-table tbody th {
	font-weight: 700;
	color: #152d4d;
}

.psco-home-stats__source {
	margin: 0.25rem 0 0;
	color: #646970;
	font-size: 13px;
}

.psco-home-stats__empty {
	margin: 0;
	padding: 1rem;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	color: #50575e;
}

.psco-home-sold {
	clear: both;
	margin: 2rem 0 0;
	padding-bottom: 0.5rem;
}

.psco-home-sold .clear {
	clear: both;
	display: block;
	padding-top: 0.75rem;
	margin-bottom: 0;
}

/* ID selector in style.css sets #recentPosts { margin: auto } which zeroes top/bottom — override it. */
#recentPosts.psco-home-new,
.psco-home-new {
	clear: both;
	display: block;
	margin: 4rem auto 2.5rem;
	max-width: 1024px;
	padding: 0 10px;
	box-sizing: border-box;
	font-family: Lato, sans-serif;
}

#recentPosts.psco-home-new .psco-home-section-title {
	margin-top: 0;
}

.psco-home-new__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

.psco-home-new__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
	border: 1px solid #dcdcde;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.psco-home-new__card:hover {
	border-color: #c3c4c7;
	box-shadow: 0 6px 18px rgba(21, 45, 77, 0.1);
	transform: translateY(-2px);
}

.psco-home-new__media {
	display: block;
	overflow: hidden;
	background: #eef1f4;
}

.psco-home-new__media img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.psco-home-new__card:hover .psco-home-new__media img {
	transform: scale(1.03);
}

.psco-home-new__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1rem;
}

.psco-home-new__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.65rem;
}

.psco-home-new__badge {
	display: inline-block;
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.psco-home-new__badge--mls {
	background: #eef3f8;
	color: #152d4d;
}

.psco-home-new__badge--price {
	background: #152d4d;
	color: #fff;
}

.psco-home-new__title {
	margin: 0 0 0.55rem;
	padding: 0;
	font-family: Cinzel, serif;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
}

.psco-home-new__title a {
	color: #152d4d;
	text-decoration: none;
}

.psco-home-new__title a:hover,
.psco-home-new__title a:focus {
	color: #21759b;
}

.psco-home-new__excerpt {
	margin: 0 0 1rem;
	font-size: 15px;
	line-height: 1.55;
	color: #50575e;
}

.psco-home-new__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	margin-top: auto;
	padding-top: 0.85rem;
	border-top: 1px solid #ececec;
	font-size: 13px;
	color: #646970;
}

.psco-home-new__link {
	display: inline-block;
	padding: 0.45rem 0.85rem;
	border: 1px solid #152d4d;
	background: #152d4d;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
}

.psco-home-new__link:hover,
.psco-home-new__link:focus {
	background: #fff;
	color: #152d4d !important;
}

@media screen and (max-width: 900px) {
	.psco-home-stats__towns {
		grid-template-columns: 1fr;
	}

	.psco-home-new__grid {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 600px) {
	.psco-home-stats__heading,
	.psco-home-section-title {
		font-size: 24px;
	}

	.psco-home-stats__type {
		padding: 1rem;
	}

	.psco-home-stats__county-table {
		font-size: 13px;
	}

	.psco-home-stats__county-table th,
	.psco-home-stats__county-table td {
		padding: 0.4rem 0.3rem;
	}

	.psco-home-new__media img {
		height: 200px;
	}
}
