.stp {
	--stp-accent: #d71920;
	--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-accent); }

/* 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, .stp-field textarea {
	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-accent) !important; border: 1px solid var(--stp-accent); }
.stp-btn-block { width: 100%; }
.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 + 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-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) 340px; 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 listing details */
.stp-contact { position: sticky; top: 24px; background: var(--stp-soft); border: 1px solid var(--stp-line); border-top: 4px solid var(--stp-accent); border-radius: var(--stp-radius); padding: 20px; }
.stp-contact .stp-h2 { margin-top: 0; }
.stp-contact-lines { font-weight: 600; }
.stp-form { display: grid; gap: 10px; }
.stp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stp-team { font-size: 13px; color: var(--stp-muted); margin: 14px 0 0; }
.stp-ok { background: #e7f6ec; color: #135c2c; padding: 10px 12px; border-radius: 6px; }
.stp-err { background: #fdecea; color: #8a1c13; padding: 10px 12px; border-radius: 6px; }

/* 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; }
}
