/* Listings feed (PropTx). Ported from the staging plugin "Sarin Listings" (stp.css), with the site's brand colours. */
.stp {
	--stp-accent: #C8102E;
	--stp-link: #B3001B;
	--stp-text: #1d2327;
	--stp-muted: #5b6470;
	--stp-line: #e3e6ea;
	--stp-bg: #fff;
	--stp-soft: #f6f7f9;
	--stp-radius: 10px;
	color: var(--stp-text);
	font-size: 15px;
	line-height: 1.5;
}
.stp *, .stp *::before, .stp *::after { box-sizing: border-box; }
.stp-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 48px; }
.stp-h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 16px; }
.stp-h2 { font-size: 1.25rem; margin: 28px 0 12px; }
.stp a { color: var(--stp-link); }
.pfeed .stp { margin-top: 8px; }

/* Search form */
.stp-search { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; align-items: end; background: var(--stp-soft); border: 1px solid var(--stp-line); border-radius: var(--stp-radius); padding: 16px; margin-bottom: 20px; }
.stp-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--stp-muted); margin: 0; }
.stp-field-wide { grid-column: 1 / -1; }
.stp-field input, .stp-field select { width: 100%; font: inherit; font-size: 15px; color: var(--stp-text); background: var(--stp-bg); border: 1px solid #c9ced4; border-radius: 6px; padding: 9px 10px; min-height: 42px; }
.stp-actions { display: flex; gap: 12px; align-items: center; }
.stp-btn { display: inline-block; background: var(--stp-accent); color: #fff !important; border: 0; border-radius: 6px; padding: 11px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 42px; }
.stp-btn:hover { filter: brightness(1.1); }
.stp-btn-ghost { background: transparent; color: var(--stp-link) !important; border: 1px solid var(--stp-accent); }
.stp-reset { font-size: 14px; }
.stp-count { color: var(--stp-muted); margin: 0 0 12px; }
.stp-empty { padding: 24px; background: var(--stp-soft); border-radius: var(--stp-radius); }

/* Cards */
.stp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.stp-card { background: var(--stp-bg); border: 1px solid var(--stp-line); border-radius: var(--stp-radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.stp-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.stp-card-link { display: block; color: inherit !important; text-decoration: none; }
.stp-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--stp-soft); }
.stp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stp-badge { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.95); color: var(--stp-text); font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; }
.stp-card-body { padding: 12px 14px 14px; }
.stp-price { font-size: 1.3rem; font-weight: 700; }
.stp-price-lg { font-size: 1.8rem; margin: 4px 0; }
.stp-addr { font-weight: 600; margin-top: 2px; }
/* Same font and size for all listing details, including the brokerage (IDX rule 6.3(c)). */
.stp-detail { font-size: 14px; color: var(--stp-muted); margin: 2px 0 0; }
.stp-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--stp-muted); font-size: 14px; }
.stp-noimg-lg { min-height: 320px; background: var(--stp-soft); border-radius: var(--stp-radius); }
.stp-more { text-align: center; margin: 20px 0 0; }

/* Pager */
.stp-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0 0; }
.stp-page { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--stp-line); border-radius: 6px; text-decoration: none; }
.stp-page.is-current { background: var(--stp-accent); color: #fff; border-color: var(--stp-accent); }

/* Single listing */
.stp-top { background: #000; padding: 150px 0 20px; }
.stp-top .stp-back { margin: 0; font-size: 15px; }
.stp-top .stp-back a { color: #FF3B4E; }
@media (max-width: 860px) { .stp-top { padding-top: 96px; } }
.stp-back { margin: 0 0 12px; font-size: 14px; }
.stp-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--stp-radius); -webkit-overflow-scrolling: touch; }
.stp-gallery img { flex: 0 0 auto; height: min(56vw, 460px); width: auto; max-width: 92%; object-fit: cover; scroll-snap-align: start; border-radius: 6px; background: var(--stp-soft); }
.stp-hint { font-size: 13px; color: var(--stp-muted); margin: 6px 0 0; }
.stp-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; margin-top: 20px; align-items: start; }
.stp-sub { color: var(--stp-muted); margin: -8px 0 0; }
.stp-remarks p { margin: 0 0 12px; }
.stp-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 24px; margin: 0; }
.stp-fact { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--stp-line); font-size: 14px; }
.stp-fact dt { color: var(--stp-muted); margin: 0; }
.stp-fact dd { margin: 0; text-align: right; font-weight: 600; }
.stp-map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--stp-radius); }
/* Sarin Team contact, visually separate from the listing details (IDX rule 6.3(e)). */
.stp-contact { position: sticky; top: 24px; }

/* Disclaimer */
.stp-disclaimer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--stp-line); font-size: 12px; color: var(--stp-muted); }
.stp-disclaimer p { margin: 0 0 6px; }

@media (max-width: 860px) {
	.stp-single-grid { grid-template-columns: 1fr; }
	.stp-contact { position: static; }
}
@media (max-width: 480px) {
	.stp-search { grid-template-columns: 1fr 1fr; }
	.stp-actions { grid-column: 1 / -1; }
	.stp-actions .stp-btn { flex: 1; }
}
