.bg-red-main {

    background-color: #b11915;
    color: #ffffff;
}

.bg-red-main a {

    color: #ffffff;
}

body {

    background-color: white !important;
}

a {


    text-decoration: none !important;
}

a:hover {

    color: grey !important;

}

#menu-menu-gorne a {
    color: #ffffff !important;
    margin-right: 10px;
    padding: 10px 0;
    text-decoration: none !important;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 200;
}

#menu-menu-gorne .dropdown-menu {

    background-color: #ce1415;
    color: #ffffff;
}

#menu-menu-gorne .dropdown-menu:hover {

    background-color: #ce1415;

}

.dropdown-item:focus,
.dropdown-item:hover {

    background-color: #b11915 !important;
}

/* Czerwona kropka pomiędzy elementami menu */
#menu-menu-gorne li.nav-item:not(:last-child)>a::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 10px;
    background-color: transparent;

    /* Align the dot with the text baseline */
    vertical-align: middle;
    position: relative;
    top: -0.1em;
}

@media (max-width: 991.98px) {

    /* Pokazuj kropkę również po ostatnim elemencie w trybie mobilnym */
    #menu-menu-gorne li.nav-item:last-child>a::after {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        margin: 0 10px;
        background-color: transparent;

        vertical-align: middle;
        position: relative;
        top: -0.1em;
    }
}

#menu-menu-gorne a:hover {
    color: grey !important;
}

.nav-language-switcher-wrap {
    display: flex;
    align-items: center;
}

.nav-mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar .wpm-language-switcher.wpm-switcher-list {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 0 1rem;
    padding: 0.3rem;

    flex-shrink: 0;
}

.navbar .wpm-language-switcher.wpm-switcher-list li {
    margin: 0;
}

.navbar .wpm-language-switcher.wpm-switcher-list li a,
.navbar .wpm-language-switcher.wpm-switcher-list li>span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar .wpm-language-switcher.wpm-switcher-list li a:hover,
.navbar .wpm-language-switcher.wpm-switcher-list li a:focus-visible {
    color: inherit !important;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.navbar .wpm-language-switcher.wpm-switcher-list li.active a,
.navbar .wpm-language-switcher.wpm-switcher-list li.active>span {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.navbar .wpm-language-switcher.wpm-switcher-list img {
    display: block;
    width: 22px;
    height: 22px;
    margin: 0;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.navbar .wpm-language-switcher.wpm-switcher-list li.active img {
    box-shadow: 0 0 0 1px rgba(177, 25, 21, 0.18);
}

.navbar .wpm-language-switcher.wpm-switcher-list li>span {
    cursor: default;
}

@media (max-width: 991.98px) {
    .nav-language-switcher-wrap--mobile {
        justify-content: center;
    }

    .navbar .wpm-language-switcher.wpm-switcher-list {
        width: auto;
        justify-content: center;
        margin: 0;
        padding: 0.35rem;
        
    }

    .navbar .wpm-language-switcher.wpm-switcher-list li a,
    .navbar .wpm-language-switcher.wpm-switcher-list li>span {
        width: 38px;
        height: 38px;
    }

    .nav-mobile-actions .mobile-login-icon {
        margin-right: 0 !important;
    }

    .nav-mobile-actions .navbar-toggler {
        margin: 0;
    }
}

[data-account-nav] {
    position: relative;
}

[data-account-nav]>[data-account-dropdown] {
    display: none;
    right: 0;
    left: auto;
    margin-top: 0.5rem;
}

@media (min-width: 992px) {
    [data-account-nav]>[data-account-dropdown] {
        position: absolute;
        top: 100%;
    }

    [data-account-nav]>[data-account-dropdown]::before {
        content: "";
        position: absolute;
        top: -0.5rem;
        left: 0;
        right: 0;
        height: 0.5rem;
        display: block;
    }
}

[data-account-nav].is-open>[data-account-dropdown],
[data-account-nav]:hover>[data-account-dropdown],
[data-account-nav]:focus-within>[data-account-dropdown] {
    display: block;
}

.dropdown-item:focus,
.dropdown-item:focus-visible,
.dropdown-item:active {
    background-color: transparent;
}

.nav-link-account__caret {
    display: none;
    margin-left: 0.35rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    padding: 0.15rem;
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-bottom: 5px;
}

.nav-link-account--logged-in .nav-link-account__caret {
    display: inline-block;
}

[data-account-nav].is-open .nav-link-account__caret {
    transform: rotate(-135deg);
}

.card,
.car-box,
.car-slider img,
.img-thumbnail {
    border-radius: 18px;

}

.car-box {
    background: #fff;
    padding: 0;
    transition: box-shadow .2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    margin-bottom: 0px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
}

.car-box.is-participated {
    border: 1px solid rgba(25, 135, 84, 0.4);
    box-shadow: 0 8px 28px rgba(25, 135, 84, 0.22);
}

.cars-view--list .car-box.is-participated {
    border-left-width: 4px;
}

.car-participation-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
    pointer-events: none;
}



.wraper-car-btn {
    width: 100%;
    padding: 1rem;
}

.car-box:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
}

.car-box .car-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #f3f3f3;
    border-radius: 14px;
    margin-bottom: 1rem;
    padding: 4px
}

.car-watchlist-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #a1a1a1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.car-watchlist-button:hover,
.car-watchlist-button:focus,
.car-watchlist-button:focus-visible {
    color: #ce1415;
    background-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    outline: none;
}

.car-watchlist-button.is-watchlisted {
    color: #ce1415;
}

.car-watchlist-button[disabled] {
    opacity: 0.7;
    cursor: progress;
}

.watchlist-icon {
    width: 1.2rem;
    height: 1.2rem;
}

.watchlist-icon__filled {
    display: none;
}

.is-watchlisted .watchlist-icon__filled {
    display: block;
}

.is-watchlisted .watchlist-icon__outline {
    display: none;
}

.btn-watchlist {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.btn-watchlist .watchlist-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.btn-watchlist.is-watchlisted,
.btn-watchlist.is-watchlisted:hover,
.btn-watchlist.is-watchlisted:focus {
    background-color: #ce1415;
    border-color: #ce1415;
    color: #fff;
}


.cars-toolbar {
    margin-bottom: 1.25rem;
}

.cars-toolbar .sorting {
    flex-wrap: wrap;
}

.sorting__select {
    min-width: 230px;
    min-height: 48px;
    padding: 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    color: #1d1d1f;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.sorting__select:focus,
.sorting__select:focus-visible {
    border-color: #ce1415;
    box-shadow: 0 0 0 0.2rem rgba(206, 20, 21, 0.2);
    outline: none;
}

.cars-view-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.cars-view-toggle-btn {
    cursor: pointer;
    min-width: 10px;
    width: 20px;
    background-color: transparent;
    border-color: transparent;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color .2s ease, border-color .2s ease;
}

.cars-view-toggle-btn:hover,
.cars-view-toggle-btn:focus {
    background-color: transparent;
    border-color: transparent;
    color: #fff !important;
}

.cars-view-toggle-btn img {
    width: 20px;
}

.cars-view-toggle-icon {
    font-size: 1.1rem;
}

@media (max-width: 767.98px) {
    .cars-toolbar {
        align-items: stretch;
    }

    .cars-toolbar .sorting {
        width: 100%;
        justify-content: space-between;
    }

    .cars-toolbar .sorting__select {
        width: 100%;
    }

    .cars-view-controls {
        width: 100%;
        justify-content: flex-start;
    }
}



[data-cars-view-item] {
    margin-bottom: 1px;
}

.cars-view__item {
    display: flex;
}

.cars-view__item>* {
    width: 100%;
}

.cars-view--list [data-cars-view-item] {
    flex: 0 0 100%;
    max-width: 100%;
}

.cars-view--list .car-box {
    flex-direction: row;
    align-items: stretch;
    gap: 1.5rem;
    padding: 0;
}

.cars-view--list .wraper-car-btn {
    padding: 0;
}

.cars-view--list .car-box__image {
    flex: 0 0 340px;
    margin-bottom: 0;
}

.cars-view--list .car-box__image .car-img {
    height: 100%;
    min-height: 180px;
    margin-bottom: 0 !important;
    padding: 0;
    border-radius: 18px 0 0 18px;
}

.cars-view--list .car-box__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;

}

.cars-view--list .car-box__actions {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.5rem 1.5rem 1.5rem 0;
}

.cars-view--list .car-box__actions .btn {
    width: 100%;
}

/* lista mobile start */


.mobile-detected .cars-view--list .car-box {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    min-height: 92px;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    background: #f7f7f7;
    box-shadow: none;
}

.mobile-detected .cars-view--list .car-box__image {
    flex: 0 0 25%;
    width: 25%;
    min-width: 96px;
    max-width: 135px;
    margin-bottom: 0;
}

.mobile-detected .cars-view--list .car-box__image .car-img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 92px;
    margin-bottom: 0 !important;
    padding: 0;
    border-radius: 0;
    object-fit: cover;
}

.mobile-detected .cars-view--list .car-box__body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.12rem;
}

.mobile-detected .cars-view--list .title-car-box {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.mobile-detected .cars-view--list .car-box__body > .small.text-muted.mb-2,
.mobile-detected .cars-view--list .car-meta-pills,
.mobile-detected .cars-view--list .source-url-pill,
.mobile-detected .cars-view--list .car-box__actions,
.mobile-detected .cars-view--list .car-watchlist-button {
    display: none !important;
}

.mobile-detected .cars-view--list .car-box-count-pill {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
}

.mobile-detected .cars-view--list .car-box-count-pill .car-meta-pill__icon {
    display: none;
}

.mobile-detected .cars-view--list .car-box-count-pill .car-meta-pill__content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 0.25rem;
    min-width: 0;
}

.mobile-detected .cars-view--list .car-box-count-pill .text-muted.small {
    order: -1;
    flex: 0 0 100%;
    margin: 0 0 0.12rem;
    color: #1d1d1f !important;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
}

.mobile-detected .cars-view--list .car-box-count-pill .car-meta-pill__label {
    color: #1d1d1f;
    font-size: 0.82rem;
    letter-spacing: 0;
    line-height: 1.25;
}

.mobile-detected .cars-view--list .car-box-count-pill .car-meta-pill__label::after {
    content: ":";
}

.mobile-detected .cars-view--list .car-box-count-pill .car-meta-pill__value {
    color: #1d1d1f;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.mobile-detected .cars-view--list .car-box-count-pill .countdown {
    color: #1d1d1f;
    font-weight: 700;
}


/* lista mobile end */
.cars-view--grid .car-box {
    min-height: 340px;
}


.car-slider img {
    width: 100%;
    height: 320px;
    object-fit: contain;

}

.img-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;

}

.car-slider {
    position: relative;
    background: #fff;

}

.main-car-img {
    cursor: zoom-in;
}

.car-slider #main-car-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 16px;
    background: transparent;
    margin-bottom: 18px;
    display: block;
}

.car-thumbs-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.car-thumbs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.car-thumbs::-webkit-scrollbar {
    display: none;
}

.car-thumbs .img-thumbnail {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    opacity: 0.85;
}

.car-thumbs .img-thumbnail.active,
.car-thumbs .img-thumbnail:hover {
    border-color: #007bff;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.10);
    opacity: 1;
}

.car-thumbs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 1.5rem;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: transform .2s ease;
}

.car-thumbs-arrow.left {
    left: 3px;
}

.car-thumbs-arrow.right {
    right: 3px;
}

.car-thumbs-arrow:hover,
.car-thumbs-arrow:focus-visible {
    background: #fff;
    color: #000;
    transform: translateY(-50%) translateY(-3px);
}

@media (max-width: 600px) {
    .car-slider #main-car-img {
        height: 180px;
    }

    .car-thumbs .img-thumbnail {
        width: 40px;
        height: 40px;
    }

    .car-thumbs-arrow {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.1rem;
    }

    .car-thumbs-arrow.left {
        left: 8px;
    }

    .car-thumbs-arrow.right {
        right: 8px;
    }
}

.car-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1050;
}

.car-lightbox__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 1200px;
}

.car-lightbox__image-wrap {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.car-lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    object-fit: contain;
    background: #111;
}

.car-lightbox__counter {
    position: absolute;
    bottom: 10px;
    right: 14px;
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.55);
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.car-lightbox__close,
.car-lightbox__arrow {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.car-lightbox__arrow {
    flex: 0 0 auto;
    font-size: 22px;
}

.car-lightbox__arrow:hover,
.car-lightbox__close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-1px);
}

.car-lightbox__close {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 24px;
    z-index: 2;
}

@media (max-width: 768px) {
    .car-lightbox__inner {
        gap: 8px;
    }

    .car-lightbox__arrow {
        width: 38px;
        height: 38px;
    }
}

.link-car-box {

    text-decoration: none !important;
}


footer {
    padding-bottom: 0px !important;
    background-color: #b11915 !important;
    color: white !important;
}

footer a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer-bootom {
    color: rgba(255, 255, 255, 0.8);
    background-color: transparent !important;
    width: 100%;
    padding: 10px;
    padding-top: 40px;
    padding-bottom: 40px;
}


.img-front-page {

    width: 600px !important;
    max-width: 80% !important;
    margin: 0 auto;
    margin-bottom: 80px;
}

/* Auta.ch inspired accents */
.btn-car {
    background-color: #3f51b5;
    border-color: #3f51b5;
    border-radius: var(--bs-border-radius);
}

.btn-car:hover,
.btn-car:focus {
    background-color: #334296;
    border-color: #334296;
}

.countdown {
    color: #ff253a;
}

/* ------------------------------ */
/* Unified button & nav design    */
/* ------------------------------ */

.nav-pills .nav-item {
    margin-bottom: 20px;
}

.btn,
.nav-pills .nav-link {

    color: black !important;
    border: 1px solid black;
    margin-right: 10px;


}

.nav-pills .nav-link.active {

    color: #fff !important;
    border: 1px solid transparent;
    background-color: #b11915 !important;

}


a.btn,
button.btn {

    color: white !important;
}

a.btn:hover,
button.btn:hover {
    color: #e8e8e8 !important;
}

.form-box-hp {
    background: #ffffff;
    margin-bottom: 30px;
    position: relative;
    /* Soft, premium shadow */
    /* box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08); */
    padding: 40px;
    margin-top: 20px;
    border-radius: 30px;
    /* Reset margins for better control */
    margin-left: 0;
    margin-right: 0;
}

@media (min-width: 992px) {
    .form-box-hp {
        padding: 50px 60px;


    }
}

.form-box-hp input.form-control,
.form-box-hp .form-select,
.form-box-hp .select2-container--default .select2-selection--single {
    border: 1px solid #e5e5e5;
    background-color: #f9f9f9;
    border-radius: 12px;
    height: 50px;
    padding-left: 15px;
    font-size: 0.95rem;
    color: #1d1d1f;
    transition: all 0.2s ease;
}

.form-box-hp input.form-control:focus,
.form-box-hp .form-select:focus,
.form-box-hp .select2-container--default.select2-container--open .select2-selection--single,
.form-box-hp .select2-container--default.select2-container--focus .select2-selection--single {
    background-color: #fff;
    border-color: #ce1415;
    box-shadow: none !important;
    outline: none !important;
}

/* Fix for Select2 dropdown search field (often appended to body) */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    outline: none !important;
    box-shadow: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #b11915 !important;
    box-shadow: none !important;
    outline: none !important;
}

.form-box-hp .form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #444;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.szukaj-hp {
    margin-top: 30px !important;
    width: 100%;
    max-width: 220px !important;
    height: 50px;
    border-radius: 99px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1rem;
    box-shadow: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.szukaj-hp:hover {
    transform: translateY(-2px);
    box-shadow: none !important;
}



.search-hero {
    position: relative;
    margin-top: 0;
}

@media (min-width: 992px) {
    .search-hero {
        margin-top: 30rem;
    }
}

.search-hero__inner {
    display: grid;
    gap: 1.5rem;
}

.search-hero__form {
    position: relative;
    z-index: 1;
}

.search-hero__visual {
    display: none;
}

.search-form-wrapper {
    position: relative;
}

.search-form-wrapper>.row {
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .search-hero__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .search-hero__visual {
        display: block;
        position: relative;
        min-height: 360px;
        height: 100%;
    }

    .search-form-wrapper {
        position: relative;
    }

}

.car-meta-pills {
    gap: 10px;
}

.cars-meta-top .car-meta-pills {
    width: 100%;
}

.cars-meta-top .car-meta-pills .car-meta-pill {
    flex: 1 1 calc(50% - 10px);
    width: calc(50% - 10px);
}

.cars-meta-top .car-meta-pill[data-countdown-container] {
    flex: 1 1 100%;
    width: 100%;
}

.car-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 5px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f9f9fb 0%, #f4f4f6 100%);
    border: 1px solid #e5e6eb;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 24px rgba(17, 17, 17, 0.06);
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    min-width: 0;
    border-radius: 40px;
}

@media (min-width: 577px) {
    .car-box__body .car-meta-pills .car-meta-pill {
        flex: 1 1 calc(50% - 10px);
        width: calc(50% - 10px);
    }
}

.car-meta-pill__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background-color: #ffffff;
    color: #ce1415;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.car-meta-pill__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.car-meta-pill__label {
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6e6e73;
    line-height: 1.2;
}

.car-meta-pill__value {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.25;
}

@media (max-width: 576px) {
    .car-meta-pills {
        gap: 8px;
    }

    .car-meta-pill {
        width: 100%;
        justify-content: flex-start;
    }

    .car-box__body .car-meta-pills .car-meta-pill {
        flex: 1 1 calc(50% - 8px);
        width: calc(50% - 8px);
    }
}

.btn-car {

    background-color: #b11915 !important;
    border-radius: 10px !important;

}


.form-hp input {
    padding: 10px;
    margin-bottom: 0;
}

.form-hp .select2-container {
    width: 100% !important;
    margin-bottom: 0;
}

.form-hp__field {
    margin-bottom: 18px;
}

.form-hp__field .form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 1rem;
    color: #777777;
    font-weight: 300;
}

.form-hp__field .form-control,
.form-hp__field .form-select,
.form-hp__field .select2-container--default .select2-selection--single {
    border-radius: 10px;
    background-color: #fff;
    min-height: 44px;
}

.form-hp__field .form-control::placeholder {
    color: #9aa0a6;
}

.cars-search-js .select2-container--default .select2-selection--single {
    height: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
}

.cars-search-js .select2-selection__rendered {
    line-height: 24px;
    padding-left: 0;
}

.cars-search-js .select2-selection__arrow {
    height: 100%;
    display: none;
}

.cars-search-js .select2-selection__arrow b {
    display: none;
}

.cars-search-js .select2-container--default.select2-container--focus .select2-selection--single,
.cars-search-js .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #b90f15;
    box-shadow: 0 0 0 0.2rem rgba(185, 15, 21, 0.25);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #b90f15;
    color: #fff;
}

.search-header {
    margin-bottom: 40px !important;
}

.szukaj-auta-header {
    display: none !important;
}

#cars-search {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1.3fr repeat(4, 1fr) 0.9fr;
    gap: 12px;
    align-items: stretch;
}

.cars-search__field {
    width: 100%;
}

.cars-search__field .form-control,
.cars-search__field .form-select,
.cars-search__field .select2-container--default .select2-selection--single {
    height: 100%;
    min-height: 48px;
}

.cars-search__field .btn {
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#cars-search .select2-container {
    height: 100% !important;
}

#cars-search .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
}

#cars-search .select2-selection__rendered {
    line-height: 1.4;
    flex: 1 1 auto;
}

#cars-search .select2-selection__arrow {
    height: auto;
    display: none;
}

#cars-search .select2-selection__arrow b {
    display: none;
}

#cars-search .select2-container--default.select2-container--focus .select2-selection--single,
#cars-search .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #b90f15;
    box-shadow: 0 0 0 0.2rem rgba(185, 15, 21, 0.25);
}

@media (max-width: 1200px) {
    #cars-search {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #cars-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {

    .szukaj-auta-header {

        display: block !important;
        font-weight: bold;
    }


    #cars-search {
        display: none;
    }
}

.prop-cars-single-page a {

    color: black;
    font-weight: bold;
}

footer a.nav-link {
    color: black;
}

.nav-pills .nav-link {
    border-radius: 10px;
}

@media (max-width: 600px) {
    .nav-pills .nav-item {
        flex: 0 0 50%;
        margin-bottom: 10px;
    }

    .nav-pills .nav-link {
        font-size: 0.875rem;
        margin-right: 0;
        padding: 0.375rem 0.5rem;
    }
}

/* strona jak licytować */

.page-id-3575 h1 {

    text-align: center;
}

.page-id-3575 .wp-block-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    counter-reset: step;
}

.page-id-3575 .wp-block-list li {
    counter-increment: step;
    position: relative;
    padding-left: 48px;
    margin-bottom: 16px;
    line-height: 1.5;
    font-size: 16px;
    color: #1d1d1f;
    /* apple-like dark */
}

.page-id-3575 .wp-block-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.1em;

    width: 32px;
    height: 32px;
    border-radius: 50%;

    background-color: #ce1415;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 600;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
}

/* ===== Apple-like typography scoped to .post-4167 ===== */


/* H1 */
.page h1 {
    margin: 0 0 18px 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.08;
    font-size: clamp(28px, 3.4vw, 46px);
    color: #0b0b0f;
}

/* delikatny separator pod tytułem */
.page h1::after {
    content: "";
    display: block;
    height: 1px;
    margin-top: 14px;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, .06),
            rgba(0, 0, 0, .02),
            rgba(0, 0, 0, .06));
}

/* Akapity */
.post-4167 p {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(17, 17, 19, .78);
}

/* odstępy między wieloma <p> */
.post-4167 p+p {
    margin-top: 14px;
}

/* pierwszy akapit jako lead */
.post-4167 p:first-of-type {
    font-size: clamp(16px, 1.25vw, 18px);
    color: rgba(17, 17, 19, .85);
}

/* linki w treści */
.post-4167 p a {
    color: #0a66ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(10, 102, 255, .25);
}

.post-4167 p a:hover {
    border-bottom-color: rgba(10, 102, 255, .55);
}


.auction-bid-message-container {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.6;
}

.disclaimer-chf {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #f8cfd1;
    border: 1px solid #c1121f;
    color: #5f1011;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 20px rgba(193, 18, 31, 0.08);
    margin-bottom: 1rem;
}

.disclaimer-chf__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(193, 18, 31, 0.12);
    color: #c1121f;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.disclaimer-chf__text {
    color: #5f1011;
    line-height: 1.6;
}

.auction-login-alert {
    background: #f8cfd1;
    border: 1px solid #c1121f;
    color: #5f1011;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 20px rgba(193, 18, 31, 0.08);
}

.auction-login-alert__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(193, 18, 31, 0.12);
    color: #c1121f;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.auction-login-alert__link {
    color: #8a0c0d;
    font-weight: 600;
    text-decoration: underline;
}

.auction-login-alert__link:hover,
.auction-login-alert__link:focus {
    color: #6b090a;
}

.cars-view--grid .car-meta-pill {
    margin: 0;
    margin-top: 20px;

}

.cars-view--grid .car-box__body {
    margin-bottom: 0px;
}

.car-meta__style_a {

    background: none;
    background: transparent;
    border: 0px;
    box-shadow: none;
}

@media (min-width: 1200px) {

    .h1,
    h1 {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
    }
}

.content-from-ub__inner {
    max-height: none;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.content-from-ub.is-collapsed .content-from-ub__inner {
    max-height: var(--content-from-ub-collapsed-height, 160px);
    position: relative;
}

.content-from-ub.is-collapsed .content-from-ub__inner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 70%);
    pointer-events: none;
    filter: blur(2px);
}

.content-from-ub__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    color: #222;
    font-weight: 600;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.content-from-ub__toggle:hover,
.content-from-ub__toggle:focus {
    background: #f7f7f7;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.car-meta__style_full {

    width: 100%;
}

.car-box__body {
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.buttons-actions-auctions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
}

.buttons-actions-auctions>* {
    white-space: nowrap;
}

.content-from-ub h3,
.content-from-ub h2,
.content-from-ub h4 {

    font-size: 1rem;
    font-weight: bolder;
}

@media (max-width: 600px) {
    .car-slider #main-car-img {
        height: 300px;
    }
}

@media (min-width: 992px) {
    .navbar.bg-red-main {
        max-height: 60px;
    }
}

@media (max-width: 991.98px) {
    .navbar.bg-red-main {
        min-height: 60px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .navbar-brand img {
        max-height: 50px !important;
        width: auto;
    }
}

.front-hero {
    background-image: url('/wp-content/themes/szablon_cars_4/img/hero-small.png');
    background-repeat: no-repeat;
    background-position: center top -100px;
    background-size: 100%;
}

@media (min-width: 992px) {
    .front-hero .form-box-hp {
        margin-top: 60px;
    }
}



.h1-container {

    position: relative;
}

.h1-hp {
    font-weight: 100;
    position: absolute;
    top: 40px;
}

/* Why Choose Us Section */
.why-choose-us-header {
    font-weight: 700;
    margin-bottom: 2rem;
    color: #212121;
}

.why-choose-us-icon {
    font-size: 3rem;
    background: #b11915;
    /*background: -webkit-linear-gradient(45deg, #3E5CB8, #a53d98);*/
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.why-choose-us-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212121;
}

.why-choose-us-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
}

/* 
Custom Category Section Styles 
*/
.categories-wrapper {
    margin-top: 3rem;
    margin-bottom: 3rem;
    gap: 15px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #b11915 !important;
    /* Default red color for text */
    transition: all 0.3s ease;
    padding: 10px;
}

.category-item:hover {
    transform: translateY(-5px);
    color: #b70e09 !important;
    /* Darker red on hover */
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ce1415;
    /* Red icon */
    transition: color 0.3s ease;
}

.category-item:hover .category-icon {
    color: #b70e09;
}

.category-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    color: #b11915 !important;
}

/* Specific style for active item (Wszystkie pojazdy) placeholders */

@media (max-width: 768px) {
    .category-icon {
        font-size: 2rem;
    }

    .category-title {
        font-size: 0.75rem;
    }
}

.ending-bar {
    margin-top: 1.5rem;
    margin-bottom: 20px;
}

.ending-bar .ending-bar__inner {
    width: 100%;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #ce1415 0%, #b70e09 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ending-bar .tab-content {
    display: none;
}

.ending-bar .nav.nav-pills {
    margin: 0 !important;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    gap: 0.5rem;
}

.ending-bar .nav-pills .nav-item {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.ending-bar .nav-pills .nav-link {
    margin-right: 0;
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff !important;
    background-color: transparent;
    white-space: nowrap;
    font-weight: 600;
}

.ending-bar .nav-pills .nav-link:hover,
.ending-bar .nav-pills .nav-link:focus-visible {
    border-color: rgba(255, 255, 255, 0.72);
    background-color: rgba(255, 255, 255, 0.12);
}

.ending-bar .nav-pills .nav-link.active {
    background-color: #fff !important;
    border-color: #fff;
    color: #b11915 !important;
}

.ending-bar .cars-toolbar {
    margin-bottom: 0;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.ending-bar .cars-view-controls {
    margin-bottom: 0 !important;
}

.ending-bar .cars-view-toggle-btn {
    min-width: 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.14);
}

.ending-bar .cars-view-toggle-btn:hover,
.ending-bar .cars-view-toggle-btn:focus-visible {
    border-color: rgba(255, 255, 255, 0.75);
    background-color: rgba(255, 255, 255, 0.24);
}

.ending-bar .cars-view-toggle-label {
    display: none;
}

.ending-bar .cars-view-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1.2rem;
}

.ending-bar .cars-view-toggle-icon::before {
    vertical-align: middle;
}

.ending-bar .sorting {
    margin: 0;
}

.ending-bar .sorting__select {
    min-width: 250px;
    min-height: 46px;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, 0.45);
    background-color: rgba(255, 255, 255, 0.14);
    color: #fff;
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.ending-bar .sorting__select:focus,
.ending-bar .sorting__select:focus-visible {
    border-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.18);
}

.ending-bar .sorting__select option {
    color: #1d1d1f;
}

@media (max-width: 991.98px) {
    .ending-bar .ending-bar__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .ending-bar .nav.nav-pills {
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .ending-bar .cars-toolbar {
        width: 100%;
        justify-content: space-between;
    }

    .ending-bar .sorting {
        flex: 1 1 auto;
    }

    .ending-bar .sorting__select {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .ending-bar .ending-bar__inner {
        border-radius: 12px;
        padding: 0.8rem 0.75rem;
    }

    .ending-bar .cars-toolbar {
        gap: 0.5rem;
    }

    .ending-bar .cars-view-toggle-btn {
        min-width: 42px;
        width: 42px;
        height: 42px;
    }

    .ending-bar .sorting__select {
        min-height: 42px;
    }
}

/* Related cars slider */
.related-cars-slider-wrap {
    position: relative;
    overflow: hidden;
}

.related-cars-slider-wrap .source-url-pill{

    display: none;
}

.related-cars-slider-wrap .car-box-count-pill {

    width: 100%;
}

.related-cars-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    /* Bootstrap g-4 equivalent gap (1.5rem = 24px) */
    padding-bottom: 10px;
    /* Space for scrollbar if visible/needed */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
}

.related-cars-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Webkit */
}

.related-car-item {
    flex: 0 0 100%;
    /* Mobile: 1 item per view */
    max-width: 100%;
}

@media (min-width: 768px) {
    .related-car-item {
        flex: 0 0 calc(50% - 0.75rem);
        /* Tablet: 2 items */
        max-width: calc(50% - 0.75rem);
    }
}

@media (min-width: 992px) {
    .related-car-item {
        flex: 0 0 calc(25% - 1.125rem);
        /* Desktop: 4 items (accounting for gap) */
        max-width: calc(25% - 1.125rem);
    }
}

.related-cars-arrows {
    display: flex;
    gap: 10px;
}

.related-cars-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.related-cars-arrow:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.related-cars-arrow:active {
    background: #e9ecef;
}

/* Fix car-box inside slider to take full height */
.related-car-item .car-box {
    height: 100%;
}

@media (max-width: 767.98px) {
    .ending-bar .nav.nav-pills {
        overflow-x: visible !important;
        flex-wrap: nowrap !important;
        gap: 5px;
    }

    .ending-bar .nav-pills .nav-item {
        flex: 1 1 50%;
        width: 50%;
        margin-bottom: 0 !important;
        margin-right: 0 !important;
    }

    .ending-bar .nav-pills .nav-link {
        width: 100%;
        text-align: center;
        margin-right: 0 !important;
        justify-content: center;
        display: flex;
        align-items: center;
    }
}

/* Mobile Login Icon Animation */
@keyframes pulse-white {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.mobile-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse-white 2s infinite;
    margin-right: 10px !important;
}

.mobile-login-icon i {
    font-size: 1.5rem !important;
}

.mobile-login-icon:hover,
.mobile-login-icon:hover i {
    color: #ffffff !important;
}body { overflow-x: hidden; max-width: 100vw; }

.mobile #serch-button-mobile-hp {


}
.mobile-detected #cars-search-hp {

    display: none;
}

.mobile-detected  .cs-hp.visible-hp {

    display: block !important;
}

.mobile-detected  .front-hero {

    background-position: center top -10px;
    background-size: 100%;

}

.mobile-detected .form-box-hp {

    background: transparent;
    margin-top:30px;
}

.mobile-detected  #serch-button-mobile-hp {

    position: absolute;
    top:-15px;
    left:0px;
}
.mobile-detected  .search-hero {

    min-height: 250px;
}

.mobile-detected  .h1-hp {

    top:200px;
    color:black !important;
    font-size: 1.3rem;
    width: 95%;
}

.mobile-detected.form-is-open .form-box-hp {
    background: white;
     box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.mobile-detected.form-is-open #serch-button-mobile-hp {

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
