/* 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:not([type=checkbox]):not([type=hidden]) { 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; }
.lp-sub { margin: -4px 0 12px; color: var(--muted); font-size: 16px; }
.card-sub { margin: -2px 0 6px; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-safe { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #fff8e6; font-size: 13px; color: #5c4a12; }
.lp-safe strong { display: block; margin-bottom: 4px; color: #3d300a; }
.lp-safe ul { margin: 0; padding-left: 18px; }
.lp-safe li { margin: 2px 0; }
.lp-msgbox { margin-bottom: 10px; }
.lp-msgbox summary { display: block; width: 100%; text-align: center; list-style: none; cursor: pointer; font-size: 16px; }
.lp-msgbox summary::-webkit-details-marker { display: none; }
.lp-msgbox[open] summary { margin-bottom: 12px; }
.lp-msgbox .report-form button { width: 100%; }
.lp-note { font-size: 12px; color: var(--muted); margin: -4px 0 10px; }
/* strona ogloszenia: ikony kontaktu i formularz wiadomosci */
.lp-side .act-row { margin: 6px 0 12px; }
.lp-side .act-phone { flex: 1; }
.lp-side .act-phone .act-text { max-width: none; }
.act-form { display: grid; gap: 8px; }
.act-form button { width: 100%; }
.lp-msgpanel { margin-top: 0; }

/* data dodania i numer ogloszenia pod opisem */
.lp-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin:0 0 8px;padding:14px 0;border-top:1px solid #e5e9ef;color:#667085;font-size:.9rem}
.lp-id b{font-weight:600;color:#344054;font-variant-numeric:tabular-nums}
.lp-id button{border:0;background:none;cursor:pointer;font-size:1.05rem;color:#344054;padding:2px 6px;border-radius:6px}
.lp-id button:hover{background:#eef2f6}

/* Ikony SVG na stronie ogloszenia */
.lp-place .ic{color:var(--accent)}
.lp-safe strong .ic,.lp-safe .ic{color:#c2410c}
.lp-history .ic{color:#2563eb}
.lp-seller .ic{width:1em;height:1em;vertical-align:-.12em}
.lp-nav .ic{width:24px;height:24px;vertical-align:middle}
.lp-report summary .ic{color:#b42318}
.lp-id .ic{width:18px;height:18px;vertical-align:middle}

/* obnizka ceny (Omnibus) i informacja o prawach konsumenta */
.lp-drop{margin:-4px 0 12px;font-size:.88rem;color:#475467;line-height:1.5}
.lp-drop s{color:#667085}
.lp-drop strong{color:#1d2939}
.lp-drop-tag{display:inline-block;padding:1px 8px;border-radius:999px;background:#ecfdf3;color:#067647;font-weight:700;font-size:.78rem;margin-right:2px}
.lp-drop-date{color:#98a2b3}
.lp-consumer{margin:6px 0 10px;font-size:.82rem;color:#667085;line-height:1.45}
.lp-drop strong,.lp-drop s{white-space:nowrap}
