.vehicle-detail {
    padding: 30px 0 80px;
    background-color: #fff;
}

.vehicle-detail__breadcrumb {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 38px;
}

.vehicle-detail__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 43px;
    padding: 10px 20px;
    border: 1px solid var(--color-orange);
    border-radius: 5px;
    color: var(--color-orange);
    font-family: var(--font-main);
    text-decoration: none;
}

.vehicle-detail__breadcrumb-text {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-family: var(--font-main);
    font-size: 14px;
}

.vehicle-detail__breadcrumb-text a,
.vehicle-detail__breadcrumb-text strong {
    color: var(--color-black);
}

.vehicle-detail__layout {
    display: grid;
    grid-template-columns: 342px minmax(0, 1fr);
    gap: 52px;
    align-items: start;
}

.vehicle-detail__sidebar {
    position: relative;
}

.vehicle-detail__layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 50px;
    align-items: start;
}

.vehicle-detail__sidebar {
    position: sticky;
    top: 30px;
    align-self: start;
}

.admin-bar .vehicle-detail__sidebar {
    top: 62px;
}

.vehicle-request {
    border: 1px solid #333;
    border-radius: 6px;
    padding: 35px;
    background: #fff;
}

.vehicle-request__title {
    margin: 0 0 15px;
    font-family: var(--font-main);
    font-size: 27px;
    line-height: 1.2;
    text-align: center;
}

.vehicle-request__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vehicle-request__field input,
.vehicle-request__field select {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #fff;
    color: var(--color-black);
    font-family: var(--font-main);
    font-size: 14px;
}

.vehicle-request__privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 3px 0;
    font-family: var(--font-main);
    font-size: 13px;
    line-height: 1.35;
}

.vehicle-request__privacy input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.vehicle-request__privacy a {
    color: inherit;
    font-weight: 600;
}

.vehicle-request__button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    width: 100%;
    padding: 10px 15px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.vehicle-request__button--submit {
    background-color: var(--color-orange);
}

.vehicle-request__button--whatsapp {
    background-color: #04c933;
}

.vehicle-detail__content {
    min-width: 0;
}

.vehicle-detail__header {
    margin-bottom: 17px;
}

.vehicle-detail__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 44px;
    margin-bottom: 14px;
    padding: 8px 20px;
    border-radius: 5px;
    background-color: var(--color-orange);
    color: #fff;
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 700;
}

.vehicle-detail__title {
    max-width: 680px;
    margin: 0 0 7px;
    color: var(--color-black);
    font-family: var(--font-header);
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.07;
    text-transform: uppercase;
}

.vehicle-detail__price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--color-orange);
    font-family: var(--font-main);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.1;
}

.vehicle-gallery__main {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1.3 / 1;
    background-color: #eee;
}

.vehicle-gallery__slide {
    position: absolute;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.vehicle-gallery__slide.is-active {
    visibility: visible;
    opacity: 1;
}

.vehicle-gallery__slide img,
.vehicle-gallery__slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-gallery__progress {
    position: relative;
    height: 5px;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 10px;
    background-color: #ddd;
}

.vehicle-gallery__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background-color: var(--color-orange);
    transition: width 0.25s ease;
}

.vehicle-gallery__bottom {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.vehicle-gallery__thumbs {
    display: flex;
    flex: 1;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.vehicle-gallery__thumb {
    position: relative;
    flex: 0 0 116px;
    width: 116px;
    height: 93px;
    padding: 0;
    overflow: hidden;
    border: 3px solid transparent;
    background-color: #222;
    cursor: pointer;
}

.vehicle-gallery__thumb.is-active {
    border-color: var(--color-orange);
}

.vehicle-gallery__thumb img,
.vehicle-gallery__video-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-gallery__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgb(0 0 0 / 10%);
}

.vehicle-gallery__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    color: #fff;
    font-size: 42px;
    transform: translate(-50%, -50%);
}

.vehicle-gallery__arrows {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.vehicle-gallery__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 5px;
    background-color: #eee;
    color: var(--color-black);
    font-size: 30px;
    cursor: pointer;
}

.vehicle-gallery__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vehicle-specifications {
    margin-top: 52px;
}

.vehicle-specifications__title {
    margin: 0 0 15px;
    font-family: var(--font-header);
    font-size: 28px;
    line-height: 1.2;
}

.vehicle-specifications__list {
    margin: 0;
}

.vehicle-specifications__row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.05fr);
    gap: 30px;
    padding: 12px 0;
    border-bottom: 1px solid #ccc;
    font-family: var(--font-main);
    font-size: 16px;
}

.vehicle-specifications__row:last-child {
    border-bottom: 0;
}

.vehicle-specifications__row dt,
.vehicle-specifications__row dd {
    margin: 0;
}

.vehicle-specifications__row dd {
    font-weight: 700;
}

@media (max-width: 1100px) {
    .vehicle-detail__layout {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 30px;
    }

    .vehicle-request {
        padding: 25px 24px;
    }
}

@media (max-width: 850px) {
    .vehicle-detail__layout {
        grid-template-columns: 1fr;
    }

    .vehicle-detail__content {
        grid-row: 1;
    }

    .vehicle-detail__sidebar {
        grid-row: 2;
    }

    .vehicle-request {
        position: static;
        max-width: 520px;
        margin: 0 auto;
    }
}

@media (max-width: 580px) {
    .vehicle-detail__breadcrumb {
        align-items: flex-start;
        flex-direction: column;
    }

    .vehicle-gallery__thumb {
        flex-basis: 90px;
        width: 90px;
        height: 72px;
    }

    .vehicle-gallery__bottom {
        flex-direction: column;
    }

    .vehicle-gallery__arrows {
        margin-left: 0;
    }

    .vehicle-specifications__row {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        font-size: 14px;
    }
}

.vehicle-gallery__video-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(
            rgb(0 0 0 / 35%),
            rgb(0 0 0 / 35%)
        ),
        #333;
}

.vehicle-gallery__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    color: #fff;
    font-size: 38px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.vehicle-gallery__slide video {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #000;
    object-fit: contain;
}