/* Style dla wyróżnionego ogłoszenia */

/* Dostępność: jednolity focus dla przycisków */
[class*="btn"]:focus-visible,
[class*="button"]:focus-visible,
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible {
    outline: 2px solid #003d82;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.25);
}

.listing[data-featured="true"] {
    /* Pomarańczowa ramka */
    border: 2px solid #ff9800;
    /* Delikatne pomarańczowe tło background-color: #fff9f0;*/
}

.featured-badge {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff8c00;
    color: white;
    padding: 0rem 0.25rem;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    z-index: 1;
}

/* Grid 1-rzędowy dla podobnych ogłoszeń (zamiast 2-rzędowego jak na stronie głównej) */
.similar-listings-section .promoted-home-grid {
    min-height: auto;
}

.similar-listings-section .promoted-home-grid .slide {
    grid-template-rows: 180px;
    height: calc(180px + 16px);
}

.similar-listings-section .promoted-home-grid .slide .listing-wrapper:nth-child(n+4) {
    display: none;
}

/* Style dla ogłoszeń w sekcji promowanej */
.promoted-home-section .listing {
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.promoted-home-section .listing-content {
    position: static;
}

.promoted-home-section .listing-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: auto;
}

.promoted-home-section .listing-title {
    font-size: 1.3em;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    text-align: center;
}

.promoted-home-section .listing-footer {
    margin-top: auto;
    padding-top: 0.3125rem;
}

.promoted-home-section .detail-item {
    font-size: 0.95em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.promoted-home-section .details-row {
    justify-content: center;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.25rem;
}

.promoted-home-section .section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #213445;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    align-items: baseline; /* Precyzyjne wyrównanie baseline'u "Zobacz wszystkie ogłoszenia" z tytułem sekcji */
}

/* Strzałki przewijania */
.scroll-arrows {
    display: flex;
    gap: 8px;
}

.scroll-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    background: white;
    color: #666;
    cursor: default;
    transition: all 0.1s;
}

.scroll-arrow:hover:not(:disabled) {
    background: #f5f5f5;
    color: #333;
    cursor: pointer;
}

.scroll-arrow:disabled {
    opacity: 0.5;
    pointer-events: none;
}

.view-all {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 2px;
    color: #003153;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.view-all:hover {
    color: #0B4A73;
    text-decoration: underline;
}

/* Główna karta promocji */
.promotion-card {
    cursor: pointer;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    padding: 1.25rem;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 1.25rem;
}

/* Ukrycie radio buttonów w sekcji promocji */
.promotion-option input[type="radio"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

/* Styl dla karty promocji, gdy odpowiadający jej radio button jest zaznaczony */
.promotion-option input[type="radio"]:checked+.promotion-card {
    border-color: #003153;
    background-color: #e3f2fd;
    box-shadow: 0 3px 10px rgba(0, 49, 83, 0.2);
}

/* Hover efekt na karcie */
.promotion-card:hover {
    border-color: #003153;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Style dla wybranej karty */
.promotion-option input[type="radio"]:checked+.promotion-card {
    border-color: #003153;
    background-color: #f3f9fe;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Ikona w karcie promocji */
.promotion-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 12px;
    color: #003153;
    transition: all 0.2s ease;
}

/* Zmiana koloru ikony dla wybranej opcji */
.promotion-option input[type="radio"]:checked+.promotion-card .promotion-icon {
    background: #003153;
    color: white;
}

.promotion-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.promotion-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Sekcja wyboru czasu trwania */
.promotion-duration {
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0;
    padding-top: 0;
}

/* Pokazywanie sekcji czasu trwania po wyborze opcji */
.promotion-duration.active {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
    border-top: 1px solid #e0e0e0;
}

/* Karta czasu trwania */
.duration-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.875rem 1.25rem;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Nowy styl dla wewnętrznego kontenera */
.duration-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Hover na karcie czasu trwania */
.duration-card:hover {
    border-color: #003153;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Kontener opcji czasu trwania */
.duration-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 1.25rem;
}

/* Style dla wybranej karty czasu trwania */
.duration-options input[type="radio"]:checked+.duration-card {
    border-color: #003153;
    background-color: #e3f2fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 49, 83, 0.2);
}

/* Ukrywamy radio buttony dla czasu trwania */
.duration-options input[type="radio"] {
    display: none;
}

.recommended-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    color: white;
    padding: 0.125rem 1.5rem;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.duration-card .days {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
}

.duration-card .price {
    color: #003153;
    font-weight: 700;
    font-size: 1.35em;
}

.duration-card .per-day {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 60%);
    color: #888;
    font-size: 0.8125em; /* 13px */
    font-weight: 400;
    white-space: nowrap;
}

.duration-card .savings {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    padding: 0 10px;
    color: #2e7d32;
    font-size: 0.75em; /* 12px */
    font-weight: 600;
}

/* Styl dla zaznaczonej karty czasu trwania */
input[type="radio"]:checked+.duration-card {
    border-color: #003153;
    background-color: #e3f2fd;
    box-shadow: 0 3px 8px rgba(0, 49, 83, 0.15);
}

/* Sekcja promowanych ogłoszeń */
.promoted-home-section .container {
    width: 90%;
    max-width: 1400px;
}

.page-listing-detail .promoted-home-section .container {
    width: 80%;
}

.promoted-home-section {
    position: relative;
    overflow: hidden;
    --gap: 24px;
    --listing-height: 180px;
    --slide-min-height: 360px;
    /* 2 wiersze × 180px */
    --background-color: #ffffff;
}

/* Kontener główny */
.promoted-home-grid {
    display: flex;
    gap: 0;
    padding: 8px 0 1rem;
    width: 100%;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ukrywanie scrollbara */
.promoted-home-grid::-webkit-scrollbar {
    display: none;
}

/* Pojedynczy slajd */
.promoted-home-grid .slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 180px);
    gap: 16px;
    padding: 0 8px;
    box-sizing: border-box;
    scroll-snap-align: start;
    width: 100%;
    height: calc(2 * 180px + 16px + 16px);
    overflow: visible;
}

.promoted-home-grid .slide--single-row {
    grid-template-rows: 180px;
    height: calc(180px + 16px);
}

.promoted-home-grid .listing-wrapper {
    width: 100%;
    height: 100%;
    min-width: 0;
    position: relative;
    cursor: pointer;
}

.promoted-home-grid .listing-title a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.promoted-home-grid .listing {
    width: 100%;
    height: 100%;
    min-height: 180px;
    box-sizing: border-box;
    margin: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.promoted-home-grid .listing-wrapper:hover .listing {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.promoted-home-grid .listing-placeholder {
    width: 100%;
    height: 100%;
    min-width: 0;
    visibility: hidden;
}

/* Maska na prawym brzegu */
.promoted-home-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            #ffffff 90%);
    pointer-events: none;
    z-index: 2;
}

.promoted-home-grid .no-promoted-message {
    text-align: center;
    max-width: 600px;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Footer modala promocji */
#promote .modal-footer {
    padding: 0.75rem 0.375rem;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

#promote .modal-footer .footer-left {
    display: flex;
    gap: 12px;
}

/* Powiększone przyciski w sekcji promocji */
#promote .btn {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#promote .btn-blank {
    border: 1px solid #003153;
}

#promote .promote-confirm-btn:not(:disabled) {
    cursor: pointer;
}

#promote .promote-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Przyciski "Dodaj bez promowania" i "Dodaj z promowaniem" */
#addWithoutPromoteBtn,
#addWithPromoteBtn {
    min-width: 220px;
    margin-left: 0.625rem;
}

/* Style dla komunikatu przy braku promowań na stronie głównej */
/* Kontener główny */
.empty-promoted-container {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    /* Zmniejszona wysokość */
}

/* Zawartość */
.empty-promoted-content {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

/* Tekst */
.empty-promoted-text {
    font-size: 18px;
    line-height: 1.6;
    color: #4a5568;
    margin-top: 0;
}

/* Przycisk */
.empty-promoted-button {
    display: inline-block;
    padding: 0.5rem 4rem;
    font-size: 1rem;
    font-weight: 500;
    background: #003153;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.empty-promoted-button:hover {
    transform: translateY(-2px);
    background: #0B4A73;
}


.home-about-btn-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.home-about-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.85rem;
    width: min(100%, 960px);
    margin: 0 auto;
}

.home-about-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(0, 49, 83, 0.12);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.home-about-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: #003153;
    background: linear-gradient(135deg, #eaf6ff 0%, #fff7ed 100%);
    border: 1px solid rgba(0, 49, 83, 0.12);
    border-radius: 18px;
}

.home-about-icon svg {
    width: 29px;
    height: 29px;
}

.home-about-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.home-about-eyebrow {
    margin: 0 0 0.3125rem;
    color: #003153;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.home-about-tagline {
    margin: 0;
    font-size: 1rem;
    color: #213445;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.42;
    text-align: left;
}

.btn-home-about {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.5rem;
    border: 2px solid #003153;
    border-radius: 999px;
    background: #003153;
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    line-height: 1.5;
}

.btn-home-about .btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-style: normal;
    line-height: 1;
}

.btn-home-about:hover {
    background: #0B4A73;
    border-color: #0B4A73;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 49, 83, 0.24);
}

.btn-home-about:focus-visible {
    outline: 3px solid rgba(11, 74, 115, 0.3);
    outline-offset: 3px;
}

.btn-home-about:hover .btn-arrow {
    transform: translateX(3px);
}

.home-audience-routes-section {
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.75rem 0;
}

.home-audience-routes-container {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.25rem;
}

.home-audience-header {
    display: grid;
    gap: 0.45rem;
}

.home-audience-label {
    color: #0B4A73;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-audience-header h2 {
    margin: 0;
    color: #003153;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.2;
}

.home-audience-header p {
    margin: 0;
    color: #4b5b68;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.55;
}

.home-audience-slider {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
    margin: -0.25rem;
    overflow: hidden;
}

.home-audience-routes {
    display: flex;
    width: 100%;
    min-width: 0;
    gap: 0;
    transform: translate3d(var(--audience-slide-offset, 0%), 0, 0);
    transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.home-audience-route {
    position: relative;
    flex: 0 0 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 118px;
    padding: 1.2rem 1.25rem;
    overflow: hidden;
    color: #213445;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 49, 83, 0.1);
    border-radius: 24px;
    text-decoration: none;
    transform: translateY(0);
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.home-audience-route:hover,
.home-audience-route:focus {
    color: #003153;
    border-color: rgba(11, 74, 115, 0.24);
    transform: translateY(-3px);
}

.home-audience-route:focus-visible {
    outline: 3px solid rgba(11, 74, 115, 0.3);
    outline-offset: 3px;
}

.home-audience-icon {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #003153;
    background: linear-gradient(135deg, #eaf6ff 0%, #ffffff 56%, #fff7ed 100%);
    border: 1px solid rgba(0, 49, 83, 0.12);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.home-audience-icon svg {
    width: 29px;
    height: 29px;
}

.home-audience-icon--wide svg {
    width: 42px;
    height: 22px;
}

.home-audience-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.home-audience-kicker {
    color: #0B4A73;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.25;
    text-transform: uppercase;
}

.home-audience-copy strong {
    color: #003153;
    font-size: 1.03rem;
    line-height: 1.25;
}

.home-audience-copy span:last-child {
    color: #4b5b68;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
}

.home-audience-arrow {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #ffffff;
    background: #003153;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.28s ease, background 0.28s ease;
}

.home-audience-route:hover .home-audience-arrow,
.home-audience-route:focus .home-audience-arrow {
    background: #0B4A73;
    transform: translateX(4px);
}

.home-audience-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.home-audience-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c8d8e4;
    cursor: pointer;
    transition: width 0.32s ease, background-color 0.32s ease, transform 0.32s ease;
}

.home-audience-dot:hover,
.home-audience-dot:focus {
    background: #0B4A73;
    transform: translateY(-1px);
}

.home-audience-dot:focus-visible {
    outline: 3px solid rgba(11, 74, 115, 0.3);
    outline-offset: 4px;
}

.home-audience-dot-active {
    width: 28px;
    background: #F39C12;
}

@media (max-width: 1200px) {
    .duration-options {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 768px;
        margin-left: auto;
        margin-right: auto;
    }

    .promoted-home-section .listing-title {
        font-size: 1.15em;
    }

    .promotion-card {
        padding: 0.9375rem;
    }

    .promotion-icon {
        width: 42px;
        height: 42px;
    }

    .promotion-info h4 {
        font-size: 16px;
    }

    .promotion-info p {
        font-size: 13px;
    }

    .promoted-home-section .container {
        width: 95%;
    }

    .page-listing-detail .promoted-home-section .container {
        width: 90%;
    }

    .promoted-home-section .listing-footer .details-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .promoted-home-section .detail-item {
        white-space: normal;
    }
}

@media (max-width: 992px) {
    .home-about-inner {
        max-width: 680px;
    }

    .home-about-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .btn-home-about {
        grid-column: 1 / -1;
        justify-self: center;
        min-width: 260px;
    }

    .home-audience-routes-container {
        grid-template-columns: 1fr;
        max-width: 720px;
    }

    .home-audience-route {
        min-height: 86px;
    }

    .duration-options {
        max-width: 680px;
    }

    .promoted-home-section .section-header h2 {
        font-size: 1.4em;
        gap: 15px;
        flex-wrap: wrap;
    }

    .view-all {
        white-space: nowrap;
        /* Zapobiega zawijaniu tekstu */
        font-size: 14px;
        /* Zmniejszamy czcionkę już od 992px */
        display: inline-flex;
        /* Zapewnia, że strzałka będzie blisko tekstu */
        align-items: center;
    }

    /* Poprawka dla strzałki, aby była zawsze blisko tekstu */
    .view-all svg {
        margin-left: 0.25rem;
        flex-shrink: 0;
    }

    .promoted-home-section .container {
        width: 98%;
    }

    .page-listing-detail .promoted-home-section .container {
        width: 95%;
    }

    .promoted-home-grid .slide {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 180px);
    }

    .promoted-home-grid .slide--single-row {
        grid-template-rows: 180px;
        height: calc(180px + 16px);
    }

    /* Podobne ogłoszenia - 1 rząd */
    .similar-listings-section .promoted-home-grid .slide {
        grid-template-rows: 180px;
        height: calc(180px + 16px);
    }
    
    .similar-listings-section .promoted-home-grid .slide .listing-wrapper:nth-child(n+3) {
        display: none;
    }

    .promoted-home-section .listing-header {
        gap: 5px;
    }

    .promoted-home-section .listing-title {
        font-size: 1.1em;
    }

    .promoted-home-section .listing-footer {
        padding-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .duration-options {
        max-width: 600px;
    }

    .promotion-card {
        grid-template-columns: auto 1fr;
    }

    .promotion-icon {
        width: 40px;
        height: 40px;
    }

    .promoted-home-section .listing-header {
        padding: 0rem;
        /* Usuwamy padding dziedziczony z main.css dla .listing-header*/
    }

    .promoted-home-section .listing-title {
        font-size: 1em;
    }

    .promoted-home-section .detail-item {
        font-size: 0.9em;
    }

    .promoted-home-section::after {
        width: 25px;
    }

    .empty-promoted-container {
        padding: 0 15px;
    }

    .empty-promoted-content {
        padding: 1.25rem;
        max-width: 90%;
    }

    .empty-promoted-text {
        font-size: 16px;
        line-height: 1.4;
    }

    .section-header {
        margin: 0.9375rem 0.625rem;
    }

    .promoted-home-section .section-header h2 {
        gap: 10px;
        font-size: 1.3em;
    }

    .view-all {
        margin-left: 0;
        /* Reset marginesu */
        margin-top: 0.3125rem;
        /* Dodatkowy odstęp od góry */
    }

    #promote .modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 0.625rem 0.375rem;
    }

    #addWithoutPromoteBtn,
    #addWithPromoteBtn {
        width: 100%;
        margin-left: 0;
    }

    .featured-badge {
        top: -25px;
    }

    .home-about-btn-wrap {
        padding: 1rem 1rem;
    }

    .home-about-card {
        gap: 0.75rem 0.875rem;
        padding: 1rem;
        border-radius: 22px;
    }

    .home-about-icon {
        width: 46px;
        height: 46px;
        border-radius: 16px;
    }

    .home-about-icon svg {
        width: 25px;
        height: 25px;
    }

    .home-about-eyebrow,
    .home-about-tagline {
        font-size: 0.9375rem;
    }

    .btn-home-about {
        font-size: 0.9375rem;
    }

    .home-audience-route {
        padding: 0.95rem;
        border-radius: 20px;
    }

    .home-audience-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .home-audience-icon svg {
        width: 25px;
        height: 25px;
    }

    .home-audience-icon--wide svg {
        width: 38px;
        height: 20px;
    }

    .home-audience-routes-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-audience-routes-container {
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 576px) {
    .home-about-btn-wrap {
        padding: 0.875rem 0.75rem 1rem;
        background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
    }

    .home-about-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0.625rem 0.75rem;
        padding: 0.875rem;
        border-radius: 20px;
        box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
    }

    .home-about-icon {
        width: 42px;
        height: 42px;
        align-self: flex-start;
        border-radius: 15px;
    }

    .home-about-icon svg {
        width: 23px;
        height: 23px;
    }

    .home-about-eyebrow,
    .home-about-tagline {
        font-size: 0.875rem;
    }

    .home-about-tagline {
        line-height: 1.45;
    }

    .home-audience-routes-section {
        padding-left: 0.875rem;
        padding-right: 0.875rem;
    }

    .home-audience-routes-container {
        gap: 0.9rem;
    }

    .home-audience-route {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0.65rem;
        min-height: 0;
        padding: 0.875rem;
        border-radius: 18px;
    }

    .home-audience-icon {
        width: 42px;
        height: 42px;
        align-self: flex-start;
        border-radius: 15px;
    }

    .home-audience-icon svg {
        width: 23px;
        height: 23px;
    }

    .home-audience-icon--wide svg {
        width: 34px;
        height: 18px;
    }

    .home-audience-kicker {
        font-size: 0.68rem;
    }

    .home-audience-copy strong {
        font-size: 0.98rem;
    }

    .home-audience-copy span:last-child {
        font-size: 0.84rem;
    }

    .home-audience-arrow {
        grid-column: 2;
        width: auto;
        height: auto;
        justify-content: flex-start;
        color: #0B4A73;
        background: transparent;
    }

    .home-audience-route:hover .home-audience-arrow,
    .home-audience-route:focus .home-audience-arrow {
        color: #0B4A73;
        background: transparent;
        transform: translateX(3px);
    }

    .duration-options {
        max-width: 520px;
    }

    .empty-promoted-text {
        font-size: 14px;
    }

    .promoted-home-section .container {
        width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .page-listing-detail .promoted-home-section .container {
        width: 100%;
    }

    .promoted-home-section .listing-title {
        font-size: 0.95em;
        line-height: 1.3;
    }

    .promoted-home-section .detail-item {
        font-size: 0.85em;
        flex-basis: auto;
    }

    /* Zawijanie meta danych */
    .promoted-home-section .details-row {
        gap: 6px;
        flex-wrap: wrap;
    }

    .promoted-home-section .listing-footer {
        padding-top: 0.625rem;
    }

    .btn-home-about {
        min-width: 0;
        max-width: none;
        font-size: 0.9375rem;
        padding: 0.625rem 1rem;
    }

    .empty-promoted-button {
        padding: 0.5rem 2.5rem;
    }
}

@media (max-width: 420px) {
    .home-about-inner {
        gap: 0.625rem;
    }

    .home-about-card {
        padding: 0.8125rem;
    }

    .home-audience-route {
        padding: 0.8125rem;
    }

    .btn-home-about {
        font-size: 0.875rem;
        padding: 0.5625rem 0.875rem;
    }

    .promoted-home-grid .slide {
        grid-template-columns: 1fr;
    }

    /* Podobne ogłoszenia - 1 rząd (1 element) */
    
    .similar-listings-section .promoted-home-grid .slide .listing-wrapper:nth-child(n+2) {
        display: none;
    }

    .promoted-home-section::after {
        display: none;
    }

    .promoted-home-grid .listing {
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    }

    .promoted-home-section .listing {
        min-height: 140px;
    }

    .promoted-home-section .listing-footer {
        padding-top: 0.375rem;
    }

    .section-header {
        margin: 0.625rem 0.3125rem;
    }

    .view-all {
        font-size: 14px;
    }

    .scroll-arrows {
        gap: 5px;
    }

    .scroll-arrow {
        width: 36px;
        height: 36px;
    }

    .promotion-card {
        padding: 0.625rem;
        gap: 8px;
    }

    .promotion-icon {
        width: 32px;
        height: 32px;
    }

    .promotion-info h4 {
        font-size: 14px;
        margin-bottom: 0.3125rem;
    }

    .promotion-info p {
        font-size: 13px;
    }

    .duration-card {
        padding: 0.75rem;
    }

    .duration-card .days {
        font-size: 15px;
    }

    .duration-card .price {
        font-size: 17px;
    }

    .duration-card .per-day {
        font-size: 13px;
    }

    .duration-card .savings {
        font-size: 13px;
    }

    .recommended-badge {
        font-size: 11px;
        padding: 0.0625rem 0.75rem;
        top: -12px;
    }

    /* Lepsze wyświetlanie listing-meta w promocjach */
    .promoted-home-section .listing-meta {
        gap: 6px;
        flex-wrap: wrap;
        width: 100%;
        align-items: center;
    }

    .promoted-home-section .details-row {
        gap: 8px;
        width: 100%;
        display: flex;
        align-items: center;
    }

}