/* Main listing grid */
.pt-listings-container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.pt-sales-row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

/* Individual cards */
.pt-sales-column {
	min-width: 0;
	margin: 0;
}

.pt-post-wrapper {
	height: 100%;
	overflow: hidden;
	border: 1px solid #ddd;
	background: #fff;
}

.pt-listing-image-wrap {
	position: relative;
	overflow: hidden;
}

.listing-image {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
}

/* Price overlay */
.apartment-price {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 7px 10px;
	color: #fff;
	font-size: 20px;
	line-height: 1.2;
	background: rgba(0, 0, 0, 0.58);
}

/* Status labels */
.sold-date,
.not-sold,
.dual-representation {
	position: absolute;
	z-index: 2;
	padding: 4px 7px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-transform: uppercase;
}

.sold-date,
.not-sold {
	top: 8px;
	left: 8px;
}

.sold-date {
	background: #e11;
}

.not-sold {
	background: #16a534;
}

.dual-representation {
	top: 38px;
	left: 8px;
	background: #111;
}

.pt-broker-image {
	position: absolute;
	right: 8px;
	bottom: 42px;
	width: 48px;
	height: 48px;
	object-fit: cover;
	border: 2px solid #fff;
	border-radius: 50%;
}

/* Listing copy */
.pt-listing-content {
	padding: 14px;
}

.pt-listing-details {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 12px;
	margin-bottom: 8px;
	font-size: 14px;
}

.pt-post-heading {
	margin: 0;
	font-size: 16px;
	line-height: 1.35;
}

.pt-listing-description {
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.5;
}

.pt-listing-description > :last-child {
	margin-bottom: 0;
}

/* Pagination */
.pt-pagination {
	margin-top: 35px;
	text-align: center;
}

.pt-pagination ul {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pt-pagination a,
.pt-pagination span {
	display: block;
	min-width: 38px;
	padding: 8px 11px;
	border: 1px solid #ddd;
	text-decoration: none;
}

.pt-pagination .current {
	color: #fff;
	background: #d99a00;
	border-color: #d99a00;
}

/* Tablet */
@media (max-width: 991px) {
	.pt-sales-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Phone */
@media (max-width: 600px) {
	.pt-sales-row {
		grid-template-columns: 1fr;
	}

	.listing-image {
		height: auto;
		aspect-ratio: 4 / 3;
	}
}