body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background: #fff;
    width: 100%;
    max-width: 900px;
    padding: 25px;
    margin-top: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

h2 {
    text-align: center;
    margin-bottom: 15px;
}

p {
    text-align: center;
    margin-top: 0;
}

/* GRID */
.row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.delete-col {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: end;
    padding-bottom: 10px; /* alinhar com os inputs */
}


.input-trecho{
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 5px;
    box-sizing: border-box;
}

button {
    cursor: pointer;
    border: none;
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 6px;
    transition: 0.2s;
}

.bt-addCity {
    background: transparent;
    color: black;
    border: 2px solid #0077cc;
    margin-bottom: 15px;
}

.bt-addCity:hover {
    color: #fff;
    background: #005fa3;
}

.deleteCity {
    background: #d9534f;
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    font-size: 24px;
    padding: 0;
}

.deleteCity:hover {
    background: #c9302c;
}

.button-group {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#generateButton {
    background: #28a745;
    color: #fff;
}

#generateButton:hover {
    background: #1e8636;
}

.trecho-card {
    background: #ffffff;
    border-left: 5px solid #0077cc;
    padding: 12px 15px;
    margin-bottom: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 15px;
    transition: 0.2s ease;
}

.trecho-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    border-left-color: #005fa3;
}


.trecho-linha {
    font-size: 15px;
    margin-bottom: 8px;
}

.trecho-duracao {
    font-size: 14px;
    color: #444;
    background: #eef7ff;
    padding: 6px 8px;
    border-radius: 5px;
    border-left: 4px solid #0077cc;
}

#result {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    background: transparent;
    padding: 0;
    border: none;
}