.autok-filters input[type="number"], .autok-filters input[type="text"], .autok-filters select, .autok-filters textarea {
    display: block;
    padding: 10px 12px;
    outline: none !important;
    border-radius: 2px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    max-width: 100%;
    color: #999;
    border: 1px solid #dddddd;
    background: #ffffff !important;
}

.autok-filters .inline-half-input {
    display: inline-block !important;
    width: 48%;
}

#hasznaltautok-wrapper {
    display: grid;
    grid-template-columns: auto minmax(160px, 18%);
    align-items: start;
    gap: 1.5rem 2.5rem;
    margin: 3rem 0;
}

.autok-filters {
    min-width: 160px;
    grid-column: 2 / 3;
    grid-row: 1 / 4;
}
.autok-filters h3 {
    font-weight: 500;
    margin: 1.5rem 0;
}
.autok-filters h3:first-child {
    margin-top: 0;
}
.autok-filters label {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: normal;
}
.filter-option-count {
    font-size: 0.75em;
    color: #999;
    display: inline-block;
    margin-left: 0.5rem;
    font-weight: normal;
}

.small-text {
    font-size: 0.9em;
}

.list-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.list-title {
    font-size: 1.2em;
    font-weight: 500;
    margin: 0;
}
.reset-filters {
    cursor: pointer;
    color: #007cba;
    /* text-decoration: underline; */
    font-size: 0.8em;
    font-weight: 400;
}

.autok-listaja {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 3.5%;
    row-gap: 2.5rem;
    width: 100%;
}

.auto-kartya {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    grid-column: 1 / 2;
    width: 31%;
}

.auto-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    border-radius: 8px;
}

.auto-link img {
    border-radius: 8px;
    transition: transform 0.5s ease;
    min-height: 211px;
    object-fit: cover;
    object-position: 25%;
}
.auto-link:hover img {
    /* transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit; */
    transform: scale(1.03) translateY(-2px);
}
.auto-kartya h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin: 1.25em 0 1em 0;
}
.auto-ar {
    font-size: 0.9em;
    margin-bottom: 0.9em;
}
.auto-info li {
    font-size: 0.9em;
}
.auto-info li::marker {
    margin-right: 0.25em;
}

@media (max-width: 768px) {
    #hasznaltautok-wrapper {
        grid-template-columns: 1fr;
    }
    .autok-filters {
        grid-column: 1 / 2;
    }
    .autok-filters label {
        display: inline-block;
        padding: 0 1em 0.25em 0;
    }
    .autok-listaja {
        grid-column: 1 / 2;
    }
    .auto-kartya {
        width: 100%;
    }
    .list-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .list-header .list-info, .list-header select {
        width: 100%;
    }
}/*  */

.hasznaltauto-detail-page h1.headline + .newdivider {
    display: none;
}

/* Auto detail page styles */
.auto-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem 2rem;
    font-family: inherit;
}

.auto-detail-container h1 {
    color: #333;
    text-align: center;
    max-width: 850px;
    margin: 0 auto 1em auto;
}

.auto-images {
    margin-bottom: 2rem;
    text-align: center;
}

.auto-gallery {
    position: relative;
    display: inline-block;
}

.auto-gallery .main-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auto-gallery .main-image:hover {
    /* transform: scale(1.02); */
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.auto-gallery a {
    text-decoration: none;
    color: inherit;
}

/* Hide additional gallery links, only show the main image */
.auto-gallery a:not(:first-child) {
    display: none;
}

/* Thumbnail gallery styles */
.auto-thumbnails {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.thumbnail-link {
    display: inline-block;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.thumbnail-link:hover,
.thumbnail-link.active {
    /* border-color: #007cba; */
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    display: block;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .auto-thumbnails {
        gap: 0.25rem;
    }
    
    .thumbnail-image {
        width: 50px;
        height: 37px;
    }
}

.auto-info-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.auto-price h2 {
    /* color: #007cba; */
    font-size: 2rem;
    margin: 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    /* text-transform: uppercase; */
}

.auto-specs-block {
    width: 100%;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 0;
    box-sizing: border-box;
}

.auto-specs-block h3::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    /* background: linear-gradient(to right, rgba(175,175,175,1) 0%, rgba(175,175,175,0) 100%); */
    background: lightgray;
    margin-top: 0.75em;
}

.auto-specs-inner td {
    padding: 0.25rem 1em 0.25rem 0;
    line-height: 1.4em;
    font-size: 1.1rem;
    color: #555;
}
.auto-specs-inner table tbody tr:first-child td {
    padding-top: 0em;
}

.auto-specs-inner ul {
    padding: 0;
    padding-left: 2em;
}

.auto-specs-inner strong {
    color: #333;
    font-weight: 600;
}

.auto-specs-inner table {
    width: 100%;
}
.auto-specs-inner td:first-child {
    width: 45%;
}

.auto-navigation {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.button.back-to-list {
    display: inline-block;
    padding: 12px 24px;
    background: #007cba;
    /* background: #999999; */
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.button.back-to-list:hover {
    /* background: #005a87; */
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .auto-detail-page {
        padding: 1rem;
    }
    
    .auto-detail-container {
        padding: 1.5rem;
    }
    
    .auto-detail-container h1 {
        font-size: 2rem;
        /* margin: 0 auto; */
    }
    
    .auto-info-detail {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* .auto-price h2, .auto-price h3 {
        font-size: 1.5rem;
    } */
}

/* PrettyPhoto galéria méretének szabályozása */
.pp_pic_holder {
    max-width: 90vw !important;
    max-height: 90vh !important;
}

.pp_content {
    max-width: 90vw !important;
    max-height: 90vh !important;
}

#pp_full_res_holder {
    max-width: 90vw !important;
    max-height: 90vh !important;
}

#pp_full_res_image img {
    max-width: 90vw !important;
    max-height: 90vh !important;
    object-fit: contain;
}