/* Car Details Page Styles */

/* Breadcrumb */
.breadcrumb-section {
    padding: 20px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #764ba2;
}

.breadcrumb .separator {
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

/* Car Details Section */
.car-details-section {
    padding: 40px 0;
}

.car-details-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

/* Gallery */
.car-gallery {
    margin-bottom: 30px;
}

.main-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 15px;
}

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

.image-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

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

.thumbnail:hover,
.thumbnail.active {
    border-color: #667eea;
    transform: scale(1.05);
}

/* Car Info Card */
.car-info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.car-header {
    margin-bottom: 25px;
}

.car-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.car-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.meta-item i {
    color: #667eea;
}

.car-price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: #667eea;
}

.condition-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.condition-badge.new {
    background: #00c853;
    color: white;
}

.condition-badge.used {
    background: #ff9800;
    color: white;
}

/* Specifications */
.specifications-section {
    margin-bottom: 30px;
}

.specifications-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.spec-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.spec-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.spec-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.spec-value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

/* Features */
.features-section {
    margin-bottom: 30px;
}

.features-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e8f5e9;
    transform: translateX(5px);
}

.feature-item i {
    color: #00c853;
    font-size: 1rem;
}

.feature-item span {
    font-size: 0.95rem;
    color: #333;
}

/* Description */
.description-section {
    margin-bottom: 30px;
}

.description-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.description-section p {
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

/* Safety Tips */
.safety-tips-section {
    margin-bottom: 30px;
}

.safety-tips-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.safety-tips-list {
    display: grid;
    gap: 12px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff3e0;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.tip-item i {
    color: #ff9800;
    font-size: 1.1rem;
}

.tip-item span {
    font-size: 0.95rem;
    color: #333;
}

/* Sidebar */
.car-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Seller Card */
.seller-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.seller-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.seller-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #e8f5e9;
    color: #00c853;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.seller-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item i {
    display: block;
    color: #667eea;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
}

.seller-contact {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #555;
    font-size: 0.9rem;
}

.contact-item i {
    color: #667eea;
    width: 20px;
}

.seller-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-call,
.btn-whatsapp {
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-call {
    background: #f0f0f0;
    color: #333;
}

.btn-call:hover {
    background: #e0e0e0;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Contact Form */
.contact-form-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Location Card */
.location-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.location-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #555;
    font-size: 0.95rem;
}

.location-info i {
    color: #667eea;
}

.map-placeholder {
    height: 200px;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.map-placeholder p {
    font-size: 0.9rem;
}

/* Similar Cars */
.similar-cars-section {
    padding: 50px 0;
}

.similar-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.similar-car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.similar-car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.similar-car-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #f5f5f5;
}

.similar-car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.similar-car-price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.similar-car-content {
    padding: 15px;
}

.similar-car-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

.similar-car-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.similar-car-specs span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.similar-car-specs i {
    color: #667eea;
}

.btn-view-similar {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view-similar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .car-details-layout {
        grid-template-columns: 1fr;
    }
    
    .car-details-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .car-header h1 {
        font-size: 1.5rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-image {
        height: 300px;
    }
    
    .similar-cars-grid {
        grid-template-columns: 1fr;
    }
}

/* RTL Support */
[dir="rtl"] .breadcrumb {
    flex-direction: row-reverse;
}

[dir="rtl"] .image-actions {
    right: auto;
    left: 15px;
}

[dir="rtl"] .spec-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .feature-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .tip-item {
    border-left: none;
    border-right: 4px solid #ff9800;
}

[dir="rtl"] .btn-view-similar:hover {
    transform: translateY(-2px);
}
