/* ─────────────────────────────────────────────────────────────────
   print.css — Print stylesheet.
   Strips the chrome, links/URLs, and dark backgrounds when a page
   is printed or saved as PDF. Loaded with media="print".
   ───────────────────────────────────────────────────────────────── */

@media print {
    /* Use ink-friendly basics */
    body {
        background: #fff !important;
        color: #000 !important;
        font-family: Georgia, serif;
        font-size: 11pt;
        line-height: 1.4;
    }

    /* Hide navigation, CTAs, and other non-content chrome */
    .util-bar,
    .site-header,
    .nav-toggle,
    .skip-link,
    .footer-social,
    .header-cta .btn,
    .placeholder,
    .pl-cta,
    .pl-siblings,
    .pl-listings,
    .ch-jump,
    .jump-nav,
    .sellers-cta,
    .gallery-thumb .cap,
    .lightbox,
    button {
        display: none !important;
    }

    /* Footer: keep license and disclaimer, lose the rest */
    .site-footer {
        background: #fff !important;
        color: #000 !important;
        margin-top: 32px !important;
        border-top: 1px solid #ccc;
    }
    .site-footer .container {
        padding-top: 16px !important;
        padding-bottom: 8px !important;
    }
    .site-footer .footer-grid,
    .site-footer .footer-brand p,
    .site-footer h4,
    .site-footer .footer-col {
        display: none !important;
    }
    .footer-legal,
    .footer-legal .legal-copyright,
    .footer-legal .mls-disclaimer {
        color: #000 !important;
        border-top: 0 !important;
    }

    /* Show the URL after links so printed pages remain navigable */
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #555;
    }
    a[href^="#"]:after,
    a[href^="javascript:"]:after,
    a[href^="mailto:"]:after,
    a[href^="tel:"]:after {
        content: "";
    }

    /* Avoid splitting headings and lists across pages */
    h1, h2, h3, h4 { page-break-after: avoid; }
    ul, ol, blockquote { page-break-inside: avoid; }
    img { page-break-inside: avoid; max-width: 100% !important; }

    /* Containers expand fully */
    .container { max-width: 100% !important; padding: 0 !important; }

    /* Hero photos: keep them but constrain height so they don't take a whole page */
    .pl-hero,
    .home .hero {
        background: #fff !important;
        color: #000 !important;
        min-height: 0 !important;
        padding: 8pt 0 !important;
    }
    .pl-hero h1,
    .home .hero h1 { color: #000 !important; }
    .pl-hero .tagline,
    .home .hero p.lead { color: #333 !important; }
}
