/* ScoutTract Print Map & Export Styles */
@media screen {
  #stPrintMapContainer {
    display: none !important;
  }
}

@media print {
  @page {
    size: letter landscape;
    margin: 0.35in;
  }

  /* Hide entire interactive UI chrome in print */
  body > *:not(#stPrintMapContainer),
  #topNav, #appFooter, #bottomNav,
  #stSharingBanner, .st-sharing-banner,
  #map, #gaMobileMapHost, #mapCanvas,
  #v6611Drawer, .bottom-sheet, .drawer,
  #placeSearch, .mss, .map-zoom-badge, .st-map-ctrls,
  #sosCountdownModal, #sosCountdownBar,
  .st-hud, .pt-hud, .st-party-bar,
  #chSheet, .ch-sheet,
  #fbWidget, .feedback-btn,
  dialog, .noprint {
    display: none !important;
  }

  /* Show the dedicated print container */
  #stPrintMapContainer {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    height: 100% !important;
    background: #fff !important;
    color: #1F2A44 !important;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
    box-sizing: border-box;
  }

  .st-print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #B87333;
    padding-bottom: 6px;
    margin-bottom: 8px;
  }

  .st-print-brand-row {
    display: flex;
    flex-direction: column;
  }

  .st-print-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #1F2A44;
  }

  .st-print-tagline {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a5426;
  }

  .st-print-title-row {
    text-align: right;
  }

  .st-print-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1F2A44;
  }

  .st-print-meta {
    font-size: 11px;
    color: #4b5563;
    margin-top: 2px;
  }

  .st-print-map-frame {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 480px;
    max-height: 5.6in;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    overflow: hidden;
    background: #e5e7eb;
  }

  .st-print-canvas-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .st-print-north-arrow {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(31, 42, 68, 0.85);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
  }

  .st-print-map-date {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.85);
    color: #1F2A44;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
  }

  .st-print-legend-row {
    display: flex;
    gap: 6px;
    font-size: 11px;
    margin-top: 6px;
    padding: 4px 0;
    color: #1F2A44;
  }

  .st-print-legend-label {
    font-weight: 700;
  }

  .st-print-legend-list {
    color: #374151;
  }

  .st-print-warn {
    font-size: 10px;
    color: #b42318;
    margin-top: 2px;
  }

  .st-print-disclaimer {
    font-size: 8.5px;
    line-height: 1.35;
    color: #6b7280;
    margin-top: 6px;
    border-top: 1px solid #e5e7eb;
    padding-top: 4px;
  }
}
