/* The agent panel on the MLS feed listing pages (Jethro, November 18, 2026; docs/LISTING-AGENT-CARD-PLAN.md).
   - A white panel with a navy ring and rounded corners all round, set just in from the left edge, filling
     the space between the screen edge and the content (agent-float.js sets --af-w from where the page
     menu's "Overview" starts). Jethro, November 18, 2026: "reverse it out and make it white ... a blue
     ring around the whole thing and soften the edges on the left to curves".
   - Two actions: "Book a private showing", white and rounded with a navy ring, a gold calendar and a short
     gold glow when the panel appears, and "Call or text" the agent's own number.
   - Beside the content the panel is a track from the start of the listing description to the footer,
     and the card inside it is sticky, held 16 px under the sticky section menu as the page scrolls, so
     it does not jump (Kaz, November 18, 2026). agent-float.js measures --af-start, --af-run and
     --af-stick when the layout changes, never on scroll.
   - Where the space beside the content is too narrow, and on phones, a slim bar along the bottom
     (agent-float.js adds .is-bar).
   It hides over the showing and contact forms, the footer and open pop-ups. */

.seymour-agent-float {
	--af-w: 180px;
	--af-navy: var(--navy-900, #1e3a5f);
	--af-gold: var(--gold-500, #c9a84c);
	left: 12px;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	top: var(--af-top, 140px);
	transition: opacity 0.3s ease;
	z-index: 900;
}

.seymour-agent-float.is-in {
	opacity: 1;
	pointer-events: auto;
}

/* Beside the content (not the bottom bar): the track, with the card sticky inside it. The empty part of
   the track lets clicks through to the page. */
.seymour-agent-float:not(.is-bar) {
	height: var(--af-run, auto);
	position: absolute;
	top: var(--af-start, 140px);
}

.seymour-agent-float:not(.is-bar),
.seymour-agent-float.is-in:not(.is-bar) {
	pointer-events: none;
}

.seymour-agent-float.is-in:not(.is-bar) .seymour-agent-float__card {
	pointer-events: auto;
}

.seymour-agent-float:not(.is-bar) .seymour-agent-float__card {
	position: sticky;
	top: var(--af-stick, 198px);
}

.seymour-agent-float__card {
	background: #fff;
	border: 2px solid var(--af-navy);
	border-radius: 16px;
	box-shadow: 0 10px 28px rgba(16, 33, 56, 0.16);
	box-sizing: border-box;
	color: var(--af-navy);
	padding: 18px 10px 12px;
	position: relative;
	text-align: center;
	width: var(--af-w);
}

.seymour-agent-float__photo {
	border: 2px solid var(--af-gold);
	border-radius: 50%;
	display: block;
	height: 76px;
	margin: 0 auto 10px;
	object-fit: cover;
	width: 76px;
}

.seymour-agent-float__who p {
	margin: 0;
}

.seymour-agent-float__name {
	font-family: var(--font-serif);
	font-size: 19px;
	line-height: 1.2;
}

.seymour-agent-float__name a {
	color: var(--af-navy);
	text-decoration: none;
}

.seymour-agent-float__name a:hover {
	text-decoration: underline;
	text-decoration-color: var(--af-gold);
}

.seymour-agent-float__role {
	color: #5a6472;
	font-size: 11px;
	letter-spacing: 0.02em;
	line-height: 1.35;
	margin-top: 4px !important;
}

.seymour-agent-float__actions {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
}

/* Book a private showing: white, rounded, a navy ring, a gold circle, and a gold glow that pulses three
   times when the panel appears, then rests. */
.seymour-agent-float__book {
	align-items: center;
	background: #fff;
	border: 2px solid var(--af-navy);
	border-radius: 999px;
	box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
	color: var(--af-navy);
	display: flex;
	font-size: 12.5px;
	font-weight: 600;
	gap: 10px;
	justify-content: flex-start;
	line-height: 1.2;
	padding: 10px 12px 10px 16px;
	position: relative;
	text-align: left;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.seymour-agent-float__cal {
	color: var(--af-gold);
	flex: 0 0 16px;
	height: 16px;
	width: 16px;
}

.seymour-agent-float__book:hover,
.seymour-agent-float__book:focus-visible {
	box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.35);
	color: var(--af-navy);
	transform: translateY(-1px);
}

.seymour-agent-float.is-glow .seymour-agent-float__book:first-child {
	animation: seymour-af-glow 2.4s ease-in-out 3;
}

.seymour-agent-float.is-glow .seymour-agent-float__book:first-child .seymour-agent-float__cal {
	animation: seymour-af-cal 2.4s ease-in-out 3;
}

@keyframes seymour-af-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
	50% { box-shadow: 0 0 16px 4px rgba(201, 168, 76, 0.55); }
}

@keyframes seymour-af-cal {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.18); }
}

/* Call or text: quieter, a light navy outline. */
.seymour-agent-float__call {
	align-items: center;
	border: 1px solid rgba(30, 58, 95, 0.35);
	border-radius: 999px;
	color: var(--af-navy);
	display: flex;
	gap: 10px;
	justify-content: flex-start;
	padding: 8px 12px 8px 17px;
	text-decoration: none;
}

.seymour-agent-float__call:hover,
.seymour-agent-float__call:focus-visible {
	border-color: var(--af-navy);
	color: var(--af-navy);
}

.seymour-agent-float__call svg {
	color: var(--af-gold);
	flex: 0 0 16px;
	height: 16px;
	width: 16px;
}

.seymour-agent-float__call-text {
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	text-align: left;
}

.seymour-agent-float__call-number {
	display: block;
	font-weight: 400;
	opacity: 0.85;
}

.seymour-agent-float__office {
	font-size: 11px;
	margin: 10px 0 0;
}

.seymour-agent-float__office a {
	color: #5a6472;
	text-decoration: none;
}

.seymour-agent-float__office-number {
	display: block;
	white-space: nowrap;
}

.seymour-agent-float__office a:hover {
	color: var(--af-navy);
}

.seymour-agent-float__dial {
	display: none;
}

/* Too little room beside the content, and on phones: a slim white bar along the bottom. */
.seymour-agent-float.is-bar {
	bottom: 0;
	left: 0;
	right: 0;
	top: auto;
}

.seymour-agent-float.is-bar .seymour-agent-float__card {
	align-items: center;
	border: 0;
	border-radius: 0;
	border-top: 2px solid var(--af-navy);
	display: flex;
	gap: 10px;
	padding: 8px 14px calc(8px + env(safe-area-inset-bottom, 0px));
	text-align: left;
	width: auto;
}

.seymour-agent-float.is-bar .seymour-agent-float__role,
.seymour-agent-float.is-bar .seymour-agent-float__call,
.seymour-agent-float.is-bar .seymour-agent-float__office {
	display: none;
}

.seymour-agent-float.is-bar .seymour-agent-float__person {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	gap: 10px;
	min-width: 0;
}

.seymour-agent-float.is-bar .seymour-agent-float__photo {
	height: 40px;
	margin: 0;
	width: 40px;
}

.seymour-agent-float.is-bar .seymour-agent-float__name {
	font-size: 16px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.seymour-agent-float.is-bar .seymour-agent-float__actions {
	flex: 0 0 auto;
	margin: 0;
}

.seymour-agent-float.is-bar .seymour-agent-float__book {
	padding: 10px 16px;
	white-space: nowrap;
}

.seymour-agent-float.is-bar .seymour-agent-float__dial {
	align-items: center;
	border: 2px solid var(--af-navy);
	border-radius: 50%;
	color: var(--af-navy);
	display: inline-flex;
	flex: 0 0 auto;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.seymour-agent-float.is-bar .seymour-agent-float__dial svg {
	color: var(--af-gold);
	height: 17px;
	width: 17px;
}

body.seymour-agent-float-bar {
	padding-bottom: 64px;
}

/* Joy's "Ask Joy" button rides above the bottom bar instead of covering its buttons (November 21, 2026). The
   theme pins it 20 px from the bottom on phones with !important (theme.css), so this matches that weight and
   applies only while the bar shows. */
html body.seymour-agent-float-bar .seymour-joy-launcher {
	bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
}

/* The back-to-top arrow keeps its place straight above Joy (Kaz, November 4, 2026: Joy's 44 px and a 12 px gap). */
html body.seymour-agent-float-bar .seymour-to-top:not([hidden]),
html body.seymour-agent-float-bar:has(.seymour-call-bar) .seymour-to-top:not([hidden]) {
	bottom: calc(76px + env(safe-area-inset-bottom, 0px) + 56px) !important;
}

/* A condo building page (Jethro, November 21, 2026): two buttons, "Sell your condo" and "Buy in [building]". In the
   bottom bar the name gives way to the two buttons, and the bar stands in for the page's call bar. */
.seymour-agent-float--condo .seymour-agent-float__book {
	font-size: 12px;
}

.seymour-agent-float--condo.is-bar .seymour-agent-float__name {
	display: none;
}

.seymour-agent-float--condo.is-bar .seymour-agent-float__person {
	flex: 0 0 auto;
}

.seymour-agent-float--condo.is-bar .seymour-agent-float__actions {
	display: flex;
	flex: 1 1 auto;
	gap: 8px;
	min-width: 0;
}

.seymour-agent-float--condo.is-bar .seymour-agent-float__book {
	flex: 1 1 0;
	font-size: 12px;
	justify-content: center;
	min-width: 0;
	overflow: hidden;
	padding: 9px 10px;
	text-overflow: ellipsis;
}

.seymour-agent-float--condo.is-bar .seymour-agent-float__cal {
	display: none;
}

/* A narrow margin (120 to 175 px, laptops around 1,400 px wide): the same card, tighter. */
.seymour-agent-float--condo.is-compact .seymour-agent-float__card {
	padding: 12px 7px 9px;
}

.seymour-agent-float--condo.is-compact .seymour-agent-float__photo {
	height: 56px;
	margin-bottom: 6px;
	width: 56px;
}

.seymour-agent-float--condo.is-compact .seymour-agent-float__name {
	font-size: 15px;
}

.seymour-agent-float--condo.is-compact .seymour-agent-float__actions {
	gap: 7px;
	margin-top: 10px;
}

.seymour-agent-float--condo.is-compact .seymour-agent-float__book,
.seymour-agent-float--condo.is-compact .seymour-agent-float__call {
	font-size: 11px;
	gap: 6px;
	padding: 8px 8px 8px 10px;
}

.seymour-agent-float--condo.is-compact .seymour-agent-float__call-text {
	font-size: 11px;
}

/* The bottom bar on a laptop or tablet: the buttons keep a sensible width, centred, instead of stretching. */
@media (min-width: 900px) {
	.seymour-agent-float--condo.is-bar .seymour-agent-float__actions {
		justify-content: center;
	}

	.seymour-agent-float--condo.is-bar .seymour-agent-float__book {
		flex: 0 1 280px;
	}
}

body.seymour-agent-float-bar.single-condo_building .seymour-call-bar {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.seymour-agent-float,
	.seymour-agent-float__book {
		transition: none;
	}

	.seymour-agent-float.is-glow .seymour-agent-float__book,
	.seymour-agent-float.is-glow .seymour-agent-float__cal {
		animation: none;
	}
}

@media print {
	.seymour-agent-float {
		display: none !important;
	}
}
