/* ==========================================================================
   Deelnemers / Smoelenboek – FancyCarTours (Editorial layout)
   ========================================================================== */

.deelnemers-section .information-title .profile-title-edition {
    background: linear-gradient(135deg, #ff006e 0%, #d20055 50%, #e83e8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.deelnemers-section .information-title .profile-title-sub {
    font-size: 0.45em;
    font-weight: 600;
    vertical-align: middle;
    opacity: 0.95;
}

/* Knop boven editietitel: Terug naar profiel */
.deelnemers-back-wrap {
    text-align: center;
    margin-bottom: 24px;
}

.deelnemers-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #e83e8c;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.deelnemers-back-btn:hover {
    background: rgba(232, 62, 140, 0.15);
    border-color: #ff006e;
    box-shadow: 0 0 20px rgba(232, 62, 140, 0.3);
    color: #fff;
    text-decoration: none;
}

.deelnemers-intro {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 24px;
    font-size: 1.2rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.85);
}

.deelnemers-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ----- Editorial layout: foto boven, content eronder ----- */
.deelnemers-list--editorial .deelnemer-card-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Foto-kader: altijd personen (links) + auto (rechts); voldoende hoogte zodat foto’s niet afgekapt worden */
.deelnemers-list--editorial .deelnemer-photo-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    height: 160px;
    min-height: 160px;
    border-right: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.deelnemers-list--editorial .deelnemer-photo-people,
.deelnemers-list--editorial .deelnemer-photo-car {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
}

.deelnemers-list--editorial .deelnemer-photo-car {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

/* Alleen autofoto: één blok over volle breedte */
.deelnemers-list--editorial .deelnemer-photo-wrap--car-only {
    grid-template-columns: 1fr;
    height: 180px;
    width: 100%;
    max-width: 100%;
}

/* Geen auto-foto: alleen mensenfoto(s) breed over volle breedte */
.deelnemers-list--editorial .deelnemer-photo-wrap--people-only {
    grid-template-columns: 1fr;
    height: 220px;
    width: 100%;
    max-width: 100%;
}

.deelnemers-list--editorial .deelnemer-photo-wrap--people-only .deelnemer-photo-people {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-column: 1;
}

.deelnemers-list--editorial .deelnemer-photo-wrap--people-only .deelnemer-photo-car {
    display: none;
}

.deelnemers-list--editorial .deelnemer-photo-wrap--car-only .deelnemer-photo-car {
    position: relative;
    border-left: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-column: 1;
}

.deelnemers-list--editorial .deelnemer-photo-wrap--car-only .deelnemer-photo-car img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.deelnemers-list--editorial .deelnemer-photo-people img,
.deelnemers-list--editorial .deelnemer-photo-car img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.deelnemers-list--editorial .deelnemer-photo-single {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: unset;
    object-fit: cover;
    display: block;
}

.deelnemers-list--editorial .deelnemer-photo-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 100%;
    min-height: 0;
    position: relative;
}

.deelnemers-list--editorial .deelnemer-photo-split img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

/* Verticale lijn tussen de twee personenfoto's (split) */
.deelnemers-list--editorial .deelnemer-photo-split::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.deelnemers-list--editorial .deelnemer-photo-people .deelnemer-photo-placeholder,
.deelnemers-list--editorial .deelnemer-photo-car .deelnemer-photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    padding: 12px;
    text-align: center;
}

.deelnemers-list--editorial .deelnemer-body {
    padding: 18px 24px 22px;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.deelnemers-list--editorial .deelnemer-header {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ronde profielfoto's bestuurder & mederijder */
.deelnemer-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
}

.deelnemer-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(232, 62, 140, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.deelnemer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.deelnemer-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, rgba(232, 62, 140, 0.4) 0%, rgba(255, 0, 110, 0.3) 100%);
    text-transform: uppercase;
}

.deelnemers-list--editorial .deelnemer-names {
    font-size: 1.95rem;
    margin-bottom: 6px;
}

.deelnemers-list--editorial .deelnemer-car {
    justify-content: center;
}

/* Overlay in het midden van de foto: transparante knop */
.deelnemer-photo-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

.deelnemer-photo-overlay .deelnemer-profile-btn {
    pointer-events: auto;
}

/* Knop "Bekijk profiel" – editietitel-gradient, witte tekst */
.deelnemer-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    color: #fff;
    background: linear-gradient(135deg, #ff006e 0%, #d20055 50%, #e83e8c 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.25s ease;
}

.deelnemer-profile-btn:hover {
    opacity: 0.95;
    box-shadow: 0 0 20px rgba(232, 62, 140, 0.45), 0 6px 28px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.deelnemer-profile-btn:active {
    transform: translateY(0);
}

.deelnemers-list--editorial .deelnemer-levensmotto {
    text-align: center;
    margin: 0 0 14px;
    padding: 12px 16px;
    font-size: 1.2rem;
    border-left: none;
    border-top: 1px solid rgba(232, 62, 140, 0.3);
    border-bottom: 1px solid rgba(232, 62, 140, 0.2);
    border-radius: 0;
}

.deelnemers-list--editorial .deelnemer-block {
    margin-bottom: 14px;
}

.deelnemers-list--editorial .deelnemer-block:last-of-type {
    margin-bottom: 0;
}

.deelnemers-list--editorial .deelnemer-block::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #e83e8c, transparent);
    border-radius: 2px;
    margin-bottom: 6px;
}

.deelnemers-list--editorial .deelnemer-block-title {
    font-size: 0.88rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.deelnemers-list--editorial .deelnemer-meta {
    justify-content: center;
    padding-top: 12px;
    margin-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ----- Card & base (shared) ----- */
.deelnemer-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.deelnemer-card:hover {
    border-color: rgba(232, 62, 140, 0.3);
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.35);
}

.deelnemer-card-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 200px;
}

/* Photo area (fallback / non-editorial) */
.deelnemer-photo-wrap {
    position: relative;
    background: rgba(0, 0, 0, 0.35);
    min-height: 220px;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.deelnemer-photo-single {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.deelnemer-photo-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 100%;
    min-height: 220px;
}

.deelnemer-photo-split img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.deelnemer-photo-split img:first-child {
    border-right: 2px solid rgba(255, 255, 255, 0.35);
}

.deelnemer-body {
    padding: 18px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.deelnemer-header {
    margin-bottom: 4px;
}

.deelnemer-names {
    font-size: 1.65rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.deelnemer-flag {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.deelnemer-car {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.08rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.deelnemer-car-icon {
    opacity: 0.9;
}

.deelnemer-car-label {
    background: linear-gradient(135deg, #ff006e 0%, #d20055 50%, #e83e8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deelnemer-levensmotto {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-left: 3px solid #e83e8c;
    border-radius: 0 8px 8px 0;
    font-size: 1.12rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
    margin: 0;
}

.deelnemer-block {
    padding: 0;
    margin: 0;
}

.deelnemer-block-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 4px;
}

.deelnemer-block-content {
    font-size: 1.06rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
    margin: 0;
}

.deelnemer-block-content p {
    margin: 0 0 4px;
}

.deelnemer-block-content p:last-child {
    margin-bottom: 0;
}

.deelnemer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.deelnemer-chip {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(232, 62, 140, 0.18);
    border: 1px solid rgba(232, 62, 140, 0.35);
    border-radius: 20px;
}

.deelnemer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.deelnemer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.deelnemer-profile-actions {
    text-align: center;
    margin-top: 18px;
    padding-top: 4px;
}

.deelnemer-profile-actions .deelnemer-profile-btn {
    display: inline-flex;
}

.deelnemer-photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.08rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deelnemer-role-label {
    font-weight: 600;
    color: #e83e8c;
    font-size: 1em;
    margin-bottom: 1px;
}

.deelnemers-section .information-content {
    padding-top: 0;
}

/* Paginatie – Fancycar stijl */
.deelnemers-pagination {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.deelnemers-pagination nav[role="navigation"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.deelnemers-pagination .pagination {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.deelnemers-pagination .page-link,
.deelnemers-pagination a[rel="prev"],
.deelnemers-pagination a[rel="next"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.deelnemers-pagination .page-link:hover,
.deelnemers-pagination a[rel="prev"]:hover,
.deelnemers-pagination a[rel="next"]:hover {
    background: rgba(232, 62, 140, 0.25);
    border-color: rgba(232, 62, 140, 0.5);
    color: #fff;
}

.deelnemers-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #e83e8c 0%, #ff006e 100%);
    border-color: #ff006e;
    color: #fff;
}

.deelnemers-pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .deelnemer-card-inner {
        grid-template-columns: 1fr;
    }

    .deelnemers-list--editorial .deelnemer-body {
        padding: 16px 18px 20px;
    }

    .deelnemers-list--editorial .deelnemer-names {
        font-size: 1.75rem;
    }

    /* Op mobiel meer hoogte voor foto’s, zodat ze niet afkappen */
    .deelnemers-list--editorial .deelnemer-photo-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        height: 320px;
        min-height: 320px;
    }

    .deelnemers-list--editorial .deelnemer-photo-people,
    .deelnemers-list--editorial .deelnemer-photo-car {
        min-height: 160px;
    }

    .deelnemers-list--editorial .deelnemer-photo-car {
        border-left: none;
        border-top: 2px solid rgba(255, 255, 255, 0.2);
    }

    .deelnemers-list--editorial .deelnemer-photo-wrap--car-only {
        grid-template-rows: 1fr;
        height: 220px;
        min-height: 220px;
    }
}
