.container {
    display: flex;
    height: 100vh; /* Set the container height to the full viewport height */
}

.left-column {
    padding: 15px;
    overflow: auto; /* Enable scrolling if content overflows */
    height: 100%; /* Make column fill container height */
}

.left-column.default-size {
    flex: 5; /* Default size when map is not displayed */
}

.left-column.map-displayed {
    flex: 2; /* Size when map is displayed */
}


.right-column {
    flex: 10;
    padding: 15px;
    height: 100%; /* Make column fill container height */
}

textarea {
    width: 100%; /* Set textarea width to fit smaller screens */
}

#map {
    height: 100%; /* Set map height to fill column height */
    width: 100%;
}

.collapsed {
    display: none; /* Hide column when collapsed */
}

.collapse-button {
    margin-bottom: 10px;
}

.expand-button {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
}

.collapsed + .expand-button {
    display: block;
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column-reverse;
    }

    .left-column {
        overflow: auto;
    }
    .left-column.default-size {
        flex: 12; /* Default size when map is not displayed */
    }
    .left-column.map-displayed {
        flex: 2; /* Size when map is displayed */
    }

    .expand-button {
        right: auto;
        top: 0;
        position: relative;
        padding-bottom: 0;
    }

    .right-column {
        flex: 10;
    }
    #map {
        height: 100%;
    }

    .expand-button {
        display: none;
    }
}
