* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    display: flex;
    justify-content: center;
    padding-top: 50px;
}

.container {
    width: 100%;
    max-width: 420px; /* limits on larger screens */
    margin: 0 12px;   /* small horizontal padding on tiny screens */
    padding: 20px;
    background: #020617;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

h1 {
    text-align: center;
    font-size: 1.4rem;
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: #22c55e;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

button:hover {
    background: #16a34a;
}

.station {
    background: #020617;
    border: 1px solid #334155;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 600px) {
    .station {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.info h3 {
    font-size: 1.05rem;
    margin: 0 0 4px 0;
}

.info span {
    display: block;
    font-size: 0.9rem;
}

.right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.directions-btn {
    display: block;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    background: #38bdf8;
    color: #020617;
    font-weight: 600;
    text-decoration: none;
}

.directions-btn:hover {
    background: #0ea5e9;
}

.distance {
    font-size: 0.9rem;
    color: #cbd5e1;
}
