/* Real Estate Flipbook Maker: book pages, the 25 designs (.d-*), cover layouts (.cl-*), interior looks (.lk-*),
   the viewer, the editor preview and print layouts. Inside a page every size is in em, so a page scales from a phone
   screen to a printed sheet by changing one font size (--fs, set by the viewer or the print format). */

/* ============ Page basics ============ */
.fb-book { --fs: 15px; --pw: 520px; --ph: 672px; font-family: var(--body); color: var(--ink); -webkit-font-smoothing: antialiased; }
.fb-book *, .fb-book *::before, .fb-book *::after { box-sizing: border-box; }
.fb-page { position: relative; width: var(--pw); height: var(--ph); font-size: calc(var(--fs) * var(--fit, 1)); line-height: 1.45; background: var(--paper); color: var(--ink);
  overflow: hidden; display: flex; flex-direction: column; gap: .9em; padding: 2.3em 2.3em 2.8em; }
.fb-page img { display: block; max-width: 100%; }
.fb-page p, .fb-page h1, .fb-page h2, .fb-page ul, .fb-page dl, .fb-page dd, .fb-page figure { margin: 0; }
.fb-page ul { padding: 0; list-style: none; }
.fb-page a { color: inherit; }
.fb-num { position: absolute; bottom: 1.1em; right: 2.3em; font-size: .72em; color: var(--muted); letter-spacing: .08em; }
.is-rtl .fb-num { right: auto; left: 2.3em; }
.fb-noimg { width: 100%; height: 100%; background: linear-gradient(135deg, var(--soft), var(--paper)); }

/* Headings */
.pg-head { display: flex; flex-direction: column; gap: .3em; flex: 0 0 auto; }
.pg-kicker { font-size: .74em; letter-spacing: .16em; text-transform: uppercase; color: var(--accent2); font-weight: 600; }
.pg-title { font-family: var(--display); font-size: 1.9em; line-height: 1.12; font-weight: 600; color: var(--ink); text-wrap: balance; }
.pg-meta { font-size: .8em; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3em 1.2em; }
.fb-desc { font-size: .95em; flex: 0 1 auto; min-height: 0; overflow: hidden; }
.fb-desc p + p { margin-top: .7em; }
.fb-lede { font-family: var(--display); font-size: 1.15em; line-height: 1.3; }

/* Figures */
.fb-fig { display: flex; flex-direction: column; gap: .35em; min-height: 0; }
.fb-img { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: var(--soft); }
.fb-img img { width: 100%; height: 100%; object-fit: cover; }
.fb-contain { background: #fff; } .fb-contain img { object-fit: contain; }
.fb-fig figcaption { font-size: .74em; color: var(--muted); flex: 0 0 auto; }
.fb-grow { flex: 1 1 0; min-height: 34%; }
.fb-hero { min-height: 48%; }
.fb-staged { position: absolute; left: .6em; bottom: .6em; background: rgba(0,0,0,.72); color: #fff; font: 600 .68em/1 var(--body); padding: .45em .6em; border-radius: .25em; letter-spacing: .02em; }
.fb-orig-btn { position: absolute; right: .6em; bottom: .6em; background: #fff; color: #111; border: 0; font: 600 .68em/1 var(--body); padding: .5em .7em; border-radius: .25em; cursor: pointer; }
.fb-orig-btn:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

/* Facts, stats */
.fb-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .1em .8em; border-top: 1px solid var(--rule, rgba(0,0,0,.14)); border-bottom: 1px solid var(--rule, rgba(0,0,0,.14)); padding: .6em 0; flex: 0 0 auto; }
.fb-facts div { padding: .25em 0; } .fb-facts dt { font-size: .66em; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } .fb-facts dd { font-weight: 600; font-size: .92em; }
.fb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; flex: 0 0 auto; }
.fb-stats div { background: var(--soft); padding: .75em .85em; border-radius: var(--r, 0); }
.fb-stats dt { font-size: .72em; color: var(--muted); line-height: 1.3; } .fb-stats dd { font-family: var(--display); font-size: 1.5em; font-weight: 600; line-height: 1.15; margin-top: .15em; }
.fb-stats dd.fb-sub, .fb-costs dd.fb-sub { font-family: var(--body); font-size: .7em; font-weight: 400; color: var(--muted); margin-top: .2em; }
.fb-ctx-k { font-size: .72em; letter-spacing: .14em; text-transform: uppercase; color: var(--accent2); font-weight: 700; margin-bottom: .45em; }
.fb-fine { font-size: .64em; color: var(--muted); line-height: 1.4; margin-top: auto; }
.fb-hl { display: flex; flex-direction: column; gap: .45em; flex: 0 0 auto; }
.fb-hl li { position: relative; padding-left: 1.3em; font-size: .98em; line-height: 1.35; }
.fb-hl li::before { content: ''; position: absolute; left: .1em; top: .5em; width: .5em; height: .5em; background: var(--accent); border-radius: var(--dot, 0); }
.is-rtl .fb-hl li { padding-left: 0; padding-right: 1.3em; } .is-rtl .fb-hl li::before { left: auto; right: .1em; }
.fb-hl-sm li { font-size: .88em; }

/* Gallery pages */
.fb-p-gallery { padding: 1.3em 1.3em 2.6em; }
.fb-gal { flex: 1 1 auto; min-height: 0; display: grid; gap: .7em; }
.fb-gal-1 { grid-template-rows: 1fr; }
.fb-gal-2 { grid-template-rows: 1fr 1fr; }
.fb-gal-3 { grid-template-rows: 1.35fr 1fr; grid-template-columns: 1fr 1fr; } .fb-gal-3 .fb-g-main { grid-column: 1 / -1; }
.fb-gal-4 { grid-template-rows: 1.3fr 1fr; grid-template-columns: 1fr 1fr 1fr; } .fb-gal-4 .fb-g-main { grid-column: 1 / -1; }
.fb-room-gal { flex: 1 1 0; min-height: 40%; }
.fb-plans { flex: 1 1 auto; min-height: 0; display: grid; gap: .8em; } .fb-plans-2 { grid-template-rows: 1fr 1fr; } .fb-plans-3 { grid-template-rows: 1fr 1fr 1fr; }

/* Market and neighborhood */
.fb-hot { border: 1px solid var(--rule, rgba(0,0,0,.14)); padding: .9em 1em; display: grid; grid-template-columns: 1fr auto; gap: .2em 1em; align-items: center; border-radius: var(--r, 0); }
.fb-hot-k { font-size: .72em; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); grid-column: 1 / -1; }
.fb-hot-v { font-family: var(--display); font-size: 1.7em; font-weight: 700; line-height: 1.1; }
.fb-hot-bar { display: flex; gap: .25em; } .fb-hot-bar span { width: 1.4em; height: .5em; background: var(--soft); border-radius: .1em; }
.fb-hot-1 .fb-hot-bar span:nth-child(-n+1), .fb-hot-2 .fb-hot-bar span:nth-child(-n+2), .fb-hot-3 .fb-hot-bar span:nth-child(-n+3), .fb-hot-4 .fb-hot-bar span { background: var(--accent); }
.fb-hot-n { font-size: .7em; color: var(--muted); grid-column: 1 / -1; }
.fb-ctx { flex: 0 0 auto; } .fb-ctx-row { display: grid; grid-template-columns: 8em 1fr auto; gap: .7em; align-items: center; font-size: .82em; padding: .25em 0; }
.fb-ctx-bar { height: .7em; background: var(--soft); position: relative; border-radius: .35em; overflow: hidden; } .fb-ctx-bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); border-radius: inherit; }
.is-rtl .fb-ctx-bar i { inset: 0 0 0 auto; } .fb-ctx-bar.is-zip i { background: var(--muted); } .fb-ctx-row b small { font-weight: 400; color: var(--muted); }
.fb-hz ul { display: flex; flex-direction: column; } .fb-hz li { display: grid; grid-template-columns: 1fr auto 8.5em; gap: .7em; align-items: center; font-size: .85em; padding: .35em 0; border-bottom: 1px solid var(--rule, rgba(0,0,0,.1)); }
.fb-hz li b { font-weight: 600; text-align: end; } .fb-hz-dots { display: flex; gap: .2em; } .fb-hz-dots i { width: .6em; height: .6em; border-radius: 50%; background: var(--soft); border: 1px solid var(--rule, rgba(0,0,0,.18)); }
.fb-lv-1 i:nth-child(-n+1), .fb-lv-2 i:nth-child(-n+2), .fb-lv-3 i:nth-child(-n+3), .fb-lv-4 i:nth-child(-n+4), .fb-lv-5 i { background: var(--muted); border-color: var(--muted); }
.fb-hz .fb-fine { margin-top: .6em; }

/* Costs and buyer links */
.fb-buy { display: flex; flex-direction: column; gap: .5em; }
.fb-link { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding: .75em .95em; background: var(--soft); text-decoration: none; font-weight: 600; font-size: .9em; border-radius: var(--r, 0); border: 1px solid transparent; }
.fb-link:hover { border-color: var(--accent); } .fb-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-btnlink { display: inline-flex; background: var(--accent); color: var(--on-accent); }
.fb-link-print { display: block; padding: .5em .8em; background: var(--soft); font-size: .82em; } .fb-link-print b { display: block; } .fb-link-print span { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; word-break: break-all; }
.fb-costs dl { display: flex; flex-direction: column; gap: .6em; } .fb-costs dt { font-size: .76em; color: var(--muted); } .fb-costs dd { font-family: var(--display); font-weight: 600; font-size: 1.3em; }

/* Video */
.fb-video { position: relative; flex: 1 1 auto; min-height: 0; background: #000; overflow: hidden; border-radius: var(--r, 0); }
.fb-video img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.fb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fb-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--accent); color: var(--on-accent); border: 0; padding: .9em 1.3em; font: 700 .95em/1 var(--body); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.fb-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fb-video-link { font-size: .85em; }

/* QR and spelled-out links (print and download) */
.fb-qrrow { display: flex; align-items: center; gap: 1em; flex: 0 0 auto; }
.fb-qr { flex: 0 0 auto; width: 7.5em; height: 7.5em; background: #fff; padding: .2em; } .fb-qr svg { width: 100%; height: 100%; display: block; }
.fb-qrrow p { font-size: .8em; line-height: 1.35; } .fb-spell { font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }

/* Contact page */
.fb-agent { display: flex; gap: 1.1em; align-items: flex-start; }
.fb-headshot { width: 7em; height: 7em; object-fit: cover; flex: 0 0 auto; border-radius: var(--hs, 0); }
.fb-agent-name { font-family: var(--display); font-size: 1.65em; font-weight: 600; line-height: 1.1; }
.fb-agent-title { font-size: .82em; color: var(--muted); margin-top: .2em; }
.fb-agent-contact { margin-top: .6em; display: flex; flex-direction: column; gap: .2em; font-size: .9em; }
.fb-agent-contact span { font-size: .78em; color: var(--muted); display: inline-block; min-width: 4.8em; }
.fb-agent-contact a { text-decoration: none; border-bottom: 1px solid var(--rule, rgba(0,0,0,.2)); }
.fb-phone { font-weight: 700; }
.fb-brk-line { display: flex; align-items: center; gap: .6em; margin-top: .7em; font-size: 1em; }
.fb-logo { max-height: 2.4em; max-width: 8em; width: auto; object-fit: contain; }
.fb-co { font-size: .82em; color: var(--muted); }
.fb-oh ul { display: flex; flex-direction: column; gap: .2em; font-size: .9em; }
.fb-brokerage { font-size: .8em; display: flex; flex-direction: column; gap: .2em; border-top: 1px solid var(--rule, rgba(0,0,0,.14)); padding-top: .7em; }
.fb-tx-links { display: flex; flex-direction: column; gap: .4em; margin-top: .3em; } .fb-tx-links .fb-link { font-size: .95em; padding: .5em .7em; }
.fb-sponsor { display: flex; gap: .8em; align-items: center; padding: .7em .8em; border: 1px solid var(--rule, rgba(0,0,0,.14)); text-decoration: none; border-radius: var(--r, 0); font-size: .82em; }
.fb-sponsor img { width: 3.2em; height: 3.2em; border-radius: 50%; object-fit: cover; } .fb-sponsor small { display: block; color: var(--accent2); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .78em; } .fb-sponsor b { display: block; }
.fb-legal { margin-top: auto; font-size: .64em; color: var(--muted); display: flex; flex-direction: column; gap: .3em; }
.fb-eho { font-size: 1.3em; } .fb-made { font-weight: 700; letter-spacing: .02em; }
/* State rules on the brokerage name: Texas at least half the size of the largest contact detail; New Jersey larger than the agent's name */
.st-TX .fb-brk { font-size: max(1em, .5 * 1.65em); }
.st-NJ .fb-p-contact .fb-brk-line .fb-brk { font-size: 1.85em; font-family: var(--display); font-weight: 700; line-height: 1.1; }
.st-NJ .fb-p-contact .fb-agent-name { font-size: 1.4em; }
.st-NJ .cv-agent .fb-brk { font-size: 1.15em; }

/* Status ribbon and banner */
.fb-ribbon { position: absolute; z-index: 3; top: 1.3em; left: 1.3em; background: var(--accent); color: var(--on-accent); font: 700 .74em/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: .65em .9em; }
.is-rtl .fb-ribbon { left: auto; right: 1.3em; }
.fb-ribbon-in { top: .8em; left: .8em; }
.cv-banner { position: absolute; z-index: 3; top: 1.3em; right: 1.3em; max-width: 60%; background: var(--paper); color: var(--ink); font: 600 .74em/1.3 var(--body); padding: .55em .8em; box-shadow: 0 .2em .8em rgba(0,0,0,.18); text-align: end; }
.is-rtl .cv-banner { right: auto; left: 1.3em; }

/* ============ Cover (shared) ============ */
.fb-p-cover, .fb-p-ccover { padding: 0; gap: 0; }
.cv-photo { position: relative; overflow: hidden; background: var(--soft); }
.cv-photo img { width: 100%; height: 100%; object-fit: cover; }
.cv-mosaic { display: none; }
.cv-deco { display: none; position: absolute; pointer-events: none; }
.cv-text { display: flex; flex-direction: column; gap: .35em; position: relative; z-index: 2; }
.cv-kicker { font-size: .74em; letter-spacing: .18em; text-transform: uppercase; color: var(--accent2); font-weight: 700; }
.cv-title { font-family: var(--display); font-size: 2.35em; line-height: 1.05; font-weight: 600; text-wrap: balance; overflow-wrap: anywhere; }
.cv-place { font-size: .95em; color: var(--muted); }
.cv-price { display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap; } .cv-price b { font-family: var(--display); font-size: 1.7em; font-weight: 700; line-height: 1.1; }
.cv-price-l { font-size: .72em; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cv-facts { display: flex; flex-wrap: wrap; gap: .2em 1.1em; font-size: .86em; } .cv-facts b { font-weight: 700; }
.cv-agent { position: relative; z-index: 2; display: flex; align-items: center; gap: .6em; font-size: .74em; color: var(--muted); }
.cv-logo { max-height: 2.2em; max-width: 7em; object-fit: contain; background: #fff; padding: .2em .35em; border-radius: .2em; }
.cv-script { font-family: var(--script, var(--display)); font-size: 2.1em; color: var(--accent2); line-height: 1; margin-bottom: -.1em; }
.cc-covers { display: grid; gap: .5em; padding: 1.4em 1.4em 0; flex: 1 1 58%; min-height: 0; }
.cc-covers img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.cc-n2 { grid-template-columns: 1fr 1fr; } .cc-n3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; } .cc-n3 img:first-child { grid-row: 1 / -1; } .cc-n4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.fb-p-ccover .cv-text { padding: 1.4em 2em .6em; } .fb-p-ccover .cv-agent { padding: 0 2em 1.6em; margin-top: auto; }

/* ============ Cover layouts ============ */
/* Frame: inset photo with a keyline, centered type below */
.cl-frame .fb-p-cover { padding: 2.3em 2.3em 1.5em; }
.cl-frame .cv-photo { flex: 0 0 58%; margin: .55em; outline: 1px solid var(--accent2); outline-offset: .5em; }
.cl-frame .cv-text { flex: 1 1 auto; justify-content: center; align-items: center; text-align: center; padding-top: 1em; }
.cl-frame .cv-facts, .cl-frame .cv-price { justify-content: center; }
.cl-frame .cv-agent { justify-content: center; }
.cl-frame .fb-ribbon { top: 2.2em; left: 2.2em; }
/* Corner ornaments */
.cl-corners .cv-deco { display: block; width: 3.2em; height: 3.2em; border: 2px solid var(--accent2); }
.cl-corners .cv-deco1 { top: .9em; left: .9em; border-right: 0; border-bottom: 0; }
.cl-corners .cv-deco2 { bottom: .9em; right: .9em; border-left: 0; border-top: 0; }

/* Full bleed: photo fills the page, type over a dark fade */
.cl-full .cv-photo { position: absolute; inset: 0; }
.cl-full .cv-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 45%, rgba(0,0,0,.78) 100%); }
.cl-full .cv-text { margin-top: auto; padding: 2.2em 2.3em .8em; color: #fff; }
.cl-full .cv-place, .cl-full .cv-price-l { color: rgba(255,255,255,.82); } .cl-full .cv-kicker { color: var(--accent2); }
.cl-full .cv-agent { padding: 0 2.3em 1.6em; color: rgba(255,255,255,.85); }

/* Bar: black info bar across the bottom (Skyline) */
.cl-bar .cv-text { margin-top: auto; padding: 1.4em 2.3em; background: var(--accent); color: var(--on-accent); display: grid; grid-template-columns: 1fr auto; gap: .2em 1.2em; align-items: end; }
.cl-bar .cv-kicker { grid-column: 1 / -1; color: var(--accent2); } .cl-bar .cv-title { font-size: 2.1em; font-weight: 800; letter-spacing: -.02em; } .cl-bar .cv-place { grid-column: 1; color: rgba(255,255,255,.75); }
.cl-bar .cv-price { grid-column: 2; grid-row: 2 / span 2; flex-direction: column; align-items: flex-end; gap: 0; } .cl-bar .cv-price b { font-size: 2em; }
.cl-bar .cv-facts { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.25); padding-top: .6em; margin-top: .4em; }
.cl-bar .cv-agent { background: var(--accent); padding: 0 2.3em 1.5em; }
.cl-bar .cv-photo::after { background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 30%); }
/* Dark (Noir) */
.cl-dark .cv-photo::after { background: linear-gradient(180deg, rgba(15,16,19,.1) 0%, rgba(15,16,19,0) 35%, rgba(15,16,19,.95) 88%); }
.cl-dark .cv-title { font-weight: 800; letter-spacing: -.02em; }

/* Band: photo on top, a solid color band with the type */
.cl-band .cv-photo { flex: 0 0 64%; }
.cl-band .cv-text { flex: 1 1 auto; background: var(--accent); color: var(--on-accent); padding: 1.6em 2.3em 1em; justify-content: center; }
.cl-band .cv-place, .cl-band .cv-price-l { color: currentColor; opacity: .82; } .cl-band .cv-kicker { color: var(--accent2); }
.cl-band .cv-agent { background: var(--accent); color: var(--on-accent); opacity: 1; padding: 0 2.3em 1.4em; } .cl-band .cv-agent span { opacity: .85; }
.cl-band .cv-price { position: absolute; right: 2.3em; top: -1.6em; background: var(--paper); color: var(--ink); padding: .6em 1em; box-shadow: 0 .3em 1em rgba(0,0,0,.2); }
.is-rtl.cl-band .cv-price { right: auto; left: 2.3em; }
.cl-stripe .cv-text { background-image: repeating-linear-gradient(90deg, transparent 0 1.2em, rgba(255,255,255,.05) 1.2em 2.4em); }
.cl-stripe .cv-deco1 { display: block; left: 0; right: 0; top: 64%; height: .5em; background: repeating-linear-gradient(90deg, var(--accent2) 0 2em, var(--paper) 2em 2.6em); z-index: 3; }

/* Arch: photo in an arched window */
.cl-arch .fb-p-cover { padding: 2.4em 2.3em 1.5em; align-items: center; }
.cl-arch .cv-photo { width: 78%; flex: 0 0 60%; border-radius: 50% 50% 0 0 / 34% 34% 0 0; }
.cl-arch .cv-text { text-align: center; align-items: center; padding-top: 1.2em; flex: 1 1 auto; justify-content: center; }
.cl-arch .cv-price, .cl-arch .cv-facts { justify-content: center; } .cl-arch .cv-agent { justify-content: center; }
.cl-sun .cv-deco1 { display: block; width: 92%; aspect-ratio: 1; border-radius: 50%; background: var(--accent2); opacity: .55; top: 4%; left: 4%; z-index: 0; }
.cl-sun .cv-photo { z-index: 1; } .cl-sun .cv-text { align-items: flex-start; text-align: left; width: 100%; } .cl-sun .cv-price, .cl-sun .cv-facts { justify-content: flex-start; }
.cl-sun .cv-agent { justify-content: flex-start; width: 100%; }

/* Badge: full-width photo and a round price seal */
.cl-badge .cv-photo { flex: 0 0 60%; }
.cl-badge .cv-text { padding: 1.8em 2.3em .8em; flex: 1 1 auto; justify-content: center; text-align: center; align-items: center; }
.cl-badge .cv-facts { justify-content: center; }
.cl-badge .cv-price { position: absolute; top: -5.6em; right: 1.8em; width: 8.4em; height: 8.4em; border-radius: 50%; background: var(--accent); color: var(--on-accent); flex-direction: column; justify-content: center; align-items: center; gap: .1em; text-align: center; border: .25em solid var(--paper); box-shadow: 0 .3em 1em rgba(0,0,0,.18); }
.cl-badge .cv-price b { font-size: 1.25em; } .cl-badge .cv-price-l { color: currentColor; opacity: .85; font-size: .6em; }
.is-rtl.cl-badge .cv-price { right: auto; left: 1.8em; }
.cl-badge .cv-agent { justify-content: center; padding-bottom: 1.5em; }

/* Masthead: newspaper or magazine front */
.cl-mast .fb-p-cover { padding: 1.8em 2em 1.4em; }
.cl-mast .cv-text { order: -1; border-top: .3em solid var(--ink); border-bottom: 1px solid var(--ink); padding: .7em 0 .9em; margin-bottom: 1em; }
.cl-mast .cv-kicker { color: var(--accent2); text-align: center; border-bottom: 1px solid var(--ink); padding-bottom: .5em; margin-bottom: .3em; }
.cl-mast .cv-title { font-size: 2.6em; text-align: center; font-weight: 700; }
.cl-mast .cv-place { text-align: center; font-style: italic; }
.cl-mast .cv-price { justify-content: center; border-top: 1px solid var(--ink); padding-top: .5em; margin-top: .3em; }
.cl-mast .cv-facts { justify-content: center; }
.cl-mast .cv-photo { flex: 1 1 auto; min-height: 0; }
.cl-mast .cv-agent { padding-top: .8em; border-top: 1px solid var(--ink); margin-top: .8em; justify-content: space-between; }
.cl-mast .fb-ribbon { top: auto; bottom: 4.6em; }
/* Magazine (Editorial): photo fills the page, a tall serif title on top */
.cl-mag .fb-p-cover { padding: 0; }
.cl-mag .cv-photo { position: absolute; inset: 0; }
.cl-mag .cv-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0) 38%, rgba(0,0,0,0) 62%, rgba(0,0,0,.6)); }
.cl-mag .cv-text { order: 0; flex: 1 1 auto; border: 0; margin: 0; padding: 1.6em 2em .4em; color: #fff; }
.cl-mag .cv-kicker { color: #fff; border-color: rgba(255,255,255,.5); text-align: left; }
.cl-mag .cv-title { font-size: 3.6em; font-weight: 400; text-align: left; line-height: .95; }
.cl-mag .cv-place { text-align: left; color: rgba(255,255,255,.88); }
.cl-mag .cv-price { margin-top: auto; border-color: rgba(255,255,255,.5); justify-content: flex-start; } .cl-mag .cv-price-l { color: rgba(255,255,255,.8); }
.cl-mag .cv-facts { justify-content: flex-start; }
.cl-mag .cv-agent { border: 0; padding: 0 2em 1.5em; margin: 0; color: rgba(255,255,255,.88); justify-content: flex-start; }
.cl-mag .fb-ribbon { top: auto; bottom: 1.4em; left: auto; right: 2em; }

/* Split: photo on one side, type on the other */
.cl-split .fb-p-cover { flex-direction: row; flex-wrap: wrap; }
.cl-split .cv-photo { flex: 0 0 56%; height: 100%; }
.cl-split .cv-text { flex: 1 1 0; padding: 2.2em 1.6em 1em; justify-content: center; }
.cl-split .cv-title { font-size: 1.95em; }
.cl-split .cv-facts { flex-direction: column; gap: .25em; border-top: 1px solid var(--rule, rgba(0,0,0,.14)); padding-top: .7em; margin-top: .5em; }
.cl-split .cv-agent { position: absolute; right: 1.6em; bottom: 1.4em; left: calc(56% + 1.6em); }
.is-rtl.cl-split .cv-agent { left: 1.6em; right: calc(56% + 1.6em); }
.cl-color .cv-text { background: var(--accent); color: var(--on-accent); } .cl-color .cv-place, .cl-color .cv-price-l { color: currentColor; opacity: .8; } .cl-color .cv-kicker { color: currentColor; opacity: .9; }
.cl-color .cv-agent { color: var(--on-accent); opacity: .85; } .cl-color .cv-facts { border-color: rgba(255,255,255,.35); }
.cl-color .fb-p-cover { background: var(--accent); }

/* Mosaic: one big photo, two small, type underneath */
.cl-mosaic .fb-p-cover { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr auto auto; gap: .5em; padding: 1.4em 1.4em 1.3em; }
.cl-mosaic .cv-photo { grid-column: 1; grid-row: 1 / span 2; }
.cl-mosaic .cv-mosaic { display: contents; } .cl-mosaic .cv-mosaic img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.cl-mosaic .cv-mosaic img:nth-child(1) { grid-column: 2; grid-row: 1; } .cl-mosaic .cv-mosaic img:nth-child(2) { grid-column: 2; grid-row: 2; }
.cl-mosaic .cv-text { grid-column: 1 / -1; padding: 1em .6em 0; } .cl-mosaic .cv-agent { grid-column: 1 / -1; padding: .2em .6em 0; }
.cl-mosaic .cv-title { font-weight: 800; letter-spacing: -.02em; font-size: 2.2em; }
.cl-mosaic .fb-p-cover:not(:has(.cv-mosaic img)) .cv-photo { grid-column: 1 / -1; }

/* Type: oversized headline on a color block, photo below */
.cl-type .fb-p-cover { display: flex; flex-direction: column; }
.cl-type .cv-text { order: -1; background: var(--accent); color: var(--on-accent); padding: 2em 2.1em 1.3em; }
.cl-type .cv-title { font-size: 3.1em; line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.cl-type .cv-kicker, .cl-type .cv-place, .cl-type .cv-price-l { color: currentColor; opacity: .85; }
.cl-type .cv-photo { flex: 1 1 auto; min-height: 0; }
.cl-type .cv-agent { padding: .9em 2.1em 1.3em; }
.cl-type .fb-ribbon { top: auto; bottom: 4.2em; background: var(--ink); color: var(--paper); }
.cl-diag .cv-text { background: var(--paper); color: var(--ink); padding-bottom: 2.2em; }
.cl-diag .cv-title { font-size: 4.2em; line-height: .88; } .cl-diag .cv-kicker { color: var(--accent); opacity: 1; } .cl-diag .cv-price b { color: var(--accent); }
.cl-diag .cv-photo { clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); margin-top: -2.4em; }
.cl-diag .cv-deco1 { display: block; left: 0; right: 0; bottom: 0; height: .6em; background: var(--accent); z-index: 3; }

/* Circle and oval frames */
.cl-circle .fb-p-cover, .cl-oval .fb-p-cover { align-items: center; padding: 2.2em 2.2em 1.4em; }
.cl-circle .cv-photo { width: 70%; aspect-ratio: 1; flex: 0 0 auto; border-radius: 50%; border: .5em solid var(--paper); box-shadow: 0 0 0 .2em var(--accent); z-index: 1; }
.cl-circle .cv-text, .cl-oval .cv-text { align-items: center; text-align: center; padding-top: 1.2em; flex: 1 1 auto; justify-content: center; }
.cl-circle .cv-price, .cl-circle .cv-facts, .cl-oval .cv-price, .cl-oval .cv-facts { justify-content: center; } .cl-circle .cv-agent, .cl-oval .cv-agent { justify-content: center; }
.cl-circle .cv-deco { display: block; border-radius: 50%; z-index: 0; }
.cl-circle .cv-deco1 { width: 46%; aspect-ratio: 1; background: var(--accent2); opacity: .35; top: -6%; left: -10%; }
.cl-circle .cv-deco2 { width: 34%; aspect-ratio: 1; background: var(--accent); opacity: .25; top: 34%; right: -8%; }
.cl-dots .cv-deco1 { background: radial-gradient(var(--accent2) 18%, transparent 20%) 0 0 / 1.2em 1.2em; opacity: .5; }
.cl-dots .cv-deco2 { background: var(--accent2); opacity: .3; }
.cl-oval .cv-photo { width: 66%; aspect-ratio: 4 / 5; flex: 0 1 auto; min-height: 0; border-radius: 50%; outline: 1px solid var(--accent2); outline-offset: .55em; }

/* Card: full-bleed photo with a floating card */
.cl-card .cv-photo { position: absolute; inset: 0; }
.cl-card .cv-text { margin: auto 1.6em 0; background: var(--paper); padding: 1.4em 1.5em 1.2em; box-shadow: 0 .5em 2em rgba(0,0,0,.22); }
.cl-card .cv-agent { margin: 0 1.6em 1.6em; background: var(--paper); padding: 0 1.5em 1.1em; }
.cl-card .cv-title { font-size: 2em; }
.cl-wave .cv-text { border-radius: 1.2em 1.2em 0 0; } .cl-wave .cv-agent { border-radius: 0 0 1.2em 1.2em; }
.cl-wave .cv-deco1 { display: block; left: -10%; right: -10%; bottom: -1.2em; height: 9em; border-radius: 50% 50% 0 0; background: var(--accent); opacity: .9; z-index: 1; }
.cl-glow .cv-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(109,40,217,.45), rgba(37,99,235,.15) 45%, rgba(37,99,235,.55)); mix-blend-mode: multiply; }
.cl-glow .cv-text, .cl-glow .cv-agent { background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.cl-glow .cv-text { border-radius: 1.1em 1.1em 0 0; } .cl-glow .cv-agent { border-radius: 0 0 1.1em 1.1em; }

/* Grid: raw borders and plan labels */
.cl-grid .fb-p-cover { padding: 1.4em; display: grid; grid-template-rows: auto 1fr auto auto; gap: 0; border: .25em solid var(--ink); background-image: linear-gradient(var(--rule2, rgba(0,0,0,.08)) 1px, transparent 1px), linear-gradient(90deg, var(--rule2, rgba(0,0,0,.08)) 1px, transparent 1px); background-size: 1.6em 1.6em; }
.cl-grid .cv-text { grid-row: 3; border: .2em solid var(--ink); border-top: 0; background: var(--paper); padding: 1em 1.1em; }
.cl-grid .cv-photo { grid-row: 2; border: .2em solid var(--ink); }
.cl-grid .cv-kicker { font-family: var(--mono, monospace); color: var(--accent); letter-spacing: .06em; }
.cl-grid .cv-title { text-transform: uppercase; font-weight: 700; letter-spacing: -.02em; }
.cl-grid .cv-price b { background: var(--accent); color: var(--on-accent); padding: 0 .25em; }
.cl-grid .cv-facts { font-family: var(--mono, monospace); font-size: .78em; }
.cl-grid .cv-agent { grid-row: 4; padding-top: .8em; font-family: var(--mono, monospace); }
.cl-grid .cv-deco1 { display: block; grid-row: 1; position: static; height: 2.2em; border: .2em solid var(--ink); border-bottom: 0; background: var(--accent); }
.cl-grid .fb-ribbon { top: 1.85em; left: 1.85em; background: var(--ink); color: var(--paper); }
.cl-blue .fb-p-cover { background-color: var(--accent); --rule2: rgba(255,255,255,.14); border-color: #fff; color: #fff; }
.cl-blue .cv-photo, .cl-blue .cv-text, .cl-blue .cv-deco1 { border-color: #fff; }
.cl-blue .cv-text { background: transparent; } .cl-blue .cv-kicker { color: #BFD7FF; } .cl-blue .cv-place, .cl-blue .cv-agent, .cl-blue .cv-price-l { color: rgba(255,255,255,.85); }
.cl-blue .cv-deco1 { background: transparent; } .cl-blue .cv-price b { background: #fff; color: var(--accent); }
.cl-blue .cv-photo img { filter: saturate(.85) contrast(1.05); }

/* ============ Interior looks ============ */
.lk-center .pg-head { text-align: center; align-items: center; } .lk-center .pg-meta { justify-content: center; }
.lk-rules .pg-head { border-bottom: 3px double var(--accent2); padding-bottom: .6em; }
.lk-caps .pg-title { text-transform: uppercase; letter-spacing: .08em; font-weight: 500; font-size: 1.55em; }
.lk-caps .cv-title { text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.lk-hair .pg-head::after { content: ''; display: block; width: 3em; height: 1px; background: var(--accent2); margin-top: .7em; }
.lk-center.lk-hair .pg-head::after { margin-left: auto; margin-right: auto; }
.lk-arch .fb-hero .fb-img, .lk-arch .fb-p-room .fb-g-main .fb-img { border-radius: 40% 40% 0 0 / 18% 18% 0 0; }
.lk-news .fb-desc { column-count: 2; column-gap: 1.4em; column-rule: 1px solid var(--rule, rgba(0,0,0,.14)); }
.lk-news .fb-p-about .fb-desc p:first-child::first-letter { float: left; font-family: var(--display); font-size: 3.1em; line-height: .85; padding: .05em .08em 0 0; color: var(--accent2); }
.lk-script .pg-kicker { font-family: var(--script); font-size: 1.6em; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--accent2); }
.lk-left .pg-head { text-align: start; }
.lk-tight .pg-title { font-weight: 800; letter-spacing: -.025em; }
.lk-air .fb-page { padding: 2.8em 2.6em 3em; } .lk-air .pg-title { font-weight: 600; letter-spacing: -.01em; }
.lk-blocks .pg-title { background: var(--accent); color: var(--on-accent); display: inline-block; padding: .1em .3em; align-self: flex-start; text-transform: uppercase; }
.lk-blocks .fb-stats div { background: var(--soft); border-left: .35em solid var(--accent); }
.lk-dark { --rule: rgba(255,255,255,.16); } .lk-dark .fb-contain { background: #fff; } .lk-dark .fb-link:hover { border-color: var(--accent); }
.lk-dark .fb-stats dd, .lk-dark .fb-hot-v { color: var(--accent); }
.lk-round { --r: .9em; --dot: 50%; --hs: 50%; } .lk-round .fb-img, .lk-round .fb-video { border-radius: .9em; } .lk-round .fb-stats div { border-radius: .9em; }
.lk-boxed { --rule: var(--ink); } .lk-boxed .fb-img { border: .18em solid var(--ink); } .lk-boxed .fb-stats div { border: .15em solid var(--ink); background: var(--paper); }
.lk-boxed .fb-facts { border-width: .18em; border-color: var(--ink); } .lk-boxed .fb-link { border: .15em solid var(--ink); background: var(--paper); }
.lk-mono .pg-kicker, .lk-mono .fb-facts dt, .lk-mono .fb-stats dt, .lk-mono .fb-ctx-k, .lk-mono .fb-num { font-family: var(--mono, monospace); letter-spacing: .04em; }
.lk-mono .pg-title { text-transform: uppercase; letter-spacing: -.01em; font-weight: 700; }
.lk-condensed .pg-title, .lk-condensed .cv-title { text-transform: uppercase; font-weight: 400; letter-spacing: .01em; line-height: .95; }
.lk-condensed .pg-title { font-size: 2.6em; } .lk-condensed .fb-stats dd, .lk-condensed .fb-hot-v, .lk-condensed .fb-agent-name { font-weight: 400; font-size: 1.9em; }
.lk-grid .fb-page { background-image: linear-gradient(rgba(31,78,153,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(31,78,153,.07) 1px, transparent 1px); background-size: 1.6em 1.6em; }
.lk-glass .fb-stats div, .lk-glass .fb-link { background: linear-gradient(135deg, rgba(109,40,217,.08), rgba(37,99,235,.08)); }

/* Per-design touches */
.d-heritage .cv-title { font-weight: 600; } .d-heritage .cv-kicker { color: var(--accent2); }
.d-estate .cv-title { font-weight: 500; font-size: 2.8em; letter-spacing: .02em; } .d-estate .pg-kicker, .d-estate .cv-kicker { letter-spacing: .3em; font-weight: 400; }
.d-estate .fb-ribbon { background: var(--accent2); color: #111; } .d-estate .fb-page:not(.fb-p-cover) { border: 1px solid var(--accent2); outline: .45em solid var(--paper); outline-offset: -1.1em; }
.d-colonial .cv-title { font-weight: 700; } .d-colonial .fb-ribbon { background: var(--accent2); color: var(--ink); }
.d-brownstone .cv-title { font-size: 2.6em; font-weight: 500; } .d-brownstone .pg-title { font-weight: 500; font-size: 2.1em; }
.d-country-club .cv-title { font-size: 1.9em; letter-spacing: .08em; } .d-country-club .cv-text { gap: .45em; }
.d-harbor .cv-title { font-weight: 700; }
.d-prairie .cv-title { font-weight: 700; font-size: 2.1em; }
.d-gazette .pg-title { font-weight: 700; } .d-gazette .fb-ribbon { background: var(--accent2); }
.d-slate .cv-text { border-left: .3em solid var(--accent2); }
.d-magnolia .cv-title { font-size: 2.2em; letter-spacing: .03em; } .d-magnolia .fb-ribbon { background: var(--accent2); color: var(--ink); }
.d-skyline .pg-title { font-weight: 800; letter-spacing: -.025em; } .d-skyline .fb-ribbon { background: var(--accent2); color: #fff; }
.d-gallery .pg-title { font-weight: 800; letter-spacing: -.02em; } .d-gallery .fb-ribbon { background: var(--paper); color: var(--ink); }
.d-bold .pg-title, .d-bold .fb-agent-name { text-transform: uppercase; } .d-bold .fb-hl li::before { background: var(--ink); }
.d-noir .pg-title, .d-noir .cv-title { font-weight: 800; letter-spacing: -.02em; } .d-noir .pg-kicker { color: var(--accent); }
.d-split .cv-title { font-weight: 700; letter-spacing: -.02em; } .d-split .pg-title { font-weight: 700; letter-spacing: -.015em; }
.d-pastel .cv-title { font-weight: 700; } .d-pastel .pg-title { font-weight: 700; } .d-pastel .fb-ribbon { border-radius: 999px; left: 50%; transform: translateX(-50%); }
.d-brutal .fb-ribbon { font-family: var(--mono); }
.d-desert .cv-title { font-weight: 800; font-size: 2.6em; letter-spacing: -.02em; } .d-desert .pg-title { font-weight: 600; font-style: italic; }
.d-nordic .cv-title { font-weight: 300; font-size: 2.2em; letter-spacing: -.02em; } .d-nordic .pg-title { font-weight: 300; } .d-nordic .cv-price b, .d-nordic .fb-stats dd { font-weight: 400; }
.d-metro .cv-price b { font-family: var(--display); font-weight: 400; font-size: 2.3em; }
.d-lagoon .cv-title { font-weight: 700; } .d-lagoon .fb-ribbon { border-radius: 999px; background: var(--accent2); }
.d-editorial .pg-title { font-weight: 400; font-size: 2.4em; line-height: 1; } .d-editorial .fb-agent-name { font-weight: 400; font-size: 2em; } .d-editorial .fb-stats dd { font-weight: 400; }
.d-citrus .cv-title, .d-citrus .pg-title { font-weight: 800; letter-spacing: -.02em; } .d-citrus .fb-hl li::before { background: var(--accent2); }
.d-blueprint .fb-ribbon { font-family: var(--mono); background: #fff; color: var(--accent); }
.d-aurora .cv-title { font-weight: 600; } .d-aurora .fb-ribbon { background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 999px; }
.d-noir .fb-ribbon, .d-bold .fb-ribbon { color: var(--on-accent); }

/* ============ Viewer ============ */
.fbv-body { margin: 0; height: 100vh; height: 100dvh; background: #E9E6E1; color: #1E2228; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; display: flex; flex-direction: column; }
.fbv-body.is-dark-bg { background: #15171B; color: #EDEDED; }
.fbv-banner { background: #1E2228; color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }
.fbv-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,.85); border-bottom: 1px solid rgba(0,0,0,.08); flex-wrap: wrap; }
.is-dark-bg .fbv-bar { background: rgba(0,0,0,.4); border-color: rgba(255,255,255,.1); }
.fbv-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 160px; }
.fbv-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fbv-btn { appearance: none; border: 1px solid rgba(0,0,0,.18); background: #fff; color: #1E2228; font: 600 14px/1 system-ui, sans-serif; min-height: 40px; min-width: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.fbv-btn:hover { border-color: #1E2228; } .fbv-btn:focus-visible { outline: 3px solid #2F6BFF; outline-offset: 2px; } .fbv-btn[disabled] { opacity: .4; cursor: default; }
.fbv-sel { min-height: 40px; border-radius: 999px; border: 1px solid rgba(0,0,0,.18); padding: 0 10px; font: 600 14px system-ui, sans-serif; background: #fff; color: #1E2228; max-width: 46vw; }
.fbv-count { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 64px; text-align: center; }
.fbv-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px 8px 18px; overflow: hidden; position: relative; perspective: 2600px; }
.fbv-mark { text-align: center; font-size: 12px; padding: 0 12px 12px; margin: 0; } .fbv-mark a { color: inherit; font-weight: 700; }
.fbv-hint { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 12px; opacity: .7; pointer-events: none; margin: 0; }
.fbv-menu { position: absolute; z-index: 30; right: 12px; top: 56px; background: #fff; color: #1E2228; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 8px; max-height: 70vh; overflow: auto; width: min(320px, calc(100vw - 24px)); }
.fbv-menu[hidden] { display: none; }
.fbv-menu button { display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 10px; border-radius: 8px; font: 500 14px system-ui, sans-serif; cursor: pointer; color: inherit; }
.fbv-menu button:hover, .fbv-menu button:focus-visible { background: #F1EEE9; outline: none; } .fbv-menu button span { color: #6A6F78; min-width: 22px; font-variant-numeric: tabular-nums; }
.fbv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fbv-noscript .fb-book { display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* Before the script runs (and without it), pages simply stack */
.fbv-stage .fb-book:not(.is-ready) { display: flex; flex-direction: column; gap: 16px; align-items: center; overflow: auto; max-height: 100%; }

/* Spread mode: leaves turn around the spine */
.fb-book.is-spread { position: relative; width: calc(var(--pw) * 2); height: var(--ph); transition: transform .6s ease; transform-style: preserve-3d; }
.fb-book.is-spread.at-start { transform: translateX(calc(var(--pw) * -.5)); } .fb-book.is-spread.at-end { transform: translateX(calc(var(--pw) * .5)); }
.fb-leaf { position: absolute; top: 0; left: 50%; width: var(--pw); height: var(--ph); transform-origin: left center; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.4,.1,.25,1); }
.fb-leaf.is-flipped { transform: rotateY(-180deg); }
.fb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; box-shadow: 0 6px 22px rgba(0,0,0,.18); }
.fb-face.back { transform: rotateY(180deg); }
/* Don't rely on backface-visibility alone: some browsers still paint text and colour blocks of the side facing away
   (mirrored through the other page). The side facing away is hidden outright, switching halfway through the turn. */
.fb-face { transition: visibility 0s linear .37s; }
.fb-leaf.is-flipped > .fb-face.front, .fb-leaf:not(.is-flipped) > .fb-face.back { visibility: hidden; }
.fb-face::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.fb-face.front::after { background: linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,0) 6%); }
.fb-face.back::after { background: linear-gradient(270deg, rgba(0,0,0,.12), rgba(0,0,0,0) 6%); }
.fb-leaf.is-turning .fb-face::after { transition: background .75s; }
/* Right-to-left books open the other way */
.is-rtl.fb-book.is-spread .fb-leaf { left: 0; transform-origin: right center; } .is-rtl.fb-book.is-spread .fb-leaf.is-flipped { transform: rotateY(180deg); }
.is-rtl.fb-book.is-spread.at-start { transform: translateX(calc(var(--pw) * .5)); } .is-rtl.fb-book.is-spread.at-end { transform: translateX(calc(var(--pw) * -.5)); }

/* Single-page mode (phones, narrow windows) */
.fb-book.is-single { position: relative; width: var(--pw); height: var(--ph); }
.fb-book.is-single .fb-page { position: absolute; inset: 0; box-shadow: 0 6px 22px rgba(0,0,0,.18); visibility: hidden; }
.fb-book.is-single .fb-page.is-on { visibility: visible; z-index: 2; }
.fb-book.is-single .fb-page.is-out { visibility: visible; z-index: 3; transform-origin: left center; animation: fbTurn .45s ease-in forwards; }
.fb-book.is-single .fb-page.is-out.is-back { animation: fbTurnBack .45s ease-in forwards; transform-origin: right center; }
@keyframes fbTurn { to { transform: perspective(1800px) rotateY(-95deg); opacity: .6; } }
@keyframes fbTurnBack { to { transform: perspective(1800px) rotateY(95deg); opacity: .6; } }
@media (prefers-reduced-motion: reduce) { .fb-leaf, .fb-book.is-spread, .fb-face { transition: none; } .fb-book.is-single .fb-page.is-out { animation: none; visibility: hidden; } }

/* Kiosk (open house) */
.fbk-body .fbv-bar { background: transparent; border: 0; }
.fbk-sign { position: fixed; inset: 0; z-index: 50; background: rgba(20,22,26,.72); display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; }
.fbk-sign[hidden] { display: none; }
.fbk-card { background: #fff; color: #1E2228; border-radius: 18px; padding: 26px 24px; width: min(560px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.fbk-card h1, .fbk-card h2 { margin: 0 0 4px; font-size: 30px; } .fbk-card > p { margin: 0 0 16px; color: #555B63; }
.fbk-card label { display: block; font-weight: 600; font-size: 15px; margin-top: 12px; }
.fbk-card input[type=text], .fbk-card input[type=email], .fbk-card input[type=tel] { width: 100%; box-sizing: border-box; min-height: 52px; font-size: 18px; padding: 10px 14px; border: 1px solid #C9C5BE; border-radius: 10px; margin-top: 6px; }
.fbk-card fieldset { border: 0; padding: 0; margin: 14px 0 0; } .fbk-card legend { font-weight: 600; font-size: 15px; padding: 0; }
.fbk-radios { display: flex; gap: 10px; margin-top: 8px; } .fbk-radios label { margin: 0; flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid #C9C5BE; border-radius: 10px; padding: 12px; font-weight: 500; }
.fbk-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; line-height: 1.4; }
.fbk-check input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; }
.fbk-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; } .fbk-actions button { min-height: 52px; font-size: 17px; padding: 0 22px; border-radius: 999px; cursor: pointer; font-weight: 700; }
.fbk-go { background: #1E2228; color: #fff; border: 0; flex: 1; } .fbk-skip { background: #fff; border: 1px solid #C9C5BE; color: #1E2228; }
.fbk-fine { font-size: 12px; color: #6A6F78; margin-top: 14px !important; }
.fbk-thanks { font-size: 22px; font-weight: 700; text-align: center; padding: 30px 0; }
.fbk-err { color: #B42318; font-weight: 600; }

/* ============ Print ============ */
.fbp-body { margin: 0; background: #DAD6D0; font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: #1E2228; }
.fbp-bar { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid #DDD; padding: 12px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.fbp-bar p { margin: 0; font-size: 14px; max-width: 760px; }
.fbp-sheets { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 18px 8px 40px; }
.fbp-sheet { background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.18); display: flex; position: relative; overflow: hidden; flex: 0 0 auto; }
.fbp-sheet > .fb-page { flex: 0 0 auto; }
.fbp-blank { background: #fff; }
.fbp-crop { position: absolute; inset: 0; pointer-events: none; }
@media screen { .fbp-sheets { zoom: var(--preview-zoom, 1); } }
@media print {
  .fbp-body { background: #fff; } .fbp-bar { display: none; } .fbp-sheets { padding: 0; gap: 0; display: block; }
  .fbp-sheet { box-shadow: none; break-after: page; page-break-after: always; margin: 0; } .fbp-sheet:last-child { break-after: auto; page-break-after: auto; }
  .fb-page { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .fb-orig-btn, .fb-play { display: none !important; }
}
/* Feature sheet and postcards: their own layouts, built from the same design variables */
.fs-page { width: var(--pw); height: var(--ph); background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--fs); line-height: 1.4; display: grid; overflow: hidden; position: relative; }
.fs-page * { box-sizing: border-box; } .fs-page p, .fs-page h1, .fs-page ul { margin: 0; } .fs-page ul { padding: 0; list-style: none; }
.fs-sheet { grid-template-rows: 42% auto minmax(0, 1fr) auto auto; padding-bottom: 1.4em; }
.fs-hero { position: relative; overflow: hidden; } .fs-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-head { padding: 1.1em 2em .6em; display: grid; grid-template-columns: 1fr auto; gap: .2em 1.5em; align-items: end; border-bottom: 3px solid var(--accent); }
.fs-head h1 { font-family: var(--display); font-size: 2.2em; line-height: 1.05; font-weight: 700; } .fs-head .fs-place { color: var(--muted); font-size: .95em; }
.fs-price { font-family: var(--display); font-size: 2em; font-weight: 700; text-align: end; line-height: 1; grid-row: 1 / span 2; grid-column: 2; }
.fs-price small { display: block; font-family: var(--body); font-size: .32em; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .3em; }
.fs-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.4em; padding: 1em 2em; min-height: 0; overflow: hidden; }
.fs-facts { display: flex; flex-wrap: wrap; gap: .3em 1.2em; font-size: .95em; margin-bottom: .7em; } .fs-facts b { font-weight: 700; }
.fs-desc { font-size: .86em; overflow: hidden; } .fs-hl li { font-size: .88em; padding: .25em 0 .25em 1.2em; position: relative; } .fs-hl li::before { content: ''; position: absolute; left: 0; top: .7em; width: .5em; height: .5em; background: var(--accent); }
.fs-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: minmax(0, 1fr); gap: .5em; padding: 0 2em; height: 8.5em; overflow: hidden; } .fs-thumbs img { min-height: 0; } .fs-thumbs:empty { display: none; } .fs-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-foot { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2em; align-items: center; padding: .9em 2em 1.1em; border-top: 1px solid rgba(0,0,0,.14); margin-top: .8em; }
.fs-foot .fs-hs { width: 5em; height: 5em; object-fit: cover; } .fs-agent b { font-family: var(--display); font-size: 1.25em; display: block; } .fs-agent p { font-size: .8em; } .fs-agent .fb-brk { font-size: 1em; }
.fs-qr { display: flex; gap: .7em; align-items: center; font-size: .72em; } .fs-qr .fb-spell { word-break: normal; white-space: nowrap; } .fs-qr .fb-qr { width: 11.5em; height: 11.5em; }
.fs-legal { position: absolute; bottom: .35em; left: 2em; right: 2em; font-size: .55em; color: var(--muted); display: flex; justify-content: space-between; gap: 1em; }
.fs-ribbon { position: absolute; top: 1em; left: 1em; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: .8em; letter-spacing: .12em; text-transform: uppercase; padding: .55em .8em; }
.st-NJ .fs-agent .fb-brk { font-size: 1.35em; font-family: var(--display); font-weight: 700; }
/* Postcard front: photo with a band; back: message left, mailing area right */
.pc-front { grid-template-rows: 1fr auto; } .pc-front .fs-hero { min-height: 0; }
.pc-band { background: var(--accent); color: var(--on-accent); padding: .8em 1.4em; display: flex; justify-content: space-between; align-items: center; gap: 1em; }
.pc-band h1 { font-family: var(--display); font-size: 1.7em; line-height: 1.05; } .pc-band p { font-size: .85em; opacity: .9; } .pc-band .pc-price { font-family: var(--display); font-size: 1.8em; font-weight: 700; white-space: nowrap; }
.pc-back { grid-template-columns: 1fr 1fr; }
.pc-msg { padding: 1.2em 1.1em 1.2em 1.4em; display: flex; flex-direction: column; gap: .5em; border-right: 1px solid rgba(0,0,0,.15); min-height: 0; overflow: hidden; }
.pc-msg h2 { font-family: var(--display); font-size: 1.25em; line-height: 1.1; margin: 0; } .pc-msg .fs-facts { font-size: .82em; margin: 0; } .pc-msg .fs-hl li { font-size: .8em; padding-top: .12em; padding-bottom: .12em; }
.pc-msg .fs-qr { margin-top: auto; } .pc-agent { font-size: .78em; } .pc-agent b { font-family: var(--display); font-size: 1.15em; }
.pc-mail { position: relative; padding: 1.2em 1.4em; display: flex; flex-direction: column; justify-content: space-between; }
.pc-indicia { align-self: flex-end; border: 1.5px solid #000; color: #000; font: 600 .62em/1.25 Arial, sans-serif; text-align: center; padding: .5em .7em; text-transform: uppercase; background: #fff; }
.pc-address { font: .78em/1.4 Arial, sans-serif; color: #000; margin-bottom: 3.2em; } .pc-address b { display: block; font-size: 1.05em; }
.pc-clear { position: absolute; left: 0; right: 0; bottom: 0; height: 0; border-top: 1px dashed rgba(0,0,0,.22); }
.pc-return { font-size: .7em; color: var(--muted); } .pc-legal { font-size: .55em; color: var(--muted); margin-top: auto; }
.fbp-guide { position: absolute; inset: var(--bleed, 0); outline: 1px dashed rgba(255,0,0,.55); pointer-events: none; z-index: 20; }
@media print { .fbp-guide { display: none; } }

/* Viewer extras: sample bar, unavailable page */
.fbv-sample { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px; font-weight: 500; }
.fbv-zipform { display: inline-flex; align-items: center; gap: 6px; } .fbv-zipform label { font-weight: 600; }
.fbv-zipform input { width: 6.5em; min-height: 34px; border-radius: 999px; border: 0; padding: 0 12px; font: 600 14px system-ui, sans-serif; }
.fbv-btn-sm { min-height: 34px; font-size: 13px; padding: 0 12px; }
.fbv-btn-cta { background: #FFD66B; border-color: #FFD66B; color: #1E2228; } .fbv-btn-cta:hover { border-color: #fff; }
.fbv-use { margin: 0; } .fbv-back { color: #fff; font-weight: 600; }
.fbv-gone { max-width: 560px; margin: 12vh auto; padding: 0 20px; text-align: center; } .fbv-gone h1 { font-size: 26px; line-height: 1.25; margin: 0 0 14px; } .fbv-gone p { line-height: 1.6; }
.is-orig .fb-staged { display: none; }
@media (max-width: 600px) { .fbv-sample { font-size: 12px; gap: 6px 10px; padding: 6px 10px; } .fbv-zipform label { display: none; } .fbv-bar { padding: 6px 8px; } .fbv-title { flex-basis: 100%; font-size: 13px; } .fbv-tools { width: 100%; justify-content: space-between; } .fbv-btn { padding: 0 10px; } #fbv-full { display: none; } }
.fb-fill { flex: 1 1 0; min-height: 0; overflow: hidden; border-radius: var(--r, 0); } .fb-fill img { width: 100%; height: 100%; object-fit: cover; }
.fb-fill + .fb-fine { margin-top: 0; }
.fbk-exit { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 14px 0; } .fbk-exit input { min-height: 44px; font-size: 20px; width: 9em; text-align: center; border: 1px solid #C9C5BE; border-radius: 10px; }

/* ============ Luxury designs (.lx): photo-first pages ============ */
.lx .fb-page { padding: 3.2em 3em 3.4em; gap: 1.1em; }
.lx .fb-p-cover, .lx .fb-p-ccover { padding: 0; gap: 0; }
.lx .pg-kicker { letter-spacing: .34em; font-weight: 500; font-size: .66em; }
.lx .pg-title { font-weight: 400; font-size: 2.2em; line-height: 1.12; }
.lx .pg-meta { letter-spacing: .14em; text-transform: uppercase; font-size: .68em; }
.lx-c .pg-head { text-align: center; align-items: center; } .lx-c .pg-meta { justify-content: center; }
.lx-caps .pg-title { text-transform: uppercase; letter-spacing: .14em; font-size: 1.5em; line-height: 1.32; }
.lx-it .pg-title { font-style: italic; }
.lx .fb-num { letter-spacing: .3em; font-size: .62em; }
.lx .fb-ribbon { background: var(--paper); color: var(--ink); letter-spacing: .32em; font-weight: 500; font-size: .6em; padding: .85em 1.2em; }
.lx .cv-banner { font-weight: 500; letter-spacing: .06em; }
.lx-rule { display: block; width: 3.2em; height: 1px; background: var(--accent2); flex: 0 0 auto; }
.lx-c .lx-rule { margin: 0 auto; }
/* Description */
.lx .fb-p-ldesc { padding-top: 4.4em; gap: 1.4em; }
.lx-desc { font-size: .96em; line-height: 1.78; max-width: 27em; } .lx-c .lx-desc { margin: 0 auto; }
.lx .fb-p-ldesc .fb-desc p + p { margin-top: 1em; }
.lx-sig { margin-top: auto; border-top: 1px solid var(--rule, rgba(0,0,0,.12)); padding-top: 1em; display: flex; flex-direction: column; gap: .35em; flex: 0 0 auto; }
.lx-c .lx-sig { align-items: center; text-align: center; }
.lx-sig-price { font-family: var(--display); font-size: 1.75em; line-height: 1.1; }
.lx-sig-facts { display: flex; flex-wrap: wrap; gap: .2em 1.3em; font-size: .7em; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); } .lx-sig-facts b { color: var(--ink); font-weight: 600; }
.lx-c .lx-sig-facts { justify-content: center; }
/* Full-page photos, spreads and pairs */
.lx .fb-p-lphoto, .lx .fb-p-lspread, .lx .fb-p-lpair, .lx .fb-p-lroom { padding: 0; gap: 0; }
.lx-full, .lx-spread { position: absolute; inset: 0; }
.lx-full .fb-img, .lx-spread .fb-img, .lx-half .fb-img { position: absolute; inset: 0; }
.lx-full figcaption, .lx-spread figcaption, .lx-half figcaption { position: absolute; z-index: 2; left: 2.4em; right: 2.4em; bottom: 1.7em; color: #fff; font-size: .62em; letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.lx-half figcaption { bottom: 1.2em; left: 1.6em; }
.lx-spread .fb-img img { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; }
.lx-part-l .fb-img img { left: 0; } .lx-part-r .fb-img img { left: -100%; }
.lx-spread .fb-staged { left: auto; right: .6em; } .lx-part-r .fb-staged { display: none; } .is-rtl .lx-part-r .fb-staged { display: block; } .is-rtl .lx-part-l .fb-staged { display: none; }
.lx-pair { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr 1fr; gap: .35em; background: var(--paper); }
.lx-half { position: relative; min-height: 0; }
/* Matted photos (paper around each photo, captions underneath) */
.lx-mat .lx-full { inset: 2.2em 2.2em 3.8em; }
.lx-mat .lx-full figcaption { left: 0; right: 0; bottom: -2.3em; color: var(--muted); text-shadow: none; }
.lx-mat .lx-pair { inset: 2.2em 2.2em 2.4em; gap: 1.1em; }
/* Rooms */
.lx-room-main { flex: 0 0 56%; position: relative; } .lx-room-main .fb-img { position: absolute; inset: 0; } .lx-room-main figcaption { display: none; }
.fb-p-lroom:has(.lx-thumbs) .lx-room-main { flex-basis: 44%; }
.lx-room-text { padding: 2em 3em .9em; display: flex; flex-direction: column; gap: .7em; flex: 1 1 auto; min-height: 0; }
.lx-room-text .fb-desc { line-height: 1.7; }
.lx-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .45em; height: 7.6em; flex: 0 0 auto; padding: 0 3em 2.9em; box-sizing: content-box; }
.lx-thumbs .fb-fig { min-height: 0; } .lx-thumbs figcaption { display: none; }
.lx-mat .lx-room-main { margin: 2.2em 2.2em 0; }
/* Features */
.lx-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6em; flex: 0 0 auto; border-top: 1px solid var(--accent2); }
.lx-dl div { padding: .55em 0; border-bottom: 1px solid var(--rule, rgba(0,0,0,.12)); min-width: 0; }
.lx-dl dt { font-size: .6em; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); } .lx-dl dd { font-family: var(--display); font-size: 1.08em; line-height: 1.3; overflow-wrap: anywhere; }
.lx-hl { columns: 2; column-gap: 1.6em; font-size: .84em; flex: 0 0 auto; }
.lx-hl li { break-inside: avoid; padding: .28em 0 .28em 1.2em; position: relative; line-height: 1.4; }
.lx-hl li::before { content: ''; position: absolute; left: 0; top: .98em; width: .6em; height: 1px; background: var(--accent2); }
.is-rtl .lx-hl li { padding: .28em 1.2em .28em 0; } .is-rtl .lx-hl li::before { left: auto; right: 0; }
.lx-qr { margin-top: auto; }
/* Financial summary */
.lx-table { width: 100%; border-collapse: collapse; flex: 0 0 auto; }
.lx-table th, .lx-table td { padding: .7em 0; border-bottom: 1px solid var(--rule, rgba(0,0,0,.12)); text-align: start; vertical-align: top; }
.lx-table tr:first-child th, .lx-table tr:first-child td { border-top: 1px solid var(--accent2); }
.lx-table th { font-weight: 400; font-size: .64em; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); padding-top: 1.2em; }
.lx-table th small { display: block; text-transform: none; letter-spacing: 0; font-size: 1.15em; margin-top: .4em; line-height: 1.35; max-width: 26em; }
.lx-table td { font-family: var(--display); font-size: 1.3em; text-align: end; white-space: nowrap; padding-left: 1em; }
.lx-note { margin-top: 0; } .lx-buy { margin-top: auto; display: flex; flex-direction: column; gap: .5em; } .lx-buy .fb-link { font-size: .84em; padding: .6em .85em; }
/* Data and other pages in luxury designs */
.lx .fb-stats div { background: transparent; border-top: 1px solid var(--accent2); padding: .7em 0 .2em; border-radius: 0; }
.lx .fb-stats dd { font-weight: 400; }
.lx .fb-link { background: transparent; border: 1px solid var(--rule, rgba(0,0,0,.18)); font-weight: 500; letter-spacing: .02em; }
.lx .fb-hot { border-color: var(--accent2); }
/* Contact page: a large portrait, centered */
.lx .fb-p-contact { gap: 1em; }
.lx .fb-p-contact .pg-head { align-items: center; text-align: center; }
.lx .fb-p-contact .fb-agent { flex-direction: column; align-items: center; text-align: center; gap: .7em; }
.lx .fb-p-contact .fb-headshot { width: 9.5em; height: 11.5em; object-position: 50% 22%; }
.lx .fb-agent-name { font-weight: 400; font-size: 1.9em; }
.lx .fb-agent-contact { align-items: center; } .lx .fb-agent-contact span { min-width: 0; margin-inline-end: .5em; letter-spacing: .14em; text-transform: uppercase; font-size: .66em; }
.lx .fb-brk-line { justify-content: center; }
.lx .fb-brokerage, .lx .fb-oh, .lx .fb-co { text-align: center; } .lx .fb-qrrow { justify-content: center; }
/* Keyline (inset rule) on text pages; extra air on text pages */
.lx-key .fb-page:not(.fb-p-cover):not(.fb-p-lphoto):not(.fb-p-lspread):not(.fb-p-lpair):not(.fb-p-lroom)::before { content: ''; position: absolute; inset: 1.15em; border: 1px solid var(--accent2); pointer-events: none; }
.lx-air .fb-page:not(.fb-p-cover):not(.fb-p-lphoto):not(.fb-p-lspread):not(.fb-p-lpair):not(.fb-p-lroom) { padding-left: 3.6em; padding-right: 3.6em; }
.lx-dk .fb-contain { background: #fff; } .lx-dk .lx-pair { background: var(--paper); }

/* ---- Luxury covers ---- */
.cl-lxfull .cv-photo, .cl-lxtop .cv-photo, .cl-lxframe .cv-photo, .cl-lxmono .cv-photo, .cl-lxcard .cv-photo, .cl-lxmin .cv-photo { position: absolute; inset: 0; }
.cl-lxfull .cv-photo::after, .cl-lxtop .cv-photo::after, .cl-lxframe .cv-photo::after, .cl-lxmono .cv-photo::after, .cl-lxcard .cv-photo::after, .cl-lxmin .cv-photo::after { content: ''; position: absolute; inset: 0; }
.lx .fb-p-cover .cv-title { font-weight: 400; }
.lx .fb-p-cover .cv-price b { font-weight: 400; }
/* Full bleed, centered type at the foot */
.cl-lxfull .cv-photo::after { background: linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,0) 26%, rgba(0,0,0,0) 48%, rgba(0,0,0,.74)); }
.cl-lxfull .cv-text { margin-top: auto; padding: 2em 2.6em .9em; color: #fff; align-items: center; text-align: center; gap: .5em; }
.cl-lxfull .cv-kicker, .cl-lxtop .cv-kicker, .cl-lxframe .cv-kicker, .cl-lxmono .cv-kicker, .cl-lxcard .cv-kicker { color: #fff; opacity: .88; letter-spacing: .42em; font-weight: 400; font-size: .62em; }
.cl-lxfull .cv-title { font-size: 2.5em; }
.cl-lxfull .cv-title::after { content: ''; display: block; width: 1.4em; height: 1px; background: var(--accent2); margin: .4em auto 0; }
.cl-lxfull .cv-place, .cl-lxtop .cv-place, .cl-lxframe .cv-place, .cl-lxmono .cv-place { color: rgba(255,255,255,.88); letter-spacing: .22em; text-transform: uppercase; font-size: .68em; }
.cl-lxfull .cv-price, .cl-lxtop .cv-price, .cl-lxmono .cv-price { justify-content: center; }
.cl-lxfull .cv-price-l, .cl-lxtop .cv-price-l, .cl-lxframe .cv-price-l, .cl-lxmono .cv-price-l, .cl-lxmin .cv-price-l { color: rgba(255,255,255,.78); }
.cl-lxfull .cv-facts, .cl-lxtop .cv-facts, .cl-lxframe .cv-facts, .cl-lxmono .cv-facts, .cl-lxmin .cv-facts, .cl-lxband .cv-facts { display: none; }
.cl-lxfull .cv-agent, .cl-lxtop .cv-agent, .cl-lxmono .cv-agent { justify-content: center; padding: 0 2.6em 1.9em; color: rgba(255,255,255,.82); letter-spacing: .14em; text-transform: uppercase; font-size: .6em; }
.cl-lxborder .cv-deco1 { display: block; inset: 1.1em; border: 1px solid rgba(255,255,255,.6); z-index: 2; }
.cl-lxborder .fb-ribbon { top: 2em; left: 2em; } .cl-lxborder .cv-banner { top: 2em; right: 2em; }
/* Title set high */
.cl-lxtop .cv-photo::after { background: linear-gradient(180deg, rgba(0,0,0,.62), rgba(0,0,0,0) 46%, rgba(0,0,0,0) 76%, rgba(0,0,0,.5)); }
.cl-lxtop .cv-text { padding: 3em 2.6em 1em; color: #fff; align-items: center; text-align: center; gap: .55em; }
.cl-lxtop .cv-title { font-size: 2.3em; }
.cl-lxtop .cv-agent { margin-top: auto; }
.cl-lxtop .fb-ribbon { top: 1.5em; left: 50%; transform: translateX(-50%); } .cl-lxtop .cv-text { padding-top: 4.2em; } .cl-lxtop .cv-banner { top: auto; bottom: 7em; right: 50%; transform: translateX(50%); text-align: center; }
/* Inset keyline frame */
.cl-lxframe .cv-photo::after { background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,0) 40%, rgba(0,0,0,.7)); }
.cl-lxframe .cv-deco1 { display: block; inset: 1.3em; border: 1px solid rgba(255,255,255,.75); z-index: 2; }
.cl-lxframe .cv-text { margin-top: auto; padding: 2em 3em .9em; color: #fff; gap: .45em; }
.cl-lxframe .cv-title { font-size: 2.35em; }
.cl-lxframe .cv-agent { padding: 0 3em 2.7em; color: rgba(255,255,255,.85); letter-spacing: .1em; text-transform: uppercase; font-size: .6em; }
.cl-lxframe .fb-ribbon { top: 2.4em; left: 2.4em; } .cl-lxframe .cv-banner { top: 2.4em; right: 2.4em; }
.lx-c.cl-lxframe .cv-text { align-items: center; text-align: center; } .lx-c.cl-lxframe .cv-price { justify-content: center; } .lx-c.cl-lxframe .cv-agent { justify-content: center; }
/* Matted photo, type in the margin */
.cl-lxmat .fb-p-cover { padding: 1.8em 1.8em 1.4em; }
.cl-lxmat .cv-photo { flex: 1 1 auto; min-height: 0; }
.cl-lxmat .cv-text { padding: 1.3em .2em .5em; display: grid; grid-template-columns: 1fr auto; gap: .25em 1.2em; align-items: end; }
.cl-lxmat .cv-kicker { grid-column: 1 / -1; letter-spacing: .38em; font-weight: 500; font-size: .62em; }
.cl-lxmat .cv-title { grid-column: 1; font-size: 2em; }
.cl-lxmat .cv-place { grid-column: 1; letter-spacing: .1em; }
.cl-lxmat .cv-price { grid-column: 2; grid-row: 2 / span 2; flex-direction: column; align-items: flex-end; gap: 0; }
.cl-lxmat .cv-facts { grid-column: 1 / -1; letter-spacing: .16em; text-transform: uppercase; font-size: .66em; color: var(--muted); border-top: 1px solid var(--rule, rgba(0,0,0,.14)); padding-top: .75em; margin-top: .5em; }
.cl-lxmat .cv-agent { padding: 0 .2em; letter-spacing: .1em; text-transform: uppercase; font-size: .6em; }
.cl-lxmat .fb-ribbon { top: 2.6em; left: 2.6em; } .cl-lxmat .cv-banner { top: 2.6em; right: 2.6em; }
.lx-c.cl-lxmat .cv-text { display: flex; align-items: center; text-align: center; } .lx-c.cl-lxmat .cv-price { align-items: center; flex-direction: row; gap: .5em; } .lx-c.cl-lxmat .cv-facts { justify-content: center; align-self: stretch; } .lx-c.cl-lxmat .cv-agent { justify-content: center; }
/* Photo over a band of color */
.cl-lxband .cv-photo { flex: 0 0 64%; }
.cl-lxband .cv-text { flex: 1 1 auto; background: var(--accent); color: var(--on-accent); align-items: center; text-align: center; justify-content: center; padding: 1.4em 2.4em .5em; gap: .45em; }
.cl-lxband .cv-kicker { color: currentColor; opacity: .82; letter-spacing: .42em; font-weight: 400; font-size: .62em; }
.cl-lxband .cv-title { font-size: 2.2em; }
.cl-lxband .cv-place, .cl-lxband .cv-price-l { color: currentColor; opacity: .82; } .cl-lxband .cv-place { letter-spacing: .2em; text-transform: uppercase; font-size: .66em; }
.cl-lxband .cv-price { justify-content: center; }
.cl-lxband .cv-agent { background: var(--accent); color: var(--on-accent); justify-content: center; padding: 0 2em 1.5em; letter-spacing: .12em; text-transform: uppercase; font-size: .6em; } .cl-lxband .cv-agent span { opacity: .82; }
/* Side panel */
.cl-lxside .fb-p-cover { flex-direction: row; }
.cl-lxside .cv-photo { order: 2; flex: 1 1 auto; height: 100%; }
.cl-lxside .cv-text { order: 1; flex: 0 0 38%; background: var(--accent); color: var(--on-accent); padding: 3em 1.6em 6.2em; justify-content: flex-end; gap: .6em; }
.cl-lxside .cv-kicker { color: currentColor; opacity: .8; letter-spacing: .34em; font-weight: 400; font-size: .6em; }
.cl-lxside .cv-title { font-size: 1.85em; }
.cl-lxside .cv-place, .cl-lxside .cv-price-l { color: currentColor; opacity: .8; }
.cl-lxside .cv-price { flex-direction: column; align-items: flex-start; gap: 0; margin-top: .4em; }
.cl-lxside .cv-facts { flex-direction: column; gap: .3em; letter-spacing: .14em; text-transform: uppercase; font-size: .64em; border-top: 1px solid currentColor; padding-top: .8em; margin-top: .5em; opacity: .9; }
.cl-lxside .cv-agent { position: absolute; left: 1.6em; bottom: 1.6em; width: calc(38% - 3.2em); color: var(--on-accent); opacity: .85; letter-spacing: .08em; text-transform: uppercase; font-size: .58em; flex-wrap: wrap; }
.is-rtl.cl-lxside .cv-agent { left: auto; right: 1.6em; }
.cl-lxside .fb-ribbon { left: auto; right: 1.3em; } .is-rtl.cl-lxside .fb-ribbon { right: auto; left: 1.3em; }
.cl-lxside .cv-banner { top: auto; bottom: 1.3em; }
/* Address set huge, in outline */
.cl-lxmono .cv-photo::after { background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.3) 50%, rgba(0,0,0,.6)); }
.cl-lxmono .cv-text { flex: 1 1 auto; justify-content: center; align-items: center; text-align: center; color: #fff; padding: 2.4em 1.8em 1em; gap: .6em; }
.cl-lxmono .cv-title { font-size: 3.9em; line-height: .98; color: rgba(255,255,255,.06); -webkit-text-stroke: .025em #fff; text-transform: uppercase; letter-spacing: .02em; }
.cl-lxmono .cv-agent { padding-top: 0; }
/* Floating card */
.cl-lxcard .cv-photo::after { background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.5)); }
.cl-lxcard .cv-text { margin: auto 3em; background: var(--paper); color: var(--ink); padding: 2.2em 1.8em 1.8em; align-items: center; text-align: center; gap: .5em; outline: 1px solid var(--accent2); outline-offset: -.65em; box-shadow: 0 1em 3em rgba(0,0,0,.28); }
.cl-lxcard .cv-kicker { color: var(--accent2); opacity: 1; }
.cl-lxcard .cv-title { font-size: 2.05em; }
.cl-lxcard .cv-place { letter-spacing: .16em; text-transform: uppercase; font-size: .66em; }
.cl-lxcard .cv-price, .cl-lxcard .cv-facts { justify-content: center; } .cl-lxcard .cv-facts { letter-spacing: .14em; text-transform: uppercase; font-size: .64em; color: var(--muted); }
.cl-lxcard .cv-agent { position: absolute; left: 0; right: 0; bottom: 1.7em; justify-content: center; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); letter-spacing: .12em; text-transform: uppercase; font-size: .6em; }
/* Minimal: the photo, and one quiet line of type */
.cl-lxmin .cv-photo::after { background: linear-gradient(180deg, rgba(0,0,0,0) 64%, rgba(0,0,0,.58)); }
.cl-lxmin .cv-text { margin-top: auto; padding: 0 2.2em .2em; color: #fff; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .15em 1em; }
.cl-lxmin .cv-kicker { display: none; }
.cl-lxmin .cv-title { grid-column: 1; font-size: 1.3em; letter-spacing: .14em; text-transform: uppercase; line-height: 1.25; }
.cl-lxmin .cv-place { grid-column: 1; color: rgba(255,255,255,.82); font-size: .66em; letter-spacing: .2em; text-transform: uppercase; }
.cl-lxmin .cv-price { grid-column: 2; grid-row: 1 / span 2; } .cl-lxmin .cv-price-l { display: none; } .cl-lxmin .cv-price b { font-size: 1.25em; letter-spacing: .05em; }
.cl-lxmin .cv-agent { margin: .7em 2.2em 0; padding: .7em 0 1.5em; border-top: 1px solid rgba(255,255,255,.4); color: rgba(255,255,255,.8); font-size: .58em; letter-spacing: .16em; text-transform: uppercase; }
/* Dark page with a framed photo */
.cl-lxdark .fb-p-cover { padding: 2.4em 2.4em 1.6em; }
.cl-lxdark .cv-photo { flex: 0 0 57%; outline: 1px solid var(--accent2); outline-offset: .55em; margin: .55em; }
.cl-lxdark .cv-text { flex: 1 1 auto; justify-content: center; align-items: center; text-align: center; padding-top: 1.1em; gap: .45em; }
.cl-lxdark .cv-title { font-size: 2.25em; }
.cl-lxdark .cv-kicker { letter-spacing: .42em; font-weight: 400; font-size: .62em; }
.cl-lxdark .cv-place { letter-spacing: .18em; text-transform: uppercase; font-size: .66em; }
.cl-lxdark .cv-price { justify-content: center; } .cl-lxdark .cv-price b { color: var(--accent2); }
.cl-lxdark .cv-facts { justify-content: center; text-transform: uppercase; letter-spacing: .14em; font-size: .64em; color: var(--muted); }
.cl-lxdark .cv-agent { justify-content: center; letter-spacing: .12em; text-transform: uppercase; font-size: .58em; }
.cl-lxdark .fb-ribbon { top: 2.4em; left: 2.4em; } .cl-lxdark .cv-banner { top: 2.4em; right: 2.4em; }
.is-rtl.cl-lxdark .fb-ribbon, .is-rtl.cl-lxframe .fb-ribbon, .is-rtl.cl-lxmat .fb-ribbon { left: auto; right: 2.4em; }

/* Per-design luxury touches */
.d-penthouse .cv-title { letter-spacing: .08em; text-transform: uppercase; font-size: 2.15em; }
.d-obsidian .pg-title, .d-midnight .pg-title { color: var(--ink); } .d-obsidian .lx-sig-price, .d-midnight .lx-sig-price, .d-obsidian .lx-dl dd, .d-midnight .lx-dl dd { color: var(--accent2); }
.d-alabaster .pg-title { font-weight: 300; }
.d-manhattan .cv-title { text-transform: uppercase; letter-spacing: .06em; font-size: 2.1em; }
.d-malibu .cv-title, .d-malibu .pg-title { letter-spacing: .04em; }
.d-tuscany .cv-title { font-style: italic; font-size: 2.5em; } .d-palm-beach .cv-title { font-style: italic; }
.d-gilded .cv-title { -webkit-text-stroke: .035em #E9CF86; color: rgba(233,207,134,.1); } .d-gilded .cv-kicker { color: #E3C77A; opacity: 1; }
.d-atelier .cv-title, .d-atelier .pg-title { letter-spacing: .18em; }
.d-heirloom .cv-title { font-style: italic; font-size: 2.6em; }
.d-tower .cv-title { text-transform: uppercase; letter-spacing: .14em; font-size: 1.7em; font-weight: 600; } .d-tower .pg-title { font-weight: 300; }
.d-grand-estate .cv-title { letter-spacing: .06em; }
.d-villa .cv-title { font-weight: 300; font-style: italic; }

/* Page-turn hints: arrows at the left and right edges of the open pages, on mouse hover (desktop only) */
.fbv-edge { position: absolute; z-index: 40; width: 48px; height: 48px; margin-top: -24px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(255,255,255,.94); color: #1E2228; box-shadow: 0 4px 16px rgba(0,0,0,.25); pointer-events: none; opacity: 0; transform: scale(.85); transition: opacity .18s ease, transform .18s ease; }
.fbv-edge.is-on { opacity: 1; transform: scale(1); }
.fb-book.is-edge { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .fbv-edge { transition: none; } }
@media print { .fbv-edge { display: none; } }
/* Rooms without photos, listed together on one page */
.fb-roomlist { display: flex; flex-direction: column; gap: 1.1em; flex: 0 1 auto; min-height: 0; overflow: hidden; }
.fb-roomlist li { border-top: 1px solid var(--rule, rgba(0,0,0,.14)); padding-top: .9em; display: flex; flex-direction: column; gap: .3em; }
.fb-roomlist h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.35em; line-height: 1.15; }
.fb-roomlist p { margin: 0; font-size: .92em; line-height: 1.55; }
.lx .fb-roomlist h3 { font-weight: 400; font-size: 1.5em; } .lx .fb-roomlist li { border-top-color: var(--accent2); }
.lk-center .fb-roomlist li { align-items: center; text-align: center; }

/* Room pages take turns between layouts (fb-rv-0, 1, 2, 3) */
/* Classic: photos in the middle (0), photos on top (1), text on top and photos at the foot (2) */
.fb-p-room.fb-rv-1 .fb-room-gal { order: -1; }
.fb-p-room.fb-rv-1 { padding-top: 1.4em; }
.fb-p-room.fb-rv-2 .fb-room-gal { order: 3; }
.fb-p-room.fb-rv-2 .fb-desc { flex: 0 1 auto; }
/* Luxury: photo on top (0), full-page photo with the text on a card (1), text on top (2), photo framed in the middle (3) */
.lx .fb-p-lroom.fb-rv-1 .lx-room-main { position: absolute; inset: 0; margin: 0; }
.lx .fb-p-lroom.fb-rv-1 .lx-room-text { position: absolute; z-index: 2; left: 2.2em; right: 2.2em; bottom: 2.2em; max-height: 52%; background: var(--paper); padding: 1.6em 1.8em 1.4em; box-shadow: 0 .6em 2em rgba(0,0,0,.18); }
.lx .fb-p-lroom.fb-rv-1 .lx-thumbs { position: absolute; z-index: 2; top: 2.2em; right: 2.2em; height: 6.2em; width: 46%; padding: 0; box-sizing: border-box; }
.lx .fb-p-lroom.fb-rv-1 .lx-thumbs .fb-img { box-shadow: 0 .3em 1em rgba(0,0,0,.25); }
.lx .fb-p-lroom.fb-rv-2 .lx-room-text { order: -1; flex: 0 1 auto; padding-top: 3.2em; padding-bottom: 1.4em; }
.lx .fb-p-lroom.fb-rv-2 .lx-room-main { flex: 1 1 0; min-height: 40%; }
.lx .fb-p-lroom.fb-rv-2 .lx-thumbs { padding-top: .45em; }
.lx .fb-p-lroom.fb-rv-3 { padding: 0; }
.lx .fb-p-lroom.fb-rv-3 .lx-room-text { display: contents; }
.lx .fb-p-lroom.fb-rv-3 .pg-head { order: 1; padding: 3em 3em 1.2em; }
.lx .fb-p-lroom.fb-rv-3 .lx-room-main { order: 2; flex: 1 1 0; min-height: 34%; margin: 0 3em; outline: 1px solid var(--accent2); outline-offset: .5em; }
.lx .fb-p-lroom.fb-rv-3 .fb-desc { order: 3; padding: 1.5em 3em 0; flex: 0 1 auto; min-height: 0; }
.lx .fb-p-lroom.fb-rv-3 .lx-thumbs { order: 4; padding: 1em 3em 2.9em; }
.lx .fb-p-lroom.fb-rv-3:not(:has(.lx-thumbs)) .fb-desc { padding-bottom: 3em; }
.lx-c .fb-p-lroom .lx-room-text, .lx-c .fb-p-lroom .fb-desc { text-align: center; }   /* centred designs: the room text lines up under the centred heading in every layout */
.fb-p-lroom.fb-rv-1 .fb-num { display: none; }
/* A spread that is a room's page: the room's name and notes sit on a card on the second page */
.lx-spread-card { position: absolute; z-index: 2; left: 2.2em; right: 2.2em; bottom: 2.2em; max-height: 52%; overflow: hidden; background: var(--paper); color: var(--ink); padding: 1.6em 1.8em 1.4em; box-shadow: 0 .6em 2em rgba(0,0,0,.18); display: flex; flex-direction: column; gap: .7em; text-align: start; }
.lx-spread-card .fb-desc { line-height: 1.7; min-height: 0; overflow: hidden; }
.lx-c .lx-spread-card { text-align: center; }
.fb-plan-tour { margin-top: 6px; }
