/* ── Card wrapper ── */
.kl-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 4;
    transition: transform 0.3s ease;
}

.kl-card:hover {
    transform: scale(1.02);
}

/* ── Achtergrondafbeelding (zet via inline style of ACF) ── */
.kl-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.kl-card:hover .kl-card-bg {
    transform: scale(1.04);
}

/* ── Gradient overlay onderaan ── */
.kl-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.78) 100%);
    pointer-events: none;
}

/* ── Kortingsbadge rechtsboven ── */
.kl-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 10px 13px;
    text-align: center;
    min-width: 64px;
    z-index: 2;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18); 
}

.kl-badge-pct {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.kl-badge-label {
    display: block;
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* ── Footer: naam + prijs links, pijl rechts ── */
.kl-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    z-index: 2;
}

/* ── Naam ── */
.kl-naam {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 5px;
}

/* ── Prijzen ── */
.kl-prijzen {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}

.kl-oud {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

.kl-nieuw {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* ── Pijl knop ── */
.kl-arrow {
    flex-shrink: 0;
    align-self: flex-end;
}
.kl-card:hover .kl-arrow {
    --awb-circlebordersize: 2px;
}

.kl-card:hover .kl-arrow {
    background: var(--awb-color8, #1a1a1a);
}

/* Gebruik FontAwesome icon zoals Avada dat doet */
.kl-arrow .fa-arrow-up-right,
.kl-arrow i {
    color: var(--awb-color8, #1a1a1a);
    font-size: 17px;
    transform: rotate(45deg);
    transition: color 0.2s ease;
}

.kl-card:hover .kl-arrow i {
    color: var(--awb-color1, #ffffff);
}

/* ── Verborgen galerij links voor Fancybox ── */
.kl-galerij-links {
    display: none;
}

/* ── Mobiel ── */
@media (max-width: 767px) {

    .kl-card {
        border-radius: 20px;
        aspect-ratio: 4 / 5;
    }

    .kl-badge {
        top: 12px;
        right: 12px;
        padding: 8px 10px;
        min-width: 54px;
        border-radius: 10px;
    }

    .kl-badge-pct {
        font-size: 16px;
    }

    .kl-badge-label {
        font-size: 9px;
    }

    .kl-card-footer {
        padding: 16px 16px;
        gap: 8px;
    }

    .kl-naam {
        font-size: 16px;
        margin-bottom: 4px;
    }

    .kl-oud {
        font-size: 11px;
    }

    .kl-nieuw {
        font-size: 14px;
    }

    .kl-gradient {
        background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,0.85) 100%);
    }
	    .kl-arrow {
        display: none !important;
    }

}

@media (max-width: 767px) {

    .kl-card {
        border-radius: 20px;
        aspect-ratio: 4 / 5;
    }

    .kl-badge {
        top: 12px;
        right: 12px;
        padding: 8px 10px;
        min-width: 54px;
        border-radius: 10px;
    }

    .kl-badge-pct {
        font-size: 16px;
    }

    .kl-badge-label {
        font-size: 9px;
    }

    .kl-gradient {
        background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.88) 100%);
    }

    .kl-card-footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 16px;
        gap: 6px;
    }

    .kl-naam {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .kl-oud {
        font-size: 11px;
    }

    .kl-nieuw {
        font-size: 13px;
    }

    .kl-arrow {
        display: none;
    }

    .kl-card-footer::after {
        content: 'Bekijk alle foto\'s';
        font-size: 11px;
        color: rgba(255, 255, 255, 0.85);
        letter-spacing: 0.3px;
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 20px;
        padding: 4px 12px;
        white-space: nowrap;
        margin-top: 2px;
    }

}

/* ── Filter balk ── */
.kl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 32px;
}

.kl-filter {
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff;
    border: 1px solid rgba(100, 94, 94, 0.15) !important;
    border-radius: 15px;
    display: block;
    width: auto;
    height: auto;
    padding: 15px 35px;
    font-size: 16px !important;
    font-weight: 500 !important;
    font-family: inherit;
    color: #333333;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.kl-filter:focus,
.kl-filter:hover {
    outline: none;
    border-color: #4889C8 !important;
}

.kl-filter.actief {
    background-color: #4889C8;
    border-color: #4889C8 !important;
    color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.kl-filter-reset {
    background: none;
    border: none;
    color: #4889C8;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 4px;
}

.kl-filter-reset:hover {
    opacity: 0.7;
}

.kl-filter.actief option {
    background-color: #ffffff;
    color: #333333;
}

@media (max-width: 767px) {
    .kl-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .kl-filter {
        width: 100%;
    }
}

.kl-geen-resultaten {
    width: 100%;
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #645e5e;
}

.kl-geen-resultaten a {
    color: #4889C8;
    text-decoration: underline;
}