/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f8;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #1e88e5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 1000;
}

/* Footer */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #1e88e5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
}

/* Map Container */
#map {
    position: absolute;
    top: 60px;    /* header height */
    bottom: 50px; /* footer height */
    left: 0;
    right: 0;
    height: calc(100% - 110px); /* full space minus header/footer */
    width: 100%;
    z-index: 1;
}

/* Controls above footer */
#controls {
    position: fixed;
    bottom: 55px; /* just above footer */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 1001;
    min-width: 220px;
}

/* Dropdown & Button styling */
#destination {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    flex: 1;
    font-size: 14px;
}

#destination:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: 0 0 5px rgba(30,136,229,0.5);
}

#navigateBtn {
    padding: 8px 14px;
    border-radius: 8px;
    background: #1e88e5;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

#navigateBtn:hover {
    background: #1565c0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Responsive for mobile */
@media (max-width: 600px) {
    #controls {
        flex-direction: column;
        min-width: 160px;
    }

    #destination, #navigateBtn {
        width: 100%;
    }
}
