/* Schilling Real Estate – property flyer (0.16.0). One US Letter page; system fonts so nothing has to load before printing. */

@page { size: letter; margin: 0.4in; }
/* The brochure cover prints edge to edge (named page, so single flyers keep their margins). */
@page cover { margin: 0; }
:root {
	--ink: #1e2b33;
	--muted: #5a6a74;
	--line: #d6dde2;
	--blue: #1f5f99;
	--navy: #14324f;
	--tint: #e8f0f7;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	background: #e9edf0;
	color: var(--ink);
	font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 10.5pt;
	line-height: 1.35;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

/* Screen toolbar */
.fl-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 8.5in; margin: 16px auto; padding: 0 8px; font-size: 15px; }
.fl-tools a { color: var(--blue); font-weight: 600; text-decoration: none; }
.fl-tools button { padding: 10px 18px; border: 0; border-radius: 6px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }

/* The page: 7.7in x 10.2in printable area */
.fl-page {
	width: 8.5in;
	min-height: 11in;
	margin: 0 auto 24px;
	padding: 0.4in;
	background: #fff;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	gap: 0.14in;
}

.fl-top { display: flex; justify-content: space-between; align-items: center; padding: 0.12in 0.18in; background: var(--navy); color: #fff; border-radius: 6px; }
.fl-logo { display: block; height: 0.42in; width: auto; }
.fl-brand { font-size: 15pt; font-weight: 800; letter-spacing: 0.18em; }
.fl-brand span { font-weight: 400; letter-spacing: 0.22em; font-size: 10pt; margin-left: 6px; }
.fl-kicker { font-size: 9.5pt; text-transform: uppercase; letter-spacing: 0.06em; color: #c9d8e5; }

.fl-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 0.2in; }
.fl-title h1 { margin: 2px 0 0; font-size: 24pt; line-height: 1.05; letter-spacing: -0.01em; }
.fl-dev { margin: 6px 0 0; font-size: 10pt; font-weight: 700; color: var(--blue); }
.fl-place { margin: 2px 0 0; font-size: 11.5pt; color: var(--muted); }
.fl-status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #2e7d4f; color: #fff; font-size: 9pt; font-weight: 700; }
.fl-status--coming-soon { background: #8a5a00; }
.fl-status--under-contract { background: #5b4f9a; }
.fl-acres { margin: 0; text-align: right; color: var(--muted); font-size: 12pt; white-space: nowrap; }
.fl-acres strong { display: block; font-size: 32pt; line-height: 1; color: var(--blue); letter-spacing: -0.02em; }

.fl-main { display: grid; grid-template-columns: 1.45fr 1fr; gap: 0.18in; }
.fl-photo { height: 3.3in; border-radius: 6px; overflow: hidden; background: #eef1f3; }
.fl-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fl-facts { margin: 0; }
.fl-facts div { padding: 5px 0; border-bottom: 1px solid var(--line); }
.fl-facts div:first-child { padding-top: 0; }
.fl-facts dt { font-size: 8.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.fl-facts dd { margin: 1px 0 0; font-size: 10.5pt; font-weight: 600; }

.fl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0.22in; flex: 1; }
.fl-col h2, .fl-contact h2 { margin: 0 0 4px; font-size: 10pt; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); }
.fl-col h2 + .fl-table { margin-bottom: 0.12in; }
.fl-overview { margin: 0 0 6px; font-size: 10.5pt; }
.fl-highlights { margin: 0 0 6px; padding-left: 16px; }
.fl-highlights li { margin: 0 0 3px; }
.fl-tags { margin: 0; font-size: 9.5pt; color: var(--muted); }
.fl-tags strong { color: var(--ink); }
.fl-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.fl-table th, .fl-table td { padding: 3px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.fl-table th { font-size: 8.5pt; color: var(--muted); font-weight: 700; }
.fl-table .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.fl-bottom { display: flex; justify-content: space-between; align-items: center; gap: 0.2in; padding: 0.14in 0.18in; border: 2px solid var(--blue); border-radius: 8px; background: var(--tint); }
.fl-contact { flex: 1 1 auto; min-width: 3.6in; }
.fl-contact h2 { white-space: nowrap; }
.fl-contact p { margin: 0; font-size: 10pt; }
.fl-phone { font-size: 17pt !important; font-weight: 800; color: var(--navy); }
.fl-qr { display: flex; align-items: center; gap: 0.12in; text-align: right; flex: 0 1 auto; max-width: 3.6in; }
.fl-qr p { margin: 0; font-size: 9pt; font-weight: 600; }
.fl-qr p span { font-weight: 400; color: var(--muted); font-size: 8pt; }
.fl-qr-code { flex: none; width: 1.05in; height: 1.05in; background: #fff; padding: 4px; order: 2; }
.fl-qr-code svg { display: block; width: 100%; height: 100%; }
.fl-qr-fallback { width: auto; height: auto; font-size: 7pt; word-break: break-all; }
.fl-sources { margin: 0; font-size: 7.5pt; color: var(--muted); }

/* Page 2: location and site (0.17.0) */
.fl-fig { margin: 0; text-align: center; }
/* Whole image, never cropped: wide or tall aerials keep their shape (0.17.1). */
.fl-fig img { display: block; width: auto; height: auto; max-width: 100%; margin: 0 auto; object-fit: contain; border-radius: 6px; }
.fl-fig figcaption { margin-top: 4px; font-size: 8.5pt; color: var(--muted); text-align: left; }
.fl-fig--market img { max-height: 6.5in; }
.fl-page2--plan .fl-fig--market img { max-height: 4.3in; }
.fl-p2row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 0.2in; margin-top: auto; }
.fl-p2row--solo { grid-template-columns: 1fr; }
.fl-fig--plan img { max-height: 3.2in; }
.fl-p2side { display: flex; flex-direction: column; justify-content: space-between; gap: 0.18in; padding: 0.14in 0.18in; border: 2px solid var(--blue); border-radius: 8px; background: var(--tint); }
.fl-p2row--solo .fl-p2side { flex-direction: row; align-items: center; justify-content: flex-start; gap: 0.4in; }
.fl-qr--dirs { justify-content: flex-start; text-align: left; max-width: none; }
.fl-qr--dirs .fl-qr-code { order: 0; }
.fl-contact--small { min-width: 0; }
.fl-contact--small h2 { white-space: normal; }

@media print {
	body { background: #fff; }
	.fl-tools { display: none; }
	.fl-page { width: auto; min-height: 0; height: 10.2in; margin: 0; padding: 0; box-shadow: none; overflow: hidden; }
	.fl-has-next { break-after: page; page-break-after: always; }
	/* Saving from a phone: keep the desktop layout whatever the screen width (0.21.2). */
	.fl-page { width: 7.7in !important; }
	.fl-main { grid-template-columns: 1.45fr 1fr !important; }
	.fl-cols { grid-template-columns: 1fr 1fr !important; }
	.fl-p2row { grid-template-columns: 1.5fr 1fr !important; }
	.fl-p2row--solo { grid-template-columns: 1fr !important; }
	.fl-photo { height: 3.3in !important; }
	.fl-bottom { flex-direction: row !important; align-items: center !important; }
	.fl-p2row--solo .fl-p2side { flex-direction: row !important; }
	.fl-cover { width: 8.5in !important; }
}
/* No phone layout (0.21.4): the page is always an 8.5 x 11 in sheet; phones show it scaled down like a PDF (viewport width 880). */

/* All-properties brochure (0.18.0) */
.fl-tools-note { color: var(--muted); }
.fl-brochure { counter-reset: flpage; }
.fl-brochure .fl-page { counter-increment: flpage; position: relative; }
.fl-brochure .fl-page::after { content: counter(flpage); position: absolute; right: 0.4in; bottom: 0.15in; font-size: 8pt; color: var(--muted); }
.fl-brochure .fl-cover::after { content: none; }
.fl-brochure .fl-sources { padding-right: 0.35in; }

/* Cover (0.18.1): full-bleed photo, white logo, spaced "COMMERCIAL", boxed "PROPERTIES",
   facts lower left, towns boxed lower right, phone and website along the bottom. */
/* One background (photo + shading) and no layered boxes: Chrome's PDF output drew
   grey rectangles behind stacked, shadowed or see-through elements (0.18.2). */
.fl-cover { page: cover; position: relative; overflow: hidden; padding: 0 !important; background-color: var(--navy); background-size: cover; background-position: center; color: #fff; justify-content: space-between; }
.fl-cover-date { position: absolute; top: 0.35in; right: 0.4in; font-size: 11pt; font-weight: 800; letter-spacing: 0.08em; }
.fl-cover-head { padding-top: 0.45in; text-align: center; }
.fl-cover--bglogo .fl-cover-head { padding-top: 1.07in; } /* logo drawn in the background above */
.fl-cover-logo { display: flex; justify-content: center; }
.fl-cover-logo .fl-logo { height: 0.62in; }
.fl-cover-head h1 { margin: 0.18in 0 0.14in; font-size: 58pt; line-height: 1; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.fl-cover-box { display: inline-block; padding: 0.07in 0.3in; border: 2px solid #fff; font-size: 19pt; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.fl-cover-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 0.2in; margin-top: auto; padding: 0 0.4in 0.2in; }
.fl-cover-facts strong { display: block; font-size: 30pt; line-height: 1.05; font-weight: 300; text-transform: uppercase; letter-spacing: 0.02em; }
.fl-cover-facts span { display: block; margin-top: 6px; font-size: 13pt; letter-spacing: 0.04em; }
.fl-cover-place { padding: 0.08in 0.2in; border: 2px solid #fff; font-size: 13pt; font-weight: 800; letter-spacing: 0.06em; text-align: center; max-width: 3.4in; }
.fl-cover-bottom { display: flex; justify-content: space-between; align-items: baseline; padding: 0.12in 0.4in 0.3in; border-top: 0; font-weight: 800; }
.fl-cover-bottom strong { font-size: 14pt; }
.fl-cover-bottom span { font-size: 13pt; color: #fff; }

.fl-contents-town { margin: 0.1in 0 0; font-size: 13pt; color: var(--navy); }
.fl-contents-town span { font-size: 9pt; font-weight: 400; color: var(--muted); }
.fl-contents-table td { vertical-align: top; padding: 4px; }
.fl-contents-sub { font-size: 8pt; color: var(--muted); }

.fl-town-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.15in; margin: 0; padding: 0; list-style: none; }
.fl-town-figs li { padding: 0.14in; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 6px; font-size: 10pt; color: var(--muted); }
.fl-town-figs strong { display: block; font-size: 24pt; line-height: 1.05; color: var(--ink); }
.fl-town-h { margin: 0.1in 0 0; font-size: 10pt; text-transform: uppercase; letter-spacing: 0.05em; color: var(--blue); }
.fl-town-src { margin-top: auto; }

.fl-back-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.12in; }
.fl-back-body h1 { margin: 0; font-size: 30pt; }
.fl-back-body p { margin: 0; font-size: 12pt; max-width: 6in; }
.fl-back-body .fl-qr { margin-top: 0.2in; }

/* Notes page (0.22.1): fills a spread or pads the booklet to a multiple of 4 pages. */
.fl-notes-lines { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; padding: 0.1in 0.1in 0; }
.fl-notes-lines div { border-bottom: 1px solid var(--line); height: 0; }

/* Cover border (0.22.1): 1/4 in white frame for printers that can't print to the edge. */
.fl-brochure .fl-cover { border: 0.25in solid #fff; background-clip: padding-box !important; background-origin: padding-box !important; }

/* Fit levels (0.22.2), set by the page script when content would run off the sheet. */
.fl-fit-1 .fl-photo { height: 2.8in !important; }
.fl-fit-1 .fl-facts div { padding: 3px 0; }
.fl-fit-1 .fl-facts dd { font-size: 10pt; }
.fl-fit-2 .fl-photo { height: 2.4in !important; }
.fl-fit-2 .fl-facts div { padding: 2px 0; }
.fl-fit-2 .fl-facts dt { font-size: 8pt; }
.fl-fit-2 .fl-facts dd { font-size: 9.5pt; }
.fl-fit-2 .fl-overview, .fl-fit-2 .fl-highlights { font-size: 9.5pt; }
.fl-fit-3 { gap: 0.1in !important; }
.fl-fit-3 .fl-photo { height: 2.1in !important; }
.fl-fit-3 .fl-facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0.12in; }
.fl-fit-3 .fl-facts div { padding: 2px 0; }
.fl-fit-3 .fl-facts div:nth-child(2) { padding-top: 0; }
.fl-fit-3 .fl-facts dt { font-size: 7.5pt; }
.fl-fit-3 .fl-facts dd { font-size: 9pt; }
.fl-fit-3 .fl-overview, .fl-fit-3 .fl-highlights, .fl-fit-3 .fl-tags { font-size: 9pt; }
.fl-fit-3 .fl-highlights li { margin-bottom: 1px; }

@media print {
	/* Room for the page number below the content, so it never sits on a footer box (0.22.2). */
	.fl-brochure .fl-page:not(.fl-cover) { padding-bottom: 0.22in; }
	.fl-brochure .fl-page { break-after: page; page-break-after: always; }
	.fl-brochure .fl-page:last-of-type { break-after: auto; page-break-after: auto; }
	.fl-brochure .fl-page::after { right: 0; bottom: 0; }
	.fl-cover { height: 11in !important; border-radius: 0; }
}
