/*
==============================================================================
 DRAFT STANDARD — PROPERTY / COMPARE BROCHURE CSS
 File: src/main/resources/static/css/property-brochure.css
 Revision Date: 2026-04-30

 PURPOSE
 - Shared print/document CSS for brochure-style pages.
 - Supports property-brochure.html.
 - Supports compare-brochure.html.
 - Keeps brochure print styling separate from layout.html and search.css.
 - Adds low-key brochure footer/disclosure styling for required attribution.

 IMPORTANT
 - Do not load this globally in layout.html.
 - Brochure pages are standalone printable documents.
 - Website pages use layout.html + global CSS.
 - Brochure pages use this dedicated print/document stylesheet.
 - Keep this filename unchanged to avoid unnecessary rename risk.

 LANDSCAPE PRINT NOTE
 - @page requests landscape.
 - Some browsers still default to portrait until user chooses Landscape.
 - The compare brochure gives the user clear instructions for that.
==============================================================================
*/

@page {
    size: letter landscape;
    margin: 0.35in;
}

@font-face {
    font-family: "BoogyBrochureBody";
    src: url("/fonts/boogy/boogy-brut-test-book.otf") format("opentype");
}

@font-face {
    font-family: "BoogyBrochureHeading";
    src: url("/fonts/boogy/boogy-brut-test-medium-italic.otf") format("opentype");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: rgba(121, 156, 175, 0.42);
}

body {
    margin: 0;
    background: rgba(121, 156, 175, 0.42);
    color: #000000;
    font-family: "BoogyBrochureBody", Georgia, serif;
    font-size: 16px;
}

.brochure-book {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1rem;
}

.brochure-page {
    min-height: 7.4in;
    padding: 0.42in;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.28);
    border-top: 2px solid #000000;
    page-break-after: always;
    overflow: hidden;
}

.brochure-page-wide {
    overflow: visible;
}

.brochure-page-final {
    display: flex;
    flex-direction: column;
}

.brochure-topline {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
    gap: 1rem;
    border-bottom: 1px solid #000000;
    padding-bottom: 0.18in;
    margin-bottom: 0.24in;
}

.brochure-contact {
    font-size: 0.9rem;
    line-height: 1.45;
}

.brochure-crest {
    width: 90px;
    max-width: 90px;
    height: auto;
}

.brochure-presented {
    text-align: right;
    font-size: 0.9rem;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.brochure-cover-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.2fr;
    gap: 0.32in;
    align-items: stretch;
}

.brochure-title-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 5.3in;
}

.brochure-title,
.brochure-section-title,
.brochure-price {
    font-family: "BoogyBrochureHeading", Georgia, serif;
}

.brochure-title {
    font-size: clamp(2.2rem, 4.2vw, 4.1rem);
    line-height: 0.98;
    margin: 0;
}

.brochure-price {
    font-size: 2.1rem;
    margin: 0.25in 0 0;
}

.brochure-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
    margin-top: 0.3in;
}

.brochure-facts span {
    padding: 0.14in;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    font-size: 0.95rem;
}

.brochure-hero-image {
    width: 100%;
    height: 5.3in;
    object-fit: cover;
    display: block;
}

.brochure-section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
    margin: 0 0 0.2in;
}

.brochure-copy {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 10in;
    margin-bottom: 0.28in;
}

.brochure-detail-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
}

.brochure-detail-item {
    min-height: 0.7in;
    padding: 0.1in;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    background: rgba(255, 255, 255, 0.2);
}

.brochure-detail-item strong {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.05in;
}

.brochure-detail-item span {
    display: block;
    font-size: 0.88rem;
    line-height: 1.2;
}

.brochure-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.14in;
}

.brochure-photo-grid img {
    width: 100%;
    height: 2.05in;
    object-fit: cover;
    display: block;
}

.brochure-photo-feature {
    width: 100%;
    height: 5.05in;
    object-fit: cover;
    display: block;
}

.brochure-closing-note {
    margin-top: 0.18in;
    margin-bottom: 0.12in;
    font-size: 0.9rem;
    line-height: 1.35;
}

.brochure-attribution {
    font-size: 0.62rem;
    line-height: 1.35;
    margin-top: 0.18in;
    opacity: 0.78;
}

/*
==============================================================================
 PROPERTY BROCHURE — LOW-KEY FOOTER / ATTRIBUTION / DISCLOSURE
==============================================================================
*/

.brochure-footer-block {
    margin-top: auto;
    padding-top: 0.1in;
    border-top: 1px solid rgba(0, 0, 0, 0.34);
    font-size: 0.54rem;
    line-height: 1.25;
    opacity: 0.72;
}

.brochure-footer-block p {
    margin: 0 0 0.045in;
}

.brochure-footer-contact,
.brochure-footer-attribution,
.brochure-footer-mls {
    color: rgba(0, 0, 0, 0.78);
}

.brochure-footer-contact {
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.brochure-footer-attribution {
    font-weight: 700;
}

.brochure-footer-mls {
    max-width: 10.5in;
}

/*
==============================================================================
 COMPARE BROCHURE — HELP PANEL / BUTTONS / NOTE BOX
==============================================================================
*/

.brochure-help-panel {
    padding: 0.12in 0 0;
}

.brochure-action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.12in;
    margin-top: 0.22in;
}

.brochure-action-button,
.brochure-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0.44in;
    padding: 0.1in 0.18in;
    border: 1px solid #000000;
    background: rgba(255, 255, 255, 0.42);
    color: #000000;
    font-family: "BoogyBrochureBody", Georgia, serif;
    font-size: 0.92rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.brochure-action-button:hover,
.brochure-action-link:hover {
    background: rgba(255, 255, 255, 0.72);
}

.brochure-save-guidance {
    display: none;
    margin-top: 0.22in;
    padding: 0.14in;
    border: 1px solid #000000;
    background: rgba(255, 255, 255, 0.25);
}

.brochure-save-guidance.is-visible {
    display: grid;
    gap: 0.08in;
}

.brochure-save-guidance strong,
.brochure-save-guidance span {
    display: block;
    font-size: 0.92rem;
    line-height: 1.45;
}

.brochure-compare-note-box {
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
    margin-top: 0.3in;
    background: rgba(255, 255, 255, 0.18);
}

.brochure-compare-note-box strong,
.brochure-compare-note-box span {
    display: block;
    padding: 0.14in;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
}

.brochure-compare-note-box strong {
    font-family: "BoogyBrochureHeading", Georgia, serif;
    font-size: 1.05rem;
}

.brochure-compare-note-box span {
    font-size: 0.92rem;
    line-height: 1.45;
}

/*
==============================================================================
 COMPARE BROCHURE — COMPARISON TABLE
==============================================================================
*/

.brochure-compare-table {
    width: 100%;
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
}

.brochure-compare-row {
    display: grid;
    grid-template-columns: minmax(1.15in, 1.35in) repeat(var(--compare-columns, 3), minmax(0, 1fr));
}

.brochure-compare-cell {
    min-height: 0.42in;
    padding: 0.07in;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.72rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.brochure-compare-label-cell {
    font-weight: 800;
    background: rgba(255, 255, 255, 0.32);
}

.brochure-compare-header-row .brochure-compare-cell {
    font-weight: 900;
    background: rgba(255, 255, 255, 0.38);
}

.brochure-compare-empty-cell {
    opacity: 0.62;
}

.brochure-compare-section-heading {
    grid-column: 1 / -1;
    padding: 0.08in;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    background: #000000;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/*
==============================================================================
 PRINT RULES
==============================================================================
*/

@media print {
    html,
    body {
        width: 11in;
        min-height: 8.5in;
        background: rgba(121, 156, 175, 0.42) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .brochure-book {
        max-width: none;
        width: 100%;
        padding: 0;
    }

    .brochure-page {
        width: 10.3in;
        min-height: 7.7in;
        margin: 0;
        border-top: 2px solid #000000;
        page-break-after: always;
        break-after: page;
        overflow: hidden;
    }

    .brochure-page-wide {
        overflow: hidden;
    }

    .brochure-photo-feature {
        height: 4.95in;
    }

    .brochure-footer-block {
        font-size: 0.5rem;
        line-height: 1.18;
    }

    .brochure-compare-row {
        grid-template-columns: 1.2in repeat(var(--compare-columns, 3), minmax(0, 1fr));
    }

    .brochure-compare-cell {
        font-size: 0.66rem;
        line-height: 1.12;
        padding: 0.055in;
    }

    .no-print {
        display: none !important;
    }
}