/* Strona pojedynczego ogloszenia i inne strony generowane na serwerze */
.listing-page { padding: 22px 0 60px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--muted); }
.lp-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.lp-gallery, .lp-side { min-width: 0; }
.lp-main { position: relative; background: #0b121a; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.lp-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lp-noimg { color: #9aa6b2; }
.lp-main .lp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 28px; line-height: 1; cursor: pointer; }
.lp-main .lp-prev { left: 12px; } .lp-main .lp-next { right: 12px; }
.lp-main .lp-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 99px; }
.lp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.lp-thumbs button { flex: none; width: 92px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: #e6ecf0; }
.lp-thumbs button.on { border-color: var(--accent); }
.lp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-side { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.lp-side h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 10px; }
.lp-price { font-size: 30px; font-weight: 700; margin: 0 0 6px; }
.lp-place { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.lp-call, .lp-share { display: block; width: 100%; text-align: center; text-decoration: none; margin-bottom: 10px; font-size: 16px; }
.lp-nophone { color: var(--muted); }
.lp-seller { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.lp-section { margin-top: 38px; }
.lp-section h2 { font-size: 24px; margin-bottom: 16px; }
.lp-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.lp-specs div { background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.lp-specs dt { font-size: 12px; color: var(--muted); }
.lp-specs dd { margin: 2px 0 0; font-weight: 700; }
.lp-desc { max-width: 760px; line-height: 1.65; white-space: normal; overflow-wrap: anywhere; }
a.listing-card { display: block; color: inherit; text-decoration: none; }
.page-missing { padding: 80px 0; text-align: center; }
.page-missing h1 { font-size: 34px; }
@media (max-width: 860px) {
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-side { position: static; }
  .listing-page .listing-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Regulamin i polityka prywatnosci */
.legal { max-width: 820px; padding: 40px 0 70px; line-height: 1.65; }
.legal h1 { font-size: 34px; margin-bottom: 4px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; }
.legal-date { color: var(--muted); font-size: 14px; }
.legal ol, .legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal mark { background: #fff1a8; padding: 0 4px; border-radius: 4px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--soft); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

/* Zglaszanie ogloszenia */
.lp-report details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; max-width: 640px; }
.lp-report summary { cursor: pointer; padding: 14px 0; color: var(--muted); font-weight: 600; }
.report-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.report-form select, .report-form textarea, .report-form input[type=email] { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: 400 15px "DM Sans", sans-serif; }
.report-form .check { display: flex; gap: 8px; font-weight: 400; }
.report-form button { margin-bottom: 18px; }
.lp-msg { padding: 10px 14px; border-radius: 8px; }
.lp-msg.ok { background: #e6f7ec; color: #14532d; }
.lp-msg.err { background: #fde8e8; color: #7f1d1d; }
.nego { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 700; color: #1f6f43; background: #e3f6ea; border-radius: 99px; padding: 2px 9px; letter-spacing: 0; }
.lp-price .nego { font-size: 13px; }
.lp-history { margin-top: 14px; padding: 12px 14px; background: #f1f6ff; border-radius: 10px; font-size: 14px; }
.lp-seller a { color: var(--accent-dark); font-weight: 700; }
