/**
 * MLSImport standalone single-agent profile.
 *
 * Layers on top of mlsimport-property-sections.css (which declares the :root
 * design tokens and the shared .mlsimport-property-section card shell + sub-nav).
 * Every selector is prefixed mlsimport-agent-. The page mirrors the property
 * page's warm design system: clay accent, big radii, gentle shadows, a solid
 * clay contact rail.
 */

/* =========================================================================
   LAYOUT — page width + two-column (content beside sticky rail)
   ========================================================================= */
.mlsimport-agent-single {
	font-family: var(--mlsimport-font);
	color: var(--mlsimport-ink-2);
	background: var(--mlsimport-page-bg);
}

.mlsimport-agent-wrap {
	max-width: var(--mlsimport-max-width);
	margin: 0 auto;
	padding: 20px 26px 40px;
}

.mlsimport-agent-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 30px;
	align-items: start;
	margin-top: 8px;
}

.mlsimport-agent-layout__main {
	min-width: 0;
}

/* =========================================================================
   HERO — portrait + identity + direct contact + CTAs
   ========================================================================= */
.mlsimport-agent-hero {
	background: var(--mlsimport-card-bg);
	border-radius: var(--mlsimport-radius-card);
	box-shadow: var(--mlsimport-shadow-card);
	padding: var(--mlsimport-pad);
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr);
	gap: 36px;
	align-items: stretch;
}

.mlsimport-agent-hero__portrait {
	position: relative;
	border-radius: var(--mlsimport-radius-img);
	overflow: hidden;
	min-height: 420px;
	background: var(--mlsimport-accent-tint);
}

.mlsimport-agent-hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mlsimport-agent-hero__img--empty {
	display: grid;
	place-items: center;
	color: var(--mlsimport-accent);
}

.mlsimport-agent-hero__img--empty svg {
	width: 84px;
	height: 84px;
}

.mlsimport-agent-hero__verified {
	position: absolute;
	left: 14px;
	bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 11px;
	border-radius: var(--mlsimport-radius-chip);
	background: var(--mlsimport-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
}

.mlsimport-agent-hero__verified svg {
	width: 13px;
	height: 13px;
}

.mlsimport-agent-hero__identity {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mlsimport-agent-hero__eyebrow {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--mlsimport-accent2);
}

.mlsimport-agent-hero__name {
	margin: 10px 0 0;
	font-size: 46px;
	font-weight: var(--mlsimport-head-weight);
	letter-spacing: -0.02em;
	line-height: 1.02;
	color: var(--mlsimport-ink);
}

.mlsimport-agent-hero__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 10px;
	font-size: 15px;
	color: var(--mlsimport-ink-2);
}

.mlsimport-agent-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.mlsimport-agent-hero__meta-item svg {
	width: 17px;
	height: 17px;
	color: var(--mlsimport-accent);
}

.mlsimport-agent-hero__meta-dot {
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: var(--mlsimport-muted);
}

.mlsimport-agent-hero__lead {
	/* Bottom margin guarantees a gap to the contact block's border below: the
	   contact block uses margin-top:auto, which collapses to zero for a longer
	   teaser and would otherwise let the text sit right against the hairline. */
	margin: 18px 0 24px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--mlsimport-ink-2);
	max-width: 580px;
	text-wrap: pretty;
}

.mlsimport-agent-hero__contact {
	margin-top: auto;
	padding-top: 24px;
	border-top: 1px solid var(--mlsimport-hairline);
}

.mlsimport-agent-hero__contact-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mlsimport-muted);
	margin-bottom: 14px;
}

.mlsimport-agent-hero__contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 16px 24px;
}

.mlsimport-agent-contact {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	text-decoration: none;
}

.mlsimport-agent-contact__value {
	transition: color 0.25s ease;
}

a.mlsimport-agent-contact:hover .mlsimport-agent-contact__value,
a.mlsimport-agent-contact:focus .mlsimport-agent-contact__value {
	color: var(--mlsimport-accent2);
}

.mlsimport-agent-contact__icon {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border-radius: var(--mlsimport-radius-input);
	background: var(--mlsimport-accent-tint-strong);
	color: var(--mlsimport-accent2);
}

.mlsimport-agent-contact__icon svg {
	width: 16px;
	height: 16px;
}

.mlsimport-agent-contact__text {
	min-width: 0;
}

.mlsimport-agent-contact__label {
	display: block;
	font-size: 10.5px;
	color: var(--mlsimport-muted);
	text-transform: uppercase;
	letter-spacing: 0.07em;
	font-weight: 500;
}

.mlsimport-agent-contact__value {
	display: block;
	margin-top: 1px;
	font-size: 14px;
	color: var(--mlsimport-ink);
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mlsimport-agent-hero__cta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
	flex-wrap: wrap;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.mlsimport-agent-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 22px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	border-radius: var(--mlsimport-radius-btn);
	cursor: pointer;
	border: none;
	text-decoration: none;
	transition: background 0.2s linear, color 0.2s linear, border-color 0.2s linear, box-shadow 0.2s linear;
}

.mlsimport-agent-btn svg {
	width: 16px;
	height: 16px;
}

.mlsimport-agent-btn--primary {
	background: var(--mlsimport-accent);
	color: #fff;
}

.mlsimport-agent-btn--primary:hover {
	background: var(--mlsimport-accent-hover);
	/* Hold the text white: these CTAs are <a>, so a theme's a:hover colour rule
	   (0,1,1) would otherwise override the base #fff (0,1,0) on hover. */
	color: #fff;
	box-shadow: var(--mlsimport-shadow-soft);
}

.mlsimport-agent-btn--outline {
	background: transparent;
	color: var(--mlsimport-accent2);
	border: 1.5px solid var(--mlsimport-hairline);
}

.mlsimport-agent-btn--outline:hover {
	background: var(--mlsimport-accent-tint);
	/* Hold the accent text against a theme's a:hover colour rule (see --primary). */
	color: var(--mlsimport-accent2);
	border-color: var(--mlsimport-accent);
}

/* WhatsApp keeps its own brand green — visitors recognise the button by colour,
   so it does not follow the theme accent like the other two CTAs. */
.mlsimport-agent-btn--whatsapp {
	background: #25d366;
	color: #fff;
}

.mlsimport-agent-btn--whatsapp:hover {
	background: #1da851;
	/* Hold the text white against a theme's a:hover colour rule (see --primary). */
	color: #fff;
	box-shadow: var(--mlsimport-shadow-soft);
}

/* =========================================================================
   SUB-NAV wrapper — spacing only; the inner .mlsimport-property-subnav keeps
   its own sticky/scroll/active styling from the base stylesheet.
   ========================================================================= */
.mlsimport-agent-subnav {
	margin: 16px 0 8px;
}

/* =========================================================================
   LISTINGS — count line + the admin-set column count (cards come from
   mlsimport-listings.css)
   ========================================================================= */

/* Cards per row comes from the agent_listings_per_row setting, inlined as
   --mli-cols. The double-class selector beats the plain .mlsimport-results__grid
   base rule, so the narrow-screen steps below have to be re-scoped at the same
   specificity or the column count would never collapse on phones. */
.mlsimport-results__grid.mlsimport-agent-listings__grid {
	grid-template-columns: repeat(var(--mli-cols, 3), 1fr);
}

@media (max-width: 900px) {
	.mlsimport-results__grid.mlsimport-agent-listings__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.mlsimport-results__grid.mlsimport-agent-listings__grid {
		grid-template-columns: 1fr;
	}
}

.mlsimport-agent-listings__count {
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--mlsimport-muted);
}

/* =========================================================================
   ABOUT — the agent's full bio (post body) inside a section card
   ========================================================================= */
.mlsimport-agent-about {
	font-size: 15px;
	line-height: 1.75;
	color: var(--mlsimport-ink-2);
}

.mlsimport-agent-about > :first-child {
	margin-top: 0;
}

.mlsimport-agent-about > :last-child {
	margin-bottom: 0;
}

.mlsimport-agent-about p {
	margin: 0 0 1em;
}

.mlsimport-agent-about a {
	color: var(--mlsimport-accent2);
	text-decoration: underline;
}

/* =========================================================================
   CREDENTIALS — RESO Member/Office field tiles
   ========================================================================= */
.mlsimport-agent-cred-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
	gap: 12px;
}

.mlsimport-agent-cred {
	padding: 13px 16px;
	border-radius: var(--mlsimport-radius-btn);
	background: var(--mlsimport-accent-wash);
	border: 1px solid var(--mlsimport-hairline);
}

.mlsimport-agent-cred__label {
	display: block;
	font-size: 11px;
	color: var(--mlsimport-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.mlsimport-agent-cred__value {
	margin-top: 5px;
	font-size: 14px;
	color: var(--mlsimport-ink);
	font-weight: 500;
	word-break: break-word;
}

/* =========================================================================
   CONTACT RAIL — sticky solid-clay lead card
   ========================================================================= */
.mlsimport-agent-rail {
	position: sticky;
	top: 88px;
}

.mlsimport-agent-rail__card {
	background: var(--mlsimport-accent);
	color: #fff;
	border-radius: var(--mlsimport-radius-card);
	box-shadow: var(--mlsimport-shadow-card);
	overflow: hidden;
	padding: 22px 22px 24px;
	/* Accent surface, same as the property booking rail: the shared lead-form
	   submit button reads these to render a white fill with accent-2 text, so the
	   agent "Send Message" button matches the property "Request This Tour" button. */
	--mlsb-submit-bg: #fff;
	--mlsb-submit-text: var(--mlsimport-accent2);
}

.mlsimport-agent-rail__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.mlsimport-agent-rail__avatar {
	width: 54px;
	height: 54px;
	flex-shrink: 0;
	border-radius: 999px;
	overflow: hidden;
	position: relative;
	border: 2px solid rgba(255, 255, 255, 0.6);
}

.mlsimport-agent-rail__avatar-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mlsimport-agent-rail__avatar-img--empty {
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

.mlsimport-agent-rail__avatar-img--empty svg {
	width: 24px;
	height: 24px;
}

.mlsimport-agent-rail__name {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
}

.mlsimport-agent-rail__title {
	display: block;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.85);
}

.mlsimport-agent-rail__form-title {
	font-size: 14.5px;
	font-weight: 500;
	color: #fff;
	margin-bottom: 14px;
}

/* White fields on the clay card. */
.mlsimport-agent-rail__form input,
.mlsimport-agent-rail__form textarea {
	width: 100%;
	border: none;
	border-radius: var(--mlsimport-radius-input);
	padding: 0 15px;
	height: 48px;
	font-size: 14px;
	font-family: inherit;
	color: var(--mlsimport-ink);
	background: #fff;
	outline: none;
	box-sizing: border-box;
	/* No margin-bottom: field spacing comes from the shared
	   .mlsimport-property-lead-form flex gap (10px), same as the property form. */
}

.mlsimport-agent-rail__form textarea {
	height: auto;
	padding: 12px 15px;
	resize: vertical;
}

.mlsimport-agent-rail__form .mlsimport-property-lead-form__hp {
	display: none;
}

.mlsimport-agent-rail .mlsimport-property-lead-form__status {
	margin: 10px 0 0;
	font-size: 13px;
	color: #fff;
	text-align: center;
}

/* Success panel (shown by the lead JS on a successful submit). */
.mlsimport-agent-rail__success {
	text-align: center;
	padding: 20px 0 6px;
}

.mlsimport-agent-rail__success-icon {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
}

.mlsimport-agent-rail__success-icon svg {
	width: 26px;
	height: 26px;
}

.mlsimport-agent-rail__success-title {
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	margin-bottom: 4px;
}

.mlsimport-agent-rail__success-text {
	font-size: 13.5px;
	color: rgba(255, 255, 255, 0.85);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
	.mlsimport-agent-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.mlsimport-agent-rail {
		position: static;
	}
}

@media (max-width: 720px) {
	.mlsimport-agent-hero {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.mlsimport-agent-hero__portrait {
		min-height: 320px;
	}

	.mlsimport-agent-hero__name {
		font-size: 34px;
	}
}
