﻿/* AutoScout24 Cars Plugin Styles */

.as24-cars-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

/* Филтри */

.as24-filters h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

.as24-filters .filter-row {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
    vertical-align: top;
}

.as24-filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.as24-filters select,
.as24-filters input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 150px;
}

.as24-filters select:focus,
.as24-filters input[type="number"]:focus {
    outline: none;
    border-color: #e52528;
    box-shadow: 0 0 0 2px rgba(229,37,40,0.2);
}

.as24-filter-btn {
    background: #e52528;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.as24-filter-btn:hover {
    background: #c01e21;
}

/* Grid на возила */
.as24-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Карта за возило */
.as24-car-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.as24-car-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.as24-car-image {
    width: 100%;
    height: 245px;
    overflow: hidden;
    position: relative;
}

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

.as24-car-card:hover .as24-car-image img {
    transform: scale(1.05);
}

.as24-no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.as24-car-details {
    padding: 15px;
}

.as24-car-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.as24-car-price {
    font-size: 20px;
    font-weight: bold;
    color: #e52528;
    margin-bottom: 10px;
}

.as24-car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.as24-car-specs span {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
}

.as24-car-actions {
    text-align: center;
}

.as24-car-link {
    display: inline-block;
    background: #e52528;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.as24-car-link:hover {
    background: #c01e21;
    color: white;
}

/* Pagination */
.as24-pagination {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.as24-pagination-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.as24-pagination-info span {
    display: inline-block;
    margin: 0 10px;
}

.as24-pagination-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.as24-pagination-btn {
    background: #e52528;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    min-width: 140px;
}

.as24-pagination-btn:hover {
    background: #c01e21;
}

.as24-pagination-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.as24-prev-btn {
    background: #6c757d;
}

.as24-prev-btn:hover {
    background: #5a6268;
}

.as24-next-btn {
    background: #28a745;
}

.as24-next-btn:hover {
    background: #218838;
}

/* Loading spinner */
.as24-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e52528;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive дизајн */
@media (max-width: 768px) {
    .as24-cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .as24-filters .filter-row {
        display: block;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .as24-filters select,
    .as24-filters input[type="number"] {
        width: 100%;
        min-width: auto;
    }
    
    .as24-car-specs {
        flex-direction: column;
        gap: 5px;
    }
    
    .as24-pagination-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .as24-pagination-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .as24-cars-container {
        padding: 10px;
    }
    
    .as24-cars-grid {
        grid-template-columns: 1fr;
    }
    
    .as24-car-image {
        height: 180px;
    }
}
/* Нови филтри стилови */
.as24-search-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.as24-results-count {
    font-size: 16px;
    color: #333;
}

.as24-advanced-search-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.as24-advanced-search-btn:hover {
    background: #c82333;
}

.as24-filter-section {
    margin-top: 20px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
}

.mileage-range {
    display: flex;
    gap: 5px;
}

.mileage-range input {
    flex: 1;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .as24-search-summary {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
}
/* Нови стилови за filter делот */
.as24-search-actions {
    display: flex;
    gap: 10px;
}

.as24-search-btn {
    background: #e52528;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.as24-search-btn:hover {
    background: #c01e21;
}

.as24-reset-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.as24-reset-btn:hover {
    background: #5a6268;
}

.as24-sort-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}

.as24-sort-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.as24-sort-container label {
    font-weight: bold;
    color: #555;
    font-size: 14px;
}

.as24-sort-container select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.as24-filter-section {
    margin-top: 20px;
}


.filter-group label {
    font-weight: normal;
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .as24-search-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .as24-sort-section {
        text-align: center;
    }
    
    .as24-sort-container {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
}

/* Car Details Page Styles */
.as24-car-details-page {
    background: #f5f5f5;
    padding: 20px 0;
    margin: 20px 0;
}

.as24-car-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.as24-car-details-header {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.as24-car-title-section {
    flex: 1;
}

.as24-car-details-title {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.as24-car-make {
    color: #e52528;
    font-weight: 600;
}

.as24-car-model {
    color: #333;
    font-weight: 600;
}

.as24-car-version {
    color: #666;
    font-size: 24px;
    font-weight: 400;
}

.as24-car-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.as24-price-badge {
    background: #dc3545;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.as24-price-currency {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.as24-price-amount {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.as24-print-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.as24-print-action:hover {
    background: #e9ecef;
}

.as24-print-icon {
    width: 20px;
    height: 20px;
    color: #666;
}

.as24-car-details-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.as24-car-images-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
}

.as24-main-image {
    flex: 0 0 70%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.as24-thumbnails-section {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.as24-thumbnail {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    position: relative;
    flex-shrink: 0;
}

.as24-thumbnail.active {
    border-color: #e52528;
}

.as24-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as24-more-images {
    position: relative;
    width: 100%;
    height: 120px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e52528;
    transition: all 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
    grid-column: 1 / -1;
}

.as24-more-images:hover {
    background: #e52528;
    border-color: #c01e21;
}

.as24-more-images:hover .as24-more-text {
    color: white;
}

.as24-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.as24-more-text {
    color: #e52528;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.as24-car-title-price-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.as24-car-title {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
    flex: 1;
}

.as24-car-make {
    color: #e52528;
    font-weight: 600;
}

.as24-car-model {
    color: #333;
    font-weight: 600;
}

.as24-car-version {
    color: #666;
    font-size: 20px;
    font-weight: 400;
}

.as24-car-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    background: linear-gradient(135deg, #e52528, #c01e21);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.as24-car-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.as24-price-currency {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.as24-price-amount {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.as24-price-period {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.as24-car-specs-section {
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Image overlay for zoom effect */
.as24-main-image {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.as24-main-image:hover {
    transform: scale(1.02);
}

.as24-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-weight: bold;
}

.as24-main-image:hover .as24-image-overlay {
    opacity: 1;
}

.as24-zoom-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.as24-image-count {
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 15px;
}

.as24-car-images-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.as24-main-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.as24-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as24-no-image-large {
    color: #888;
    font-size: 18px;
}

.as24-image-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.as24-thumbnail {
    width: 100%;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.as24-thumbnail.active {
    border-color: #e52528;
}

.as24-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as24-car-info-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
}

.as24-car-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-bottom: 0;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.as24-spec-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.as24-spec-item:nth-child(odd) {
    border-right: 1px solid #e9ecef;
}

.as24-spec-item:hover {
    background: #f8f9fa;
}

.as24-spec-icon {
    font-size: 20px;
    margin-right: 15px;
    width: 32px;
    text-align: center;
    color: #e52528;
}

.as24-spec-content {
    flex: 1;
}

.as24-spec-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.as24-spec-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

/* Equipment section styles */
.as24-equipment-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.as24-equipment-category {
    margin-bottom: 30px;
}

.as24-equipment-category:last-child {
    margin-bottom: 0;
}

.as24-equipment-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e52528;
    padding-bottom: 8px;
}

.as24-equipment-icon {
    font-size: 18px;
}

.as24-equipment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.as24-equipment-item {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 3px solid #e52528;
    transition: all 0.3s ease;
}

.as24-equipment-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,124,186,0.1);
}

.as24-equipment-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.as24-equipment-package {
    margin-top: 8px;
    padding-left: 10px;
}

.as24-package-item {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
    line-height: 1.4;
}

.as24-package-item:last-child {
    margin-bottom: 0;
}

.as24-seller-info {
    background: white;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.as24-seller-details {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.as24-seller-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.as24-seller-address,
.as24-seller-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

.as24-contact-buttons {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.as24-contact-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.as24-phone-button {
    background: #dc3545;
    color: white;
}

.as24-phone-button:hover {
    background: #c82333;
    color: white;
}

.as24-inquiry-button {
    background: #dc3545;
    color: white;
}

.as24-inquiry-button:hover {
    background: #c82333;
    color: white;
}

.as24-button-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .as24-car-details-content {
        gap: 20px;
    }
    
    .as24-car-details-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .as24-car-title-section {
        text-align: center;
    }
    
    .as24-car-details-title {
        font-size: 24px;
    }
    
    .as24-car-price-section {
        align-items: center;
    }
    
    .as24-price-amount {
        font-size: 24px;
    }
    
    .as24-car-images-section {
        flex-direction: column;
    }
    
    .as24-main-image {
        height: 300px;
    }
    
    .as24-thumbnails-section {
        flex: 0 0 auto;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .as24-image-thumbnails {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        min-width: max-content;
        max-height: none;
        overflow-y: visible;
    }
    
    .as24-thumbnail {
        width: 100%;
        height: 80px;
        flex-shrink: 0;
    }
    
    .as24-more-images {
        width: 100%;
        height: 80px;
        flex-shrink: 0;
    }
    
    .as24-car-title-price-section {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .as24-car-title {
        font-size: 24px;
    }
    
    .as24-car-price {
        padding: 12px 16px;
        gap: 4px;
    }
    
    .as24-price-currency {
        font-size: 12px;
    }
    
    .as24-price-amount {
        font-size: 20px;
    }
    
    .as24-car-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .as24-equipment-list {
        grid-template-columns: 1fr;
    }
    
    .as24-equipment-title {
        font-size: 18px;
    }
    
    .as24-equipment-item {
        padding: 10px 12px;
    }
    
    .as24-equipment-name {
        font-size: 13px;
    }
    
    .as24-package-item {
        font-size: 12px;
    }
    
    .as24-spec-item:nth-child(odd) {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
}

/* Image Slider Modal */
.as24-image-slider-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.as24-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.as24-slider-container {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 80px;
}

.as24-slider-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    z-index: 10002;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.as24-slider-car-info {
    color: white;
}

.as24-slider-car-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
}

.as24-slider-car-make {
    color: #e52528;
}

.as24-slider-car-model {
    color: white;
}

.as24-slider-car-version {
    color: #ccc;
    font-size: 18px;
    font-weight: normal;
}

.as24-slider-car-price {
    font-size: 28px;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.as24-slider-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.as24-slider-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.as24-slider-prev,
.as24-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.as24-slider-prev:hover,
.as24-slider-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

.as24-slider-prev {
    left: 15px;
}

.as24-slider-next {
    right: 15px;
}

.as24-slider-main {
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.as24-slider-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.as24-slider-thumbnails {
    display: flex;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.as24-slider-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.as24-slider-thumb.active {
    border-color: #e52528;
}

.as24-slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as24-slider-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* Responsive slider */
@media (max-width: 768px) {
    .as24-slider-container {
        max-width: 95vw;
        max-height: 75vh;
        margin-top: 60px;
    }
    
    .as24-slider-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .as24-slider-car-title {
        font-size: 18px;
    }
    
    .as24-slider-car-version {
        font-size: 14px;
    }
    
    .as24-slider-car-price {
        font-size: 22px;
    }
    
    .as24-slider-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .as24-slider-main {
        height: 60vh;
    }
    
    .as24-slider-prev,
    .as24-slider-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .as24-slider-thumb {
        width: 60px;
        height: 45px;
    }
}

