/* Single Car Template Styles */
.single-car-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.single-car-layout-wrapper {
    display: flex;
    gap: 40px;
}

.single-car-hero {
    flex: 2;
    margin-bottom: 0px;
    position: relative;
}

.single-car-meta-section {
    flex: 1;
}

/* Hero Section */
.car-hero {
    position: relative;
    margin-bottom: 40px;
}

.hero-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
}

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

.back-button-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 1);
}

.back-button .dashicons {
    margin-right: 8px;
}

/* Header Section */
.single-car-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    padding-top: 40px;
    padding-bottom: 20px;
}

.single-car-title {
    margin: 0;
    font-size: 2.5em;
    font-weight: 600;
}

.single-car-price {
    font-size: 2em;
    font-weight: 600;
    color: #0073aa;
}

/* Meta Section */
.single-car-meta-section {
    margin-bottom: 40px;
}

.single-meta-grid {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    align-content: flex-start;
    gap: 10px;
}

.single-meta-item {
    display: flex;
    flex-direction: row;
    flex: 1 1 250px;
    flex-wrap: wrap;
}

.single-meta-label {
    font-weight: 600;
    color: #aaa;
}

.single-meta-value {
    font-size: 1.1em;
    padding-left: 5px;
}

/* Description Section */
.single-car-description {
    margin-bottom: 40px;
}

.single-car-description h2 {
    margin-bottom: 20px;
    font-size: 1.8em;

}

.single-description-content {
    line-height: 1.6;

}

.single-description-content p {
    margin-bottom: 1em;
}

.single-car-hero-wrapper {
    flex: 1;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* View Gallery Button */
.single-car-view-gallery-button-container {
    display: flex;
    align-items: center;
}

.single-car-view-gallery-button {
    text-align: center;
}

.single-car-view-gallery-button-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #fdc725;
    color: black;   
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.single-car-view-gallery-button-link:hover {
    background-color:rgb(211, 166, 30);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .single-car-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .single-car-layout-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .single-car-title {
        font-size: 2em;
    }

    .single-car-price {
        font-size: 1.5em;
    }

    .hero-image {
        height: 300px;
    }

    .single-meta-grid {
        /* grid-template-columns: 1fr; */
        justify-content: flex-start;
    }

    .single-meta-item {
        padding: 0 10px 0 0;
        flex: unset;
        min-width: 50%;
    }
}

