/* Broker for Boat — PDF print stylesheet */
* { box-sizing: border-box; }
body { font-family: Arial, Helvetica, sans-serif; font-size:13px; color:#1a1a1a; margin:0; padding:0; background:#fff; }

/* ── Print bar (screen only) ── */
.bfb-print-bar { position:fixed; top:0; left:0; right:0; z-index:9999; background:#f8f9fa; border-bottom:1px solid #dee2e6; padding:10px 24px; display:flex; align-items:center; gap:12px; }
.bfb-print-bar button { background:#111111; color:#fff; border:none; border-radius:6px; padding:8px 20px; font-size:13px; font-weight:700; cursor:pointer; letter-spacing:0.02em; }
.bfb-print-bar button:hover { background:#333333; }
.bfb-print-bar .hint { color:#6c757d; font-size:12px; }

/* ── Page wrapper ── */
.bfb-content { padding-top:60px; max-width:860px; margin:0 auto; }

/* ── Header: logo + price ── */
.pdf-header { display:table; width:100%; padding:16px 24px 14px; border-bottom:3px solid #111111; }
.pdf-header-left { display:table-cell; vertical-align:middle; }
.pdf-header-right { display:table-cell; vertical-align:middle; text-align:right; white-space:nowrap; }
.pdf-logo { max-height:46px; max-width:200px; }
.pdf-price { font-size:24px; font-weight:800; color:#111111; }

/* ── Title block ── */
.pdf-title-block { padding:12px 24px 10px; border-bottom:1px solid #e5e7eb; }
.pdf-title-block h1 { font-size:22px; font-weight:700; margin:0 0 7px 0; color:#111; line-height:1.2; }
.loc-badges { display:block; }
.loc-badge { display:inline-block; margin:0 5px 4px 0; padding:3px 11px; background:#f3f4f6; color:#111; border:1px solid #d1d5db; border-radius:20px; font-size:11px; font-weight:600; }

/* ── Body ── */
.pdf-body { padding:14px 24px 20px; }

/* ── Section titles ── */
.section { margin-bottom:16px; page-break-inside:avoid; }
.section-title { display:block; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:#111111; padding-bottom:5px; border-bottom:2px solid #111111; margin-bottom:9px; }

/* ── Hero image ── */
.hero-wrap { margin:14px 0 5px; }
.hero-img { width:100%; height:260px; object-fit:cover; border-radius:6px; display:block; }

/* ── Thumbnail strip ── */
.thumbs-table { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:4px; margin:4px 0 16px; }
.thumbs-table td { padding:0; vertical-align:top; }
.thumb-cell { overflow:hidden; border-radius:4px; height:76px; }
.thumb-img { width:100%; height:100%; object-fit:cover; display:block; }

/* ── Specs table: 4 cols (label-val / label-val) ── */
.specs-table { width:100%; border-collapse:collapse; font-size:12px; }
.specs-table td { padding:5px 9px; border:1px solid #e5e7eb; vertical-align:middle; }
.specs-table .sl { width:20%; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.05em; color:#6b7280; background:#f9fafb; }
.specs-table .sv { width:30%; color:#111; font-weight:500; }

/* ── Description ── */
.desc { font-size:13px; line-height:1.65; color:#374151; }
.desc p { margin:0 0 8px; }

/* ── Gallery grid: 3 cols, fixed height ── */
.gal-table { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:5px; }
.gal-table td { padding:0; vertical-align:top; height:160px; overflow:hidden; }
.gal-img { width:100%; height:160px; object-fit:cover; border-radius:4px; display:block; }

/* ── Footer ── */
.pdf-footer { margin-top:20px; padding-top:10px; border-top:1px solid #d1d5db; font-size:11px; color:#6b7280; line-height:1.6; }
.pdf-footer .footer-text { margin-bottom:3px; }
.pdf-footer .footer-contacts { font-weight:600; color:#374151; }

/* ── Print media ── */
@media print {
    .bfb-print-bar { display:none !important; }
    .bfb-content { padding-top:0; }
    body { margin:0; }
    * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
    a { color:inherit; text-decoration:none; }
    .section { page-break-inside:avoid; }
    .gal-table td { height:155px; }
    .gal-img { height:155px; }
    @page { margin:10mm 12mm; size:A4 portrait; }
}
