/* Basis opmaak */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #0056b3;
    margin-bottom: 30px;
}

/* Flexbox rij die de blokken dwingt om naast elkaar te staan */
.ov-rij {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.kaart {
    flex: 1; /* Verdeelt de ruimte exact 50/50 */
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    min-width: 0;
}

.kaart h2 {
    margin-top: 0;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    font-size: 1.5rem;
}


/* Gele border voor de kaarten van De Lijn */
.kaart.bus h2 {
    border-bottom: 2px solid #f1c40f;
}

.ov-lijn {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ov-lijn:last-child {
    border-bottom: none;
}

.tijd {
    font-weight: bold;
    color: #000;
    display: inline-block;
    width: 60px;
}

.vertraging {
    color: #d9534f;
    font-weight: bold;
    font-size: 0.9rem;
}

.nummer {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 8px;
    min-width: 25px;
    text-align: center;
}

/*    EVENEMENTEN / AGENDA BLOK (FLEXBOX LAYOUT) */

.event-item {
    display: flex;
    justify-content: space-between; /* Duwt titel links en locatie rechts */
    align-items: center; 
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.event-titel-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    margin-right: 15px; /* Voorkomt dat tekst tegen de pin aan plakt */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Zet keurig puntjes als de titel te lang is */
}

.event-titel-link:hover {
    color: #0056b3; 
}

.event-locatie {
    color: #666;
    font-size: 0.85em;
    flex-shrink: 0; /* Zorgt dat de pin nooit wordt platgedrukt */
}

.hinderkaart-knop {
    display: block; /* Dwingt de knop om de volledige breedte te pakken */
    background-color: #f0ad4e; 
    color: white;
    padding: 12px 20px; /* Iets meer padding voor mobiel gebruik */
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box; 
    text-align: center;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.hinderkaart-knop:hover {
    background-color: #ec971f; 
}



/* 	Responsive: op smartphones valt alles netjes onder elkaar */
@media (max-width: 768px) {
    .ov-rij {
        flex-direction: column;
    }
}