/* ===== VEHICLE CARD ENHANCEMENTS ===== */
.no-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #f8f9fa 25%, #e9ecef 25%, #e9ecef 50%, #f8f9fa 50%, #f8f9fa 75%, #e9ecef 75%);
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-weight: 600;
}

.no-vehicles {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 10px;
    grid-column: 1 / -1;
    color: #666;
    font-size: 1.1rem;
}

/* Ensure vehicle cards display properly */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.vehicle-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}


/* ===== SINGLE VEHICLE PAGE STYLES ===== */
.single-vehicle {
    padding: 100px 0 50px;
}

.vehicle-main-layout {
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 40px;
    margin-bottom: 50px;
}

/* Gallery Column */
.vehicle-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vehicle-gallery-main {
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

.vehicle-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.vehicle-gallery-main img:hover {
    transform: scale(1.02);
}

.no-main-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f8f9fa 25%, #e9ecef 25%, #e9ecef 50%, #f8f9fa 50%, #f8f9fa 75%, #e9ecef 75%);
    background-size: 20px 20px;
    color: #6c757d;
}

.placeholder-content {
    text-align: center;
}

.placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.placeholder-text {
    font-size: 1.2rem;
    font-weight: 600;
}

.vehicle-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gallery-thumb {
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f8f9fa;
    aspect-ratio: 1;
}

.gallery-thumb:hover {
    border-color: #ff6b00;
    transform: translateY(-2px);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-gallery-text {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Details Column */
.vehicle-details-column {
    display: flex;
    flex-direction: column;
}

.vehicle-details-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 100px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.vehicle-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.3;
}

.vehicle-price {
    font-size: 32px;
    font-weight: bold;
    color: #ff6b00;
    margin-bottom: 25px;
}

.detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.detail-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a1a;
    border-bottom: 2px solid #ff6b00;
    padding-bottom: 5px;
}

.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.detail-item .label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.detail-item .value {
    color: #1a1a1a;
    font-weight: 500;
    text-align: right;
    font-size: 14px;
}

/* Availability Badge */
.availability-badge .badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.availability-badge .badge.available {
    background: #d4edda;
    color: #155724;
}

.availability-badge .badge.sold {
    background: #f8d7da;
    color: #721c24;
}

.availability-badge .badge.pending {
    background: #fff3cd;
    color: #856404;
}

/* Action Buttons */
.vehicle-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn-primary {
    background: #ff6b00;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-primary:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-secondary:hover {
    background: #333;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
    padding: 13px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-outline:hover {
    border-color: #ff6b00;
    color: #ff6b00;
    transform: translateY(-2px);
}

/* Description Section */
.vehicle-description-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.vehicle-description-section h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
    border-bottom: 2px solid #ff6b00;
    padding-bottom: 10px;
    font-size: 28px;
}

.description-content {
    line-height: 1.7;
    color: #495057;
    font-size: 16px;
}

.description-content p {
    margin-bottom: 1.5rem;
}

.vehicle-highlights {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.vehicle-highlights h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 20px;
}

.highlights-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #ff6b00;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 107, 0, 0.8);
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.lightbox-next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .vehicle-main-layout {
        grid-template-columns: 60% 40%;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .vehicle-main-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vehicle-details-card {
        position: static;
    }
    
    .vehicle-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .vehicle-gallery-main,
    .no-main-image {
        min-height: 300px;
    }
    
    .vehicle-description-section {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .vehicle-gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vehicle-gallery-main,
    .no-main-image {
        min-height: 250px;
    }
    
    .vehicle-details-card {
        padding: 20px;
    }
    
    .vehicle-price {
        font-size: 28px;
    }
    
    .vehicle-title {
        font-size: 20px;
    }
}




/* Lightbox body state */
body.lightbox-open {
    overflow: hidden;
}
  




/* ===== PAYMENT CALCULATOR ENHANCEMENTS ===== */
.calc-breakdown {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.breakdown-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #f5c6cb;
}

.calc-error p {
    margin: 0;
    text-align: center;
}

#reset-calculator {
    margin-top: 10px;
}

/* Calculator responsive */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    #calculate-payment,
    #reset-calculator {
        width: 100%;
        margin: 5px 0;
    }
}





/* ===== VEHICLE FILTERS ENHANCEMENTS ===== */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.filter-results-info {
    margin-top: 15px;
    padding: 15px;
    background: #e9ecef;
    border-radius: 5px;
    text-align: center;
}

.filter-results-info p {
    margin: 0;
    color: #495057;
    font-weight: 500;
}

.no-results {
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px;
    border-radius: 5px;
}

.no-results a {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
}

.no-results a:hover {
    color: #665800;
}

/* Filter responsive */
@media (max-width: 768px) {
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
        margin: 5px 0;
    }
}

/* Smooth transitions for filtering */
.vehicle-card {
    transition: all 0.3s ease;
}

.vehicle-card[style*="display: none"] {
    opacity: 0;
    transform: scale(0.9);
}
