/* ── Vehicles panel ─────────────────────────────────────────
   Figma: desktop 3093:120496 — words beside the vehicles, each a
   Mid Green bar opening to its photo and details, on Deep Green.
   ─────────────────────────────────────────────────────────── */

.vehicles-panel {
    padding: var(--pad-y) var(--pad-x) 40px;
    background: var(--color-secondary);
    color: var(--color-white);
}

.vehicles-panel__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: var(--site-max-w);
    margin: 0 auto;
}

.vehicles-panel__text {
    display: flex;
    flex: 0 1 574px;
    flex-direction: column;
    gap: 32px;
}

.vehicles-panel__words {
    display: flex;
    flex-direction: column;
    gap: 20px;
    line-height: 20.8px;
}

.vehicles-panel__title {
    font-family: var(--font-heading);
    font-size: 45px;
    font-weight: 600;
    line-height: 48px;
}

.vehicles-panel__subtitle {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
}

.vehicles-panel__body > * + * {
    margin-top: 20.8px;
}

.vehicles-panel__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.vehicles-panel__buttons .button {
    min-width: 157px;
}

.vehicles-panel__list {
    display: flex;
    flex: 0 1 580px;
    flex-direction: column;
    gap: 12px;
}

.vehicles-panel__item {
    overflow: hidden;
    border-radius: 8px;
    background: var(--color-grey);
    color: var(--color-text);
    interpolate-size: allow-keywords;
}

.vehicles-panel__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 25px;
    list-style: none;
    cursor: pointer;
}

.vehicles-panel__item summary::-webkit-details-marker {
    display: none;
}

.vehicles-panel__chevron {
    flex: none;
    transition: rotate var(--transition);
}

.vehicles-panel__item[open] .vehicles-panel__chevron {
    rotate: 180deg;
}

.vehicles-panel__item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size var(--transition), content-visibility var(--transition) allow-discrete;
}

.vehicles-panel__item[open]::details-content {
    block-size: auto;
}

.vehicles-panel__detail {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 24px;
}

.vehicles-panel__photo {
    width: 100%;
    height: 299px;
    border-radius: 8px;
    object-fit: cover;
}

.vehicles-panel__spec {
    line-height: 20.8px;
}

.vehicles-panel__spec > * + * {
    margin-top: 20.8px;
}

.vehicles-panel__spec strong {
    font-family: var(--font-heading);
    font-weight: 500;
}

@media (max-width: 1024px) {
    .vehicles-panel__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .vehicles-panel__text,
    .vehicles-panel__list {
        flex: none;
    }

    .vehicles-panel__title {
        font-size: 32px;
        line-height: 36px;
    }
}

/* Mobile: the words, the bars, then the buttons, 25px apart */
@media (max-width: 767px) {
    .vehicles-panel__inner {
        gap: 25px;
    }

    .vehicles-panel__text {
        display: contents;
    }

    .vehicles-panel__list {
        order: 1;
    }

    .vehicles-panel__buttons {
        order: 2;
    }

    .vehicles-panel__title {
        font-size: 36px;
        font-weight: 700;
        line-height: 34px;
    }

    .vehicles-panel__item summary {
        font-size: 18px;
    }

    .vehicles-panel__photo {
        height: 185px;
    }

    .vehicles-panel__buttons {
        flex-direction: column;
        gap: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vehicles-panel__item::details-content {
        transition: none;
    }
}
