html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
}

#map-container {
    width: 100%;
    height: 70%; /* Map takes most of the screen */
}

#map {
    width: 100%;
    height: 100%;
}

#controls-container {
    width: 100%;
    padding: 10px;
    background: #f8f8f8;
    box-sizing: border-box;
    text-align: center;
}

#controls-container input[type="text"] {
    width: 90%;
    max-width: 300px;
    padding: 8px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#controls-container select {
    padding: 8px;
    margin: 5px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#controls-container label {
    margin: 0 10px;
    font-size: 14px;
}

#controls-container button {
    padding: 8px 16px;
    margin: 5px 0;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#controls-container button:hover {
    background: #0056b3;
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: none;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    #map-container {
        height: 60%; /* Smaller map on mobile */
    }
    #controls-container {
        height: 40%; /* More room for controls */
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 5px;
    }
    #controls-container input[type="text"],
    #controls-container select,
    #controls-container button {
        width: 90%;
        margin: 5px 0;
    }
    #controls-container label {
        margin: 5px 0;
    }
}