/* =========================================
   WK ZOEKMODULE STYLES
   Shortcode: [vind_gastouder]
   ========================================= */

.wk-search-wrapper {
    font-family: 'Source Sans 3', sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    padding-bottom: 60px;
    color: #374151;
    box-sizing: border-box;
    overflow: visible; 
    height: auto;
}

/* --- TOP BAR --- */
.wk-search-topbar {
    background: #f3f4f6;
    padding: 30px 40px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    margin: 20px 20px 40px 20px;
    flex-wrap: wrap;
}

.wk-search-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 160px;
}

.wk-search-input-group label {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wk-search-topbar input,
.wk-search-topbar select {
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
    width: 100%;
    color: #111;
    box-sizing: border-box;
    height: 48px;
}

.wk-search-actions {
    display: flex;
    gap: 10px;
}

.wk-btn-search {
    background: #213167;
    color: #fff;
    border: none;
    padding: 0 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    height: 48px;
    transition: background 0.2s;
}

.wk-btn-search:hover {
    background: #1a2652;
    color: #ffffff !important;
}

.wk-btn-reset {
    background: #fff;
    color: #4b5563;
    border: 1px solid #d1d5db;
    padding: 0 15px;
    border-radius: 12px;
    cursor: pointer;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.wk-btn-reset:hover {
    background: #e5e7eb;
    color: #111;
}

/* --- LAYOUT GRID --- */
.wk-search-layout {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    gap: 40px;
    padding: 0 20px;
    align-items: flex-start;
    position: relative;
}

/* --- SIDEBAR (Links) --- */
.wk-search-sidebar {
    width: 320px;
    flex-shrink: 0;
    height: auto; 
    overflow: visible;
    padding-bottom: 20px;
}

.wk-sidebar-map-container {
    height: 200px;
    background: #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid #d1d5db;
    position: relative;
}

#wk-search-map {
    width: 100%;
    height: 100%;
}

.wk-sidebar-filters-box {
    background-color: #f3f4f6;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
}

.wk-filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.wk-filter-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.wk-filter-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #111;
    font-family: 'Source Sans 3', sans-serif !important;
}

.wk-filter-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
}

.wk-checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

.wk-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.wk-checkbox-label input[type="checkbox"]:checked {
    background-color: #213167;
    border-color: #213167;
}

.wk-checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wk-days-grid {
    display: grid;
    grid-template-columns: 70px repeat(7, 1fr);
    gap: 6px;
    font-size: 13px;
    text-align: center;
    align-items: center;
}

.wk-day-head {
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 11px;
    padding-bottom: 5px;
}

.wk-day-row-label {
    text-align: left;
    color: #374151;
    font-weight: 600;
    font-size: 13px;
}

.wk-day-cell {
    display: flex;
    justify-content: center;
}

.wk-day-cell input {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
}

.wk-day-cell input:checked {
    background-color: #213167;
    border-color: #213167;
}

/* --- RESULTATEN KOLOM (Rechts - Sticky & Scroll) --- */
.wk-search-results {
    flex: 1;
    /* Hoogte berekend op viewport minus marges */
    height: calc(100vh - 40px); 
    overflow-y: auto; 
    
    position: sticky;
    top: 20px; 
    
    padding-right: 15px;
    padding-bottom: 20px;
}

.wk-search-results::-webkit-scrollbar {
    width: 8px;
}
.wk-search-results::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.wk-search-results::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

.wk-results-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
    gap: 15px;
    background: #fff; 
    position: sticky; 
    top: 0;
    z-index: 10;
}

.wk-results-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #213167 !important;
    margin: 0;
    line-height: 1.2;
    text-decoration: underline;
    text-decoration-color: #213167;
    text-underline-offset: 8px;
    text-decoration-thickness: 3px;
}

.wk-sort-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wk-sort-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.wk-sort-dropdown select {
    border: none;
    background: transparent;
    font-weight: 600;
    outline: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

/* --- RESULT CARD --- */
.wk-search-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 25px;
    margin-bottom: 24px;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background-color 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.wk-search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    border-color: #213167;
}

/* NIEUW: Highlight klasse voor marker click */
.wk-search-card.highlight-card {
    background-color: #fff0e6 !important; /* Zacht Oranje */
    border-color: #E94E1B !important;
    box-shadow: 0 0 15px rgba(233, 78, 27, 0.2);
    transform: scale(1.01);
}

.wk-card-img {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    flex-shrink: 0;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.wk-card-avatar-fallback {
    width: 50px;
    height: 50px;
    background: #8b5cf6;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: -10px;
    right: -10px;
    border: 4px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.wk-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.wk-card-header-group {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wk-card-header-group h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #213167 !important;
}

.wk-rating-stars {
    display: flex;
    align-items: center;
}

.wk-card-bio {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.wk-card-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    width: 100%;
}

.wk-card-meta-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wk-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #111;
    font-weight: 500;
}

.wk-meta-item .dashicons {
    color: #E94E1B;
    font-size: 18px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wk-btn-profile {
    background: #213167;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
    white-space: nowrap;
}

.wk-btn-profile:hover {
    background: #1a2652;
    color: #fff !important;
    transform: translateX(3px);
}

.wk-no-results {
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    color: #6b7280;
    font-size: 16px;
    border: 1px solid #e5e5e5;
}

@media (max-width: 992px) {
    .wk-search-layout {
        flex-direction: column;
        height: auto;
    }
    .wk-search-sidebar {
        width: 100%;
        height: auto;
        margin-bottom: 30px;
    }
    .wk-search-results {
        position: static; 
        height: auto;
        overflow: visible;
    }
    .wk-search-card {
        flex-direction: column;
    }
    .wk-card-img {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }
    .wk-card-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .wk-btn-profile {
        width: 100%;
        justify-content: center;
    }
}