//* ==========================================
   KLUSSI DIENSTEN RASTER BEGIN
   ========================================== */
.klussi-diensten-grid,
.klussi-diensten-grid * {
    font-family: var(--et_global_body_font, inherit) !important;
    box-sizing: border-box !important;
}

.klussi-diensten-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 24px 0 !important;
}

.kdg-card {
    display: flex !important;
    flex-direction: column !important;
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.kdg-card:hover {
    transform: translateY(-4px) !important;
    border-color: #ff6600 !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1) !important;
}

/* 1. Slankere 16/10 fotoverhouding zodat kaarten compacter blijven */
.kdg-img-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    background-color: #f1f5f9 !important;
    overflow: hidden !important;
}

/* 2. Subtiele MEEST GEBOEKT badge linksboven op de eerste 2 kaarten */
.klussi-diensten-grid .kdg-card:nth-child(1) .kdg-img-wrap::before,
.klussi-diensten-grid .kdg-card:nth-child(2) .kdg-img-wrap::before {
    content: "MEEST GEBOEKT" !important;
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 2 !important;
    background-color: #112d2d !important;
    color: #0bc2c2 !important;
    border: 1px solid #0bc2c2 !important;
    font-size: 9.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
}

html[lang^="en"] .klussi-diensten-grid .kdg-card:nth-child(1) .kdg-img-wrap::before,
html[lang^="en"] .klussi-diensten-grid .kdg-card:nth-child(2) .kdg-img-wrap::before {
    content: "MOST BOOKED" !important;
}

.kdg-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.kdg-card:hover .kdg-img-wrap img {
    transform: scale(1.04) !important;
}

.kdg-price-pill {
    position: absolute !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 2 !important;
    background-color: #121212 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 11px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
}

.kdg-price-pill span {
    color: #0bc2c2 !important;
    font-weight: 800 !important;
}

.kdg-body {
    padding: 14px 16px 15px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex-grow: 1 !important;
    text-align: left !important;
}

.kdg-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #121212 !important;
    line-height: 1.35 !important;
    margin: 0 0 12px 0 !important;
}

/* 3. Strakke onderste actiebalk met oranje pijlrondje */
.kdg-link {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding-top: 10px !important;
    border-top: 1px solid #f1f5f9 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #121212 !important;
    transition: color 0.2s ease !important;
}

.kdg-card:hover .kdg-link {
    color: #ff6600 !important;
}

.kdg-link::after {
    content: "→" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background-color: #ff6600 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
}

.kdg-card:hover .kdg-link::after {
    transform: translateX(3px) !important;
    background-color: #e65c00 !important;
}

.kdg-card.is-hidden {
    display: none !important;
}

.kdg-more-wrap {
    text-align: center !important;
    margin-top: 26px !important;
}

.kdg-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: #121212 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 13px 26px !important;
    border-radius: 25px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.kdg-more-btn:hover {
    background-color: #ff6600 !important;
}

@media screen and (max-width: 1024px) {
    .klussi-diensten-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
}

@media screen and (max-width: 767px) {
    .klussi-diensten-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .kdg-body {
        padding: 11px 12px 12px 12px !important;
    }
    .kdg-title {
        font-size: 13.5px !important;
        margin-bottom: 10px !important;
    }
    .kdg-price-pill {
        font-size: 11px !important;
        padding: 4px 8px !important;
        bottom: 8px !important;
        left: 8px !important;
    }
    .klussi-diensten-grid .kdg-card:nth-child(1) .kdg-img-wrap::before,
    .klussi-diensten-grid .kdg-card:nth-child(2) .kdg-img-wrap::before {
        font-size: 8.5px !important;
        padding: 2px 6px !important;
        top: 8px !important;
        left: 8px !important;
    }
    .kdg-link {
        font-size: 12px !important;
        padding-top: 8px !important;
    }
    .kdg-link::after {
        width: 21px !important;
        height: 21px !important;
        font-size: 11px !important;
    }
}
/* Geen MEEST GEBOEKT label op gerelateerde diensten onderaan pagina's */
.klussi-diensten-wrapper.is-related .kdg-img-wrap::before {
    display: none !important;
}
/* ==========================================
   KLUSSI DIENSTEN RASTER EIND
   ========================================== */