/*
Theme Name: BeTheme Child
Template: betheme
Version: 1.0
*/


/* =========================================================
   AUTO NABUURS - BASIS
   ========================================================= */

:root {
    --nabuurs-blue: #393E42;
    --nabuurs-orange: #009FE3;
    --nabuurs-light: #f5f7f8;
    --nabuurs-border: #dfe5e9;
}


/* =========================================================
   OCCASIONS OVERZICHT
   ========================================================= */

.voertuig-archive .search-content {
    padding-bottom: 70px;
}

.voertuig-archive .search-content .results-container {
    margin: 0 -15px;
}

.voertuig-archive article.voertuig {
    float: left;
    width: 33.3333%;
    padding: 15px;
    box-sizing: border-box;
}

.voertuig-archive article.voertuig .item {
    height: 100%;
    background: #fff;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(15, 53, 83, .07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.voertuig-archive article.voertuig .item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(15, 53, 83, .11);
}

.voertuig-archive article.voertuig .item-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.voertuig-archive article.voertuig .item-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voertuig-archive article.voertuig .item-prijs {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: var(--nabuurs-orange) !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    border-radius: 7px !important;
    line-height: 1 !important;
    font-weight: 700;
}

.voertuig-archive article.voertuig .item-content {
    padding: 20px !important;
}

.voertuig-archive article.voertuig .item-content header {
    padding-bottom: 13px;
    margin-bottom: 13px;
    border-bottom: 1px solid var(--nabuurs-border) !important;
}

.voertuig-archive article.voertuig .item-content header h2 {
    color: var(--nabuurs-blue) !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    margin: 0 0 6px !important;
}

.voertuig-archive article.voertuig .item-content header h3 {
    color: #444 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.voertuig-archive article.voertuig .item-content ul {
    columns: 2;
    column-gap: 18px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.voertuig-archive article.voertuig .item-content ul li {
    color: #333 !important;
    font-size: 13px !important;
    line-height: 1.55;
}


/* =========================================================
   OCCASIONS FILTER
   ========================================================= */

.voertuig-archive #entity-search.search-bar {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 20px;

    margin: 30px 0 45px !important;
    padding: 26px !important;

    background: var(--nabuurs-light);
    border-radius: 14px;
}

.voertuig-archive #entity-search .search-field {
    float: none !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
}

.voertuig-archive #entity-search .search-field:empty {
    display: none;
}

.voertuig-archive #entity-search .search-field:has(select[name="merk"]) {
    grid-column: 1;
}

.voertuig-archive #entity-search .search-field:has(select[name="model"]) {
    grid-column: 2;
}

.voertuig-archive #entity-search .search-field:has(select[name="brandstof"]) {
    grid-column: 3;
}

.voertuig-archive #entity-search .search-field:has(select[name="transmissie"]) {
    grid-column: 4;
}

.voertuig-archive #entity-search .search-range-slider[data-min-label="Kilometerstand"] {
    grid-column: 1 / span 2;
}

.voertuig-archive #entity-search .search-range-slider[data-min-label="Prijs"] {
    grid-column: 3 / span 2;
}

.voertuig-archive #entity-search .selectboxit-container {
    display: block;
    width: 100%;
}

.voertuig-archive #entity-search .selectboxit,
.voertuig-archive #entity-search select {
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;

    background: #fff !important;
    color: var(--nabuurs-blue) !important;

    border: 1px solid #d8e0e6 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

.voertuig-archive #entity-search .selectboxit-text {
    height: 48px !important;
    line-height: 48px !important;
    color: var(--nabuurs-blue) !important;
    font-size: 14px !important;
}

.voertuig-archive #entity-search .selectboxit-arrow-container {
    height: 48px !important;
}

.voertuig-archive #entity-search .slider-values {
    margin-bottom: 9px;
    color: var(--nabuurs-blue);
    font-size: 13px;
    font-weight: 600;
}

.voertuig-archive #entity-search .ui-slider {
    position: relative;
    height: 5px;
    margin: 0 10px;
    background: #d7dfe4;
    border-radius: 10px;
}

.voertuig-archive #entity-search .ui-slider-range {
    z-index: 1 !important;
    background: var(--nabuurs-orange) !important;
}

.voertuig-archive #entity-search .ui-slider-handle {
    z-index: 3 !important;
}

.voertuig-archive #entity-search .ui-slider-handle span {
    position: relative;
    z-index: 4 !important;

    width: 17px !important;
    height: 17px !important;

    background: #fff !important;
    border: 3px solid var(--nabuurs-blue) !important;
    box-shadow: 0 2px 7px rgba(0,0,0,.15);
}


/* =========================================================
   PAGINATION
   ========================================================= */

.voertuig-archive .pagination {
    margin: 25px 0 5px !important;
}

.voertuig-archive .pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voertuig-archive .pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 40px;
    height: 40px;
    padding: 0 13px;

    background: #f3f5f6;
    color: var(--nabuurs-blue) !important;

    border-radius: 8px;
    text-decoration: none !important;

    font-size: 14px;
    font-weight: 600;
}

.voertuig-archive .pagination .page-numbers:hover {
    background: var(--nabuurs-blue);
    color: #fff !important;
}

.voertuig-archive .pagination .page-numbers.current {
    background: var(--nabuurs-orange);
    color: #ffffff !important;
}

.voertuig-archive .pagination .page-numbers.dots {
    min-width: auto;
    padding: 0 3px;
    background: transparent;
}

/* oude lege footer van Tussendoor */
.voertuig-archive .greyBg {
    display: none !important;
}


/* =========================================================
   OCCASION DETAIL
   ========================================================= */

/* dubbele oude Tussendoor subheader */
.voertuig-single > #header {
    display: none !important;
}

.voertuig-single > .container {
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.voertuig-single section.go-back {
    padding: 28px 0 18px;
}

.voertuig-single section.voertuig-overzicht {
    display: grid !important;
    grid-template-columns: minmax(380px, .9fr) minmax(0, 1.1fr);
    grid-template-areas: "info gallery";
    gap: 55px;
    align-items: start;
}

.voertuig-single section.voertuig-overzicht .voertuig-info {
    grid-area: info;
}

.voertuig-single section.voertuig-overzicht .voertuig-afbeeldingen {
    grid-area: gallery;
}

.voertuig-single section.voertuig-overzicht .voertuig-info,
.voertuig-single section.voertuig-overzicht .voertuig-afbeeldingen {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 0 50px !important;
}

.voertuig-single .informatie header {
    margin: 0 0 22px;
    padding: 0;
}

.voertuig-single .informatie h2 {
    color: var(--nabuurs-blue) !important;
    font-size: 42px !important;
    line-height: 1.05 !important;
    margin: 0 0 8px !important;
}

.voertuig-single .informatie header > p {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.voertuig-single .voertuig-usp ul {
    columns: 3;
    padding: 24px 0 !important;
}

.voertuig-single .voertuig-kenmerken ul {
    margin-top: 24px !important;
}

.voertuig-single .voertuig-kenmerken li {
    padding: 5px 0;
}

.voertuig-single .voertuig-kenmerken strong {
    min-width: 0 !important;
    width: 42% !important;
}

.voertuig-single .voertuig-kenmerken span {
    width: 58% !important;
    margin-left: 0 !important;
}

/* gallery */

.voertuig-single .voertuig-afbeeldingen .images.image-1 {
    display: block;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 0 !important;

    border: 0 !important;
    box-shadow: none !important;

    border-radius: 12px;
    overflow: hidden;
}

.voertuig-single .voertuig-afbeeldingen .images.image-1 img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.voertuig-single .voertuig-afbeeldingen .images:not(.image-1):not(.hide) {
    width: calc(33.333% - 11px) !important;
    margin: 0 16px 16px 0 !important;

    border-radius: 8px;
    overflow: hidden;
}

.voertuig-single .voertuig-afbeeldingen .images:not(.image-1):not(.hide) img {
    display: block;
    width: 100%;
    height: auto;
}

.voertuig-single .voertuig-afbeeldingen .images:nth-child(3n+1):not(.image-1):not(.hide) {
    margin-right: 0 !important;
}


/* =========================================================
   BUTTONS DETAIL
   ========================================================= */

.voertuig-single a.btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 12px 20px !important;
    margin: 8px 8px 8px 0 !important;

    background: var(--nabuurs-orange) !important;
    color: #ffffff !important;

    border: 0 !important;
    border-radius: 7px !important;
    box-shadow: none !important;

    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    text-decoration: none !important;
    text-transform: uppercase;
}

.voertuig-single a.btn:hover {
    background: var(--nabuurs-blue) !important;
}

.voertuig-single a.btn.invert {
    background: var(--nabuurs-blue) !important;
}

.voertuig-single a.btn.invert:hover {
    background: var(--nabuurs-orange) !important;
}

.voertuig-single a.btn::before,
.voertuig-single a.btn::after {
    display: none !important;
}


/* =========================================================
   WAAROM DEZE AUTO
   ========================================================= */

.voertuig-single section.voertuig-waarom {
    padding: 70px 20px !important;
    background: var(--nabuurs-blue) !important;
    color: #fff !important;
}

.voertuig-single section.voertuig-waarom .container {
    max-width: 900px !important;
    margin: 0 auto !important;
}

.voertuig-single section.voertuig-waarom h2 {
    margin: 0 0 24px !important;

    color: #fff !important;
    font-size: 42px !important;
    line-height: 1.1 !important;
    text-align: center !important;
}

.voertuig-single section.voertuig-waarom p {
    margin-bottom: 28px !important;
    color: #fff !important;
    font-size: 17px !important;
    line-height: 1.7 !important;
}


/* =========================================================
   LEASE
   ========================================================= */

.voertuig-single section.voertuig-lease {
    padding: 70px 20px;
    background: var(--nabuurs-light);
}

.voertuig-single .voertuig-lease > .container {
    max-width: 1240px;
    margin: 0 auto;
}

.voertuig-single .voertuig-lease-inner {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 55px;
    align-items: start;
}

.voertuig-single .voertuig-lease-intro .eyebrow {
    display: block;
    margin-bottom: 10px;

    color: var(--nabuurs-orange);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.voertuig-single .voertuig-lease-intro h2 {
    margin-bottom: 16px;

    color: var(--nabuurs-blue);
    font-size: 40px;
    line-height: 1.1;
}

.voertuig-single .voertuig-lease-intro p {
    font-size: 16px;
    line-height: 1.65;
}

.voertuig-single .voertuig-lease-calculator {
    padding: 14px;

    background: #fff;
    border-radius: 14px;
    overflow: hidden;

    box-shadow: 0 8px 30px rgba(0,0,0,.06);
}

.voertuig-single .voertuig-lease-calculator iframe {
    display: block;
    width: 100%;

    border: 0;
    border-radius: 8px;
}


/* =========================================================
   HOMEPAGE RECENTE OCCASIONS
   ========================================================= */

.an-recent-occasions {
    padding: 50px 0;
}

.an-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
    margin-bottom: 24px;
}

/* H2 laat BeTheme bepalen */
.an-recent-head h2 {
    margin: 0;
    color: var(--nabuurs-blue);
}

.an-carousel-nav {
    display: flex;
    gap: 8px;
}

.an-carousel-nav button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background: var(--nabuurs-blue);
    color: #fff;

    font-size: 23px;
    cursor: pointer;
}

.an-carousel-nav button:hover {
    background: var(--nabuurs-orange);
}

.an-carousel-viewport {
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.an-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.an-carousel-track {
    display: flex;
    gap: 18px;
}

/* exact 4 zichtbaar */
.an-recent-occasions.voertuig-archive .an-carousel-track article.voertuig {
    flex: 0 0 calc((100% - 54px) / 4) !important;
    width: calc((100% - 54px) / 4) !important;
    max-width: calc((100% - 54px) / 4) !important;
    min-width: 0 !important;

    float: none !important;
    margin: 0 !important;
    padding: 0 !important;

    scroll-snap-align: start;
}

/* homepage geen shadow/hover lift */
.an-recent-occasions article.voertuig .item,
.an-recent-occasions article.voertuig .item:hover {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
    transform: none !important;
}

.an-recent-occasions article.voertuig .item-image {
    border: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

/* gelijke fotohoogtes */
.an-recent-occasions article.voertuig .item-image {
    height: 190px;
    aspect-ratio: auto;
    border-radius: 10px;
    overflow: hidden;
}

.an-recent-occasions article.voertuig .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* knop onder carousel */
.an-recent-footer {
    margin-top: 22px;
}

.an-recent-footer .button {
    text-transform: uppercase;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {

    .voertuig-archive article.voertuig {
        width: 50%;
    }

    .voertuig-archive #entity-search.search-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .voertuig-archive #entity-search .search-field:has(select),
    .voertuig-archive #entity-search .search-range-slider {
        grid-column: auto !important;
    }

    .voertuig-single section.voertuig-overzicht {
        grid-template-columns: 1fr;
        grid-template-areas:
            "gallery"
            "info";
        gap: 30px;
    }

    .voertuig-single .informatie h2 {
        font-size: 34px !important;
    }

    .voertuig-single .voertuig-lease-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .an-recent-occasions.voertuig-archive .an-carousel-track article.voertuig {
        flex-basis: calc((100% - 18px) / 2) !important;
        width: calc((100% - 18px) / 2) !important;
        max-width: calc((100% - 18px) / 2) !important;
    }
}


@media (max-width: 600px) {

    .voertuig-archive article.voertuig {
        width: 100%;
    }

    .voertuig-archive #entity-search.search-bar {
        grid-template-columns: 1fr;
        padding: 18px !important;
    }

    .voertuig-archive #entity-search .search-range-slider {
        grid-column: 1 !important;
    }

    .voertuig-single .voertuig-usp ul {
        columns: 1;
    }

    .voertuig-single .voertuig-kenmerken strong,
    .voertuig-single .voertuig-kenmerken span {
        float: none !important;
        width: 100% !important;
    }

    .an-recent-occasions.voertuig-archive .an-carousel-track article.voertuig {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* Shared integration polish. Page layouts, typography and spacing remain native BeTheme fields. */
.voertuig-archive article.voertuig .item{border-radius:12px;overflow:hidden}
#nb-pechhulp .title i{color:#fff!important}
/* Gravity Forms is rendered by its own plugin, outside BeBuilder's field styling. */
.page-id-10 .gform_wrapper{--gf-color-primary:#009FE3;--gf-ctrl-btn-bg-color-primary:#009FE3;--gf-ctrl-btn-color-primary:#fff;--gf-ctrl-radius:6px}
.page-id-10 .gform_wrapper input:not([type=submit]):not([type=checkbox]),
.page-id-10 .gform_wrapper textarea,.page-id-10 .gform_wrapper select{box-sizing:border-box;max-width:100%;border-radius:6px}
.page-id-10 .gform_wrapper .gform_button{background:#009FE3;color:#ffffff;border-radius:6px;font-weight:700}
.page-id-10 .gform_wrapper .gfield_label{color:#393E42}
/* Native popup sizing is controlled in the template's page options. */

/* Gravity Forms 2 is plugin output, not a native BeBuilder control. */
#gform_wrapper_2{--gf-color-primary:#009FE3;--gf-ctrl-btn-bg-color-primary:#009FE3;--gf-ctrl-btn-color-primary:#fff;--gf-ctrl-radius:6px}
#gform_wrapper_2 input:not([type=submit]):not([type=radio]):not([type=checkbox]),#gform_wrapper_2 select,#gform_wrapper_2 textarea{box-sizing:border-box;max-width:100%;border-radius:6px}
#gform_wrapper_2 .gform_next_button,#gform_wrapper_2 .gform_button{background:#009FE3;color:#ffffff;border-radius:6px;font-weight:700}
#gform_wrapper_2 .gfield_label{color:#393E42}
#gform_wrapper_2 .gchoice{margin-bottom:12px}

/* External review widget lives outside native BeTheme sizing. */
.nb-review-widget iframe{display:block;max-width:100%;border:0}

/* Native package block embedded in the vehicle archive: inherit text color for lists. */
.nb-package-content .column_attr ul, .nb-package-content .column_attr li{color:#353434}

/* Approved palette 2026-10-15: vehicle cards are rendered by the stock integration.
   Hover stays on pointer devices, with equivalent keyboard focus and no movement. */
.an-recent-occasions article.voertuig .item{transition:background-color .2s ease,box-shadow .2s ease}
@media(hover:hover) and (pointer:fine){
 .an-recent-occasions article.voertuig .item:hover{background:#EEF2F4;box-shadow:0 6px 18px rgba(48,53,58,.1);transform:none}
}
.an-recent-occasions article.voertuig .item:focus-within{background:#EEF2F4;box-shadow:0 6px 18px rgba(48,53,58,.1)}
.an-carousel-nav button:hover{color:#393E42}
/* Inverse vehicle actions need white text on charcoal; hover remains charcoal on blue. */
.voertuig-single a.btn.invert{color:#fff!important}
.voertuig-single a.btn.invert:hover{color:#ffffff!important}
.voertuig-single a.btn:not(.invert):hover{color:#fff!important}
@media(prefers-reduced-motion:reduce){.an-recent-occasions article.voertuig .item{transition:none}}

/* Primary carousel action uses the approved light-blue action treatment. */
.an-recent-footer a.button{background:#009FE3;color:#ffffff}
.an-recent-footer a.button:hover{background:#57B4D9;color:#ffffff}

/* Nabuurs BeTheme template footer: reserve a separate row for the connector badge (2026-11-19). Connector only reserves this automatically for native section#footer. */
#mfn-footer-template .mfn-footer-tmpl-builder>.section:last-child .section_wrapper.poc-brand-badge-host{padding-bottom:88px!important;box-sizing:border-box}

/* 2026-11-24: Gravity Forms is outside native BeTheme button controls. */
#gform_wrapper_1{--gf-color-primary:#009fe3;--gf-ctrl-btn-bg-color-primary:#009fe3;--gf-ctrl-btn-color-primary:#fff}
#gform_wrapper_1 .gform_button{background:#009fe3;color:#fff;border-radius:9px}

/* Native page heroes already have overlays; the integration archive uses the stock Subheader. */
.post-type-archive-autobedrijf_voertuig #Subheader{position:relative;isolation:isolate}.post-type-archive-autobedrijf_voertuig #Subheader:before{content:'';position:absolute;inset:0;z-index:-1;background:rgba(25,31,35,.48)}
