.vehicle-detail-page {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.vehicle-detail-page .breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
    margin-bottom: 1.4rem;
    overflow: hidden;
}

.vehicle-detail-page .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    flex: 0 1 auto;
    white-space: nowrap;
}

.vehicle-detail-page .breadcrumb-item > a,
.vehicle-detail-page .breadcrumb-item.active {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-detail-page .breadcrumb-item + .breadcrumb-item::before {
    flex: 0 0 auto;
}

.vehicle-detail-page .vehicle-detail-breadcrumb-title {
    display: block;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vehicle-surface-card {
    border: 1px solid #dfe8f3;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(14, 31, 57, 0.08);
}

.vehicle-detail-media-card .card-body {
    padding: 1rem;
}

.vehicle-detail-media-card #vehicleCarousel {
    margin: -1rem -1rem 0;
}

.vehicle-detail-image,
.vehicle-detail-placeholder {
    display: block;
    width: 100%;
    height: min(65vw, 560px);
    object-fit: cover;
    border-radius: 28px;
    background: #edf3f9;
}

.vehicle-detail-carousel-frame {
    position: relative;
}

.vehicle-carousel-split-nav {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 2;
}

.vehicle-carousel-hit-area {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.vehicle-carousel-hit-area:hover,
.vehicle-carousel-hit-area:active,
.vehicle-carousel-hit-area:focus,
.vehicle-carousel-hit-area:focus-visible {
    border: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
}

.vehicle-carousel-hit-area--prev,
.vehicle-carousel-hit-area--next {
    width: 10%;
}

.vehicle-carousel-hit-area--center {
    width: 80%;
}

.vehicle-carousel-hit-area--prev {
    border-radius: 28px 0 0 28px;
}

.vehicle-carousel-hit-area--next {
    border-radius: 0 28px 28px 0;
}

.vehicle-detail-image-count {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    border-radius: 999px;
    background: rgba(11, 16, 24, 0.72);
    color: #fff;
    padding: 0.45rem 0.85rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.vehicle-gallery-carousel .carousel-item > .d-flex {
    min-height: 100%;
    padding: 1rem;
}

.vehicle-gallery-carousel .carousel-item img {
    max-height: calc(100vh - 2rem);
    max-width: calc(100vw - 2rem);
}

#imageGalleryModal .modal-content,
#imageGalleryModal .modal-body {
    background: #0b1018;
}

#imageGalleryModal .modal-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    padding: calc(env(safe-area-inset-top, 0px) + 0.35rem) 0 0;
    pointer-events: none;
}

#imageGalleryModal .btn-close {
    pointer-events: auto;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 999px;
    background-color: rgba(9, 15, 26, 0.72);
    background-position: center;
    background-size: 0.9rem;
    opacity: 1;
}

#galleryCarousel .carousel-control-prev,
#galleryCarousel .carousel-control-next {
    width: clamp(56px, 7vw, 84px);
    opacity: 1;
}

#galleryCarousel .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next-icon {
    display: block;
    width: clamp(2.5rem, 4vw, 3rem);
    height: clamp(2.5rem, 4vw, 3rem);
    background-color: rgba(0, 0, 0, 0.5);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 42%;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

#galleryCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#galleryCarousel .carousel-control-prev:focus .carousel-control-prev-icon,
#galleryCarousel .carousel-control-next:hover .carousel-control-next-icon,
#galleryCarousel .carousel-control-next:focus .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.75);
}

.vehicle-thumbnails {
    gap: 0.6rem !important;
    margin-top: 0.9rem !important;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #dee2e6 #fff;
    padding: 2px 4px;
}

.vehicle-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.vehicle-thumbnails::-webkit-scrollbar-track {
    background: #fff;
}

.vehicle-thumbnails::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 3px;
}

.thumbnail-item {
    flex: 0 0 clamp(112px, 18vw, 148px);
    aspect-ratio: 4 / 3;
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
    background: transparent;
    border: 1px solid #d7e2ef;
    box-shadow: 0 4px 10px rgba(14, 31, 57, 0.06);
    scroll-snap-align: start;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    cursor: pointer;
}

.thumbnail-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
}

.thumbnail-item.active {
    border-color: #17314f;
    box-shadow: 0 0 0 1px #17314f, 0 10px 22px rgba(14, 31, 57, 0.14);
    transform: translateY(-1px);
}

.vehicle-summary-price {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.05;
    font-weight: 800;
    color: #173c2f;
}

.vehicle-summary-price-note {
    margin: 0.35rem 0 0;
    color: #3f5d51;
    font-size: 1rem;
    font-weight: 700;
}

.vehicle-summary-price-block {
    margin-top: 1.15rem;
}

.vehicle-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #e7f4ee;
    color: #087f5b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vehicle-certification-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #eef7ff;
    color: #23507f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.vehicle-title-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.vehicle-detail-title {
    line-height: 1.15;
}

.vehicle-detail-address {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    min-height: 2rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: #f3f8fd;
    color: #456070;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
}

.vehicle-detail-address-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 0.95rem;
    height: 0.95rem;
    color: #0f5f99;
}

.vehicle-detail-address-icon svg {
    width: 0.95rem;
    height: 0.95rem;
}

.vehicle-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.vehicle-section-nav--page {
    padding-top: 0;
    padding-bottom: 0.1rem;
}

.vehicle-section-nav--page:not(:empty) {
    margin-bottom: 1.25rem;
}

.vehicle-section-nav:not(.vehicle-section-nav--page) {
    padding-top: 1.1rem;
    border-top: 1px solid #edf0f2;
}

.vehicle-section-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.6rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    border: 1px solid #dbe6f0;
    background: #fff;
    color: #314451;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.vehicle-section-link:hover,
.vehicle-section-link:focus {
    background: #f3f8fd;
    border-color: #b7cadb;
    color: #17314f;
}

.vehicle-section-link.is-active,
.vehicle-section-link[aria-current="true"] {
    background: #17314f;
    border-color: #17314f;
    color: #fff;
}

.vehicle-model-range-band {
    position: relative;
    padding: 1.2rem 1.25rem;
    border-radius: 24px;
    background: linear-gradient(180deg, #f3f8fd 0%, #ecf4fb 100%);
    border: 1px solid #dbe7f2;
    overflow: hidden;
    cursor: pointer;
}

.vehicle-model-range-band--compact {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 20px;
}

.vehicle-model-range-heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.vehicle-model-range-label {
    color: #51606c;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vehicle-model-range-info {
    position: relative;
    z-index: 3;
    border: 0;
    background: transparent;
    padding: 0;
    color: #0f5f99;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: underline;
}

.vehicle-model-range-value {
    position: relative;
    z-index: 2;
    color: #17314f;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    line-height: 1.05;
    font-weight: 800;
}

.vehicle-model-range-band--compact .vehicle-model-range-value {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
}

.vehicle-model-range-copy {
    position: relative;
    z-index: 2;
    margin-top: 0.8rem;
    color: #546773;
    font-size: 0.96rem;
}

.vehicle-model-range-band--compact .vehicle-model-range-copy {
    margin-top: 0.45rem;
    font-size: 0.87rem;
}

.vehicle-model-range-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.65rem;
    color: #0f5f99;
    font-size: 0.9rem;
    font-weight: 800;
}

.vehicle-model-range-cta::after {
    content: '\2192';
    font-size: 1rem;
    line-height: 1;
}

.vehicle-model-range-band:hover,
.vehicle-model-range-band:focus-visible {
    border-color: #b9d1e7;
    box-shadow: 0 10px 24px rgba(15, 95, 153, 0.1);
}

.vehicle-model-range-band[href] {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.vehicle-feature-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
}

.vehicle-feature-icon-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 0.8rem;
    margin-top: 1rem;
}

.vehicle-feature-icon-tile {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    min-height: 100%;
    padding: 1rem 1.05rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.vehicle-feature-icon-grid--compact .vehicle-feature-icon-tile {
    gap: 0.85rem;
    padding: 0;
    align-items: flex-start;
}

.vehicle-feature-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #f3f8fd;
    color: #17314f;
}

.vehicle-feature-icon-grid--compact .vehicle-feature-icon {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #eef4fb;
    color: #123d7a;
}

.vehicle-feature-icon svg {
    width: 20px;
    height: 20px;
}

.vehicle-feature-icon-grid--compact .vehicle-feature-icon svg {
    width: 26px;
    height: 26px;
}

.vehicle-feature-icon-copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
    padding-top: 0.15rem;
}

.vehicle-feature-icon-label {
    color: #76818d;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.2;
}

.vehicle-feature-icon-value {
    color: #16202a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.vehicle-feature-icon-grid--compact .vehicle-feature-icon-value {
    display: block;
    min-width: 0;
    color: #26333e;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

.vehicle-overview-card .card-body,
.vehicle-location-card .card-body,
.vehicle-summary-card .card-body,
.vehicle-content-card .card-body,
.vehicle-title-card .card-body {
    padding: 1.35rem;
}

.vehicle-overview-grid,
.vehicle-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.2rem;
}

.vehicle-detail-section + .vehicle-detail-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #edf0f2;
}

.vehicle-detail-section {
    scroll-margin-top: 1.25rem;
}

.vehicle-overview-item,
.vehicle-spec-grid div {
    border-bottom: 1px solid #edf0f2;
    padding-bottom: 0.75rem;
}

.vehicle-overview-item-label,
.vehicle-spec-grid dt {
    display: block;
    color: #6b7a86;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vehicle-overview-item-value,
.vehicle-spec-grid dd {
    margin: 0.35rem 0 0;
    font-weight: 700;
    color: #16202a;
}

.vehicle-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
}

.vehicle-highlight-card {
    padding: 1rem 1.05rem;
    border: 1px solid #e2eaf1;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfdff 0%, #f5f8fb 100%);
}

.vehicle-highlight-label {
    display: block;
    color: #6b7a86;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.vehicle-highlight-value {
    margin-top: 0.45rem;
    color: #16202a;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.vehicle-location-card .btn {
    border-radius: 999px;
}

.vehicle-detail-map {
    height: 260px;
    margin-bottom: 1rem;
    background: #eef3f8;
}

.vehicle-map-link {
    font-weight: 700;
}

.vehicle-contact-list {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
    display: grid;
    gap: 0.55rem;
}

.vehicle-contact-list li {
    color: #50606b;
}

.vehicle-summary-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.vehicle-summary-list div {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #edf0f2;
}

.vehicle-summary-list dt {
    margin: 0 0 0.2rem;
    color: #6b7a86;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vehicle-summary-list dd {
    margin: 0;
    color: #16202a;
    font-weight: 600;
}

.vehicle-summary-list--hero {
    margin-top: 1.3rem;
}

.vehicle-summary-list--hero dd {
    font-size: 1rem;
    font-weight: 700;
}

.vehicle-summary-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.vehicle-summary-actions .btn {
    min-height: 3rem;
    border-radius: 999px;
    font-weight: 700;
}

.vehicle-summary-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #415561;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
}

.vehicle-summary-location-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: #0f5f99;
}

.vehicle-summary-location-icon svg {
    width: 1rem;
    height: 1rem;
}

.vehicle-contact-modal .modal-header,
.vehicle-info-modal .modal-header {
    border-bottom: 1px solid #edf0f2;
}

.vehicle-contact-modal .modal-body,
.vehicle-info-modal .modal-body {
    padding: 1.35rem;
}

.vehicle-contact-modal-grid {
    display: grid;
    gap: 1rem;
}

.vehicle-contact-info-card {
    border: 1px solid #e2eaf1;
    border-radius: 20px;
    background: #fbfdff;
    padding: 1rem 1.05rem;
}

.vehicle-contact-info-copy {
    display: grid;
    gap: 0.35rem;
}

.vehicle-contact-modal-link {
    color: #0f5f99;
    font-weight: 700;
    text-decoration: none;
}

.vehicle-contact-modal-link:hover,
.vehicle-contact-modal-link:focus {
    text-decoration: underline;
}

.vehicle-source-link {
    font-weight: 700;
}

.vehicle-similar-section {
    margin-top: 3rem;
}

.vehicle-similar-intro {
    margin-bottom: 1.25rem;
}

.vehicle-content-card .dm-prose p:last-child,
.vehicle-content-card .dm-prose ul:last-child,
.vehicle-content-card .dm-prose ol:last-child {
    margin-bottom: 0;
}

.vehicle-detail-relocation-target:empty,
[data-vehicle-detail-mobile-overview-target]:empty,
[data-vehicle-detail-mobile-location-target]:empty {
    display: none;
}

[data-vehicle-detail-mobile-overview-target]:not(:empty) {
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .vehicle-detail-hero-row {
        row-gap: 1rem;
    }

    .vehicle-summary-column {
        margin-top: -0.5rem;
    }

    .vehicle-detail-image,
    .vehicle-detail-placeholder {
        height: min(72vw, 460px);
    }

    .vehicle-thumbnails {
        gap: 0.5rem !important;
    }

    .thumbnail-item {
        flex-basis: clamp(88px, 11vw, 108px);
    }
    
    .vehicle-detail-page .vehicle-detail-breadcrumb-item--deep {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .vehicle-detail-page .breadcrumb {
        margin-bottom: 1.1rem;
    }

    .vehicle-detail-page .vehicle-detail-breadcrumb-item--near {
        display: none;
    }

    .vehicle-title-badges {
        gap: 0.55rem;
    }

    .vehicle-feature-icon-grid,
    .vehicle-feature-icon-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 0.65rem;
    }

    .vehicle-overview-grid,
    .vehicle-spec-grid,
    .vehicle-highlight-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-detail-image,
    .vehicle-detail-placeholder {
        height: min(78vw, 340px);
        border-radius: 22px;
    }

    .vehicle-carousel-hit-area--prev,
    .vehicle-carousel-hit-area--next {
        width: 15%;
    }

    .vehicle-carousel-hit-area--center {
        width: 70%;
    }

    .vehicle-gallery-carousel .carousel-item > .d-flex {
        padding: 0.35rem;
    }

    .vehicle-gallery-carousel .carousel-item img {
        max-height: calc(100vh - 0.7rem);
        max-width: calc(100vw - 0.7rem);
    }

    #imageGalleryModal .modal-header {
        padding: calc(env(safe-area-inset-top, 0px) + 0.35rem) 0.35rem 0;
    }

    #imageGalleryModal .btn-close {
        width: 2.5rem;
        height: 2.5rem;
        background-size: 0.82rem;
    }

    #galleryCarousel .carousel-control-prev,
    #galleryCarousel .carousel-control-next {
        width: 56px;
    }

    #galleryCarousel .carousel-control-prev-icon,
    #galleryCarousel .carousel-control-next-icon {
        width: 2.5rem;
        height: 2.5rem;
        background-size: 40%;
    }

    .vehicle-summary-price {
        font-size: clamp(1.65rem, 8vw, 2.1rem);
    }

    .vehicle-model-range-band--compact {
        padding: 0.85rem 0.9rem;
    }

    .vehicle-feature-icon-grid--compact .vehicle-feature-icon-tile {
        gap: 0.7rem;
    }

    .vehicle-feature-icon-grid--compact .vehicle-feature-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .vehicle-feature-icon-grid--compact .vehicle-feature-icon svg {
        width: 22px;
        height: 22px;
    }

    .vehicle-feature-icon-grid--compact .vehicle-feature-icon-value {
        font-size: 0.9rem;
        line-height: 1.15;
    }
}
