/* Algemene wrapper */
.kcr-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    font-family: Arial, sans-serif;
}

/* Formulier */
#kcr-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    background: #f3f3f3;
    padding: 15px;
    border-radius: 8px;
}

#kcr-form .form-group {
    display: flex;
    flex-direction: column;
    width: 200px;
}

#kcr-form label {
    font-weight: bold;
    margin-bottom: 5px;
}

#kcr-form input[type="text"],
#kcr-form select {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#kcr-search {
    padding: 10px 20px;
    background: #0057b8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#kcr-search:hover {
    background: #003f86;
}

/* Kaartjes container */
#kcr-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Individueel kaartje */
.kadett-c-div {
    width: calc(33.33% - 20px);
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kadett-c-div:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.kadett-c-image {
    width: 100%;
    height: 180px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kadett-c-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.kadett-c-info {
    padding: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.kadett-c-info strong {
    color: #333;
}

/* Meer laden knop */
#kcr-load-more {
    text-align: center;
    padding: 12px;
    background: #0057b8;
    color: white;
    border-radius: 6px;
    width: 200px;
    margin: 20px auto;
}

#kcr-load-more:hover {
    background: #003f86;
}

/* Responsive */
@media (max-width: 900px) {
    .kadett-c-div {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .kadett-c-div {
        width: 100%;
    }
}

/* ---------------------------------------------------------
   MODAL OVERLAY
--------------------------------------------------------- */
.kcr-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ---------------------------------------------------------
   MODAL CONTENT
--------------------------------------------------------- */
.kcr-modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    max-width: 750px;
    width: 95%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    animation: kcrFadeIn 0.25s ease-out;
}

/* Fade-in animatie */
@keyframes kcrFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* ---------------------------------------------------------
   MODAL FOTO
--------------------------------------------------------- */
#kcr-modal-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: contain;
    background: #f2f2f2;
}

/* ---------------------------------------------------------
   MODAL INFO
--------------------------------------------------------- */
#kcr-modal-info {
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    padding: 10px 5px;
}

#kcr-modal-info strong {
    color: #333;
}

/* ---------------------------------------------------------
   SLUITKNOP
--------------------------------------------------------- */
.kcr-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #444;
    transition: 0.2s;
}

.kcr-close:hover {
    color: #000;
}

.kcr-no-results { padding: 20px; background: #f8f8f8; border: 1px solid #ddd; border-radius: 6px; text-align: center; font-size: 18px; margin-top: 20px; display: block !important; 

}

/* ---------------------------------------------------------
   PAGINERING (compact, max 6 knoppen, gecentreerd)
--------------------------------------------------------- */

#kcr-pagination {
    width: 100%;
    text-align: center;
    margin: 25px 0;
}

.kcr-pagination-inner {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: #f3f3f3;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Klikbare knoppen */
.kcr-page,
.kcr-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: #0057b8;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    user-select: none;
    transition: background 0.2s, transform 0.15s;
    font-size: 14px;
}

/* Hover */
.kcr-page:hover,
.kcr-nav:hover {
    background: #003f86;
    transform: translateY(-2px);
}

/* Actieve pagina */
.kcr-active {
    background: #003f86 !important;
    cursor: default;
    transform: none !important;
}

/* Ellipses (geen knop) */
.kcr-ellipsis {
    padding: 0 6px;
    font-size: 18px;
    color: #444;
    user-select: none;
}

/* Responsiveness */
@media (max-width: 600px) {
    .kcr-pagination-inner {
        flex-wrap: wrap;
        gap: 4px;
        padding: 8px;
    }

    .kcr-page,
    .kcr-nav {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .kcr-ellipsis {
        font-size: 16px;
    }
}
