/*
 * Vacatureoverzicht: kolommen, standaard kaartweergave en paginering.
 *
 * De kaartopmaak hieronder geldt alleen voor de ingebouwde kaart
 * (.vw-vacancy-card--default). Kies je in de admin een eigen template, dan
 * blijft alleen de grid + paginering over en bepaalt jouw template de opmaak.
 *
 * Accentkleur: #f26718 (hover #d4560f) — zelfde als de carousel.
 */

/* ------------------------------------------------------------------ kolommen */

.vacancy-website-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}

.vacancy-website-grid[data-vw-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vacancy-website-grid[data-vw-columns="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vacancy-website-grid[data-vw-columns="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vw-vacancy-item {
    display: flex;
    min-width: 0;
}

.vw-vacancy-item > * {
    width: 100%;
}

/* --------------------------------------------------- kaart op volle hoogte */

/*
 * Kaarten in dezelfde rij even hoog. Het grid strekt de cel al en de kaart
 * groeit mee, maar een pagina-builder zet daar zijn eigen wrapper tussen die
 * op autohoogte staat — bij Elementor .elementor > .e-con — en daar stopte de
 * hoogte. Die wrappers laten meegroeien in plaats van height: 100% te
 * gebruiken, zodat het ook werkt als er nog een laag tussen zit.
 */
.vw-vacancy-card {
    display: flex;
    flex-direction: column;
}

.vw-vacancy-card > .elementor {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.vw-vacancy-card > .elementor > .e-con {
    flex: 1 1 auto;
}

/* ------------------------------------------------------- standaard kaart */

.vw-vacancy-card--default {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vw-vacancy-card--default:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.13);
}

.vw-vacancy-card--default a {
    color: inherit;
    text-decoration: none;
}

.vw-vacancy-badges {
    position: absolute;
    top: 14px;
    right: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vw-vacancy-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: calc(13px * var(--vw-font-scale, 1));
    font-weight: 500;
    line-height: 1.25;
    color: #ffffff;
}

.vw-vacancy-badge-contract {
    background: #f26718;
}

.vw-vacancy-badge-priority {
    background: #dc2626;
}

.vw-vacancy-badge-new {
    background: #475569;
}

.vw-vacancy-card--no-image .vw-vacancy-badges {
    position: static;
    padding: 18px 18px 0;
}

.vw-vacancy-card--no-image .vw-vacancy-image-wrap {
    display: none;
}

.vw-vacancy-image {
    height: 190px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.vw-vacancy-image-placeholder {
    background: linear-gradient(135deg, #dbeafe, #e2e8f0);
}

.vw-vacancy-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.vw-vacancy-title {
    margin: 0;
    font-size: calc(20px * var(--vw-font-scale, 1));
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
}

.vw-vacancy-meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
}

.vw-vacancy-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: calc(15px * var(--vw-font-scale, 1));
    line-height: 1.3;
    color: #475569;
}

.vw-vacancy-meta-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.vw-vacancy-meta-icon {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    background-color: currentColor;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.vw-vacancy-meta--salary .vw-vacancy-meta-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M15.4 9.1a4.1 4.1 0 0 0-6.5 2.9 4.1 4.1 0 0 0 6.5 2.9'/%3E%3Cpath d='M7.8 11h4.7'/%3E%3Cpath d='M7.8 13.1h4.7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M15.4 9.1a4.1 4.1 0 0 0-6.5 2.9 4.1 4.1 0 0 0 6.5 2.9'/%3E%3Cpath d='M7.8 11h4.7'/%3E%3Cpath d='M7.8 13.1h4.7'/%3E%3C/svg%3E");
}

.vw-vacancy-meta--hours .vw-vacancy-meta-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M12 7.1v5.2l3.6 1.9'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.25'/%3E%3Cpath d='M12 7.1v5.2l3.6 1.9'/%3E%3C/svg%3E");
}

.vw-vacancy-meta--industry .vw-vacancy-meta-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-8'/%3E%3Cpath d='M12 13 5.2 6.2'/%3E%3Cpath d='M5.2 11.2V6.2h5'/%3E%3Cpath d='m12 13 6.8-6.8'/%3E%3Cpath d='M18.8 11.2V6.2h-5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21v-8'/%3E%3Cpath d='M12 13 5.2 6.2'/%3E%3Cpath d='M5.2 11.2V6.2h5'/%3E%3Cpath d='m12 13 6.8-6.8'/%3E%3Cpath d='M18.8 11.2V6.2h-5'/%3E%3C/svg%3E");
}

.vw-vacancy-meta--location .vw-vacancy-meta-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 10.4c0 5.4-7.5 11.1-7.5 11.1s-7.5-5.7-7.5-11.1a7.5 7.5 0 0 1 15 0z'/%3E%3Ccircle cx='12' cy='10.2' r='2.8'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19.5 10.4c0 5.4-7.5 11.1-7.5 11.1s-7.5-5.7-7.5-11.1a7.5 7.5 0 0 1 15 0z'/%3E%3Ccircle cx='12' cy='10.2' r='2.8'/%3E%3C/svg%3E");
}

.vw-vacancy-teaser {
    margin: 0;
    color: #475569;
    font-size: calc(15px * var(--vw-font-scale, 1));
    line-height: 1.5;
}

.vw-vacancy-teaser:empty {
    display: none;
}

.vw-vacancy-card-footer {
    margin-top: auto;
    padding-top: 8px;
}

.vw-vacancy-card--default .vw-vacancy-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    background: none;
    color: #0f172a;
    font-size: calc(15px * var(--vw-font-scale, 1));
    font-weight: 700;
    line-height: 1.2;
}

.vw-vacancy-card--default .vw-vacancy-button:hover,
.vw-vacancy-card--default .vw-vacancy-button:focus {
    background: none;
    color: #f26718;
}

.vw-vacancy-button-arrow {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    transition: transform 0.2s ease;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15.5'/%3E%3Cpath d='m13.5 6 6 6-6 6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15.5'/%3E%3Cpath d='m13.5 6 6 6-6 6'/%3E%3C/svg%3E");
}

.vw-vacancy-card--default .vw-vacancy-button:hover .vw-vacancy-button-arrow {
    transform: translateX(4px);
}

/* ---------------------------------------------------------------- paginering */

.vw-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.vw-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d4d4d4;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-size: calc(15px * var(--vw-font-scale, 1));
    line-height: 1;
    text-decoration: none;
}

.vw-pagination a.page-numbers:hover,
.vw-pagination a.page-numbers:focus {
    border-color: #f26718;
    color: #f26718;
}

.vw-pagination .page-numbers.current {
    border-color: #f26718;
    background: #f26718;
    color: #ffffff;
    font-weight: 600;
}

.vw-pagination .page-numbers.dots {
    border-color: transparent;
    background: none;
}

/* -------------------------------------------------------------------- mobiel */

@media (max-width: 900px) {
    .vacancy-website-grid[data-vw-columns="3"],
    .vacancy-website-grid[data-vw-columns="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .vacancy-website-grid[data-vw-columns="2"],
    .vacancy-website-grid[data-vw-columns="3"],
    .vacancy-website-grid[data-vw-columns="4"] {
        grid-template-columns: 1fr;
    }

    .vw-vacancy-meta-list {
        grid-template-columns: 1fr;
    }

    .vw-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
    }
}
