﻿    
.bo-prices{
    display: flex;
    gap:1.5rem;
    justify-content: space-around;
}
   
.bo-row-prices{
    justify-content: space-between;
    align-items: center;
}

.bo-sold {
    font-size: 1.875rem;
    font-weight: 800;
}

.bo-finans-logo {
    max-height: 50px;
}
/* ================================
       BO ADD: Spec Grid
       ================================ */
/* v2: ikon top + centrering */
.bo-specgrid--v2 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

        .bo-specgrid--v2 .bo-spec-row {
            flex-direction: column;
            align-items: center;
            text-align: center;
            gap: .5rem;
            padding: 1rem;
            border-radius: 16px;
            background: var(--bo-blue-200);
        }

        .bo-specgrid--v2 .bo-spec-row strong {
            font-weight: 600;
            font-size: .95rem;
        }

        .bo-specgrid--v2 .bo-spec-row span {
            font-weight: 700;
        }

        /* mobil: swipe-horisontell (1 rad) */
        @media (max-width: 576px) {
            .bo-specgrid--v2 {
                display: grid;
                grid-auto-flow: column;
                grid-auto-columns: minmax(140px, 1fr);
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scroll-snap-type: x mandatory;
                padding-bottom: .25rem;
            }

            .bo-specgrid--v2 .bo-spec-row {
                scroll-snap-align: start;
            }
        }

        /* v3: ikon vänster, label + value i två rader */
        .bo-specgrid--v3 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .bo-specgrid--v3 .bo-spec-row {
            display: grid;
            grid-template-columns: 28px 1fr;
            grid-template-rows: auto auto;
            column-gap: .75rem;
            row-gap: .15rem;
            align-items: center;
            padding: .9rem;
            border-radius: 16px;
            background: var(--bo-blue-200);
        }

        .bo-specgrid--v3 .bo-spec-row svg {
            grid-row: 1 / span 2;
            width: 1.5rem;
            height: 1.5rem;
        }

        .bo-specgrid--v3 .bo-spec-row strong {
            grid-column: 2;
            font-size: .9rem;
            font-weight: 600;
            opacity: .9;
        }

        .bo-specgrid--v3 .bo-spec-row span {
            grid-column: 2;
            font-weight: 800;
        }

        /* desktop: 5 items kan du köra 5 kol om du vill */
        @media (min-width: 992px) {
            .bo-specgrid--v3 {
                grid-template-columns: repeat(5, minmax(0, 1fr));
            }
        }

        /* V4: Compact row pills */
        .bo-specgrid--pills {
            /* bryter “d-grid”-layouten till en horisontell pill-rad */
            display: flex;
            flex-wrap: nowrap;
            gap: 12px;

            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;

            scroll-snap-type: x mandatory;
            padding-bottom: 2px;

            /* förhindra att den trycker ut grid/regions */
            max-width: 100%;
            min-width: 0;

            /* om du vill att gap-2 från bootstrap inte ska påverka för mycket:
            (valfritt) */
            /* row-gap: 0; */
        }

        /* Dölj scrollbar snyggt (valfritt men brukar kännas “premium”) */
        .bo-specgrid--pills {
            scrollbar-width: none;
            /* Firefox */
        }

        .bo-specgrid--pills::-webkit-scrollbar {
            display: none;
            /* Chrome/Safari */
        }

        .bo-specgrid--pills .bo-spec-row {
            flex: 0 0 auto;
            scroll-snap-align: start;
            display: inline-flex;
            align-items: center;
            white-space: nowrap;
            gap: 10px;
            padding: 0.75rem 1rem;
            border-radius: 999px;
            background: var(--bo-blue-200);
            font-size: 1rem;
        }

        /* Ikonstorlek i pills */
        .bo-specgrid--pills .bo-spec-row svg {
            width: 1.35rem;
            height: 1.35rem;
            flex: 0 0 auto;
        }

        /* Tightare text som i din nedersta rad */
        .bo-specgrid--pills .bo-spec-row strong {
            font-weight: 700;
        }

        .bo-specgrid--pills .bo-spec-row span {
            opacity: 0.95;
        }

        /* Desktop: du kan välja om den ska wrap:as eller ligga kvar i en rad.
        Jag tycker en rad är snyggast som din design, men här är en soft variant. */
        @media (min-width: 992px) {
            .bo-specgrid--pills {
                overflow: visible;
                /* så det inte känns som "scroll UI" på desktop */
            }
        }

        .bo-specgrid--v4 .bo-spec-row {
            display: flex;
            align-items: center;
            gap: .75rem;
            padding: .75rem .9rem;
            border-radius: 14px;
            background: var(--bo-blue-200);
        }

        .bo-specgrid--v4 .bo-spec-row svg {
            display: none;
            /* vi kör chevron istället här */
        }

        .bo-specgrid--v4 .bo-spec-chev {
            width: 28px;
            height: 28px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, .75);
            color: #fff;
            font-size: 18px;
            flex: 0 0 28px;
        }

        .bo-specgrid--v4 .bo-spec-row strong {
            font-weight: 700;
        }

        .bo-specgrid--v4 .bo-spec-row span {
            margin-left: auto;
            font-weight: 700;
            opacity: .9;
        }

        /* v5: ikon + värde, label hidden */
        .bo-specgrid--v5 {
            grid-template-columns: repeat(5, minmax(0, 1fr));
        }

        .bo-specgrid--v5 .bo-spec-row {
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 1rem;
            border-radius: 16px;
            background: var(--bo-blue-200);
            min-height: 110px;
        }

        .bo-specgrid--v5 .bo-spec-row strong {
            display: none;
            /* bara value */
        }

        .bo-specgrid--v5 .bo-spec-row span {
            font-weight: 800;
        }

        /* mobil: swipe */
        @media (max-width: 576px) {
            .bo-specgrid--v5 {
                grid-auto-flow: column;
                grid-auto-columns: minmax(120px, 1fr);
                overflow-x: auto;
                scroll-snap-type: x mandatory;
            }

            .bo-specgrid--v5 .bo-spec-row {
                scroll-snap-align: start;
            }
        }



        /* ================================
       BO ADD: Gallery overlay actions
       ================================ */
    
        .bo-gallery {
            position: relative;
            /* gör att actions kan positioneras över bilden */
        }
    
        .bo-gallery-ratio {
            border-radius: var(--bo-radius-lg);
            overflow: hidden;
            /* klipper bildens hörn snyggt */
        }
    
        /* Bootstrap .ratio fyller child absolut - se till att vår img fyller ytan */
        .bo-gallery-placeholder {
            width: 100%;
            height: 100%;
        }
    
        .bo-gallery-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
    
        /* Overlay-knappar nere till höger (över bilden) */
        .bo-gallery-actions {
            position: absolute;
            right: 16px;
            bottom: 16px;
            z-index: 5;
            display: inline-flex;
            justify-content: flex-end;
            gap:.65rem;
            left: auto;
            width: auto;
        }
    
        /* Lite mer "Carla-känsla" på knapparna */
        .bo-gallery-actions .btn {
            border-radius: 12px;
            border: 1px solid rgba(0, 0, 0, .08);
            background: rgba(255, 255, 255, .92);
            backdrop-filter: blur(10px);
            white-space: nowrap;
        }
    
        /* Mobil: tightare och wrap om det behövs */
        @media (max-width: 575.98px) {
            .bo-gallery-actions {
                right: 12px;
                bottom: 12px;
                gap: 8px !important;
            }
        }

    
    /* ================================
    BO ADD: Description smooth expand
    ================================ */

    .bo-desc-anim {
        position: relative;
        overflow: hidden;
        transition: max-height .35s ease;
        will-change: max-height;
    }

    /* 3 rader-ish clamp höjd (justeras via JS exakt vid init) */
    .bo-desc-anim.is-collapsed::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 2.4em;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
        pointer-events: none;
    }

    .bo-desc-anim__inner {
        line-height: 1.55;
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
        .bo-desc-anim {
            transition: none;
        }
    }


    /* ================================
    BO ADD: Optional chevron on "Visa mer"
    ================================ */

    /* Default: om kunden INTE vill ha chevron -> ingen svg */
    .bo-btn-more__chev {
        display: none;
    }

    /* Aktivera chevron om man vill */
    .bo-has-chevrons .bo-btn-more--chev .bo-btn-more__chev {
        display: inline-block;
        width: 18px;
        height: 18px;
        margin-left: 10px;
        transition: transform .2s ease;
        transform-origin: 50% 50%;
    }

    /* Låt knappen aligna text + ikon snyggt */
    .bo-has-chevrons .bo-btn-more--chev {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Rotera när expanded */
    .bo-has-chevrons .bo-btn-more--chev[aria-expanded="true"] .bo-btn-more__chev {
        transform: rotate(180deg);
    }

    @media (prefers-reduced-motion: reduce) {
        .bo-has-chevrons .bo-btn-more--chev .bo-btn-more__chev {
            transition: none;
        }
    }



    /* ================================
    BO ADD: Finance inputs / states
    ================================ */

    .bo-fin-input {
        border-radius: 12px;
    }

    .bo-fin-btn.is-active,
    .bo-fin-year.is-active {
        background: #111 !important;
        color: #fff !important;
        border-color: #111 !important;
    }

    .bo-fin-warn {
        margin-top: -4px;
        margin-bottom: 10px;
    }

    /* ================================
    BO ADD: "Att låna kostar pengar" warning
    ================================ */

    .bo-fin-risk {
        background: #ffd6d6;
        border-radius: 18px;
        padding: 16px;
    }

    .bo-fin-risk__inner {
        display: flex;
        gap: 14px;
        align-items: flex-start;
    }

    .bo-fin-risk__icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(180, 0, 0, 0.08);
        color: #a80000;
        font-size: 22px;
        flex: 0 0 auto;
    }

    .bo-fin-risk__copy {
        font-size: 14px;
        line-height: 1.45;
        color: #111;
    }

    .bo-fin-risk__copy a {
        color: inherit;
        font-weight: 600;
        text-decoration: underline;
    }

    /* ================================
    BO ADD: "Pricebar Badges
    ================================ */
    
    .bo-pricebar .bo-badge {
        font-size: 1rem;
        font-weight: 500;
        padding: .75rem;
    }

    /* ================================
    BO ADD: Swiper gallery + thumbs (Swiper > Diskutera ifall detta ska kopieras till egen CSS)
    ================================ */

        /* Swiper behöver höjd 100% inne i ratio */
        .bo-gallery-stage,
        .bo-gallery-swiper,
        .bo-gallery-swiper .swiper-wrapper,
        .bo-gallery-slide {
            width: 100%;
            height: 100%;
        }

        .bo-gallery-stage {
            position: relative;
        }

        .bo-gallery-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Pagination: bara på mobil */
        .bo-gallery-pagination {
            display: none;
        }

        /* Thumbs swiper */
        .bo-thumbs-swiper {
            width: 100%;
        }

        .bo-thumb-slide {
            width: auto;
            /* Swiper får styra */
        }

        /* knappen runt thumb (så vi kan clicka snyggt) */
        .bo-thumb-btn {
            padding: 0;
            border: 0;
            background: transparent;
            width: 100%;
            height: 100%;
            display: block;
        }

        .bo-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* Active thumb state */
        .bo-thumbs-swiper .swiper-slide-thumb-active .bo-thumb {
            outline: 3px solid rgba(0, 200, 150, .35);
            outline-offset: -3px;
        }

        /* Mobile: thumbs bort, swipe på main + pagination on */
        @media (max-width: 767.98px) {
            .bo-thumbs-wrap {
                display: none;
            }

            .bo-gallery-pagination {
                display: block;
            }
        }


    /* ================================
    BO ADD: Similar cars (Swiper > Diskutera ifall detta ska kopieras till egen CSS) 
    ================================ */

    .bo-similar {
        overflow: hidden;/* klipp utanför rounded-4 */
        position: relative;/* för pilar */
    }

    .bo-similar .swiper {
        overflow: visible;/* gör “peek” snyggt */
    }

    .bo-similar .bo-similar-swiper {
        padding-right: 18px;/* peek-yta */
        padding-left: 4px;
    }

    @media (min-width: 768px) {
        .bo-similar .bo-similar-swiper {
            padding-right: 26px;
            padding-left: 6px;
        }
    }

    .bo-similar-slide {
        height: auto;
    }

    /* Controls styling (enkelt + modernt) */
    .bo-similar-prev,
    .bo-similar-next {
        position: absolute;
        top: 42%;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .92);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
        z-index: 5;
        cursor: pointer;
    }

    .bo-similar-prev {
        left: -8px;
    }

    .bo-similar-next {
        right: -8px;
    }

    .bo-similar-prev::after,
    .bo-similar-next::after {
        content: "";
        display: block;
        width: 10px;
        height: 10px;
        border-top: 2px solid #111;
        border-right: 2px solid #111;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .bo-similar-prev::after {
        transform: translate(-50%, -50%) rotate(-135deg);
    }

    /* Hide arrows on small screens (swipe instead) */
    @media (max-width: 767.98px) {

        .bo-similar-prev,
        .bo-similar-next {
            display: none;
        }
    }

    /* Pagination dots */
    .bo-similar-pagination {
        margin-top: 14px;
        text-align: center;
    }

    .bo-similar-pagination .swiper-pagination-bullet {
        width: 7px;
        height: 7px;
        opacity: .35;
    }

    .bo-similar-pagination .swiper-pagination-bullet-active {
        opacity: 1;
    }

    /* Make cards not stretch weirdly in slides */
    .bo-similar .bo-car-card {
        height: 100%;
    }



