/* Professional PDF Print Styles - ULTRA CLEAN VERSION */

@media print {
    /* Hide ALL images, icons, and videos except the logo in print header */
    img:not(.print-header img), 
    svg, 
    picture, 
    video, 
    canvas,
    [class*="hero-image"],
    [class*="t-img"] {
        display: none !important;
        height: 0 !important;
        width: 0 !important;
        visibility: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Hide ALL background images */
    * {
        background-image: none !important;
    }

    /* Hide ALL forms and related sections */
    #section-form,
    #booking-form,
    form,
    [id*="form"],
    [class*="form"],
    .t-form,
    [class*="submit"],
    section:has(form),
    section:has(input),
    .t-records > div[id^="rec"]:has(a[href*="form"]) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    /* Hide web-only elements */
    .no-print, 
    nav, 
    aside,
    header:not(.print-header), 
    footer:not(.print-footer),
    .t-menu__container,
    .t-footer,
    iframe,
    button,
    .t-btn,
    #quick-links,
    [id*="modal"],
    [class*="modal"] {
        display: none !important;
    }

    /* Text optimizations */
    body {
        font-family: 'Manrope', sans-serif !important;
        color: #333 !important;
        background: #fff !important;
        font-size: 11pt !important;
        line-height: 1.5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Show print-only elements */
    .print-only {
        display: block !important;
    }

    /* Typography */
    h1, h2, h3 {
        color: #f7941d !important; /* Туроператора Orange */
        page-break-after: avoid;
        break-after: avoid;
    }

    p, li {
        orphans: 3;
        widows: 3;
    }

    /* Content grouping and page breaks */
    section,
    .memo-section, 
    .check-list, 
    .info-card,
    tr, 
    ul,
    ol {
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 20px !important;
    }

    /* Professional Header/Footer (if present) */
    .print-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid #f7941d;
        padding-bottom: 10px;
        margin-bottom: 30px;
    }

    .print-header img {
        height: 40pt !important;
        width: auto !important;
        max-width: 120pt !important;
    }

    .print-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        font-size: 9pt;
        color: #888;
        display: flex !important;
        justify-content: space-between;
        padding-top: 6pt;
        border-top: 1px solid #e5e5e5;
        background: #fff;
    }


    a {
        text-decoration: none !important;
        color: inherit !important;
    }
}

/* Fallback for non-print view */
.print-only {
    display: none !important;
}

