/* Tom Said Home Search. Inherits the theme font (Poppins on tomsaid.ca). */
.tshs {
	--tshs-accent: #70138D;
	--tshs-accent-dark: #4E0D63;
	--tshs-ink: #1F1F1F;
	--tshs-muted: #555;
	--tshs-line: #E3E3E3;
	--tshs-soft: #F6F2F8;
	color: var(--tshs-ink);
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	box-sizing: border-box;
}
.tshs *, .tshs *::before, .tshs *::after { box-sizing: border-box; }
.tshs a { color: var(--tshs-accent); }
.tshs a:hover { color: var(--tshs-accent-dark); }
.tshs h1, .tshs h2, .tshs h3 { color: var(--tshs-ink); }

.tshs-btn {
	display: inline-block;
	background: var(--tshs-accent);
	color: #fff !important;
	border: 0;
	border-radius: 999px;
	padding: 13px 24px;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	min-height: 44px;
}
.tshs-btn:hover { background: var(--tshs-accent-dark); }
.tshs-link { background: none; border: 0; color: var(--tshs-accent); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }

/* Filters */
.tshs-filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	align-items: end;
	background: var(--tshs-soft);
	padding: 18px;
	border-radius: 14px;
}
.tshs-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
.tshs select, .tshs input[type="text"], .tshs input[type="email"], .tshs input[type="tel"], .tshs textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #BABABA;
	border-radius: 10px;
	font: inherit;
	font-size: 15px;
	background: #fff;
	color: var(--tshs-ink);
	min-height: 44px;
}
.tshs-mode { display: flex; gap: 14px; align-items: center; min-height: 44px; }
.tshs-mode label { flex-direction: row; align-items: center; gap: 6px; font-weight: 600; }
.tshs-count { margin: 18px 0 10px; font-weight: 600; }

/* Map */
.tshs-map { height: 380px; border-radius: 14px; margin: 0 0 24px; z-index: 0; }
.tshs-map-sm { height: 300px; margin-top: 24px; }
.tshs-pin { background: var(--tshs-accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 7px; border-radius: 6px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.3); }

/* Cards */
.tshs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tshs-card { border: 1px solid var(--tshs-line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.tshs-card-photo { display: block; aspect-ratio: 3 / 2; background: #E9E9E9; position: relative; }
.tshs-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tshs-nophoto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--tshs-muted); font-size: 14px; }
.tshs-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tshs-card-body p, .tshs-card-body h3 { margin: 0; }
.tshs-price { font-size: 1.25rem; font-weight: 700; }
.tshs-addr { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.tshs-addr a { color: var(--tshs-ink); text-decoration: none; }
.tshs-city, .tshs-facts { color: var(--tshs-muted); font-size: 14px; }
.tshs-office { font-size: 13px; color: var(--tshs-ink); margin-top: 6px !important; }
.tshs-badge { display: inline-block; margin-top: 8px; width: 90px; }
.tshs-badge img { width: 90px; height: 90px; display: block; }
.tshs-cta { background: var(--tshs-soft); padding: 24px; justify-content: center; gap: 10px; }
.tshs-cta p { margin: 0; }
.tshs-cta-title { font-size: 1.2rem; font-weight: 700; }
.tshs-empty { padding: 24px; background: var(--tshs-soft); border-radius: 14px; }
.tshs-pages { display: flex; gap: 18px; justify-content: center; align-items: center; margin: 28px 0; }
.tshs-pages a { font-weight: 600; padding: 10px; }

/* Listing page */
.tshs-back { margin: 0 0 14px; }
.tshs-listing { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 32px; }
.tshs-gallery { grid-column: 1 / -1; position: relative; aspect-ratio: 16 / 9; max-height: 560px; background: #E9E9E9; border-radius: 14px; overflow: hidden; }
.tshs-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.tshs-gallery img.is-active { display: block; }
.tshs-prev, .tshs-next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.tshs-prev { left: 12px; }
.tshs-next { right: 12px; }
.tshs-price-lg { font-size: 2rem; margin: 0; }
.tshs-title { font-size: 1.6rem; margin: 4px 0 2px; line-height: 1.25; }
.tshs-office-lg { font-size: 15px; font-weight: 600; }
.tshs-listing-main h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.tshs-remarks { line-height: 1.7; }
.tshs-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 24px; margin: 0; }
.tshs-details div { border-bottom: 1px solid var(--tshs-line); padding: 8px 0; }
.tshs-details dt { font-size: 13px; color: var(--tshs-muted); }
.tshs-details dd { margin: 0; font-weight: 600; }

/* Forms */
.tshs-form-box { background: #fff; border: 1px solid var(--tshs-line); border-radius: 16px; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.tshs-listing-side .tshs-form-box { position: sticky; top: 24px; }
.tshs-form-box form { display: flex; flex-direction: column; gap: 12px; }
.tshs-form-box label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 500; }
.tshs-form-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 4px; }
.tshs-form-sub { margin: 0 0 14px; color: var(--tshs-muted); }
.tshs-opt { font-weight: 400; color: var(--tshs-muted); }
.tshs-choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.tshs-choice legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.tshs-choice label, .tshs-check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; font-weight: 500; }
.tshs-check input, .tshs-choice input { margin-top: 4px; width: 18px; height: 18px; }
.tshs-alerts { margin-top: 36px; background: var(--tshs-soft); border: 0; box-shadow: none; }
.tshs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tshs-privacy, .tshs-fine { font-size: 13px; color: var(--tshs-muted); line-height: 1.6; margin: 0; }
.tshs-call { margin: 14px 0 0; font-weight: 600; }
.tshs-msg { padding: 12px 14px; border-radius: 10px; margin: 0 0 12px; font-weight: 500; }
.tshs-msg-ok { background: #E6F4EA; color: #14532D; }
.tshs-msg-err { background: #FDECEC; color: #8A1C1C; }
.tshs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Compliance */
.tshs-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--tshs-line); font-size: 12px; color: var(--tshs-muted); line-height: 1.6; }
.tshs-legal p { margin: 0 0 8px; }
.tshs-terms { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 640px; margin: 0 auto; background: #111; color: #fff; padding: 16px 18px; border-radius: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.tshs-terms[hidden] { display: none; }
.tshs-terms p { margin: 0; flex: 1 1 260px; }
.tshs-terms a { color: #E9D6F0; }
.tshs-terms .tshs-link { color: #fff; }

@media (max-width: 820px) {
	.tshs-listing { grid-template-columns: 1fr; }
	.tshs-listing-side .tshs-form-box { position: static; }
	.tshs-map { height: 300px; }
	.tshs-price-lg { font-size: 1.6rem; }
}
.tshs-mine { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 12px; font-weight: 600; background: var(--tshs-accent); color: #fff; padding: 2px 8px; border-radius: 999px; }
.tshs-jump { margin: 16px 0 0; }
@media (min-width: 821px) { .tshs-jump { display: none; } }
