/* Auto ABO Platform - Public Styles */

/* Car Grid */
.aap-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* Car Card */
.aap-car-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.aap-car-featured {
    border: 2px solid #2271b1;
}

.aap-car-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

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

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

.aap-featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #2271b1;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.aap-car-content {
    padding: 20px;
}

.aap-car-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    line-height: 1.3;
}

.aap-car-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.aap-car-title a:hover {
    color: #2271b1;
}

.aap-car-brand {
    display: block;
    font-size: 14px;
    color: #666;
    font-weight: normal;
    margin-bottom: 5px;
}

.aap-car-meta {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

.aap-car-price {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.aap-car-price strong {
    display: block;
    font-size: 28px;
    color: #2271b1;
    margin-bottom: 5px;
}

.aap-car-price span {
    font-size: 14px;
    color: #666;
}

.aap-car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.aap-availability {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.aap-availability-available {
    background: #d4edda;
    color: #155724;
}

.aap-availability-reserved {
    background: #fff3cd;
    color: #856404;
}

.aap-availability-leased {
    background: #f8d7da;
    color: #721c24;
}

.aap-car-button {
    display: inline-block;
    padding: 8px 20px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.aap-car-button:hover {
    background: #135e96;
    color: #fff;
}

/* Featured Cars Section */
.aap-featured-cars {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* Car Search Form */
.aap-car-search {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aap-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.aap-search-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.aap-search-field select,
.aap-search-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.aap-search-field select:focus,
.aap-search-field input:focus {
    outline: none;
    border-color: #2271b1;
}

.aap-search-button {
    width: 100%;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.aap-search-button:hover {
    background: #135e96;
}

/* Responsive Design */
@media (max-width: 768px) {
    .aap-cars-grid,
    .aap-featured-cars {
        grid-template-columns: 1fr;
    }
    
    .aap-search-fields {
        grid-template-columns: 1fr;
    }
    
    .aap-car-meta {
        flex-wrap: wrap;
    }
}

/* Single Car Page */
.aap-single-car {
    max-width: 1200px;
    margin: 0 auto;
}

.aap-single-car-header {
    margin-bottom: 40px;
}

.aap-single-car-gallery {
    margin-bottom: 40px;
}

.aap-single-car-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.aap-detail-section {
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.aap-detail-section h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #2271b1;
}

.aap-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.aap-detail-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.aap-detail-item:last-child {
    border-bottom: none;
}

.aap-detail-item strong {
    display: block;
    color: #666;
    font-size: 13px;
    margin-bottom: 3px;
}

.aap-feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.aap-feature-list li {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

.aap-feature-list li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 5px;
}

@media (max-width: 968px) {
    .aap-single-car-details {
        grid-template-columns: 1fr;
    }
    
    .aap-detail-grid,
    .aap-feature-list {
        grid-template-columns: 1fr;
    }
}
