/* Single Car Template Styles */
.single-car-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 20px);
    box-sizing: border-box;
}

.single-car-layout-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: start;
}

.single-car-hero {
    min-width: 0;
    margin-bottom: 0;
    position: relative;
}

.single-car-hero .single-car-swiper,
.single-car-hero .swiper-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.single-car-meta-section {
    min-width: 0;
}

/* 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;
    gap: clamp(10px, 2vw, 20px);
    margin-bottom: 5px;
    padding-top: 40px;
    padding-bottom: 20px;
}

.single-car-title {
    margin: 0;
    font-size: clamp(1.6em, 2.5vw + 0.8em, 2.5em);
    font-weight: 600;
    min-width: 0;
}

.single-car-price {
    font-size: clamp(1.3em, 1.5vw + 0.8em, 2em);
    font-weight: 600;
    color: #0073aa;
    white-space: nowrap;
}

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

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

.single-meta-item {
    display: flex;
    flex-direction: row;
    flex: 1 1 140px;
    flex-wrap: wrap;
    min-width: 0;
}

.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 {
    min-width: 0;
    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;
    justify-content: 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;
    text-align: center;
}

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

/* Stack when the two-column layout gets too tight */
@media (max-width: 900px) {
    .single-car-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .single-car-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .hero-image {
        height: 300px;
    }

    .single-meta-item {
        padding: 0 10px 0 0;
        flex: 1 1 120px;
    }
}

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