/*
Theme Name: The Unlisted GTA
Description: Custom block theme for The Unlisted GTA — bright, clean, professional real-estate portal style (realtor.ca / Zolo energy) with an off-market twist. No builder, no bloat.
Version: 2.1.2
Author: Ducero Digital
Text Domain: unlisted-gta
Requires PHP: 8.0
*/

/* ===== Clean portal design system ===== */

body {
	-webkit-font-smoothing: antialiased;
}

/* Section kicker: small blue pill */
.ugta-kicker {
	display: inline-block;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--brand);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.74rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.35rem 0.8rem;
	border-radius: 999px;
}

/* ---- Listing cards: clean portal card ---- */
.ugta-card {
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 1.6rem;
	box-shadow: 0 1px 2px rgba(18, 56, 95, 0.05);
	transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.ugta-card:hover {
	box-shadow: 0 10px 28px rgba(18, 56, 95, 0.12);
	transform: translateY(-2px);
	border-color: #c8d6e6;
}
.ugta-card::before {
	content: "Off-market exclusive";
	display: inline-block;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--brand);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.68rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	margin-bottom: 0.9rem;
}
.ugta-card .wp-block-post-title {
	font-size: 1.22rem;
	line-height: 1.35;
	margin: 0 0 0.5rem;
}
.ugta-card .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--navy); }
.ugta-card .wp-block-post-title a:hover { color: var(--wp--preset--color--brand); }

/* ---- Spec block (plugin output) ---- */
.ugta-spec-block {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 1.5rem 1.75rem;
	margin: 2rem 0;
}
.ugta-spec-block dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 2rem; }
.ugta-spec-row { display: contents; }
.ugta-spec-block dt {
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.72rem;
	padding-top: 0.2rem;
}
.ugta-spec-block dd { margin: 0; color: var(--wp--preset--color--ink); font-weight: 500; }

/* ---- Lead gate + form: white card, blue top bar ---- */
.ugta-lead-gate {
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--border);
	border-top: 4px solid var(--wp--preset--color--brand);
	border-radius: 12px;
	padding: 2.25rem;
	margin: 3rem 0 2rem;
	box-shadow: 0 8px 30px rgba(18, 56, 95, 0.08);
}
.ugta-lead-gate h3 {
	margin: 0 0 1.1rem;
	font-size: 1.4rem;
	color: var(--wp--preset--color--navy);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
}
.ugta-lead-form p { margin: 0 0 0.85rem; }
.ugta-lead-form input,
.ugta-lead-form select,
.ugta-lead-form textarea {
	width: 100%;
	background: #ffffff;
	border: 1px solid #c9d4e0;
	border-radius: 8px;
	color: var(--wp--preset--color--ink);
	padding: 0.85rem 1rem;
	font-family: inherit;
	font-size: 0.95rem;
}
.ugta-lead-form input:focus,
.ugta-lead-form select:focus,
.ugta-lead-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--brand);
	box-shadow: 0 0 0 3px rgba(23, 102, 194, 0.15);
}
.ugta-lead-submit {
	background: var(--wp--preset--color--brand);
	color: #ffffff;
	border: 0;
	border-radius: 8px;
	padding: 1rem 2rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	width: 100%;
	transition: background 0.2s ease;
}
.ugta-lead-submit:hover { background: var(--wp--preset--color--navy); }
.ugta-lead-note { font-size: 0.8rem; color: var(--wp--preset--color--muted); margin-top: 0.75rem; }
.ugta-lead-thanks { font-size: 1.05rem; color: #1a8754; font-weight: 600; }
.ugta-call-button {
	display: inline-block;
	border: 1.5px solid var(--wp--preset--color--brand);
	color: var(--wp--preset--color--brand);
	border-radius: 8px;
	padding: 0.8rem 1.6rem;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 0.95rem;
}
.ugta-call-button:hover { background: var(--wp--preset--color--tint); }

/* ---- Compliance line ---- */
.ugta-compliance {
	font-size: 0.78rem;
	color: var(--wp--preset--color--muted);
	border-top: 1px solid var(--wp--preset--color--border);
	padding-top: 1.25rem;
	margin-top: 2rem;
}

/* Section heading underline accent */
.ugta-rule h2::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	border-radius: 2px;
	background: var(--wp--preset--color--brand);
	margin-top: 0.55em;
}

/* Buttons */
.wp-block-button__link { letter-spacing: 0.01em; }
.is-style-outline .wp-block-button__link {
	border: 1.5px solid var(--wp--preset--color--brand) !important;
	color: var(--wp--preset--color--brand) !important;
	background: transparent !important;
}
.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--tint) !important; }

/* Mobile sticky call bar on listing pages */
@media (max-width: 720px) {
	.single-exclusive_listing .ugta-call {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		margin: 0;
		z-index: 9000;
	}
	.single-exclusive_listing .ugta-call-button {
		display: block;
		text-align: center;
		background: var(--wp--preset--color--brand);
		color: #fff;
		border: 0;
		border-radius: 0;
		padding: 1.1rem;
	}
}

/* ===== Listing page: map hero + sidebar layout ===== */
.ugta-map-hero {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--border);
	margin: 1.75rem auto 0;
	max-width: var(--wp--style--global--wide-size);
}
.ugta-map-hero > svg { display: block; width: 100%; height: 340px; }
@media (max-width: 720px) { .ugta-map-hero > svg { height: 220px; } }
.ugta-map-badge {
	position: absolute;
	left: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 999px;
	padding: 0.5rem 1rem;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--wp--preset--color--navy);
	box-shadow: 0 4px 14px rgba(18, 56, 95, 0.12);
}
.ugta-side { position: sticky; top: 1.5rem; }
.ugta-side .ugta-lead-gate { margin: 0 0 1.25rem; padding: 1.75rem; }
.ugta-side .ugta-lead-gate h3 { font-size: 1.15rem; }

/* Agent card */
.ugta-agent-card {
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 1px 2px rgba(18, 56, 95, 0.05);
}
.ugta-agent-row { display: flex; align-items: center; gap: 0.9rem; }
.ugta-agent-ava {
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--brand);
	display: flex; align-items: center; justify-content: center;
	flex: 0 0 52px;
}
.ugta-agent-meta { display: flex; flex-direction: column; line-height: 1.35; }
.ugta-agent-meta strong { font-family: var(--wp--preset--font-family--heading); font-weight: 700; color: var(--wp--preset--color--navy); }
.ugta-agent-meta span { font-size: 0.82rem; color: var(--wp--preset--color--muted); }
.ugta-agent-note { font-size: 0.82rem; color: var(--wp--preset--color--muted); margin: 0.9rem 0 0; }

/* Card map thumbnails */
.ugta-card-thumb {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e4ebf3;
	margin-bottom: 1rem;
}
.ugta-card-thumb svg { display: block; width: 100%; height: 128px; }

/* Homepage hero */
.ugta-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
}
.ugta-hero-sky {
	position: absolute;
	left: 0; right: 0; bottom: -4px;
	pointer-events: none;
	opacity: 0.9;
}
.ugta-hero-sky svg { display: block; width: 100%; height: 150px; }
.ugta-hero > *:not(.ugta-hero-sky) { position: relative; z-index: 1; }
