#timetable-search-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

#timetable-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button[type="submit"] {
    background: #EB1A5B;
    color: white;
    padding: 7px 20px;
    border: 1px solid #EB1A5B;
    cursor: pointer;
    font-size: 16px;
    align-self: flex-end;
    transition: all .3s;
}

button[type="submit"]:hover {
    background: white;
    color: #EB1A5B;
}

.search-results {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 5px;
}

.search-results h3 {
    color: #EB1A5B;
    margin-top: 0;
}

.timetable-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.trip-time {
    background: #e8f4f8;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #EB1A5B;
    width: 100%;
}

.trip-details {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.fares-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.fares-table th,
.fares-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.fares-table th {
    background: #f1f1f1;
    font-weight: bold;
}

.fares-table tr:hover {
    background: #f9f9f9;
}

.error {
    color: #d63638;
    background: #ffeaea;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #d63638;
}

.ui-datepicker .ui-datepicker-calendar .blocked {
    background: #ffcccb !important;
    color: #666 !important;
}

@media (max-width: 768px) {
    #timetable-search-form {
        flex-direction: column;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .timetable-container {
        flex-direction: column;
    }
}