/*
Theme Name: Divi Child
Template: Divi
Version: 1.0
*/

/* Resultaten: 3 kaarten naast elkaar */
#banden-results .banden-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* Kaart */
#banden-results .banden-kaart {
    min-width: 0;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #ededed;
    transition: border-color 0.25s ease;
}

#banden-results .banden-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 24px;
    color: #000;
    text-decoration: none;
}

/* Afbeeldingsvlak met knik in de onderrand */
#banden-results .banden-afbeelding {
    position: relative;
    height: 220px;
    margin: 0 16px;
    overflow: hidden;
    isolation: isolate;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 16px),
        54% calc(100% - 16px),
        45% 100%,
        0 100%
    );
}

/* Band onderaan afsnijden */
#banden-results .banden-foto {
    display: block;
    width: 100%;
    max-width: none;
    height: 285px;
    margin: 0;
    object-fit: contain;
    object-position: center top;
}

/* Grijze lijn met knik */
#banden-results .banden-afbeelding::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 18px;
    background: #ddd;
    clip-path: polygon(
        0 calc(100% - 2px),
        45% calc(100% - 2px),
        54% 0,
        100% 0,
        100% 2px,
        54.5% 2px,
        45.5% 100%,
        0 100%
    );
    transition: background-color 0.25s ease;
    pointer-events: none;
}

/* Tekstgedeelte */
#banden-results .banden-inhoud {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    padding: 20px 18px 24px;
    text-align: center;
}

#banden-results .banden-titel {
    margin: 0 0 10px;
    padding: 0;
    color: #000;
    font-size: 28px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

#banden-results .banden-intro {
    margin: 0 0 16px;
    padding: 0;
    color: #000;
    font-size: 16px;
    line-height: 1.6;
}

/* Het ACF-veld iconen bevat één afbeelding */
#banden-results .banden-iconen {
    width: 100%;
    margin-top: auto;
}

#banden-results .banden-iconen img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 44px;
    margin: 0 auto;
    object-fit: contain;
}

/* Knop: ruimte blijft gereserveerd */
#banden-results .banden-knop {
    display: block;
    padding: 12px 16px;
    background: #ce171c;
    color: #fff;
	  font-family: 'Exo 2', sans-serif;
    font-size: 20px;
    font-weight: 900;
    font-style: italic;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* Hover en toetsenbordfocus */
#banden-results .banden-kaart:hover,
#banden-results .banden-kaart:focus-within {
    border-color: #ce171c;
}

#banden-results .banden-kaart:hover .banden-afbeelding::after,
#banden-results .banden-kaart:focus-within .banden-afbeelding::after {
    background: #ce171c;
}

#banden-results .banden-kaart:hover .banden-knop,
#banden-results .banden-kaart:focus-within .banden-knop {
    opacity: 1;
}
/* Rode lijn met knik */
.roadhog-knik {
    width: 100%;
    margin-top: 20px;
}

.roadhog-knik svg {
    display: block;
    width: 100%;
    height: 80px;
    overflow: visible;
}
.tablepress thead th {
    background-color: #c51a1b !important;
    color: #ffffff !important;
}

/* Tablet */
@media (max-width: 980px) {
    #banden-results .banden-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobiel */
@media (max-width: 600px) {
    #banden-results .banden-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

/* Knop altijd zichtbaar op apparaten zonder hover */
@media (hover: none) {
    #banden-results .banden-knop {
        opacity: 1;
    }
}
/* Filterknoppen naast elkaar */
.search-filter-field--id-1 .search-filter-input-button-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px 65px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Ruimte rond afzonderlijke knoppen verwijderen */
.search-filter-field--id-1 .search-filter-checkable-button {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Tekstknoppen zonder achtergrond of rand */
.search-filter-field--id-1 .search-filter-checkable-button__label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 0 14px;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #ccc !important;
    font-family: 'Exo 2', sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease;
}

/* Kort rood lijntje onder de tekst */
.search-filter-field--id-1 .search-filter-checkable-button__label::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 50%;
    width: 34px;
    height: 2px;
    background: #ce171c;
    opacity: 0;
    transform: translateX(-50%);
    transition: opacity 0.2s ease;
}

/* Geselecteerde optie */
.search-filter-field--id-1 .search-filter-input-button--is-selected,
.search-filter-field--id-1 .search-filter-checkable-button__input:checked
    + .search-filter-checkable-button__label {
    color: #000 !important;
}

.search-filter-field--id-1 .search-filter-input-button--is-selected::after,
.search-filter-field--id-1 .search-filter-checkable-button__input:checked
    + .search-filter-checkable-button__label::after {
    opacity: 1;
}

/* Hover */
.search-filter-field--id-1 .search-filter-checkable-button__label:hover {
    color: #000 !important;
}

/* Zichtbare toetsenbordfocus */
.search-filter-field--id-1 .search-filter-checkable-button__input:focus-visible
    + .search-filter-checkable-button__label {
    outline: 2px solid #ce171c;
    outline-offset: 4px;
}

/* Mobiel */
@media (max-width: 600px) {
    .search-filter-field--id-1 .search-filter-input-button-group {
        gap: 12px 24px;
    }

    .search-filter-field--id-1 .search-filter-checkable-button__label {
        font-size: 19px;
    }
	 .roadhog-knik svg {
        height: 40px;
    }
	/* Module begrenzen binnen de Divi-kolom */
    #et-boc .et-l .product-tablepress-wrap {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    /* Binnenste tekstvlak scrollbaar maken */
    #et-boc .et-l .product-tablepress-wrap > .et_pb_text_inner {
        display: block;
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Tabel breed houden */
    #et-boc .et-l .product-tablepress-wrap .tablepress {
        width: 100% !important;
        min-width: 650px !important;
    }
	#et-boc .et-l .tabel-kolom > .et_pb_column {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}