/* Property flyer print view — /listings/<slug>/flyer/
   Fixed-canvas 8.5×11in pages; values ported 1:1 from the approved sample.
   Loaded standalone (no theme reset/main css on this view). */

/* ---------- Fonts (self-hosted, extracted from the approved sample) ---------- */

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/inter-var.woff2') format('woff2');
}
@font-face {
	font-family: 'DM Serif Display';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/dm-serif-display.woff2') format('woff2');
}
@font-face {
	font-family: 'DM Serif Display';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/dm-serif-display-italic.woff2') format('woff2');
}
@font-face {
	font-family: 'Playfair Display';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url('../fonts/playfair-display-var.woff2') format('woff2');
}
@font-face {
	font-family: 'Playfair Display';
	font-style: italic;
	font-weight: 400 900;
	font-display: swap;
	src: url('../fonts/playfair-display-var-italic.woff2') format('woff2');
}

/* ---------- Base ---------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

body.flyer {
	background: #d9d5ce;
	color: #1a1a1a;
	font-family: 'Inter', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.flyer img { max-width: 100%; }

.flyer--shell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	padding: 40px 16px;
}

.flyer--page {
	width: 8.5in;
	height: 11in;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
	position: relative;
	overflow: hidden;
	flex: none;
}

.flyer--inner {
	height: 100%;
	display: grid;
	gap: 0.1in;
}

.flyer--inner-listing {
	padding: 0.4in 0.5in 0.5in;
	grid-template-rows: auto auto auto auto 1fr auto auto;
}

.flyer--inner-floorplan {
	padding: 0.4in 0.5in 0.3in;
	grid-template-rows: auto auto 1fr auto;
}

/* ---------- Masthead ---------- */

.flyer--masthead {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	padding-bottom: 0.16in;
	border-bottom: 2px solid #1a1a1a;
}

.flyer--logo { height: 28px; width: auto; display: block; }

.flyer--masthead-meta {
	text-align: right;
	font-size: 9px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #555;
	font-weight: 500;
	line-height: 1.5;
}

.flyer--masthead-status { color: #e91e63; font-weight: 700; }

/* ---------- Headline block ---------- */

.flyer--headline-block { display: grid; gap: 0.1in; }

.flyer--eyebrow {
	font-family: 'DM Serif Display', serif;
	font-size: 14px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #e91e63;
	font-weight: 400;
}

.flyer--headline {
	font-family: 'DM Serif Display', serif;
	font-weight: 400;
	font-size: 52px;
	line-height: 0.98;
	letter-spacing: -0.02em;
	color: #1a1a1a;
	text-wrap: balance;
}

.flyer--headline i,
.flyer--headline em {
	font-family: 'Playfair Display', serif;
	font-style: italic;
	color: #e91e63;
	font-weight: 400;
}

.flyer--address {
	font-size: 13px;
	line-height: 1.4;
	color: #555;
	font-weight: 400;
	margin-top: 0.04in;
}

.flyer--address-street {
	color: #1a1a1a;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.02em;
	display: block;
	margin-bottom: 2px;
}

.flyer--address-street-inline { display: inline; margin-bottom: 0; }

/* ---------- Hero ---------- */

.flyer--hero {
	position: relative;
	width: 100%;
	height: 2in;
	overflow: hidden;
	background: #222;
}

.flyer--hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.flyer--hero-caption {
	position: absolute;
	left: 0;
	bottom: 0;
	background: #1a1a1a;
	color: #fff;
	font-size: 9px;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	padding: 8px 14px;
	font-weight: 600;
}

.flyer--hero-caption-slash { color: #e91e63; margin: 0 8px; }

/* ---------- Stats ---------- */

.flyer--stats {
	display: grid;
	gap: 20px;
	padding-top: 0.04in;
}

.flyer--stat { border-top: 1px solid #1a1a1a; padding-top: 8px; }

.flyer--stat-label {
	font-size: 8.5px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: #555;
	font-weight: 600;
	margin-bottom: 3px;
}

.flyer--stat-value {
	font-family: 'DM Serif Display', serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
}

.flyer--stat-unit {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	color: #555;
	font-weight: 400;
	margin-left: 3px;
}

/* ---------- Body: about + at a glance ---------- */

.flyer--body {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: 0.35in;
	align-self: center;
}

.flyer--col-title {
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: #e91e63;
	margin: 0 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e8e3db;
}

.flyer--about-p {
	font-family: 'Playfair Display', serif;
	font-size: 12px;
	line-height: 1.55;
	text-wrap: pretty;
	margin: 0;
}

.flyer--about-p + .flyer--about-p { margin-top: 8px; }

.flyer--dropcap {
	font-family: 'Playfair Display', serif;
	float: left;
	font-size: 50px;
	line-height: 0.88;
	font-weight: 500;
	padding: 4px 8px 0 0;
	color: #e91e63;
}

.flyer--glance-list { list-style: none; }

.flyer--glance-list li {
	font-size: 10.5px;
	line-height: 1.4;
	padding: 6px 0 6px 16px;
	border-bottom: 1px dotted #e8e3db;
	position: relative;
}

.flyer--glance-list li:last-child { border-bottom: 0; }

.flyer--glance-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 12px;
	width: 6px;
	height: 1px;
	background: #e91e63;
}

.flyer--glance-list strong { font-weight: 600; }

/* ---------- Gallery strip ---------- */

.flyer--gallery {
	display: grid;
	gap: 5px;
	height: 1.05in;
}

.flyer--gallery-item { overflow: hidden; background: #eee; }

.flyer--gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Footer: agents + QR ---------- */

.flyer--footer { padding-top: 0.14in; border-top: 2px solid #1a1a1a; }

.flyer--footer-main {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.3in;
	align-items: center;
}

.flyer--agents { display: grid; grid-template-columns: 1fr; gap: 0.28in; }
.flyer--agents-2 { grid-template-columns: 1fr 1fr; }

.flyer--agent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 14px;
	align-items: center;
}

.flyer--agent.flyer--agent-divided {
	border-left: 1px solid #e8e3db;
	padding-left: 0.26in;
}

.flyer--agent-photo {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	overflow: hidden;
	background: #f4f4f3;
	border: 2.5px solid #e91e63;
	flex: none;
}

.flyer--agent-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.flyer--agent-name {
	font-family: 'Playfair Display', serif;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.05;
	color: #1a1a1a;
}

.flyer--agent-license {
	font-size: 8px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #8a867f;
	margin-top: 5px;
	font-weight: 600;
}

.flyer--agent-contact {
	font-size: 11px;
	color: #1a1a1a;
	margin-top: 7px;
	line-height: 1.5;
}

.flyer--qr {
	text-align: center;
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #1a1a1a;
	padding: 7px 7px 5px;
	width: 0.72in;
}

.flyer--qr-canvas { display: block; width: 100%; height: auto; }

.flyer--qr-label {
	font-size: 7px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 700;
	margin-top: 5px;
	line-height: 1.4;
}

/* ---------- Compliance bar ---------- */

.flyer--compliance {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-top: 0.05in;
	padding-top: 0.06in;
	border-top: 1px solid #e8e3db;
	font-size: 9px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #8a867f;
	font-weight: 500;
}

.flyer--compliance-left { display: flex; align-items: center; gap: 10px; }

.flyer--eho { flex: none; }

.flyer--compliance-right { text-align: right; white-space: nowrap; }

.flyer--compliance-strong { color: #1a1a1a; }

/* ---------- Page 2: floor plan ---------- */

.flyer--fp-title { padding: 0.24in 0 0.1in; }

.flyer--fp-headline {
	font-family: 'DM Serif Display', serif;
	font-weight: 400;
	font-size: 44px;
	line-height: 0.98;
	letter-spacing: -0.02em;
	margin: 0.1in 0 0.08in;
	color: #1a1a1a;
}

.flyer--fp-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
}

.flyer--fp-panel {
	width: 100%;
	border: 1px solid #1a1a1a;
	padding: 0.24in;
	background: #fff;
}

.flyer--fp-panel img,
.flyer--fp-img {
	width: 100%;
	max-height: 6.6in;
	object-fit: contain;
	display: block;
}

.flyer--agents-plain {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.3in;
	align-items: center;
}

.flyer--agents-plain-2 { grid-template-columns: 1fr 1fr; }

.flyer--agent-plain.flyer--agent-divided {
	border-left: 1px solid #e8e3db;
	padding-left: 0.28in;
}

/* ---------- Print ---------- */

@page { size: 8.5in 11in; margin: 0; }

@media print {
	html,
	body.flyer {
		background: #fff !important;
		margin: 0 !important;
		padding: 0 !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	body.flyer * {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	.flyer--shell { padding: 0 !important; gap: 0 !important; }

	.flyer--page {
		box-shadow: none !important;
		page-break-after: always;
		break-after: page;
	}

	.flyer--page:last-child {
		page-break-after: auto;
		break-after: auto;
	}
}
