/* =========================================================
   OtoLider - Hero i pasek Poszukiwacza zależne od kategorii
   Plik docelowy: /web/lidermoto/assets/css/category-landing.css
   Marker: OTOLIDER_CATEGORY_LANDING_CSS_V1_20260704
   ========================================================= */

body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"] {
    background:
        linear-gradient(90deg, rgba(7, 18, 32, 0.96) 0%, rgba(13, 36, 61, 0.86) 42%, rgba(13, 36, 61, 0.56) 67%, rgba(13, 36, 61, 0.30) 100%),
        var(--lm-category-hero-image),
        #0d243d !important;
    background-size: cover !important;
    background-position: center !important;
}

.lm-category-finder-banner {
    position: relative !important;
    overflow: hidden !important;
    margin: 34px 0 26px !important;
    min-height: 146px !important;
    border-radius: 18px !important;
    background:
        linear-gradient(90deg, rgba(7, 18, 32, 0.96) 0%, rgba(13, 36, 61, 0.88) 48%, rgba(13, 36, 61, 0.58) 72%, rgba(13, 36, 61, 0.30) 100%),
        var(--lm-category-finder-image, radial-gradient(circle at 78% 36%, rgba(255,255,255,0.18), transparent 36%)),
        #0d243d !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 12px 28px rgba(16, 35, 55, 0.12) !important;
}

.lm-category-finder-banner::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    pointer-events: none !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), transparent 42%),
        radial-gradient(circle at 92% 18%, rgba(255,255,255,0.20), transparent 28%) !important;
}

.lm-category-finder-content {
    position: relative !important;
    z-index: 1 !important;
    min-height: 146px !important;
    padding: 28px 30px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
}

.lm-category-finder-copy {
    min-width: 0 !important;
    max-width: 760px !important;
}

.lm-category-finder-copy h2 {
    margin: 0 0 8px !important;
    color: #ffffff !important;
    font-size: clamp(25px, 2.4vw, 34px) !important;
    line-height: 1.08 !important;
    font-weight: 950 !important;
    letter-spacing: -0.03em !important;
}

.lm-category-finder-copy p {
    margin: 0 !important;
    color: rgba(255,255,255,0.88) !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
}

.lm-category-finder-button {
    flex: 0 0 auto !important;
    min-width: 170px !important;
    min-height: 48px !important;
    padding: 0 24px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    color: #0d243d !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    text-decoration: none !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18) !important;
    transition: transform .16s ease, box-shadow .16s ease !important;
}

.lm-category-finder-button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 14px 28px rgba(0,0,0,0.22) !important;
}

@media (max-width: 760px) {
    .lm-category-finder-banner {
        margin: 22px 0 22px !important;
        min-height: 0 !important;
        border-radius: 16px !important;
    }

    .lm-category-finder-content {
        min-height: 0 !important;
        padding: 22px 18px !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        align-items: start !important;
    }

    .lm-category-finder-copy h2 {
        font-size: 24px !important;
    }

    .lm-category-finder-copy p {
        font-size: 14px !important;
    }

    .lm-category-finder-button {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* =========================================================
   OtoLider - Hero ze zdjęciem jako pełne tło V3 20260706
   Marker: OTOLIDER_CATEGORY_HERO_FULL_BG_V3_20260706

   Zakres:
   - tylko Hero, które ma ustawioną zmienną --lm-category-hero-image,
   - nie rusza wyszukiwarki, filtrów, popupów ani banera Poszukiwacza,
   - nadpisuje stary krótki gradient Hero, który zostawiał widoczny tylko pasek zdjęcia.

   Zasada:
   - zdjęcie jest tłem całej sekcji Hero,
   - na zdjęciu leży ciemny gradient jak w banerze Poszukiwacza,
   - tekst i wyszukiwarka zostają nad tłem.
   ========================================================= */
body.lm-home-modern .lm-home-hero[style*="--lm-category-hero-image"],
body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"] {
    background-color: #0d243d !important;
    background-image:
        linear-gradient(90deg, rgba(5, 16, 29, 0.94) 0%, rgba(8, 26, 45, 0.86) 42%, rgba(8, 26, 45, 0.64) 68%, rgba(8, 26, 45, 0.40) 100%),
        linear-gradient(180deg, rgba(2, 8, 16, 0.24) 0%, rgba(2, 8, 16, 0.08) 48%, rgba(2, 8, 16, 0.20) 100%),
        var(--lm-category-hero-image) !important;
    background-size: cover, cover, cover !important;
    background-position: center center, center center, var(--lm-category-hero-position, center center) !important;
    background-repeat: no-repeat !important;
}

body.lm-home-modern .lm-home-hero[style*="--lm-category-hero-image"]::before,
body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"]::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    pointer-events: none !important;
    z-index: 0 !important;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.06) 24%, rgba(255, 255, 255, 0.00) 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.00) 46%) !important;
}

body.lm-home-modern .lm-home-hero[style*="--lm-category-hero-image"]::after,
body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"]::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    pointer-events: none !important;
    z-index: 0 !important;
    background: linear-gradient(180deg, rgba(5, 14, 27, 0.02) 0%, rgba(5, 14, 27, 0.18) 100%) !important;
}

body.lm-home-modern .lm-home-hero[style*="--lm-category-hero-image"] .lm-home-hero-copy,
body.lm-home-modern .lm-home-hero[style*="--lm-category-hero-image"] .lm-home-search-shell,
body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"] .lm-home-hero-copy,
body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"] .lm-home-search-shell {
    position: relative !important;
    z-index: 2 !important;
}

body.lm-home-modern .lm-home-hero[style*="--lm-category-hero-image"] .lm-search-actions-shell,
body.lm-home-modern .lm-home-hero[style*="--lm-category-hero-image"] .search-zone > .container,
body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"] .lm-search-actions-shell,
body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"] .search-zone > .container {
    position: relative !important;
    z-index: 3 !important;
}

@media (max-width: 900px) {
    body.lm-home-modern .lm-home-hero[style*="--lm-category-hero-image"],
    body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"] {
        background-position: center center, center center, var(--lm-category-hero-position-mobile, center center) !important;
    }
}

/* =========================================================
   OtoLider - delikatniejsze kadrowanie zdjęcia Hero V4 20260706
   Marker: OTOLIDER_CATEGORY_HERO_IMAGE_FIT_V4_20260706

   Powód:
   - zdjęcia pionowe / mniej panoramiczne przy background-size: cover wyglądają na zbyt powiększone,
   - dolna belka z przyciskiem "Szukaj ofert" nie powinna mieć prostokątnego podkładu.

   Zasada:
   - na desktopie zdjęcie Hero jest traktowane jak grafika po prawej stronie,
     a nie jak pełny cover na 100% szerokości,
   - ciemny gradient dalej trzyma czytelność tekstu i wyszukiwarki,
   - nie ruszamy logiki filtrów, popupów, panelu administratora ani Poszukiwacza.
   ========================================================= */
@media (min-width: 901px) {
    body.lm-home-modern .lm-home-hero[style*="--lm-category-hero-image"],
    body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"] {
        background-color: #0d243d !important;
        background-image:
            linear-gradient(90deg, rgba(5, 16, 29, 0.96) 0%, rgba(8, 26, 45, 0.90) 38%, rgba(8, 26, 45, 0.72) 62%, rgba(8, 26, 45, 0.48) 100%),
            linear-gradient(180deg, rgba(2, 8, 16, 0.22) 0%, rgba(2, 8, 16, 0.06) 48%, rgba(2, 8, 16, 0.18) 100%),
            var(--lm-category-hero-image) !important;
        background-size: cover, cover, auto 175% !important;
        background-position: center center, center center, right center !important;
        background-repeat: no-repeat !important;
    }
}

body.lm-home-modern .lm-home-hero[style*="--lm-category-hero-image"] .lm-search-actions-shell,
body.lm-home-modern .lm-home-hero[style*="--lm-category-hero-image"] .lm-search-actions-row,
body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"] .lm-search-actions-shell,
body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"] .lm-search-actions-row {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

body.lm-home-modern .lm-home-hero[style*="--lm-category-hero-image"] .lm-search-submit-main,
body.lm-home-modern .lm-category-hero[style*="--lm-category-hero-image"] .lm-search-submit-main {
    border-radius: 999px !important;
    overflow: hidden !important;
}
