.rspidx-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 16px;
	background: #f7f7f8;
	border: 1px solid #e2e2e4;
	border-radius: 6px;
	margin-bottom: 20px;
}
.rspidx-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
}
.rspidx-field label {
	font-weight: 600;
}
.rspidx-field input,
.rspidx-field select {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	min-width: 140px;
}
.rspidx-field-submit {
	justify-content: flex-end;
}
.rspidx-field-checkboxes {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.rspidx-checkbox {
	display: flex;
	align-items: center;
	gap: 5px;
	font-weight: 400;
	cursor: pointer;
}
.rspidx-search-submit {
	padding: 10px 20px;
	background: #1a5f7a;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}
.rspidx-search-submit:hover {
	background: #144a5f;
}

.rspidx-results-meta {
	margin-bottom: 10px;
	font-size: 14px;
	color: #555;
}

.rspidx-results-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	min-height: 80px;
	position: relative;
}
.rspidx-results-grid.rspidx-loading {
	opacity: 0.5;
}

.rspidx-card {
	display: block;
	text-decoration: none;
	color: inherit;
	border: 1px solid #e2e2e4;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease;
}
.rspidx-card:hover {
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.rspidx-card-photo {
	position: relative;
}
.rspidx-card-photo img {
	width: 100%;
	height: 170px;
	object-fit: cover;
	display: block;
}
.rspidx-card-photo-placeholder {
	width: 100%;
	height: 170px;
	background: #e8e8ea;
}
.rspidx-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #1a5f7a;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 3px 8px;
	border-radius: 3px;
	z-index: 1;
}
.rspidx-badge-detail {
	position: static;
	display: inline-block;
	margin-bottom: 8px;
}
.rspidx-card-body {
	padding: 10px 12px;
}
.rspidx-card-price {
	font-size: 18px;
	font-weight: 700;
}
.rspidx-card-address {
	font-size: 14px;
	color: #444;
	margin: 4px 0 6px;
}
.rspidx-card-stats {
	display: flex;
	gap: 10px;
	font-size: 13px;
	color: #666;
}

.rspidx-placeholder,
.rspidx-notice {
	grid-column: 1 / -1;
	text-align: center;
	color: #777;
	padding: 30px 0;
}

.rspidx-pagination {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 20px;
}
.rspidx-page-btn {
	padding: 6px 12px;
	border: 1px solid #ccc;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
}
.rspidx-page-btn.is-active {
	background: #1a5f7a;
	color: #fff;
	border-color: #1a5f7a;
}

/* Detail page */
.rspidx-detail {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 30px;
	max-width: 100%;
}
.rspidx-detail-gallery,
.rspidx-detail-summary {
	/* Grid items default to min-width: auto, which means they won't shrink
	   below their CONTENT's natural size -- a full-resolution MLS photo
	   (often 2000px+ wide) would otherwise force this column, and the
	   whole grid, wider than the page. min-width: 0 overrides that so the
	   1.3fr/1fr split actually gets honored regardless of image size. */
	min-width: 0;
}
.rspidx-detail img {
	max-width: 100%;
	height: auto;
	display: block;
}
.rspidx-detail-main-photo img {
	width: 100%;
	object-fit: cover;
	border-radius: 6px;
	max-height: 480px;
}
.rspidx-detail-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 8px;
	overflow-x: auto;
}
.rspidx-detail-thumbs img {
	width: 90px;
	height: 65px;
	object-fit: cover;
	border-radius: 4px;
}
.rspidx-detail-price {
	font-size: 30px;
	margin: 0 0 6px;
}
.rspidx-detail-status-pending {
	font-size: 15px;
	font-weight: 600;
	color: #cc0000;
	vertical-align: middle;
	margin-left: 8px;
}
.rspidx-detail-address {
	color: #555;
	margin-bottom: 16px;
}
.rspidx-detail-stats {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 0;
	margin: 0 0 20px;
	font-size: 14px;
}
.rspidx-detail-description {
	line-height: 1.6;
	margin-bottom: 20px;
}
.rspidx-detail-contact {
	background: #f7f7f8;
	border: 1px solid #e2e2e4;
	border-radius: 6px;
	padding: 16px;
	margin-bottom: 16px;
}
.rspidx-detail-contact h3 {
	margin: 0 0 8px;
	font-size: 15px;
}
.rspidx-detail-contact p {
	margin: 2px 0;
}
.rspidx-contact-name {
	font-weight: 600;
}
.rspidx-detail-attribution {
	font-size: 13px;
	color: #777;
	margin-bottom: 10px;
}
.rspidx-detail-disclaimer {
	font-size: 12px;
	line-height: 1.5;
	color: #888;
	border-top: 1px solid #eee;
	padding-top: 12px;
}

@media (max-width: 720px) {
	.rspidx-detail {
		grid-template-columns: 1fr;
	}
}
