/* ============================================================
   Reel-Scout — Location Detail PRINT stylesheet
   Loaded via <link media="print"> in locs_detail.aspx.
   The whole file is also wrapped in @media print so it stays
   inert if the link is ever included without a media attribute.
   ============================================================ */

@media print {

    @page {
        margin: 14mm;
    }

    html,
    body {
        background: #fff !important;
        /* Print the bar charts / pills that rely on background colors. */
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ---- Hide interactive / non-content chrome ------------------- */
    .rs-skip-link,
    #live-announcer,
    .rs-top-actions,
    .rs-share-wrapper,
    .rs-share-dropdown,
    .rs-show-all-btn,
    .rs-show-more-btn,
    #divRequestMoreInfo,
    .rs-carousel-nav,
    .rs-histweather-toggle,
    .rs-sunexp-link,
    .rs-moodboard-overlay,
    .rs-moodboard-expanded,
    .rs-modal-overlay,
    .rs-similar-locations-section,
    branded-header,
    branded-footer {
        display: none !important;
    }

    /* ---- Layout: single column, nothing sticky ------------------ */
    .rs-container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .rs-content-wrapper {
        display: block !important;
    }

    .rs-main-content {
        padding: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .rs-sidebar {
        display: block !important;
        margin-top: 16px;
    }

    .rs-sticky-sidebar {
        position: static !important;
        top: auto !important;
    }

    .rs-sidebar-card {
        box-shadow: none !important;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
        margin-bottom: 12px;
    }

    /* ---- Un-clamp text blocks (JS sets inline max-height) -------- */
    .rs-description-text,
    .rs-description-ar-text,
    .rs-site-condition-text,
    .rs-general-notes-text,
    .rs-usage-restriction-text {
        max-height: none !important;
        overflow: visible !important;
    }

    /* ---- Photo grid: print without clipping --------------------- */
    .rs-photo-grid {
        height: auto !important;
        overflow: visible !important;
        box-shadow: none !important;
        break-inside: avoid;
    }

    .rs-photo-grid-left,
    .rs-photo-grid-right,
    .rs-photo-grid-item {
        overflow: visible !important;
        min-height: 0;
    }

    .rs-photo-grid-left img,
    .rs-photo-grid-right .rs-photo-grid-item img {
        height: auto !important;
        max-height: 340px;
    }

    /* ---- Map: hide the "Location" heading and the map, keep address */
    .rs-map-section .rs-contact-title,
    .rs-map-container {
        display: none !important;
    }

    /* ---- Keep logical blocks together --------------------------- */
    .rs-title-toolbar,
    .rs-details-section,
    .rs-location-contacts-section,
    .rs-contact-card,
    .rs-histweather,
    .rs-sunexp {
        break-inside: avoid;
    }

    /* ---- Print-friendly link styling ---------------------------- */
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
}
