/* =============================================
   Dutch_Air_Traject — v1.0.5
   Desktop: horizontale tijdlijn
   Mobiel:  verticale tijdlijn
   ============================================= */

.da-traject {
    padding: 80px 0 90px;
    background: #f4f6f9;
    overflow: hidden;
}

.da-traject__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.da-traject__header {
    text-align: center;
    margin-bottom: 56px;
}

.da-traject__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #B11226;
    margin-bottom: 12px;
}

.da-traject__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #1F2A38;
    margin: 0 0 12px;
    line-height: 1.2;
}

.da-traject__subtitle {
    font-size: 1rem;
    color: #5A6475;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Oude line-wrap verbergen */
.da-traject__line-wrap {
    display: none;
}

/* Steps grid */
.da-traject__steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Horizontale lijn als pseudo-element — top = label(22) + margin(6) + halve bubble(32) = 60px */
.da-traject__steps::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, #B11226, #3FA7D6);
    z-index: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.da-traject__steps.is-visible::before {
    transform: scaleX(1);
}

.da-traject__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    transition-delay: calc(var(--step-index) * 0.1s);
}

.da-traject__step.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.da-traject__step-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

/* Optioneel label */
.da-traject__optional-label {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8494;
    border: 1.5px dashed #aab0bb;
    border-radius: 20px;
    padding: 2px 8px;
    margin-bottom: 6px;
    position: relative;
    z-index: 3;
}

.da-traject__optional-placeholder {
    display: block;
    height: 22px;
    margin-bottom: 6px;
}

/* Bubble */
.da-traject__bubble {
    isolation: isolate;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #dde1e8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.da-traject__step:hover .da-traject__bubble {
    isolation: isolate;
    border-color: #B11226;
    box-shadow: 0 8px 24px rgba(177,18,38,0.15);
    transform: translateY(-4px);
}

.da-traject__step--optional .da-traject__bubble {
    isolation: isolate;
    border-style: dashed;
    border-color: #aab0bb;
}

.da-traject__step--optional:hover .da-traject__bubble {
    isolation: isolate;
    border-color: #3FA7D6;
    box-shadow: 0 8px 24px rgba(63,167,214,0.15);
}

.da-traject__icon {
    width: 26px;
    height: 26px;
    color: #3A3F47;
    transition: color 0.3s;
}

.da-traject__icon svg {
    width: 100%;
    height: 100%;
}

.da-traject__step:hover .da-traject__icon { color: #B11226; }
.da-traject__step--optional:hover .da-traject__icon { color: #3FA7D6; }

.da-traject__number {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: #1F2A38;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.da-traject__step--optional .da-traject__number {
    background: #7a8494;
}

.da-traject__content {
    padding: 0 4px;
}

.da-traject__step-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1F2A38;
    margin: 0 0 6px;
    line-height: 1.3;
}

.da-traject__step-desc {
    font-size: 0.75rem;
    color: #5A6475;
    line-height: 1.55;
    margin: 0;
}

/* =============================================
   MOBIEL: verticale tijdlijn
   ============================================= */
@media (max-width: 900px) {

    .da-traject { padding: 60px 0 70px; }

    .da-traject__steps::before { display: none; }

    .da-traject__steps {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 24px;
    }

    .da-traject__step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 0 0 36px 0;
    }

    .da-traject__step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 31px;
        top: 64px;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, #B11226, #3FA7D6);
        opacity: 0.3;
    }

    .da-traject__step-top {
        flex-direction: column;
        margin-right: 20px;
        margin-bottom: 0;
    }

    .da-traject__optional-label { margin-bottom: 6px; }
    .da-traject__optional-placeholder { display: none; }

    .da-traject__content { padding: 12px 0 0 0; }
    .da-traject__step-title { font-size: 0.95rem; }
    .da-traject__step-desc { font-size: 0.82rem; }
}

@media (max-width: 640px) {
    .da-traject__container { padding: 0 20px; }
    .da-traject__bubble {
    isolation: isolate; width: 52px; height: 52px; }
    .da-traject__icon { width: 22px; height: 22px; }
    .da-traject__steps { padding-left: 16px; }
    .da-traject__step:not(:last-child)::after { left: 25px; top: 52px; }
}
