/* TNS USP Foto's */
.tns-usp {
    position: relative;
    display: block;
}
.tns-usp.alignfull {
    max-width: none !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

/* Track: grid op desktop */
.tns-usp__track {
    display: grid;
    grid-template-columns: repeat(var(--usp-cols, 3), 1fr);
    position: relative;
}

/* Grid-override (device-afwijking wrappers) */
.tns-usp__grid-override {
    display: grid;
    grid-template-columns: repeat(var(--usp-cols, 3), 1fr);
}

/* Kleurbalken onderaan via ::after op track */
.tns-usp__track::after,
.tns-usp__grid-override::after {
    content: ''; display: block;
    position: absolute; bottom: 0; left: 0; right: 0; height: 14px;
    background: linear-gradient(to right,
        #102F49 0%,   #102F49 25%,
        #828673 25%,  #828673 50%,
        #BFA46A 50%,  #BFA46A 75%,
        #414246 75%,  #414246 100%
    );
    pointer-events: none; z-index: 2;
}

.tns-usp--no-bars .tns-usp__track::after,
.tns-usp--no-bars .tns-usp__grid-override::after { display: none; }
.tns-usp--no-bars .tns-usp__item { padding-bottom: 0; }

.tns-usp__item {
    position: relative; overflow: hidden;
    min-height: var(--usp-h, 500px); padding-bottom: 14px;
}
.tns-usp__item img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s ease;
}
.tns-usp__item:hover img { transform: scale(1.05); }

.tns-usp__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(16,47,73,0.95) 0%,
        rgba(16,47,73,0.55) 50%,
        rgba(16,47,73,0.12) 100%
    );
}

/* Ingekorte overlay (overlayHeight < 100%): onderaan verankerd,
   vloeit naar volledig transparant zodat er geen rand ontstaat */
.tns-usp--ov-custom .tns-usp__overlay {
    inset: auto 0 0 0;
    height: var(--usp-ov-h, 100%);
    background: linear-gradient(
        to top,
        rgba(16,47,73,0.95) 0%,
        rgba(16,47,73,0.60) 45%,
        rgba(16,47,73,0) 100%
    );
}

/* Item zonder foto: effen huisstijlkleur, geen gradient nodig */
.tns-usp__item--solid .tns-usp__overlay { display: none; }

/* Overlay uitschakelbaar via blokoptie */
.tns-usp--no-overlay .tns-usp__overlay { display: none; }

.tns-usp__body {
    position: relative; z-index: 1;
    height: 100%; display: flex;
    flex-direction: column; justify-content: flex-end;
    padding: 36px 40px 48px;
}

.tns-usp__title {
    font-family: 'Hind', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
    letter-spacing: 0.01em;
    line-height: 1.05;
    margin-bottom: 14px;
}

.tns-usp__text {
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 400;
    color: rgb(255, 255, 255);
    line-height: 1.78; max-width: 450px;
}

/* ── Mobiele slider-elementen: standaard verborgen ── */
.tns-usp__swipe-label,
.tns-usp__badge,
.tns-usp__slide-arrow,
.tns-usp__dots { display: none; }

/* ── Responsive desktop ── */
@media (max-width: 900px) {
    .tns-usp__track { grid-template-columns: 1fr; }
    .tns-usp__grid-override { grid-template-columns: 1fr; }
    .tns-usp__item { min-height: min(var(--usp-h, 500px), 380px); }
}

/* ── Mobile slider (≤600px) ── */
@media (max-width: 600px) {

    /* Swipe-label boven de slider */
    .tns-usp__swipe-label {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 20px;
        font-family: 'Helvetica Now Display', 'Helvetica Neue', Arial, sans-serif;
        font-size: 13px;
        font-weight: 700;
        color: #102F49;
        letter-spacing: 0.02em;
    }
    .tns-usp__swipe-label span {
        color: #BFA46A;
        font-size: 15px;
    }

    /* Track: horizontale scroll met snap */
    .tns-usp__track {
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scroll-padding-left: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 12px;
        padding: 0 20px 0;
        grid-template-columns: unset;
    }
    .tns-usp__track::-webkit-scrollbar { display: none; }
    .tns-usp__track::after { display: none; } /* Geen kleurbalken op mobiel */

    /* Kaart */
    .tns-usp__item {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 78vw;
        min-width: 78vw;
        min-height: 420px;
        border-radius: 14px;
        padding-bottom: 0;
    }

    /* Body iets compacter op mobiel */
    .tns-usp__body {
        padding: 24px 22px 22px;
    }
    .tns-usp__title { font-size: clamp(22px, 6vw, 30px); margin-bottom: 8px; }
    .tns-usp__text  { font-size: 13px; line-height: 1.6; max-width: 100%; }

    /* Badge: "1 / 3" rechtsboven op de kaart */
    .tns-usp__badge {
        display: inline-block;
        position: absolute;
        top: 14px;
        left: 14px;
        z-index: 5;
        background: rgba(16,47,73,0.75);
        backdrop-filter: blur(4px);
        color: #BFA46A;
        font-family: 'Helvetica Now Display', 'Helvetica Neue', Arial, sans-serif;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.1em;
        padding: 4px 10px;
        border-radius: 999px;
        border: 1px solid rgba(191,164,106,0.35);
    }

    /* Pijlcirkel linksonder op de kaart */
    .tns-usp__slide-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #102F49;
        flex-shrink: 0;
        margin-top: 14px;
    }
    .tns-usp__slide-arrow svg {
        width: 18px;
        height: 18px;
    }

    /* Dots onder de slider */
    .tns-usp__dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 16px 0 4px;
    }
    .tns-usp__dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(16,47,73,0.2);
        border: none;
        padding: 0;
        cursor: pointer;
        transition: background 0.25s, transform 0.25s;
    }
    .tns-usp__dot.active {
        background: #BFA46A;
        transform: scale(1.25);
    }
}

/* ── SCROLL REVEAL ── */
.tns-usp__item.tns-anim--hidden  { opacity: 0; }
.tns-usp__item.tns-anim--visible { animation: tns-usp-enter 0.8s cubic-bezier(0.25,0.46,0.45,0.94) both; }
@keyframes tns-usp-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Link variant ── */
.tns-usp__item--linked {
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.tns-usp__item--linked img { transition: transform 0.5s ease; }
.tns-usp__item--linked:hover img { transform: scale(1.04); }
.tns-usp__item--linked .tns-usp__overlay { transition: opacity 0.4s ease; }
.tns-usp__item--linked:hover .tns-usp__overlay { opacity: 0.7; }
.tns-usp__link-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: var(--usp-font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--usp-gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: gap 0.2s;
}
.tns-usp__item--linked:hover .tns-usp__link-cta { gap: 10px; }

/* Link-CTA als knop (huisstijlkleur via inline style, vorm consistent met tns-btn) */
.tns-usp__link-cta--btn {
    padding: 12px 26px;
    border-radius: 999px;
    align-self: flex-start;
}
.tns-usp__item--linked:hover .tns-usp__link-cta--btn {
    gap: 10px;
    filter: brightness(1.08);
}

/* ══════════════════════════════════════════════════════
   Desktop slider variant (.tns-usp--slider, >600px)
   Mobiel (≤600px) gebruikt de bestaande slider hierboven.
   ══════════════════════════════════════════════════════ */
@media (min-width: 601px) {
    .tns-usp--slider { position: relative; }

    .tns-usp--slider .tns-usp__track {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .tns-usp--slider .tns-usp__track::-webkit-scrollbar { display: none; }

    .tns-usp--slider .tns-usp__item {
        flex: 0 0 calc( 100% / var(--usp-vis, 4) );
        scroll-snap-align: start;
    }

    /* Pijlknoppen */
    .tns-usp__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #ffffff;
        color: #102F49;
        box-shadow: 0 4px 16px rgba(16, 47, 73, 0.25);
        transition: background .2s, color .2s, opacity .2s;
    }
    .tns-usp__nav svg { width: 20px; height: 20px; }
    .tns-usp__nav:hover { background: #BFA46A; color: #ffffff; }
    .tns-usp__nav--prev { left: 16px; }
    .tns-usp__nav--next { right: 16px; }
    .tns-usp__nav[disabled] { opacity: 0.35; cursor: default; }
    .tns-usp__nav[disabled]:hover { background: #ffffff; color: #102F49; }
}

/* Pijlknoppen verbergen op mobiel: daar zijn de dots */
@media (max-width: 600px) {
    .tns-usp__nav { display: none; }
}

/* ── Slider-variant: compactere typografie, tekst strak onderaan ── */
@media (min-width: 601px) {
    .tns-usp--slider .tns-usp__body {
        padding: 20px 26px 26px;
    }
    .tns-usp--slider .tns-usp__title {
        font-size: clamp(20px, 1.8vw, 28px);
        margin-bottom: 4px;
    }
    .tns-usp--slider .tns-usp__text {
        font-size: 14px;
        line-height: 1.5;
        margin: 0;
    }
}


/* ══════════════════════════════════════════════════════
   DOORLOPENDE BAND (.tns-usp--auto)
   Schuift constant van rechts naar links. Losse optie:
   zonder de klasse verandert er niets aan bestaande secties.
   ══════════════════════════════════════════════════════ */
.tns-usp--auto {
    position: relative;
    overflow: hidden;
}

/* Breedte van één kaart. De sectie is full-bleed, dus 100vw gedeeld
   door het aantal zichtbare kolommen klopt precies. */
.tns-usp--auto { --usp-item-w: calc(100vw / var(--usp-vis, 4)); }

.tns-usp--auto .tns-usp__track,
.tns-usp--auto .tns-usp__grid-override {
    display: flex;
    width: max-content;
    gap: 0;
    overflow: visible;
    grid-template-columns: none;
    scroll-snap-type: none;
    will-change: transform;
}

/* Doorlopend: één vloeiende beweging via CSS */
.tns-usp--auto-continu .tns-usp__track,
.tns-usp--auto-continu .tns-usp__grid-override {
    animation: tns-usp-marquee var(--usp-dur, 12s) linear infinite;
}

/* Stap voor stap: view.js verschuift telkens één kaart, hier alleen de overgang */
.tns-usp--auto-step .tns-usp__track {
    transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1);
}
.tns-usp--auto-step .tns-usp__track.tns-usp--nojump { transition: none; }
.tns-usp--auto .tns-usp__item {
    flex: 0 0 var(--usp-item-w);
    width: var(--usp-item-w);
    scroll-snap-align: none;
}

/* Eén reeks opschuiven en dan weer vooraan beginnen: naadloze lus */
@keyframes tns-usp-marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(calc(var(--usp-item-w) * var(--usp-count, 3) * -1), 0, 0); }
}

/* Pauzeren bij hover (instelbaar) */
.tns-usp--auto-pause:hover .tns-usp__track,
.tns-usp--auto-pause:focus-within .tns-usp__track { animation-play-state: paused; }

/* De kleurbalk hoort bij de sectie, niet bij de meebewegende track */
.tns-usp--auto .tns-usp__track::after,
.tns-usp--auto .tns-usp__grid-override::after { display: none; }
.tns-usp--auto::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 14px;
    background: linear-gradient(to right,
        #102F49 0%,   #102F49 25%,
        #828673 25%,  #828673 50%,
        #BFA46A 50%,  #BFA46A 75%,
        #414246 75%,  #414246 100%
    );
    pointer-events: none; z-index: 3;
}
.tns-usp--auto.tns-usp--no-bars::after { display: none; }

/* Geen swipe-hulpjes in deze stand */
.tns-usp--auto .tns-usp__swipe-label,
.tns-usp--auto .tns-usp__dots { display: none; }
.tns-usp--auto .tns-usp__nav { display: none; }

/* ── Pijlen in de stapstand: tonen dat er wat te bedienen valt ──
   De basisstijl staat in de sliderblok hierboven binnen een media query;
   hier zetten we hem opnieuw neer zodat hij ook op mobiel geldt. */
.tns-usp--arrows .tns-usp__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #102F49;
    box-shadow: 0 4px 18px rgba(16, 47, 73, 0.28);
    opacity: 0.92;
    transition: background .2s, color .2s, opacity .2s, transform .2s;
}
.tns-usp--arrows .tns-usp__nav svg { width: 20px; height: 20px; }
.tns-usp--arrows .tns-usp__nav:hover {
    background: #BFA46A;
    color: #ffffff;
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
}
.tns-usp--arrows .tns-usp__nav:focus-visible {
    outline: 3px solid #BFA46A;
    outline-offset: 3px;
}
.tns-usp--arrows .tns-usp__nav--prev { left: clamp(12px, 2vw, 28px); right: auto; }
.tns-usp--arrows .tns-usp__nav--next { right: clamp(12px, 2vw, 28px); left: auto; }
/* In deze stand nooit uitgeschakeld: de lus heeft geen begin of eind */
.tns-usp--arrows .tns-usp__nav[disabled] { opacity: 0.92; cursor: pointer; }

@media (max-width: 600px) {
    .tns-usp--arrows .tns-usp__nav { display: flex; width: 42px; height: 42px; }
    .tns-usp--arrows .tns-usp__nav svg { width: 17px; height: 17px; }
}

/* Compactere tekst, net als in de sliderstand */
@media (min-width: 601px) {
    .tns-usp--auto .tns-usp__body { padding: 20px 26px 26px; }
    .tns-usp--auto .tns-usp__title { font-size: clamp(20px, 1.8vw, 28px); margin-bottom: 4px; }
    .tns-usp--auto .tns-usp__text { font-size: 14px; line-height: 1.5; margin: 0; }
}

/* Tablet en mobiel: minder kaarten tegelijk in beeld */
@media (max-width: 900px) {
    .tns-usp--auto { --usp-item-w: 42vw; }
}
@media (max-width: 600px) {
    .tns-usp--auto { --usp-item-w: 76vw; }
    .tns-usp--auto .tns-usp__item { min-height: min(var(--usp-h, 500px), 62vh); padding-bottom: 14px; }
    .tns-usp--auto .tns-usp__body { padding: 20px 22px 26px; }
}

/* Wie bewegende beelden liever niet heeft, krijgt een gewone rij */
@media (prefers-reduced-motion: reduce) {
    .tns-usp--auto .tns-usp__track { animation: none; transition: none; }
}
