/**
 * Golden Nest — Print / PDF Stylesheet
 * Formats single property page for A4 print / browser PDF export
 * Developed by BBS Tech Solutions — https://www.bbstechsolutions.com/
 */

@media print {

    /* ── PAGE SETUP ── */
    @page {
        size: A4 portrait;
        margin: 15mm 15mm 20mm 15mm;
    }

    /* ── RESET SCREEN ELEMENTS ── */
    *,
    *::before,
    *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    /* ── HIDE WEB-ONLY ELEMENTS ── */
    .site-header,
    .site-footer,
    .mobile-cta-bar,
    .mobile-drawer,
    .hamburger,
    .breadcrumb,
    .hero-search,
    .section-cta-band,
    .section-testimonials,
    .section-services,
    .hero,
    .prop-card-cta,
    .prop-sidebar .book-form,
    .prop-sidebar .sidebar-card:not(.prop-specs-card),
    .gallery-view-all,
    .gallery-thumbs,
    .prop-social-share,
    .prop-print-btn,
    #testi-track,
    nav,
    button:not(.print-only),
    .btn:not(.print-only),
    a.btn,
    iframe,
    script,
    .gnest-calculator,
    .hero-stats,
    footer { display: none !important; }

    /* ── BODY & CONTAINER ── */
    body {
        font-family: 'Georgia', serif;
        font-size: 10pt;
        line-height: 1.6;
        color: #1a1a1a;
        background: #fff;
        margin: 0;
        padding: 0;
    }

    .container,
    .prop-detail-layout,
    .site-main {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }

    /* ── PRINT HEADER / LETTERHEAD ── */
    body::before {
        content: 'Golden Nest Real Estate Consultants';
        display: block;
        font-family: Georgia, serif;
        font-size: 18pt;
        font-weight: 700;
        color: #b49a6e;
        padding-bottom: 6pt;
        border-bottom: 2pt solid #b49a6e;
        margin-bottom: 14pt;
    }
    body::after {
        content: 'Golden Nest Realtors · +91-9742113550 · gnestads@gmail.com · www.gnest.in';
        display: block;
        position: fixed;
        bottom: 8mm;
        left: 15mm;
        right: 15mm;
        font-size: 8pt;
        color: #888;
        border-top: 1pt solid #ddd;
        padding-top: 4pt;
        text-align: center;
    }

    /* ── PROPERTY GALLERY (print only the main image) ── */
    .single-prop-gallery {
        display: block !important;
        margin-bottom: 12pt;
        page-break-inside: avoid;
    }
    .gallery-main {
        width: 100%;
        max-height: 200pt;
        overflow: hidden;
        display: block !important;
    }
    .gallery-main img {
        width: 100%;
        max-height: 200pt;
        object-fit: cover;
        display: block;
    }
    .gallery-thumbs { display: none !important; }

    /* ── PROPERTY TITLE & PRICE ── */
    .prop-detail-title {
        font-family: Georgia, serif;
        font-size: 20pt;
        color: #1a1a1a;
        margin: 10pt 0 4pt;
        page-break-after: avoid;
    }
    .prop-detail-badges {
        display: flex;
        gap: 6pt;
        margin-bottom: 6pt;
    }
    .prop-status-badge,
    .verified-badge {
        font-size: 7pt;
        padding: 2pt 6pt;
        border: 1pt solid #b49a6e;
        border-radius: 2pt;
    }
    .prop-price {
        font-size: 18pt;
        color: #1a1a1a;
        font-weight: 700;
    }
    .prop-detail-address {
        font-size: 10pt;
        color: #555;
        margin-bottom: 10pt;
    }

    /* ── KEY SPECS ── */
    .prop-key-specs {
        display: flex;
        flex-wrap: wrap;
        gap: 12pt;
        border: 1pt solid #ddd;
        padding: 8pt 10pt;
        border-radius: 3pt;
        margin-bottom: 12pt;
        page-break-inside: avoid;
        background: #faf9f7;
    }
    .key-spec { display: flex; flex-direction: column; gap: 2pt; }
    .key-spec-val { font-weight: 700; font-size: 11pt; }
    .key-spec-lbl { font-size: 7pt; text-transform: uppercase; letter-spacing: 0.08em; color: #888; }

    /* ── DESCRIPTION ── */
    .prop-detail-content h2.prop-section-title {
        font-size: 11pt;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.12em;
        color: #b49a6e;
        border-bottom: 1pt solid #e5e0d6;
        padding-bottom: 3pt;
        margin: 10pt 0 6pt;
        page-break-after: avoid;
    }
    .prop-description p,
    .entry-content p { font-size: 10pt; line-height: 1.7; color: #333; }

    /* ── FEATURES ── */
    .features-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4pt 8pt;
    }
    .feature-item {
        font-size: 9pt;
        display: flex;
        align-items: center;
        gap: 4pt;
    }
    .feature-item svg { display: none; }
    .feature-item::before { content: '✓'; color: #b49a6e; font-weight: 700; }

    /* ── CONSULTANT NOTE ── */
    .consultant-note {
        border-left: 3pt solid #b49a6e;
        padding: 8pt 10pt;
        background: #faf5ec;
        margin: 10pt 0;
        page-break-inside: avoid;
    }
    .consultant-note p {
        font-style: italic;
        font-size: 10pt;
        color: #333;
    }

    /* ── SIDEBAR — print as bottom block ── */
    .prop-detail-layout {
        display: block !important;
    }
    .prop-detail-content { width: 100%; }
    .prop-sidebar {
        display: block !important;
        position: static !important;
        width: 100%;
        margin-top: 14pt;
        page-break-before: avoid;
    }
    .sidebar-card {
        border: 1pt solid #ddd;
        padding: 8pt;
        border-radius: 3pt;
        margin-bottom: 8pt;
    }
    .sidebar-card-title { font-size: 11pt; font-weight: 700; margin-bottom: 6pt; }
    .rera-num { font-family: 'Courier New', monospace; font-size: 10pt; }

    /* ── PAGE BREAKS ── */
    .prop-description { page-break-inside: avoid; }
    .prop-features     { page-break-inside: avoid; }
    .prop-key-specs    { page-break-inside: avoid; }

    /* ── LINKS: show as text ── */
    a { color: #1a1a1a; text-decoration: none; }
    a[href]::after { content: none; }

    /* ── HIDE IMAGES IN BODY EXCEPT GALLERY ── */
    img:not(.gallery-main img):not(.prop-key-specs img) {
        max-width: 100%;
        page-break-inside: avoid;
    }
}
