/* Szarpidrut 2027 — W22 (pojedyncze ogłoszenie): poprawki ręczne do w22.css — elementy strony, których makieta
   nie ma w tej postaci: prawdziwe zdjęcie ogłoszenia, opis HTML z edytora, ikony udostępniania, komentarze. */

/* Zdjęcie ogłoszenia (z bazy) w kadrze grafiki makiety; klik otwiera lightbox (.hero-image, bootstrap.js) */
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-photo-art--real{height: auto; max-height: 560px; background: rgb(12, 12, 12);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-photo-art--real::before,
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-photo-art--real::after{display: none;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-photo-art--real img{display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; cursor: zoom-in;}

/* Opis z edytora (HTML, często jeden akapit z <br>, więc bez wyróżnionego leadu): linki i listy w stylu strony */
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-story{overflow-wrap: anywhere;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-story a{color: rgb(255, 255, 255); text-decoration: underline; text-decoration-color: rgb(237, 48, 57); text-underline-offset: 3px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-story a:hover{color: rgb(237, 48, 57);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-story ul{list-style: disc; padding-left: 22px; margin: 0 0 21px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-story ol{list-style: decimal; padding-left: 22px; margin: 0 0 21px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-story img{max-width: 100%; height: auto;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-story strong,
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-story b{color: rgb(244, 242, 238);}

/* Udostępnianie: ikony FB / X / LinkedIn (front/_partials/share.html.twig) + przycisk kopiowania z makiety */
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-share-area > .w22-share-tools{flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px 18px; justify-content: flex-end;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-share-tools .w22-share-btn span{color: rgb(255, 255, 255); font-size: 13px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-share-social > div{display: flex; align-items: center; gap: 6px; color: rgb(143, 143, 143); font: 800 11px/1 Lato, Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-share-social span{color: rgb(143, 143, 143);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-share-social .mr-2{margin-right: 4px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-share-social .mr-1{margin-right: 0;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-share-social .block{display: block;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-share-social a{display: inline-block; opacity: .85;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-share-social a:hover{opacity: 1;}
@media (max-width: 600px){
  :where(.sz27-w22) #szarpidrut-ogloszenie .w22-share-area{flex-direction: column; align-items: flex-start;}
  :where(.sz27-w22) #szarpidrut-ogloszenie .w22-share-area > .w22-share-tools{justify-content: flex-start;}
}

/* Linki w „W skrócie” (kategoria → filtr listy, autor → profil) */
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-facts dd a{border-bottom: 1px solid rgb(237, 48, 57);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-facts dd a:hover{color: rgb(237, 48, 57);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-facts dd{overflow-wrap: anywhere;}

/* ---------- Komentarze (get_comments + formularz serwisu) — makieta ich nie ma, styl jak sekcje W22 ---------- */
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comments{margin-top: 55px; border-top: 1px solid rgb(54, 54, 54); padding-top: 25px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comments-count{color: rgb(237, 48, 57); margin-left: 6px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comments-cols{display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 35px; align-items: start; margin-top: 10px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment{display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid rgb(48, 48, 48);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-avatar{width: 44px; height: 44px; display: grid; place-items: center; overflow: hidden; background: rgb(30, 30, 30); border: 1px solid rgb(60, 60, 60); color: rgb(237, 48, 57); font-weight: 900; font-size: 17px; text-decoration: none;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-avatar img{display: block; width: 100%; height: 100%; object-fit: cover;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-head{display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-head b{font-weight: 900; font-size: 14px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-head b a:hover{color: rgb(237, 48, 57);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-head > span{font-size: 12px; color: rgb(136, 136, 136);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment p{margin: 0; color: rgb(208, 208, 208); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-action{background: transparent; border: 1px solid rgb(64, 64, 64); color: rgb(187, 187, 187); padding: 4px 9px; font: 800 10px/1.2 Lato, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border-radius: 0; margin-left: auto;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-action:hover{border-color: rgb(237, 48, 57); color: rgb(255, 255, 255);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-report{margin: 8px 0 0;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-action--report{border: 0; padding: 0; color: rgb(240, 108, 114); text-transform: none; letter-spacing: 0; font-weight: 700; font-size: 12px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-action--report:hover{text-decoration: underline; color: rgb(255, 138, 143);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-empty{margin: 0; padding: 22px 0; border-bottom: 1px solid rgb(48, 48, 48); color: rgb(154, 154, 154); font-size: 15px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-form{border: 1px solid rgb(51, 51, 51); background: rgb(17, 17, 17); padding: 24px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-form label{display: block; font-weight: 900; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: rgb(244, 242, 238); margin-bottom: 12px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-form p{margin: 0 0 16px; color: rgb(170, 170, 170); font-size: 13px;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-form textarea{display: block; width: 100%; background: rgb(10, 10, 10); color: rgb(244, 242, 238); border: 1px solid rgb(68, 68, 68); border-radius: 0; padding: 12px; font: 15px/1.6 Lato, Arial, sans-serif; resize: vertical;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-form textarea:focus{outline: none; border-color: rgb(237, 48, 57);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-counter{margin: 6px 0 14px; text-align: right; font-size: 11px; color: rgb(138, 138, 138);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-counter.text-red-500{color: rgb(240, 108, 114);}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-submit{display: inline-flex; align-items: center; gap: 14px; background: rgb(237, 48, 57); color: rgb(8, 8, 8) !important; border: 0; border-radius: 0; padding: 13px 18px; font: 900 12px/1.2 Lato, Arial, sans-serif; letter-spacing: .05em; text-transform: uppercase; cursor: pointer;}
:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comment-submit:hover{background: rgb(213, 36, 45);}
@media (max-width: 1020px){:where(.sz27-w22) #szarpidrut-ogloszenie .w22-comments-cols{grid-template-columns: minmax(0, 1fr);}}
