
/* Container for entire listing */
.car-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
}

.car-slider-container {
    margin-bottom: 25px;
}

.car-slider-container .swiper-slide {
    width: 100%;
    height: 520px;
}

.car-slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*border-radius: 10px;*/
}

.car-title {
    font-size: 32px;
    font-weight: 700;
    margin: 20px 0 5px;
}

.car-description {
    margin: 0 0 30px;
}

.car-summary-group {
    font-size: 18px;
    font-weight: 600;
    margin: 15px 0 8px;
    color: #333;
    padding-bottom: 4px;
}

.car-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.car-table th {
    width: 40%;
    padding: 8px 12px;
    background: #f8f8f8;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.car-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.car-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.car-thumb {
    width: 30%;
    /*border-radius: 6px;*/
}

.car-video {
    width: 100%;
    margin-top: 20px;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    text-shadow: 0 0 5px rgba(0,0,0,0.6);
}

.swiper-pagination-bullet {
    background: #fff;
}

.car-thumbs {
    margin-top: 10px;
}

.car-thumbs img {
    width: 100%;
    height: 120px;
    /*border-radius: 6px;*/
    object-fit: cover;
    opacity: 0.7;
    cursor: pointer;
}

.car-thumbs .swiper-slide-thumb-active img {
    opacity: 1;
    border: 2px solid #fff;
}

.car-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin: 10px 0;
}

.car-header-left {
    flex: 2;
    align-items: center;
    padding: 15px 0;
}

.assistant-wapp {
    display: flex;
    gap: 10px;
}

.car-contact-box {
    padding: 15px 0;
}

.car-contact-box h3 {
    margin-top: 0;
}

.car-share {
    margin-top: 10px;
}

.car-share a {
    margin-right: 10px;
    text-decoration: none;
    font-weight: 600;
}

.second-share {
    margin-top: 20px;
    padding: 10px 0;
    border-top: 1px solid #ddd;
}

.product-assistant {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.product-assistant .assistant-avatar img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 5px;
    border: 1px solid #ddd;
    margin-right: 12px;
}

.product-assistant .assistant-content span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.assistant-avatar{
    display:none!important
}
.product-assistant p {
    margin: 4px 0 0;
    font-size: 14px;
}

.product-assistant a {
    color: #1d7aeb;
    font-weight: 600;
    text-decoration: none;
}

.product-assistant a:hover {
    text-decoration: underline;
}

/* Sale price styles */
.car-price-original {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
    font-size: 1.1em;
}

.car-sale-price {
    color: #e74c3c;
    font-size: 1.3em;
}

/* Archive page styles */
.car-archive-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.car-archive-header {
    margin-bottom: 30px;
}

.car-archive-header h1 {
    margin: 0;
    font-size: 2em;
    text-align: center; /* Center the header */
}

.car-filters {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    /*border-radius: 8px;*/
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-group button {
    width: 100%;
    padding: 8px;
    background: #0073aa;
    color: white;
    border: 1px solid #005a87;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.filter-group button:hover {
    background: #005a87;
}

.car-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    position: relative; /* Needed for button positioning */
}

.car-listings {
    position: relative;
    margin: 0 auto; /* Center the container */
}

.apply-button-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10;
}

.apply-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.apply-button:hover {
    background-color: #005a87;
    text-decoration: none;

}

.car-listing-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; /* Needed for button positioning inside each item */
}

.car-listing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.car-listing-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.car-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.car-listing-item:hover .car-listing-image img {
    transform: scale(1.05);
}

.car-listing-info {
    padding: 15px;
}

.car-listing-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.car-listing-title a {
    text-decoration: none;
    color: #333;
}

.car-listing-title a:hover {
    color: #0073aa;
}

.car-listing-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.car-listing-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.car-listing-price {
    font-size: 1.2em;
    color: #0073aa;
}

/* Shortcode styles */
.car-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.car-item-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.car-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.car-swiper {
    height: 400px; 
    width: 100%;
}

.car-thumbs {
    height: 100px;
    margin-top: 10px;
}

.car-thumbs .swiper-slide img {
    height: 100%;
    object-fit: cover;
}

/* Responsive image scaling for mobile */
@media (max-width: 768px) {
    .car-item-image {
        height: 150px; /* Reduce height on mobile */
    }

    .car-listings-list .car-item-image img {
        max-width: 200px;
        height: auto;
        width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .assistant-wapp {
        display: block;
    }
}

@media screen and (max-width: 480px) {
    .car-slider-container .swiper-slide {
        height: auto !important;
    }
}
    
@media (max-width: 1024px) {
    .car-swiper .swiper-pagination {
        display: none !important;
    }
}

.car-item-info {
    padding: 15px;
    position: relative; /* Needed for button positioning inside each item */
}

.car-item h3 {
    margin: 0 0 10px 0;
}

.car-item h3 a {
    text-decoration: none;
    color: #333;
}

.car-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
}

.car-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.car-details span {
    display: flex;
    align-items: center;
}

.car-details i {
    margin-right: 5px;
    width: 16px;
    height: 16px;
    font-size: 16px;
    vertical-align: middle;
}

/* Specific styling for technical inspection */
.car-detail-tehniska-apskate {
    display: flex;
    align-items: center;
}

.car-price {
    font-weight: 500;
    font-size: 1.2em;
    color: #0073aa;
}
.car-export-price-box{
    color: #C12100;
    font-weight: 500;
}
.car-price-box{
    font-weight: 500;
}
.car-export-price-value {
    font-size: 1.2em;
}
.assistant-content span {
    font-size: 15px;
}
.assistant-content{
    margin: 20px 0 5px;
}

/* Responsive design */
@media (max-width: 768px) {
    .car-header-flex {
        flex-direction: column;
    }
    
    .car-contact-box {
        min-width: auto;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .car-listings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 769px) {
.car-contact-box{
    margin-top: -50px !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
}