body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #0077c2; /* Warna KAI Commuter */
    color: white;
    padding: 1em;
    text-align: center;
}

.controls {
    margin-top: 10px;
    font-size: 1.1em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.controls label {
    margin-right: 8px;
}

#train-selector {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

/* STYLE BARU UNTUK TOMBOL "BERHENTI MENGIKUTI" */
#unfollow-btn {
    margin-left: 10px;
    padding: 6px 12px;
    font-size: 0.9em;
    background-color: #e63946; /* Warna merah untuk aksi "stop" */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#unfollow-btn:hover {
    background-color: #c12b37;
}


/* STYLE BARU UNTUK TOMBOL SHARE */
#share-btn {
    margin-left: 8px;
    padding: 6px 12px;
    font-size: 0.9em;
    background-color: #0077c2; /* Warna biru untuk aksi share */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#share-btn:hover {
    background-color: #005a9e;
}

.hidden {
    display: none;
}
/* AKHIR STYLE BARU */

main {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* MENGEMBALIKAN TINGGI PETA KE VERSI STABIL */
#map {
    width: 100%;
    height: 80vh; /* Menggunakan 80% dari tinggi viewport */
    border: 1px solid #ccc;
}

footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 0.5em;
    font-size: 0.8em;
}

/* InfoWindow Styling (tidak berubah) */
.gm-style .gm-style-iw-c {
    padding: 10px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}
.gm-style .gm-style-iw-d {
    overflow: auto !important;
    padding-right: 5px !important;
}
.info-window-content h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #005082;
}
.info-window-content p {
    margin: 3px 0;
    font-size: 0.9em;
}
.info-window-content hr {
    margin: 8px 0;
}
.info-window-content .schedule-title {
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}