* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f2f6fb;
    color: #222;
}

/* Header */

header {
    background: #0756a3;
    color: white;
    text-align: center;
    padding: 25px 15px;
}

header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

header p {
    font-size: 16px;
}

/* Main */

main {
    width: 90%;
    max-width: 900px;
    margin: 30px auto;
}

/* Train Section */

.train-section {
    margin-bottom: 30px;
}

.train-section > h2 {
    text-align: center;
    color: #0756a3;
    margin-bottom: 20px;
}

/* Train Card */

.train-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Train Title */

.train-title {
    text-align: center;
    margin-bottom: 20px;
}

.train-title h2 {
    color: #0756a3;
    font-size: 25px;
    margin-bottom: 7px;
}

.train-title p {
    font-size: 16px;
}

/* Status */

.status-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f3f7fb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.status-box span {
    font-weight: bold;
}

#trainStatus {
    color: #168a32;
}

/* Route */

.route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #eaf3ff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.route div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.route span {
    font-size: 13px;
    color: #666;
}

.route strong {
    font-size: 18px;
    color: #0756a3;
}

.route .arrow {
    font-size: 30px;
    color: #0756a3;
}

/* Details */

.details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.detail-box {
    background: #f7f9fc;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.detail-box span {
    font-size: 13px;
    color: #666;
}

.detail-box strong {
    color: #222;
}

/* Ticket Information */

.ticket-info {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-bottom: 20px;
}

.ticket-info p {
    margin: 7px 0;
}

/* Button */

button {
    display: block;
    margin: auto;
    background: #0756a3;
    color: white;
    border: none;
    padding: 12px 22px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 15px;
}

button:hover {
    background: #064580;
}

/* Not Found */

.not-found {
    display: none;
    background: white;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    color: #d00000;
    font-weight: bold;
}

/* ========================= */
/* Parking Availability */
/* ========================= */

.parking-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.parking-section h2 {
    text-align: center;
    color: #0756a3;
    margin-bottom: 8px;
}

.parking-description {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

/* Parking Slots */

.parking-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Individual Slot */

.parking-slot {
    padding: 20px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #f9fbfd;
}

.parking-icon {
    font-size: 35px;
    margin-bottom: 10px;
}

.parking-slot h3 {
    margin-bottom: 12px;
    color: #333;
    font-size: 17px;
}

.parking-slot p {
    font-weight: bold;
    font-size: 16px;
}

/* Summary */

.parking-summary {
    margin-top: 25px;
    padding: 18px;
    background: #eaf3ff;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
}

.parking-summary span {
    margin-right: 10px;
}

#availableSlots {
    color: #0756a3;
    font-size: 21px;
}

/* Parking Note */

.parking-note {
    text-align: center;
    color: #777;
    font-size: 13px;
    margin-top: 15px;
}

/* Footer */

footer {
    background: #0756a3;
    color: white;
    text-align: center;
    padding: 20px 10px;
    margin-top: 40px;
}

footer p {
    margin: 5px;
    font-size: 14px;
}

/* Mobile */

@media (max-width: 700px) {

    header h1 {
        font-size: 22px;
    }

    main {
        width: 94%;
    }

    .train-card,
    .parking-section {
        padding: 18px;
    }

    .route {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .route div {
        align-items: center;
    }

    .route .arrow {
        transform: rotate(90deg);
    }

    .details {
        grid-template-columns: 1fr;
    }

    .parking-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 450px) {

    .parking-slots {
        grid-template-columns: 1fr;
    }
}