/* Print Stylesheet for Ballow & Lynde */

@media print {
  /* Hide navigation, footer, and interactive elements */
  nav,
  header nav,
  footer,
  .mobile-cta,
  .mobile-cta-bar,
  [data-cookie-consent],
  .cookie-consent,
  #cookie-consent,
  .booking-widget,
  [class*="booking"],
  .search-overlay,
  .search-modal,
  [aria-label="Search"],
  button[aria-label="Close"],
  .modal,
  .popup,
  .show-more-button,
  [class*="show-more"],
  [class*="read-more"],
  .expand-button,
  .collapse-button,
  aside,
  .sidebar,
  .cta-bar,
  .contact-bar {
    display: none !important;
  }

  /* General print styles */
  * {
    background: white !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    color: black;
    background: white;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
    font-size: 12pt;
    margin: 0;
    padding: 0;
  }

  /* Body text */
  p, li, td, span, div {
    color: black !important;
    background: transparent !important;
  }

  /* Headings with serif fonts for better readability */
  h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, "Times New Roman", serif;
    color: black;
    page-break-after: avoid;
    page-break-inside: avoid;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
  }

  h1 {
    font-size: 24pt;
    margin-top: 1em;
  }

  h2 {
    font-size: 18pt;
  }

  h3 {
    font-size: 14pt;
  }

  /* Links - show URLs */
  a {
    color: black;
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    word-break: break-word;
  }

  /* Prevent page breaks */
  p {
    page-break-inside: avoid;
    orphans: 3;
    widows: 3;
  }

  li, dd {
    page-break-inside: avoid;
    orphans: 3;
    widows: 3;
  }

  ul, ol, dl {
    page-break-inside: avoid;
  }

  blockquote {
    page-break-inside: avoid;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  /* Margins and spacing */
  body {
    margin: 2cm;
    padding: 0;
  }

  /* Full width content */
  .container,
  .wrapper,
  main,
  article,
  section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0.5em !important;
  }

  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
    page-break-inside: avoid;
  }

  table, th, td {
    border: 1px solid #000;
  }

  th, td {
    padding: 0.5em;
    text-align: left;
  }

  /* Remove colors from buttons and links */
  button, input[type="button"], input[type="submit"] {
    display: none !important;
  }

  /* Hide form elements */
  form, input, textarea, select {
    display: none !important;
  }

  /* Page breaks */
  .page-break {
    page-break-before: always;
  }

  /* Remove excessive whitespace */
  hr {
    border: none;
    border-top: 1px solid #000;
    margin: 1em 0;
  }

  /* Print-friendly list styles */
  ul, ol {
    margin: 1em 0;
    padding-left: 2em;
  }

  li {
    margin-bottom: 0.5em;
  }

  /* Ensure text is black by default */
  .text-color-primary,
  .text-color-secondary,
  [class*="text-"],
  [class*="color-"] {
    color: black !important;
  }
}
