body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
}

/* Main container: sidebar + mapContainer */
#container {
    display: flex;
    height: 100vh;      /* full viewport height */
    overflow: hidden;
}
/* Sidebar */
#sidebar {
    width: 250px;
    background: #222;
    color: white;
    padding: 15px;
    overflow-y: auto;        /* scroll if too many routes */
    flex-shrink: 0;          /* do not shrink */
}

/* Route list items */
#sidebar ul {
    padding: 0;
    list-style: none;
}

#sidebar li {
    padding: 10px;
    margin-bottom: 5px;
    background: #333;
    cursor: pointer;
    border-radius: 4px;
}

#sidebar li:hover { background: #444; }
#sidebar li.active { background: #555; }

/* Map container: map + images */
#mapContainer {
    flex: 1;                 /* take remaining width */
    display: flex;
    flex-direction: column;  /* map above images */
    height: 100%;            /* full height of container */
    overflow: hidden;        /* prevent images pushing layout */
}

/* Map iframe fills remaining space */
#mapFrame {
    flex: 1;
    width: 100%;
    border: none;
}

/* Images bar */
#images {
    display: none;           /* hidden initially */
    height: 200px;           /* fixed height */
    overflow-x: auto;        /* scroll horizontally */
    overflow-y: hidden;
    white-space: nowrap;     /* images in one row */
    background: #eee;
    padding: 10px;
    flex-shrink: 0;          /* do not shrink below 200px */
}

#images img {
    height: 180px;
    margin-right: 10px;
    border-radius: 5px;
    display: inline-block;
}
