﻿    
    
    /* ================================
    BO ADD: Modal Host styling
    ================================ */

    .bo-modal-dialog {
        width: 100%;
        margin: 0.75rem;
    }

    @media (min-width: 768px) {
        .bo-modal-dialog {
            margin: 1.5rem auto;
        }
    }

    .bo-modal-content {
        border: 0;
        border-radius: var(--bo-radius-lg);
        overflow: hidden;
    }

    .bo-modal-header {
        border-bottom: 1px solid rgba(0, 0, 0, .06);
        padding: 14px 16px;
    }

    .bo-modal-body {
        padding: 16px;
    }

    /* Size presets controlled by JS (we'll toggle these classes) */
    .bo-modal--sm .bo-modal-dialog {
        max-width: 520px;
    }

    .bo-modal--md .bo-modal-dialog {
        max-width: 720px;
    }

    .bo-modal--lg .bo-modal-dialog {
        max-width: 900px;
    }

    .bo-modal--xl .bo-modal-dialog {
        max-width: 1100px;
    }

    /* Fullscreen on mobile for certain modals (gallery/forms) */
    @media (max-width: 767.98px) {
        .bo-modal--mobile-full .bo-modal-dialog {
            max-width: none;
            width: 100%;
            height: 100%;
            margin: 0;
        }

        .bo-modal--mobile-full .bo-modal-content {
            border-radius: 0;
            height: 100%;
        }

        .bo-modal--mobile-full .bo-modal-body {
            height: calc(100vh - 56px);
            overflow: auto;
        }
    }

    .bo-hidden {
        display: none !important;
    }

    /* ================================
    BO ADD: Modal Share
    ================================ */

    .bo-modal--share .bo-modal-header {
        display: none;
    }

    .bo-modal--share .bo-modal-body {
        padding: 0;
    }

    .bo-share-modal {
        padding: 2rem;
    }


    .bo-share-head {
        display: flex;
        align-items: center;
        gap: .25rem;
        margin-bottom: 1.5rem;
    }

    .bo-share-title {
        font-size: clamp(1.5rem, 2.2vw, 1.5rem);
        font-weight: 700;
        margin: 0;
    }

    .bo-share-icon {
        width: 40px;
        height: 40px;
    }

    .bo-share-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1rem;
    }

    .bo-share-tile {
        background: var(--bo-blue-200);
        border-radius: 18px;
        padding: 1.25rem 1rem;
        border: 1px solid rgba(0, 0, 0, .06);
        display: grid;
        place-items: center;
        gap: .75rem;
        text-align: center;
        cursor: pointer;
        user-select: none;
        transition: transform .15s ease, filter .15s ease;
    }

    .bo-share-tile:hover {
        transform: translateY(-1px);
        filter: brightness(.99);
    }

    .bo-share-tile:active {
        transform: translateY(0);
    }

    .bo-share-tile-icon {
        width: 3rem;
        height: 3rem;
        max-height:3rem;
    }

    .bo-share-label {
        font-weight: 500;
        font-size: 1.05rem;
    }

    .bo-share-urlbox {
        margin-top: 1.5rem;
        background: #F1F1F2;
        border-radius: .625rem;
        padding: 0.9375rem 1.25rem;
        text-align: center;
        font-weight: 500;
        font-size: clamp(1rem, 1.6vw, 1rem);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    @media (max-width: 992px) {
        .bo-share-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (max-width: 576px) {
        .bo-share-modal {
            padding: 1rem;
        }

        .bo-share-shell {
            padding: 1rem;
        }

        .bo-share-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }


    /* ================================
    BO ADD: Modal Lead
    ================================ */

    .bo-modal--lead .bo-modal-header {
        display: none;
    }

    .bo-modal--lead .bo-modal-body {
        padding: 0;
    }

    .bo-lead-modal {
        padding: 2rem;
    }

    .bo-lead-head {
        display: flex;
        align-items: center;
        gap: .65rem;
        margin-bottom: 1.5rem;
    }

    .bo-lead-head-icon {
        width: 40px;
        height: 40px;
    }

    .bo-lead-title {
        font-size: clamp(1.5rem, 2.2vw, 1.5rem);
        font-weight: 700;
        margin: 0;
    }

    .bo-lead-car-img {
        width: 96px;
        height: 64px;
        border-radius: 14px;
        overflow: hidden;
        background: #f1f3f5;
        flex: 0 0 auto;
    }

    .bo-lead-car-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .bo-lead-toggle {
        width: 100%;
        background: #f7f7f8;
        border: 1px solid rgba(0, 0, 0, .06);
        border-radius: 18px;
        padding: 1.25rem 1.25rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 800;
    }

    .bo-lead-check {
        width: 1.5rem;
        height: 1.5rem;
        display: grid;
        place-items: center;
        border-radius: .45rem;
        border: 2px solid #111;
        font-weight: 900;
        color: transparent;
        background: transparent;
    }

    .bo-lead-toggle.is-on .bo-lead-check {
        background: #fff;
    }

    .bo-lead-car-meta .bo-pill {
    display: inline-flex;
    align-items: center;
    padding: .35rem .6rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .08);
    font-weight: 500;
    font-size: 12px;
    color:#101720;
    }

    .bo-pill--lead {
        background: #f7f7f8;
    }

    @media (max-width: 576px) {
        .bo-lead-modal {
            padding: 1rem;
        }
    }

    .bo-chip {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .45rem .65rem;
        border-radius: 999px;
        border: 1px solid rgba(0, 0, 0, .10);
        background: #fff;
        font-weight: 700;
        font-size: .85rem;
    }

    .bo-chip .bo-chip-x {
        width: 24px;
        height: 24px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        border: 1px solid rgba(0, 0, 0, .15);
        background: transparent;
        cursor: pointer;
        font-weight: 900;
        line-height: 1;
    }

    .bo-lead-toggle {
        cursor: pointer;
    }

    .bo-lead-checkbox {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .bo-lead-toggle {
        position: relative;
    }

    .bo-lead-toggle:has(.bo-lead-checkbox:checked) .bo-lead-check {
        background: #fff;
        color:#111;
    }


    /* ================================
    BO ADD: Modal SpecsAll
    ================================ */

    /* Full-height modal layout (sticky head/foot, scroll body) */
    .bo-specs-modal {
        display: flex;
        flex-direction: column;
        height: min(86vh, 900px);
    }

    @media (max-width: 576px) {
        .bo-modal--mobile-full .modal-dialog {
            margin: 0;
            height: 100%;
            max-width: 100%;
        }

        .bo-modal--mobile-full .modal-content {
            height: 100%;
            border-radius: 0;
        }

        .bo-specs-modal {
            height: 100%;
        }
    }

    .bo-specs-head {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        padding: 1.25rem 1.25rem .75rem 1.25rem;
    }

    .bo-specs-title {
        margin: 0;
        font-size: 1.75rem;
        font-weight: 800;
    }

    .bo-specs-icon {
        width: 28px;
        height: 28px;
    }

    .bo-specs-body {
        overflow: auto;
        padding: .75rem 1.25rem 1.25rem 1.25rem;
    }

    .bo-specs-foot {
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: #fff;
        padding: 1rem 1.25rem 1.25rem 1.25rem;
    }

    /* Sections + rows */
    .bo-specs-section {
        margin-bottom: 1.5rem;
    }

    .bo-specs-h3 {
        font-weight: 800;
        font-size: 1.1rem;
        margin: 0 0 .75rem 0;
    }

    .bo-specs-table {
        border-radius: 18px;
        overflow: hidden;
        border: var(--bo-border);
        background: #fff;
    }

    .bo-specs-row {
        display: grid;
        grid-template-columns: minmax(140px, 1fr) 1.4fr;
        gap: 1rem;
        padding: .85rem 1rem;
        border-top: 1px solid rgba(0, 0, 0, .06);
    }

    .bo-specs-row:first-child {
        border-top: none;
    }

    .bo-specs-k {
        font-weight: 700;
    }

    .bo-specs-v {
        color: rgba(0, 0, 0, .72);
    }


    /* ================================
    BO ADD: Modal Equipment
    ================================ */
    
    /* Equipment modal: same “sheet” pattern as specs */
    .bo-eq-modal {
        display: flex;
        flex-direction: column;
        height: min(86vh, 900px);
    }

    @media (max-width: 576px) {
        .bo-modal--mobile-full .modal-dialog {
            margin: 0;
            height: 100%;
            max-width: 100%;
        }

        .bo-modal--mobile-full .modal-content {
            height: 100%;
            border-radius: 0;
        }

        .bo-eq-modal {
            height: 100%;
        }
    }

    .bo-eq-head {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        padding: 1.25rem 1.25rem .75rem 1.25rem;
    }

    .bo-eq-title {
        margin: 0;
        font-size: 1.75rem;
        font-weight: 800;
    }

    .bo-eq-head-icon {
        width: 28px;
        height: 28px;
    }

    .bo-eq-body {
        overflow: auto;
        padding: .75rem 1.25rem 1.25rem 1.25rem;
    }

    .bo-eq-foot {
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: #fff;
        padding: 1rem 1.25rem 1.25rem 1.25rem;
    }

    /* Sections + rows */
    .bo-eq-section {
        margin-bottom: 1.5rem;
    }

    .bo-eq-h3 {
        font-weight: 800;
        font-size: 1.1rem;
        margin: 0 0 .75rem 0;
    }

    .bo-eq-list {
        display: flex;
        flex-direction: column;
        gap: .65rem;
    }

    .bo-eq-row {
        display: flex;
        align-items: center;
        gap: .85rem;
        padding: .85rem 1rem;
        border-radius: 18px;
        background: #fff;
        border: var(--bo-border);
    }

    .bo-eq-icon {
        width: 18px;
        height: 18px;
        flex: 0 0 auto;
        margin-right:.25rem;
    }

    .bo-eq-text {
        font-weight: 600;
    }


    /* ================================
    BO ADD: Modal Testdrive
    ================================ */

    .bo-td-slot {
        flex: 1;
        border-radius: 16px;
        border: 1px solid rgba(0, 0, 0, .06);
        background: var(--bo-blue-100);
        padding: 1rem;
        font-weight: 800;
    }

    .bo-td-slot:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    .bo-td-slot.is-active {
        background: var(--bo-blue-200);
        border-color: rgba(0, 0, 0, .12);
    }


    /* ================================
    BO ADD: Modal Secure
    ================================ */

    .bo-secure-head {
        display: flex;
        align-items: center;
        gap: .65rem;
        margin-bottom: 1.5rem;
    }

    .bo-secure-icon {
        width: 40px;
        height: 40px;
    }

    .bo-secure-title {
        font-size: clamp(1.5rem, 2.2vw, 1.5rem);
        font-weight: 700;
        margin: 0;
    }


    /* ================================
    BO ADD: Residual
    ================================ */

    .bo-residual-head {
        display: flex;
        align-items: center;
        gap: .65rem;
        margin-bottom: 1.25rem;
    }

    .bo-residual-icon {
        width: 40px;
        height: 40px;
    }

    .bo-residual-title {
        font-size: clamp(1.5rem, 2.2vw, 1.5rem);
        font-weight: 700;
        margin: 0;
    }

    .bo-residual-intro {
        font-size: 1.05rem;
        font-weight: 600;
        margin: 0 0 1.25rem 0;
    }

    .bo-residual-soft {
        border-radius: 24px;
    }

    .bo-residual-subtitle {
        font-weight: 800;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .bo-residual-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: .75rem;
    }

    .bo-residual-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        border-radius: 18px;
        background: #f3f5f7;
        /* neutral light */
    }

    .bo-residual-bullet {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: #fff;
        font-size: 1.5rem;
        font-weight: 800;
    }

    /* ================================
    BO ADD: Gallery lightbox modal
    ================================ */

    .bo-gallery-modal-dialog {
        width: 100%;
        margin: 0.75rem;
    }

    .bo-gallery-modal-content {
        border: 0;
        border-radius: var(--bo-radius-lg);
        overflow: hidden;
        background: #0b0f14;
        color: #fff;
    }

    @media (max-width: 767.98px) {
        .bo-gallery-modal-dialog {
            margin: 0;
            height: 100%;
        }

        .bo-gallery-modal-content {
            border-radius: 0;
            height: 100%;
        }
    }

    .bo-gallery-modal-header {
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        padding: 14px 16px;
        background: rgba(0, 0, 0, .25);
    }

    .bo-gallery-modal-body {
        padding: 0;
        background: #0b0f14;
    }

    /* Main swiper (stor bild) */
    .bo-gallery-lightbox-swiper {
        width: 100%;
        height: 72vh;
    }

    @media (max-width: 767.98px) {
        .bo-gallery-lightbox-swiper {
            height: calc(100vh - 56px - 92px);
            /* header + thumbs ungefär */
        }
    }

    /* Bild: contain i lightbox */
    .bo-gallery-lightbox-swiper .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .bo-gallery-lightbox-swiper img {
        width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }

    /* Prev/next */
    .bo-gallery-lightbox-prev,
    .bo-gallery-lightbox-next {
        color: rgba(255, 255, 255, .95);
    }

    /* Thumbs */
    .bo-gallery-lightbox-thumbs {
        padding: 12px 12px 14px;
        border-top: 1px solid rgba(255, 255, 255, .08);
        background: rgba(0, 0, 0, .25);
    }

    .bo-gallery-lightbox-thumbs .swiper-slide {
        width: 84px;
        height: 60px;
        opacity: 0.6;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .12);
        cursor: pointer;
    }

    .bo-gallery-lightbox-thumbs .swiper-slide-thumb-active {
        opacity: 1;
        border-color: rgba(255, 255, 255, .65);
    }

    .bo-gallery-lightbox-thumbs img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* BO ADD: force gallery lightbox fullscreen look */
    .bo-gallery-modal .modal-dialog {
        margin: 0;
        max-width: none;
    }

    .bo-gallery-modal .modal-content {
        border-radius: 0;
        height: 100vh;
        background: #0b0f14;
    }

    .bo-gallery-modal .modal-body {
        height: calc(100vh - 56px);
        /* headerhöjd ungefär */
    }



    /* ================================
    BO ADD: Modal Watch (Bevakning)
    ================================ */

    .bo-modal--watch .bo-modal-header {
        display: none;
    }

    .bo-modal--watch .bo-modal-body {
        padding: 0;
    }

    .bo-watch-modal {
        padding: 2rem;
    }

    .bo-watch-head {
        display: flex;
        align-items: center;
        gap: .75rem;
        margin-bottom: 1rem;
    }

    .bo-watch-head-icon {
        font-size: 2rem;
        line-height: 1;
    }

    .bo-watch-title {
        font-size: clamp(1.5rem, 2.2vw, 1.5rem);
        font-weight: 700;
        margin: 0;
    }

    .bo-watch-chipbar {
        background: var(--bo-blue-100);
        border-radius: 999px;
        padding: .6rem;
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        margin-bottom: 1rem;
    }

    .bo-watch-chip {
        background: #fff;
        border: 1px solid rgba(0, 0, 0, .08);
        border-radius: 999px;
        padding: .35rem .75rem;
        font-weight: 600;
        font-size: .95rem;
    }


    .bo-watch-fields {
        display: grid;
        gap: .9rem;
    }

    .bo-watch-field {
        background: var(--bo-blue-100);
        border-radius: 18px;
        padding: 1rem 1rem;
        display: grid;
        gap: .5rem;
    }

    .bo-watch-label {
        font-weight: 700;
    }

    .bo-watch-input {
        width: 100%;
        border: 0;
        outline: none;
        background: transparent;
        font-weight: 600;
    }

    .bo-watch-consent {
        display: flex;
        gap: .75rem;
        align-items: flex-start;
        margin-top: 1rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .bo-watch-link {
        text-decoration: none;
    }

    .bo-watch-submit[disabled] {
        opacity: .6;
    }