/* Car Search Pages Styles */

#przeglad-samochodow {
    color: #2D2D2D;
}

#przeglad-samochodow p {
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
}

#przeglad-samochodow h2,
#przeglad-samochodow .h2 {
    font-size: 40px;
}

#przeglad-samochodow h3,
#przeglad-samochodow .h3 {
    font-size: 20px;
}

#przeglad-samochodow h2, 
#przeglad-samochodow .h2,
#przeglad-samochodow h3, 
#przeglad-samochodow .h3,
#przeglad-samochodow h4,
#przeglad-samochodow .h4,
#przeglad-samochodow h5, 
#przeglad-samochodow .h5,
#przeglad-samochodow h6,
#przeglad-samochodow .h6,
#przeglad-samochodow h1,
#przeglad-samochodow .h1 {
    color: #2D2D2D;
}

/* Strona kategorii samochodów */
.categories-page {
    min-height: 100vh;
}

/* Header sekcja */
.categories-header {
    padding: 116px 0 46px 0;
}

#przeglad-samochodow .categories-header h1,
#przeglad-samochodow .categories-header .h1 {
    color: #28BD3F;
    font-size: 48px;
    margin: 0;
    line-height: 1em;
}

/* Sekcje kategorii */
.category-section {
    background-color: #F2F2F2;
    padding: 55px 0 84px;
    margin-bottom: 40px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.section-header {
    margin-bottom: 40px;
}

/* Karty kategorii i marek - ujednolicone */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(209px, 1fr));
    gap: 29px;
    margin-top: 40px;
}

.brands-container {
    position: relative;
    margin-top: 20px;
    margin-bottom: 40px;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    max-height: 130px;
    overflow: hidden;
    overflow-x: hidden;
    transition: max-height 0.5s ease-in-out;
    z-index: 1; /* Niski z-index dla grida */
    width: 100%;
}

.brands-grid.expanded {
    max-height: 2000px; /* Wystarczająco duża wartość dla wszystkich marek */
    overflow: hidden; /* Zmienione z visible na hidden */
    margin-bottom: 60px; /* Dodaj margines żeby kafelki nie nachodziły na przycisk */
}

.expand-brands-btn::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 47px;
    background: linear-gradient(transparent, #F2F2F2);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.expand-brands-btn.expanded::before {
    opacity: 0;
}

.expand-brands-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 35px;
    position: absolute;
    bottom: -18px;
    left: 0;
    z-index: 1000;
    color: #2D2D2D;
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.expand-brands-btn.expanded {
    bottom: -50px;
}

.expand-brands-btn svg {
    margin-left: 10px;
    margin-bottom: 2px;
}

.expand-brands-btn:hover {
    transform: translateY(+2px);
}


.expand-brands-btn.hidden {
    display: none;
}

.category-card {
    width: 209px;
    height: 209px;
    flex-shrink: 0;
    border-radius: 15px;
    background-color: #FFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    border: none;
}

.brand-card {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: white;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    border: none;
    z-index: 1; /* Niski z-index dla kafelków */
}

.brand-card .brand-logo img {
    width: 35.477px;
    height: 35.477px;
    top: 10px;
    position: relative;
}

h2 .brand-logo-img,
.h2 .brand-logo-img {
    width: 36px;
    height: 36px;
    margin-right: 12px;
    top: 4px;
    position: relative;
}

.category-card:hover,
.brand-card:hover {
    background-color: #28BD3F;
}

.category-card:hover h3,
.brand-card:hover {
    color: #FFF;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.brand-logo {
    font-size: 1.5rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.category-name {
    font-size: 20px;
}

.brand-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

/* Sekcja marek */
.brands-section {
    padding: 30px 0 46px 0;
}

.brands-subsection {
    margin-bottom: 50px;
}

.subsection-title {
    margin: 0 0 20px;
}

#przeglad-samochodow .stopka {
    margin-top: 90px;
    padding: 0 20px;
}

#przeglad-samochodow .stopka h3 {
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 20px;
}

#przeglad-samochodow .stopka p {
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: 0.18px;
    margin-bottom: 15px;
}

/* Responsywność */
@media (max-width: 768px) {
    .categories-header h1,
    .categories-header .h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
        max-height: 200px;
    }
    
    .category-card {
        width: 180px;
        height: 180px;
        padding: 20px 15px;
    }
    
    .brand-card {
        width: 80px;
        height: 80px;
        padding: 10px 5px;
    }
    
    .brand-logo {
        font-size: 1.2rem;
    }
    
    .brand-name {
        font-size: 10px;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
    }
    
    .samochody-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    #przeglad-samochodow .stopka {
        margin-top: 60px;
        padding: 0 15px;
    }
    
    #przeglad-samochodow .stopka h3 {
        font-size: 32px;
        margin-bottom: 18px;
    }
    
    #przeglad-samochodow .stopka p {
        font-size: 16px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .categories-header {
        padding: 40px 0 30px;
    }
    
    .categories-header h1,
    .categories-header .h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    #przeglad-samochodow .stopka {
        margin-top: 40px;
        padding: 0 10px;
    }
    
    #przeglad-samochodow .stopka h3 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    #przeglad-samochodow .stopka p {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 8px;
        max-height: 180px;
    }
    
    .category-card {
        width: 150px;
        height: 150px;
    }
    
    .brand-card {
        width: 70px;
        height: 70px;
        padding: 8px 4px;
    }
    
    .brand-logo {
        font-size: 1rem;
    }
    
    .brand-name {
        font-size: 9px;
    }
}

/* Animacje */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.brand-card {
    animation: fadeInUp 0.6s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }
.category-card:nth-child(6) { animation-delay: 0.6s; }



/* Main container */

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Filter controls */
.filter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: end;
}

.filter-controls label {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

/* Sort select styles moved to combined select styles below */

.view-toggle {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 20px;
}

.view-btn {
    padding: 0;
    background-color: transparent;
    border: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.view-btn svg path {
    fill: #f2f2f2;
    transition: all 0.3s ease;
}

.view-btn:hover svg path,
.view-btn.active svg path {
    fill: #28BD3F;
}

/* Main layout - Sidebar on the left */
.main-content {
    display: grid;
    grid-template-columns: 324px 1fr;
    gap: 20px;
    align-items: start;
}

/* Sidebar */
.sidebar {
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-section {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filters-wrapper {
    border-radius: 15px;
    background-color: white;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
}

.filter-section h3,
.filter-section .h3 {
    margin: 0 0 10px 0;
    font-weight: 500 !important;
}

/* Przeznaczenie buttons */
.przeznaczenie-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
    gap: 20px;
}

.przeznaczenie-buttons.marka-filter {
    display: flex;
    flex-direction: column;
}

.przeznaczenie-buttons.marka-filter .icon {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
}

.przeznaczenie-buttons.marka-filter .icon svg {
    max-width: 52px;
    height: 32px;
    margin-right: 10px;
}

.przeznaczenie-buttons.marka-filter .przeznaczenie-btn {
    width: 100%;
    background-color: #F2F2F2;
    border-radius: 0;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
}


.przeznaczenie-btn {
    width: 152px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 15px;
    background-color: #FFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    font-size: 18px;
    font-weight: 500;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    border: none;
    gap: 15px;

}

.przeznaczenie-btn:hover,
.przeznaczenie-btn.active {
    background: #28BD3F;
    color: white;
}

.przeznaczenie-btn .icon {
    font-size: 18px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: end;
}

.przeznaczenie-btn .icon svg {
    width: 100%;
    max-width: 60px;
    height: 36px;
}

.current-przeznaczenie {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #F8F9FA;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
    color: #28BD3F;
}

.current-przeznaczenie .icon {
    font-size: 20px;
}

/* Standard select styles - button-like appearance similar to checkboxes */
.sidebar select {
    height: 39px;
    border: 0;
    padding: 0 15px;
    font-size: 16px;
    background: #F2F2F2;
    color: #838D95;
    transition: all 0.3s ease;
    width: 100%;
    font-weight: 400;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' fill='none'%3e%3cpath d='M0.142787 0.938335L3.55548 4.80157C3.61049 4.86381 3.67873 4.91376 3.75551 4.94801C3.8323 4.98227 3.91581 5 4.00032 5C4.08483 5 4.16835 4.98227 4.24513 4.94801C4.32191 4.91376 4.39015 4.86381 4.44516 4.80157L7.85786 0.938335C8.18355 0.569585 7.91352 0 7.41302 0H0.586647C0.0861442 0 -0.183883 0.569585 0.142787 0.938335Z' fill='%232D2D2D'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 8px 5px;
    padding-right: 35px;
    border-radius: 10px;
}

/* Special styles for sort-select */
.sort-select {
    height: 39px;
    border: 0;
    padding: 0 15px;
    font-size: 16px;
    background: #F2F2F2;
    color: #838D95;
    transition: all 0.3s ease;
    font-weight: 400;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' fill='none'%3e%3cpath d='M0.142787 0.938335L3.55548 4.80157C3.61049 4.86381 3.67873 4.91376 3.75551 4.94801C3.8323 4.98227 3.91581 5 4.00032 5C4.08483 5 4.16835 4.98227 4.24513 4.94801C4.32191 4.91376 4.39015 4.86381 4.44516 4.80157L7.85786 0.938335C8.18355 0.569585 7.91352 0 7.41302 0H0.586647C0.0861442 0 -0.183883 0.569585 0.142787 0.938335Z' fill='%232D2D2D'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 8px 5px;
    padding-right: 35px;
    border-radius: 10px;
}

/* Sort select label styles */
.sort-select-label {
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hover states */
.sidebar select:hover {
    color: #2D2D2D;
}

.sort-select:hover {
    color: #2D2D2D;
}

/* Focus states */
.sidebar select:focus {
    outline: none;
}

.sort-select:focus {
    outline: none;
}

/* Disabled states */
.sidebar select:disabled {
    background-color: #f8f9fa;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' fill='none'%3e%3cpath d='M0.142787 0.938335L3.55548 4.80157C3.61049 4.86381 3.67873 4.91376 3.75551 4.94801C3.8323 4.98227 3.91581 5 4.00032 5C4.08483 5 4.16835 4.98227 4.24513 4.94801C4.32191 4.91376 4.39015 4.86381 4.44516 4.80157L7.85786 0.938335C8.18355 0.569585 7.91352 0 7.41302 0H0.586647C0.0861442 0 -0.183883 0.569585 0.142787 0.938335Z' fill='%23999'/%3e%3c/svg%3e");
}

.sort-select:disabled {
    background-color: #f8f9fa;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' fill='none'%3e%3cpath d='M0.142787 0.938335L3.55548 4.80157C3.61049 4.86381 3.67873 4.91376 3.75551 4.94801C3.8323 4.98227 3.91581 5 4.00032 5C4.08483 5 4.16835 4.98227 4.24513 4.94801C4.32191 4.91376 4.39015 4.86381 4.44516 4.80157L7.85786 0.938335C8.18355 0.569585 7.91352 0 7.41302 0H0.586647C0.0861442 0 -0.183883 0.569585 0.142787 0.938335Z' fill='%23999'/%3e%3c/svg%3e");
}

/* Option styles */
.sidebar select option,
.sort-select option {
    padding: 10px 15px;
    font-size: 16px;
    color: #2D2D2D;
    background: white;
    font-weight: 500;
}

.sidebar select option:hover,
.sort-select option:hover {
    background-color: #28BD3F;
    color: white;
}

.sidebar select option:checked,
.sort-select option:checked {
    background-color: #F8F9FA;
    color: #28BD3F;
}

/* Responsive standard selects */
@media (max-width: 768px) {
    .sidebar select {
        height: 35px;
        font-size: 14px;
        padding-right: 30px;
        background-size: 6px 4px;
    }
    
    .sort-select {
        height: 35px;
        font-size: 14px;
        padding-right: 30px;
        background-size: 6px 4px;
    }
}

/* Filter buttons */

.fuel-buttons,
.transmission-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #E0E0E0;
    background: white;
    color: #2D2D2D;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    margin: 5px;
}

.filter-btn:hover {
    border-color: #28BD3F;
    color: #28BD3F;
}

.filter-btn.active {
    background: #28BD3F;
    color: white;
    border-color: #28BD3F;
}

/* Fuel and transmission buttons */
.fuel-btn, .transmission-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #F2F2F2;
    color: #2D2D2D;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    border: none;
}

.fuel-btn:hover, .transmission-btn:hover,
.fuel-btn.active, .transmission-btn.active {
    background: #28BD3F;
    color: white;
}

/* Checkbox styles for multiple selection filters */

.checkbox-wrapper:hover {
    background: #28BD3F;
    color: white;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: #28BD3F;
    color: white;
}

.checkbox-wrapper .przeznaczenie-checkbox + .checkbox-custom {
    color: #838D95 !important;
    font-weight: 500;
    background-color: #F2F2F2 !important;
}

.checkbox-wrapper:hover .przeznaczenie-checkbox + .checkbox-custom,
.checkbox-wrapper .przeznaczenie-checkbox:checked + .checkbox-custom {
    background-color: #F2F2F2 !important;
    color: #2D2D2D !important;
}

.checkbox-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    position: relative;
    padding: 10px 15px;
    background-color: #F2F2F2;
    color: #2D2D2D;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;

}

.checkbox-wrapper:hover .checkbox-custom {
    background: #28BD3F;
    color: white;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background: #28BD3F;
    color: white;
}

.checkbox-custom .icon {
    font-size: 1.2em;
    margin-right: 5px;
}

/* Year range */
.year-range {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 16px;
    font-weight: 400;
}

.year-range input[type="number"] {
    flex: 1;
    height: 39px;
    border: 1px solid #F2F2F2;
    padding: 10px 15px;
    font-size: 16px;
    background: white;
    color: #2D2D2D;
    transition: all 0.3s ease;
}

.year-range input[type="number"]:hover {
    border-color: #28BD3F;
}

.year-range input[type="number"]:focus {
    outline: none;
    border-color: #28BD3F;
}

.results-area h2,
.results-area .h2 {
    margin: 0;
}

/* Results area */
.results-area {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    overflow-x: hidden;
}

.results-area h2,
.results-area .h2 {
    margin-bottom: 20px;
    font-weight: 500;
}

.model-page .results-area h2,
.model-page .results-area .h2 {
    margin-bottom: 50px;
}

/* Cars grid */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    position: relative;
    min-height: 270px;
}

.cars-grid .no-cars {
    position: absolute;
    width: 100%;
    padding: 50px 24px;
}

.cars-grid .no-cars h3 {
    font-size: 36px !important;
    margin: 0;
}

.cars-grid .no-cars a {
    font-size: 16px;
    font-weight: 400;
    color: #2D2D2D;
}

/* Timer styles for grid view */
.cars-grid .car-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.cars-grid .timer-header {
    text-align: center;
}

.cars-grid .timer-days,
.cars-grid .timer-hours,
.cars-grid .timer-minutes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 30px;
}

.cars-grid .timer-labels {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cars-grid .timer-unit {
    min-width: 30px;
    text-align: center;
}

.cars-grid .auction-ended {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b6b;
    text-align: center;
}

/* Cars grid timer section - copied from car-list */
.cars-grid .car-timer-section {
    border-radius: 0 0px 15px 15px;
    border: 1px solid #F2F2F2;
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    margin: 10px;
    padding: 20px;
}

.cars-grid .car-timer {
    display: flex;
    flex-direction: column;
}

.cars-grid .timer-label {
    font-size: 16px;
    font-weight: 600;
}

.cars-grid .timer-display {
    display: flex;
    gap: 12px;
    font-size: 30.857px;
    font-style: normal;
    font-weight: 300;
}

.cars-grid .timer-days,
.cars-grid .timer-hours,
.cars-grid .timer-minutes {
    display: flex;
    flex-direction: column;
    align-items: start;
    min-width: 35px;
}

.cars-grid .timer-labels {
    display: flex;
    gap: 12px;
    text-transform: uppercase;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    bottom: 8px;
    position: relative;
}

.cars-grid .timer-unit {
    min-width: 35px;
    text-align: start;
}

.cars-grid .auction-ended {
    font-size: 16px;
    font-weight: 600;
    color: #FEAF28;
    line-height: 1;
}

.cars-grid .archival .cena-wrapper {
    color: #AAAFB6;
}

/* Cars grid car-price - copied from car-list */
.cars-grid .car-price {
    font-size: 16px;
    margin: auto;
    text-align: center;
}

.cars-grid .cena-wrapper {
    display: flex;
    gap: 10px;
    color: #28BD3F;
    font-size: 30.857px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    align-items: anchor-center;
}

.cars-grid .cena-wrapper span {
    font-size: 13.075px;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cars-grid .car-price strong {
    font-weight: 600;
}

/* Cars grid car-timer - copied from car-list */
.cars-grid .car-timer {
    display: flex;
    flex-direction: column;
}

.cars-grid .timer-header .timer-label {
    font-size: 16px;
    font-weight: 600;
}

/* Cars list view */
.cars-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.car-image-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 278px;
}

.cars-list .car-card {
    display: grid;
    grid-template-columns: 338px 1fr 213px;
    gap: 0px;
    border-radius: 12px;
    background-color: white;
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
   
}

.cars-list .car-image {
    background: #d7d7d7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2D2D2D;
    width: 100%;
    height: 100%;
}

.cars-list .car-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
    flex: 1;
    padding: 20px 5px 10px 30px;
}

.cars-list .car-title {
    font-size: 36px !important;
    font-weight: 500;
    color: #2D2D2D;
    margin: 0;
}

.cars-list .car-specs {
    gap: 14px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
}

.cars-grid .car-spec,
.cars-list .car-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #666;
}

.cars-grid .car-spec { 
    gap: 16px;
}

.cars-grid .car-spec-text,
.cars-list .car-spec-text {
    font-size: 16px;
    font-weight: 400;
    color: #2D2D2D;
    font-weight: 300;;
    line-height: normal;
}

.cars-grid .car-spec-text strong,
.cars-list .car-spec-text strong {
    font-weight: 700;
}

.cars-list .car-spec svg {
    margin-right: 10px;
}

.cars-list .car-price {
    font-size: 16px;
}
.cars-list .cena-wrapper {
    display: flex;
    gap: 10px;
    color: #28BD3F;
    font-size: 30.857px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    align-items: anchor-center;
}
.cars-list .cena-wrapper span {
    font-size: 13.075px;
    font-weight: 300;
    display: flex;
    flex-direction: column;
}
.cars-list .car-price strong {
    font-weight: 600;
}

.cars-list .car-actions {
    display: block;
}

.cars-grid .car-btn,
.cars-list .car-btn {
    text-decoration: none;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
    height: 40px;
}

.cars-grid .car-btn {
    margin: auto;
    width: 220px;
}

.cars-grid h3 {
    font-size: 24px !important;
}

.cars-grid .car-btn.primary,
.cars-list .car-btn.primary {
    border-radius: 100px;
    border: 2px solid #FEAF28;
    background: transparent;
    padding: 12px 24px;
    color: #2d2d2d;
}

.cars-grid .car-btn.primary:hover,
.cars-list .car-btn.primary:hover {
    background-color: #FEAF28;
    color: white;
}
.cars-grid .car-btn.primary svg path,
.cars-list .car-btn.primary svg path {transition: all 0.3s ease;}

.cars-grid .car-btn.primary:hover svg path,
.cars-list .car-btn.primary:hover svg path {fill: white;}

.cars-grid .car-btn.secondary,
.cars-list .car-btn.secondary {
    background-color: transparent;
    color: #2D2D2D;
    border-radius: 100px;
    border: 2px solid  #28BD3F;
    padding: 12px 24px;
    margin-right: 20px;
}

.cars-grid .car-btn.secondary {margin-right: auto;}

.cars-grid .car-btn.secondary:hover,
.cars-list .car-btn.secondary:hover {
    background-color: #28BD3F;
    color: white;
}

.cars-list .car-timer-section {
    border-radius: 0 15px 15px 0;
    border: 1px solid #F2F2F2;
    margin-top: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cars-list .car-timer {
    display: flex;
    flex-direction: column;
}

.cars-list .timer-label {
    font-size: 16px;
    font-weight: 600;
}

.cars-list .timer-display {
    display: flex;
    gap: 12px;
    font-size: 30.857px;
    font-style: normal;
    font-weight: 300;
}

.cars-list .timer-days,
.cars-list .timer-hours,
.cars-list .timer-minutes {
    display: flex;
    flex-direction: column;
    align-items: start;
    min-width: 35px;
}

.cars-list .timer-labels {
    display: flex;
    gap: 12px;
    text-transform: uppercase;
    font-size: 12px;
    font-style: normal;
    font-weight: 300;
    bottom: 8px;
    position: relative;
}

.cars-list .timer-unit {
    min-width: 35px;
    text-align: start;
}

.cars-list .auction-ended {
    font-size: 16px;
    font-weight: 600;
    color: #FEAF28;
    line-height: 1;
}

.cars-list .archival .cena-wrapper {
    color: #AAAFB6;
}

/* Car cards */
.car-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease;
}

.car-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.car-content {
    padding: 20px;
}

.car-title {
    font-size: 18px;
    font-weight: 600;
    color: #2D2D2D;
    margin: 0 0 15px 0;
}

.car-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.car-spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.cars-grid .car-specs {
    margin-bottom: 30px;
    min-height: 182px;
    margin-top: 24px;
}

.cars-grid .car-content {
    padding: 20px 30px 20px 30px;
}

.car-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.cars-grid .car-actions {
    flex-direction: column;
    margin-top: 30px;
}

.car-btn.primary {
    background: #28BD3F;
    color: white;
}

.car-btn.primary:hover {
    background: #22A033;
}

.car-btn.secondary {
    background: #F8F9FA;
    color: #2D2D2D;
    border: 1px solid #E0E0E0;
}

.car-btn.secondary:hover {
    background: #E9ECEF;
}

.timer-labels {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #2d2d2d;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: start;
    margin-top: 30px;
    align-items: center;
}

.pagination button {
    border: 0;
    background-color: transparent;
    color: #2D2D2D;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    padding: 0;
}

.pagination button:hover {
    border-color: #28BD3F;
    color: #28BD3F;
}

.pagination button.active {
    color: white;
    background-color: #FEAF28;
}

.pagination-dots {
    padding: 10px 8px;
    color: #666;
    font-weight: 500;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
    
    .filter-controls label {
        text-align: center;
    }
    
    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .cars-list .car-card {
        grid-template-columns: 1fr;
    }
    
    .cars-list .car-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .search-header {
        padding: 20px;
    }
    
    .search-header h1 {
        font-size: 32px;
    }
    
    .filter-controls {
        padding: 15px;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
    }
}

#przeglad-samochodow .no-cars {
    border-radius: 15px;
    border: 2px solid #FEAF28;
    text-align: center;
    padding: 50px 24px;
}

#przeglad-samochodow .no-cars p {
    font-size: 22px;
    margin-top: 8px;
}

#przeglad-samochodow .no-cars h3 {
    font-size: 36px;
    margin: 0;
}

#przeglad-samochodow .no-cars a {
    color: white;
    text-decoration: none;
    display: inline-flex;
    padding: 20px 40px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #28BD3F;
    border-radius: 100px;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    transition: all 0.3s ease;
}

#przeglad-samochodow .no-cars a:hover {
    background-color: #22A033;
    color: white;
}

/* Archival cars styling */
.car-card.archival .car-image-section{
    opacity: 0.5;
    position: relative;
    transition: opacity 0.3s ease;
}

.car-card.archival:hover .car-image-section {
    opacity: 1;
}

.archival-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FF6B6B;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Archival badge for list view */
.cars-list .archival-badge {
    top: 15px;
    right: 15px;
    font-size: 11px;
    padding: 3px 6px;
}

/* Archival badge for grid view */
.cars-grid .archival-badge {
    top: 10px;
    right: 10px;
    font-size: 10px;
    padding: 2px 5px;
}

/* Models section styles */
.models-container {
    position: relative;
    margin-top: 20px;
    margin-bottom: 40px;
}

.models-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 230px;
    overflow: hidden;
    overflow-x: hidden;
    transition: max-height 0.5s ease-in-out;
    z-index: 1;
    width: 100%;
}

.models-list.expanded {
    max-height: 2000px;
    overflow: hidden;
    margin-bottom: 20px;
}

.expand-models-btn::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, #F2F2F2);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.expand-models-btn.expanded::before {
    opacity: 0;
}

.expand-models-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 15px;
    background: #28BD3F;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 35px;
    position: absolute;
    bottom: -60px;
    left: 0;
    z-index: 1000;
}

.expand-models-btn:hover {
    background: #22A033;
    transform: translateY(-1px);
}

.expand-models-btn.collapsed {
    background: #FF6B6B;
}

.expand-models-btn.collapsed:hover {
    background: #E55555;
}

.expand-models-btn.hidden {
    display: none;
}

.model-card {
    background-color: white;
    color: #2D2D2D;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    border: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    padding: 15px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    line-height: normal;
}

.model-card:hover {
    background-color: #28BD3F;
    color: white;
    border-color: #28BD3F;
}

/* Responsive models */
@media (max-width: 768px) {
    .models-list {
        max-height: 200px;
    }
    
    .model-card {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .models-list {
        max-height: 180px;
    }
    
    .model-card {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Select2 styling to match standard sidebar selects */
.sidebar .select2-container--default .select2-selection--single {
    height: 39px !important;
    border: 0 !important;
    padding: 0 15px !important;
    padding-right: 60px !important; /* More space for clear button and arrow */
    font-size: 16px !important;
    background: #F2F2F2 !important;
    color: #2D2D2D !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important; /* For absolute positioning of clear button */
}

.sidebar .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 !important;
    line-height: 39px !important;
    color: #838D95 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
}

.sidebar .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 39px !important;
    width: 35px !important;
    right: 8px !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' fill='none'%3e%3cpath d='M0.142787 0.938335L3.55548 4.80157C3.61049 4.86381 3.67873 4.91376 3.75551 4.94801C3.8323 4.98227 3.91581 5 4.00032 5C4.08483 5 4.16835 4.98227 4.24513 4.94801C4.32191 4.91376 4.39015 4.86381 4.44516 4.80157L7.85786 0.938335C8.18355 0.569585 7.91352 0 7.41302 0H0.586647C0.0861442 0 -0.183883 0.569585 0.142787 0.938335Z' fill='%232D2D2D'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 8px 5px !important;
    border: none !important;
}

.sidebar .select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none !important;
}

/* Select2 clear button - show the default one */
.select2-container--default .select2-selection--single .select2-selection__clear {
    display: inline-block !important;
    position: absolute !important;
    right: 35px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #999 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    text-decoration: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #333 !important;
}

/* Hover states */
.sidebar .select2-container--default.select2-container--open .select2-selection--single,
.sidebar .select2-container--default .select2-selection--single:hover {
    color: #2D2D2D !important;
}

.sidebar .select2-container--default.select2-container--open .select2-selection--single .select2-selection__rendered,
.sidebar .select2-container--default .select2-selection--single:hover .select2-selection__rendered {
    color: #2D2D2D !important;
}
/* Focus states */
.sidebar .select2-container--default.select2-container--focus .select2-selection--single {
    outline: none !important;
}

.sidebar .select2-container--default.select2-container--focus .select2-selection--single .select2-selection__rendered {
    color: #2D2D2D !important;
    
}

.select2-container--open .select2-dropdown--below {
    top: 30px !important;
    /* border: none;
    background-color: #f2f2f2; */
}

/* Disabled states */
.sidebar .select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f8f9fa !important;
    color: #999 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.sidebar .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered {
    color: #999 !important;
}

.sidebar .select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__arrow {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5' fill='none'%3e%3cpath d='M0.142787 0.938335L3.55548 4.80157C3.61049 4.86381 3.67873 4.91376 3.75551 4.94801C3.8323 4.98227 3.91581 5 4.00032 5C4.08483 5 4.16835 4.98227 4.24513 4.94801C4.32191 4.91376 4.39015 4.86381 4.44516 4.80157L7.85786 0.938335C8.18355 0.569585 7.91352 0 7.41302 0H0.586647C0.0861442 0 -0.183883 0.569585 0.142787 0.938335Z' fill='%23999'/%3e%3c/svg%3e") !important;
}

/* Dropdown styling */
.sidebar .select2-dropdown {
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

.sidebar .select2-container--default .select2-results__option {
    padding: 10px 15px;
    font-size: 16px;
    color: #2D2D2D;
    background: white;
    font-weight: 500;
}

.sidebar .select2-container--default .select2-results__option:hover {
    background-color: #28BD3F;
    color: white;
}

.sidebar .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #28BD3F;
    color: white;
}

.sidebar .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #F8F9FA;
    color: #28BD3F;
}

/* Search input styling */
.sidebar .select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 16px;
    color: #2D2D2D;
    background: white;
}

.sidebar .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #28BD3F;
    box-shadow: 0 0 0 2px rgba(40, 189, 63, 0.1);
}

/* Responsive Select2 */
@media (max-width: 768px) {
    .select2-container--default .select2-selection--single {
        height: 35px;
        font-size: 14px;
        padding: 0 12px;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 35px;
        font-size: 14px;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 35px;
        width: 30px;
        background-size: 6px 4px;
    }
    
    .select2-container--default .select2-results__option {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Model page specific styles */
.model-page .main-content {
    grid-template-columns: 1fr 324px !important;
}

.model-page .model-sidebar {
    order: 2;
}

.model-page .container-header {
    grid-template-columns: 1fr 324px !important;
    display: grid;
    gap: 20px;
}

.model-page .category-section {
    margin-bottom: 0;
}

.model-page .archival-section .car-card.archival {
    background-color: #F8F9FA;
}


#przeglad-samochodow.model-page .categories-header h1 {
    color: #2D2D2D;
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

#przeglad-samochodow.model-page .categories-header h1 img {
    width: 36px;
    height: 36px;
}

#przeglad-samochodow.model-page .categories-header p {
    margin-bottom: 0;
}

.model-page .back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 26px;
    background-color: transparent;
    color: #2D2D2D;
    text-decoration: none;
    border-radius: 100px;
    border: 2px solid #28BD3F;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.model-page .back-button:hover {
    background-color: #28BD3F;
    color: white;
}

.model-page .back-button:hover svg path {
    fill: white;
}

.model-page .back-button svg {
    width: 18px;
    height: 10px;
}

.model-page .back-button svg path {
    transition: all 0.3s ease;
}

.model-page .cars-list .car-btn.secondary {
    display: none;
}

.model-page .archival-section .cars-list .car-card.archival .car-timer-section {
    border-color: white;
}

.model-page .cars-list .car-card.archival .car-image-section {
    background-color: #F8F9FA;
}

.model-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.model-info strong {
    color: #2D2D2D;
    font-weight: 600;
}

.stats-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #666;
}

.stats-info span {
    color: #28BD3F;
    font-weight: 600;
}

/* Archival section styles */
.archival-section {
    padding: 55px 0 84px;
    margin-bottom: 40px;
}

.archival-section .section-header h2,
.archival-section .section-header .h2 {
    color: #2D2D2D;
    font-size: 40px;
    margin: 0 0 20px 0;
}

.archival-section .section-header p {
    color: #666;
    font-size: 18px;
    margin: 0;
}

.auctions-baner {
    background: linear-gradient(90deg, #FEAF28 56.24%, #FECD7A 83.22%, #FEC564 91.12%, #FCB845 100%);
    padding: 20px 70px 40px;
    border-radius: 10px;
    color: #2D2D2D;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
}

#przeglad-samochodow .auctions-baner p {
    color:  #2D2D2D;
    font-size: 36px;
    font-weight: 500;
    line-height: normal;
}

.auctions-baner a {
    position: relative;
    z-index: 99;
    color: white;
    text-decoration: none;
    display: inline-flex;
    padding: 20px 40px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #28BD3F;
    border-radius: 100px;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    transition: all 0.3s ease;
}

.auctions-baner a:hover {
    background-color: #22A033;
    color: white;
}

.auctions-baner:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    background-image: url(../img/auctions-baner.png);
    display: block;
    background-repeat: no-repeat;
    width: 537px;
    height: calc(100% + 27px);
    width: 100%;
    background-position-x: calc(100% - 40px);
    background-size: contain;
}

.auctions-baner a svg path {
    /* Placeholder for SVG path styles */
}

/* Responsive adjustments for model page */
@media (max-width: 768px) {
    .model-page .main-content {
        grid-template-columns: 1fr !important;
    }
    
    .model-page .model-sidebar {
        order: 1;
        margin-bottom: 30px;
    }
    
    .model-page .results-area {
        order: 2;
    }
    
    .archival-section {
        padding: 40px 0 60px;
    }
    
    .archival-section .section-header h2,
    .archival-section .section-header .h2 {
        font-size: 32px;
    }
    
    .archival-section .section-header p {
        font-size: 16px;
    }
}

/* Hover effect dla checkboxów przeznaczenia z szarymi/zielonymi ikonami */
.przeznaczenie-checkbox:checked + .checkbox-custom {
    background-color: #28BD3F !important;
    color: white !important;
}

.checkbox-custom {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkbox-custom:hover {
    background-color: #28BD3F !important;
    color: white !important;
}

/* Style dla ikon - normalna i hover */
.checkbox-custom .icon .icon {
    transition: all 0.3s ease;
}

.checkbox-custom .icon .icon.hover {
    display: none; /* Zielona ikona ukryta domyślnie */
}

.checkbox-custom .icon .icon.normal {
    display: block; /* Szara ikona widoczna domyślnie */
}

/* Na hover - pokaż zieloną ikonę, ukryj szarą */
.checkbox-custom:hover .icon .icon.normal {
    display: none;
}

.checkbox-custom:hover .icon .icon.hover {
    display: block;
}

/* Aktywny stan checkboxa - pokaż zieloną ikonę */
.przeznaczenie-checkbox:checked + .checkbox-custom .icon .icon.normal {
    display: none;
}

.przeznaczenie-checkbox:checked + .checkbox-custom .icon .icon.hover {
    display: block;
}

/* Hover effect dla brand cards */
.brand-card:hover .brand-name {
    color: #FFF;
}

/* Hover effect dla przycisków przeznaczenia z białymi ikonami */
.przeznaczenie-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.przeznaczenie-btn:hover {
    background-color: #28BD3F !important;
    color: white !important;
}

/* Style dla ikon - normalna i hover */
.przeznaczenie-btn .icon .icon {
    transition: all 0.3s ease;
}

.przeznaczenie-btn .icon .icon.hover {
    display: none; /* Biała ikona ukryta domyślnie */
}

.przeznaczenie-btn .icon .icon.normal {
    display: block; /* Zielona ikona widoczna domyślnie */
}

/* Na hover - pokaż białą ikonę, ukryj zieloną */
.przeznaczenie-btn:hover .icon .icon.normal {
    display: none;
}

.przeznaczenie-btn:hover .icon .icon.hover {
    display: block;
}

/* Aktywny stan przycisku */
.przeznaczenie-btn.active {
    background-color: #28BD3F !important;
    color: white !important;
}

.przeznaczenie-btn.active .icon .icon.normal {
    display: none;
}

.przeznaczenie-btn.active .icon .icon.hover {
    display: block;
}

/* Hover effect dla kart kategorii z białymi ikonami przeznaczenia */
.category-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.category-card:hover {
    background-color: #28BD3F !important;
    color: white !important;
}

/* Hover effect dla nazw kategorii */
.category-card:hover .category-name {
    color: #FFFFFF !important;
}

/* Style dla ikon - normalna i hover */
.category-icon .icon {
    transition: all 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.category-icon .icon.hover {
    display: none; /* Biała ikona ukryta domyślnie */
}

.category-icon .icon.normal {
    display: block; /* Zielona ikona widoczna domyślnie */
}

/* Na hover - pokaż białą ikonę, ukryj zieloną */
.category-card:hover .icon.normal {
    display: none;
}

.category-card:hover .icon.hover {
    display: block;
}

/* Dodatkowe style dla kart kategorii */
.category-card .category-name {
    transition: all 0.3s ease;
}

.auctions-sidebar {
    text-align: center;
    position: relative;
    top: 130px;
    height: 0;
    z-index: 1;
}

.auctions-sidebar .auctions-sidebar-content {
    padding: 24px;
    padding-top: 35px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.05);
    background-color: white;
    display: flex;
    flex-direction: column;
    max-width: 324px;
    margin: auto;
}

.auctions-sidebar img {
    width: auto;
    margin: auto;
}

.auctions-sidebar h4 {
    color: #28BD3F !important;
    font-size: 22px;
    font-style: normal;
    font-weight: 800;
}

.auctions-sidebar p {
    font-size: 22px !important;
    font-style: normal;
    font-weight: 400;
    line-height: normal !important;
}

.auctions-sidebar a {
    color: #2D2D2D !important;
    text-decoration: none;
    display: inline-flex;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #FEAF28;
    border-radius: 100px;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.auctions-sidebar a:hover {
    background-color: #db8305;
    color: white;
}

/* ========================================
   COMPREHENSIVE RESPONSIVE DESIGN
   ======================================== */

@media (min-width: 1023px) and (max-width: 1280px) {
    .brand-card {
        width: 100%;
        height: 80px;
    }

    .brands-grid {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
    }

    .cars-list .car-title {line-height: 1;}
    .cars-list .car-specs {display: flex;}
    .cars-list .car-card {
        height: 100% !important;
        grid-template-columns: 220px 1fr 200px !important;
    }
    .cars-list .car-image-section {
        height: 220px !important;
        width: 220px;
    }

    .cars-list .car-actions {
        display: flex;
        flex-direction: column;
    }
    .car-btn.primary {margin-right: 20px;}
}

/* ========================================
   LARGE TABLET (1024px - 1200px)
   ======================================== */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 280px 1fr;
        gap: 15px;
    }
    
    .header-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .filters-wrapper {
        padding: 25px;
    }
    
    .przeznaczenie-buttons {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 20px;
    }
    
    .przeznaczenie-btn {
        width: 130px;
        height: 110px;
        padding: 8px;
        font-size: 16px;
    }

    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .cars-list .car-card {
        grid-template-columns: 300px 1fr 200px;
        height: 260px;
    }
    
    .cars-list .car-image-section {
        height: 260px;
    }
    
    .auctions-baner {
        padding: 20px 50px 35px;
    }
    
    #przeglad-samochodow .auctions-baner p {
        font-size: 32px;
    }
}

/* ========================================
   TABLET (768px - 1023px)
   ======================================== */
@media (max-width: 1023px) {
    .categories-header {
        padding: 46px 0 35px 0;
    }
    
    #przeglad-samochodow .categories-header h1,
    #przeglad-samochodow .categories-header .h1 {
        font-size: 42px;
    }
    
    .header-wrapper {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .filter-controls {
        justify-content: center;
        gap: 15px;
        flex-direction: row;
        align-items: center;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .sidebar {
        position: static;
    }
    
    .filters-wrapper {
        padding: 20px;
    }
    
    .przeznaczenie-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .przeznaczenie-btn {
        width: 100%;
        height: 110px;
        padding: 8px;
        font-size: 14px;
    }
    
    .przeznaczenie-btn .icon svg {
        max-width: 45px;
        height: 28px;
    }
    
    .sidebar select {
        height: 35px;
        font-size: 14px;
        padding: 0 12px;
        padding-right: 30px;
    }
    
    .year-range input[type="number"] {
        height: 35px;
        font-size: 14px;
    }
    
    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }
    
    .cars-list .car-card {
       
        height: auto;
        min-height: 300px;
    }
    
    .cars-list .car-image-section {
        height: 200px;
    }
    
    .cars-list .car-content {
        padding: 20px;
    }
    
    .cars-list .car-title {
        font-size: 28px !important;
    }
    
    .cars-list .car-specs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .cars-list .car-timer-section {
        border-radius: 0 0 12px 12px;
        margin: 0;
        padding: 15px 20px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
        max-height: 180px;
    }
    
    .brand-card {
        width: 80px;
        height: 80px;
        padding: 8px 4px;
    }
    
    .brand-name {
        font-size: 11px;
    }
    
    .auctions-sidebar {
        position: static;
        top: auto;
        height: auto;
        margin-bottom: 30px;
    }
    
    .auctions-sidebar h4 {
        font-size: 20px;
    }
    
    .auctions-sidebar p {
        font-size: 18px !important;
    }
    
    .auctions-sidebar a {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .auctions-baner {
        padding: 20px 40px 30px;
        margin-top: 30px;
        margin-bottom: 30px;
        border-radius: 8px;
        background: #FEAF28 !important;
    }
    
    .auctions-baner:after { display: none; }

    #przeglad-samochodow .auctions-baner p {
        font-size: 28px;
    }
    
    .auctions-baner a {
        display: flex;
        margin: auto;
    }
    
    .model-page .container-header {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .model-page .main-content {
        grid-template-columns: 1fr !important;
    }
    
    .model-page .back-button {
        padding: 8px 20px;
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .archival-section {
        padding: 40px 0 60px;
    }
    
    .archival-section .section-header h2,
    .archival-section .section-header .h2 {
        font-size: 32px;
    }
    
    .archival-section .section-header p {
        font-size: 16px;
    }
}

/* ========================================
   MOBILE (max-width: 767px)
   ======================================== */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .categories-header {
        padding: 60px 0 25px 0;
    }
    
    .header-wrapper {
        gap: 15px;
    }
    
    .filter-controls {
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
        margin-top: 20px;
        align-items: center;
    }
    
    .filter-controls label {
        text-align: center;
        font-size: 14px;
    }
    
    .sort-select {
        height: 35px;
        font-size: 14px;
    }
    
    .view-toggle {
        gap: 15px;
        display: none !important; /* Hide view toggle on mobile */
    }
    
    .view-btn svg {
        width: 32px;
        height: 32px;
    }
    
    .category-section {
        padding: 35px 0 50px;
        margin-bottom: 25px;
    }
    
    .filters-wrapper {
        padding: 15px;
        gap: 15px;
    }
    
    .filter-section {
        margin-bottom: 15px;
        gap: 8px;
    }
    
    .filter-section h3,
    .filter-section .h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .przeznaczenie-buttons {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 10px;
    }
    
    .przeznaczenie-btn {
        width: 100%;
        height: 90px;
        padding: 6px;
        font-size: 12px;
        gap: 8px;
    }
    
    .przeznaczenie-btn .icon {
        height: 28px;
    }
    
    .przeznaczenie-btn .icon svg {
        max-width: 40px;
        height: 24px;
    }
    
    .przeznaczenie-buttons.marka-filter {
        grid-template-columns: 1fr;
    }
    
    .przeznaczenie-buttons.marka-filter .checkbox-custom {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .przeznaczenie-buttons.marka-filter .icon svg {
        max-width: 40px;
        height: 24px;
        margin-right: 8px;
    }
    
    .sidebar select {
        height: 32px;
        font-size: 13px;
        padding: 0 10px;
        padding-right: 25px;
        background-size: 6px 4px;
        background-position: right 6px center;
    }
    
    .year-range {
        align-items: center;
    }
    
    .year-range input[type="number"] {
        height: 32px;
        font-size: 13px;
    }
    
    .fuel-buttons,
    .transmission-buttons {
        gap: 8px;
    }
    
    .checkbox-custom {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .cars-list .car-card {
        min-height: 280px;
    }
    
    .cars-list .car-image-section {
        height: 180px;
    }
    
    .cars-list .car-content {
        padding: 15px;
        gap: 12px;
    }
    
    .cars-list .car-title {
        font-size: 24px !important;
    }
    
    .cars-list .car-specs {
        gap: 10px;
    }
    
    .cars-list .car-spec {
        font-size: 14px;
        gap: 6px;
    }
    
    .cars-list .car-spec svg {
        width: 16px;
        height: 16px;
    }
    
    .cars-list .car-timer-section {
        padding: 12px 15px;
    }
    
    .cars-list .timer-display {
        font-size: 24px;
        gap: 8px;
    }
    
    .cars-list .timer-labels {
        font-size: 10px;
        gap: 8px;
    }
    
    .cars-list .timer-unit {
        min-width: 28px;
    }
    
    .cars-list .cena-wrapper {
        font-size: 24px;
    }
    
    .cars-list .cena-wrapper span {
        font-size: 11px;
    }
    
    .cars-list .car-btn {
        height: 35px;
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 6px;
        max-height: 160px;
    }
    
    .brand-card {
        width: 70px;
        height: 70px;
        padding: 6px 3px;
    }
    
    .brand-name {
        font-size: 10px;
    }
    
    .expand-brands-btn {
        padding: 12px;
        font-size: 13px;
        margin-top: 25px;
        bottom: -15px;
    }
    
    .expand-brands-btn svg {
        width: 8px;
        height: 5px;
        margin-left: 8px;
    }
    
    .models-list {
        max-height: 180px;
        gap: 8px;
    }
    
    .model-card {
        font-size: 14px;
        padding: 12px 18px;
        border-radius: 8px;
    }
    
    .auctions-sidebar h4 {
        font-size: 18px;
    }
    
    .auctions-sidebar p {
        font-size: 16px !important;
    }
    
    .auctions-sidebar a {
        padding: 10px 18px;
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .auctions-baner {
        padding: 15px 25px 25px;
        margin-top: 25px;
        margin-bottom: 25px;
        background: #FEAF28 !important;
    }
    
    #przeglad-samochodow .auctions-baner p {
        text-align: center;
    }

    .auctions-baner:after { display: none; }
    
    .model-page .back-button {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .model-page .categories-header h1,
    .model-page .categories-header .h1 {
        font-size: 28px;
    }
    
    .archival-section {
        padding: 30px 0 45px;
    }
    
    .archival-section .section-header h2,
    .archival-section .section-header .h2 {
        font-size: 28px;
    }
    
    .archival-section .section-header p {
        font-size: 15px;
    }
    
    .no-cars {
        padding: 30px 20px;
    }
    
    .no-cars h3 {
        font-size: 28px;
    }
    
    .no-cars p {
        font-size: 16px;
    }
    
    .no-cars a {
        padding: 12px 25px;
        font-size: 15px;
    }
}

/* ========================================
   SMALL MOBILE (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .categories-header {
        padding: 50px 0 20px 0;
    }
    
    .categories-header h1,
    .categories-header .h1 {
        font-size: 24px;
    }
    
    .filter-controls {
        gap: 8px;
    }
    
    .filter-controls label {
        font-size: 13px;
    }
    
    .sort-select {
        height: 30px;
        font-size: 12px;
        padding: 0 8px;
        padding-right: 22px;
        width: 100%;
    }
    
    .view-toggle {
        gap: 12px;
        display: none !important; /* Hide view toggle on small mobile */
    }
    
    .view-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .category-section {
        padding: 25px 0 35px;
        margin-bottom: 20px;
    }
    
    .filters-wrapper {
        padding: 12px;
        gap: 12px;
    }
    
    .filter-section {
        margin-bottom: 12px;
        gap: 6px;
    }
    
    .filter-section h3,
    .filter-section .h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .przeznaczenie-buttons {
        grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
        gap: 12px;
    }
    
    .przeznaczenie-btn {
        width: 100%;
        padding: 5px;
        font-size: 12px;
        gap: 8px;
    }
    
    .przeznaczenie-btn .icon {
        height: 24px;
    }
    
    .przeznaczenie-btn .icon svg {
        max-width: 35px;
        height: 20px;
    }
    
    .sidebar select {
        height: 30px;
        font-size: 12px;
        padding: 0 8px;
        padding-right: 22px;
    }
    
    .year-range input[type="number"] {
        height: 30px;
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .checkbox-custom {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .cars-list .car-card {
        min-height: 260px;
    }
    
    .cars-list .car-image-section {
        height: 160px;
    }
    
    .cars-list .car-content {
        padding: 12px;
        gap: 10px;
    }
    
    .cars-list .car-title {
        font-size: 20px !important;
    }
    
    .cars-list .car-specs {
        gap: 8px;
    }
    
    .cars-list .car-spec {
        font-size: 13px;
        gap: 5px;
    }
    
    .cars-list .car-spec svg {
        width: 14px;
        height: 14px;
    }
    
    .cars-list .car-timer-section {
        padding: 10px 12px;
    }
    
    .cars-list .timer-display {
        font-size: 20px;
        gap: 6px;
    }
    
    .cars-list .timer-labels {
        font-size: 9px;
        gap: 6px;
    }
    
    .cars-list .timer-unit {
        min-width: 24px;
    }
    
    .cars-list .cena-wrapper {
        font-size: 20px;
    }
    
    .cars-list .cena-wrapper span {
        font-size: 10px;
    }
    
    .cars-list .car-btn {
        height: 32px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 8px;
        max-height: 140px;
    }
    
    .brand-card {
        width: 60px;
        height: 60px;
        padding: 5px 2px;
    }
    
    .brand-name {
        font-size: 9px;
    }
    
    .expand-brands-btn {
        padding: 10px;
        font-size: 12px;
        margin-top: 20px;
        bottom: -12px;
    }
    
    .models-list {
        max-height: 160px;
        gap: 6px;
    }
    
    .model-card {
        font-size: 13px;
        padding: 10px 15px;
        border-radius: 6px;
    }
    
    
    .auctions-sidebar h4 {
        font-size: 16px;
    }
    
    .auctions-sidebar p {
        font-size: 14px !important;
    }
    
    .auctions-baner p {
        font-size: 16px;
    }
    
    .model-page .back-button {
        padding: 6px 14px;
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .model-page .categories-header h1,
    .model-page .categories-header .h1 {
        font-size: 28px;
    }
    
    .archival-section {
        padding: 25px 0 35px;
    }
    
    .archival-section .section-header h2,
    .archival-section .section-header .h2 {
        font-size: 24px;
    }
    
    .archival-section .section-header p {
        font-size: 14px;
    }
    
    .no-cars {
        padding: 25px 15px;
    }
    
    .no-cars h3 {
        font-size: 24px;
    }
    
    .no-cars p {
        font-size: 16px;
    }
    
    .no-cars a {
        padding: 12px 25px;
        font-size: 15px;
    }
}

/* ========================================
   EXTRA SMALL MOBILE (max-width: 360px)
   ======================================== */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .categories-header h1,
    .categories-header .h1 {
        font-size: 22px;
    }
    
    .przeznaczenie-buttons {
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
        gap: 6px;
    }
    
    .przeznaczenie-btn {
        width: 85px;
        height: 75px;
        font-size: 11px;
    }
    
    .przeznaczenie-btn .icon svg {
        max-width: 30px;
        height: 18px;
    }
    
    .cars-list .car-title {
        font-size: 18px !important;
    }
    
    .cars-list .timer-display {
        font-size: 18px;
    }
    
    .cars-list .cena-wrapper {
        font-size: 18px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(55px, 1fr));
        gap: 4px;
    }
    
    .brand-card {
        width: 55px;
        height: 55px;
    }
    
    .brand-name {
        font-size: 8px;
    }
    
    .auctions-sidebar h4 {
        font-size: 15px;
    }
    
    .auctions-sidebar p {
        font-size: 13px !important;
    }
    
    .auctions-baner p {
        font-size: 16px;
    }
    
    #przeglad-samochodow .stopka {
        margin-top: 30px;
        padding: 0 8px;
    }
    
    #przeglad-samochodow .stopka h3 {
        font-size: 20px;
        margin-bottom: 12px;
        text-align: center;
    }
    
    #przeglad-samochodow .stopka p {
        font-size: 13px;
        margin-bottom: 8px;
        text-align: center;
        line-height: 1.3;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION (max-height: 500px)
   ======================================== */
/* @media (max-height: 500px) and (orientation: landscape) {
    .categories-header {
        padding: 30px 0 20px 0;
    }
    
    .categories-header h1 {
        font-size: 24px;
    }
    
    .category-section {
        padding: 25px 0 35px;
    }
    
    .filters-wrapper {
        padding: 15px;
    }
    
    .przeznaczenie-buttons {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .brands-grid {
        max-height: 120px;
    }
    
    .brand-card {
        height: 50px;
    }
    
    #przeglad-samochodow .stopka {
        margin-top: 25px;
        padding: 0 12px;
    }
    
    #przeglad-samochodow .stopka h3 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    #przeglad-samochodow .stopka p {
        font-size: 15px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
} */

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .car-card,
    .przeznaczenie-btn,
    .brand-card,
    .category-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .categories-header {
        background: none !important;
        color: #000 !important;
    }
    
    .category-section {
        background: none !important;
    }
    
    .sidebar {
        display: none;
    }
    
    .filter-controls {
        display: none;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cars-list .car-card {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .car-image-section {
        display: none;
    }
    
    .car-timer-section {
        display: none;
    }
    
    .car-btn {
        display: none;
    }
    
    .auctions-sidebar,
    .auctions-baner {
        display: none;
    }
}

/* ========================================
   SELECT2 CUSTOM STYLES
   ======================================== */

/* Additional mobile responsive styles for clear button */
@media (max-width: 767px) {
    .select2-container--default .select2-selection--single .select2-selection__clear {
        right: 30px;
        width: 18px;
        height: 18px;
        line-height: 16px;
        font-size: 12px;
    }
}

/* Clear button position for sidebar */
.sidebar .select2-container--default .select2-selection--single .select2-selection__clear {
    right: 40px !important; /* Position between arrow and text */
}

/* ========================================
   ASIDE DESKTOP/MOBILE VISIBILITY
   ======================================== */

/* Desktop: Show aside-desktop, hide aside-mobile */
.aside-desktop {
    display: block;
}

.aside-mobile {
    display: none;
}

/* Mobile: Hide aside-desktop, show aside-mobile */
@media (max-width: 767px) {
    .aside-desktop {
        display: none;
    }
    
    .aside-mobile {
        display: block;
    }
    
    /* Select2 clear button on mobile */
    .select2-selection--single .select2-selection__clear {
        right: 15px;
        width: 18px;
        height: 18px;
        line-height: 16px;
        font-size: 12px;
    }
}


/* UNCOMMON STYLES */

.car-actions.smaller-screen-actions {
	display: none !important;
 }
 @media (min-width: 768px) and (max-width: 1366px) {
    .cars-list .cena-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
	.car-actions.actions-standard-screens{
		display: none !important;
	}
	.car-actions.smaller-screen-actions {
		grid-column: 1 / -1 !important;
		text-align: center !important;
		display: flex !important;
		flex-direction: row !important;
		gap: 20px !important;
		justify-content: space-evenly !important;
		padding: 10px !important;
	}
	.car-actions.smaller-screen-actions a {
		width: 50% !important;
		margin-right: 0 !important;
	}
 }

 @media (min-width: 916px) and (max-width: 1024px) {
	.categories-header {
		padding-top: 115px;
	}
}