main {
    width: 1110px;
    display: grid;
    column-gap: 30px;
    grid-template-columns: repeat(12, 65px);
    margin: 0 auto 24px auto;
}

section {
    margin: 24px 0;
}

.page-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 120px;
    
    .hero-heading {
        font-size: 3rem;
    }

    .background {
        position: absolute;
        z-index: -1;
        background: var(--sub-banner-background);
        height: 168px;
        width: 100vw;
    }
}

.text_input, .map_info_container {
    grid-column: span 6;
}

.text_input {
    display: flex;
    flex-direction: column;
    min-height: 40vh;
    z-index: 3;
    
    .text_input_container {
        height: fit-content;
        display: flex;
        flex-direction: column;
        align-content:end;
        position: relative;

        .input_text {
            display: flex;
            border: solid var(--paragraph-text-color) 2px;
            border-radius: 1.5rem;
            background-color: var(--background-color);
            height: 1.5rem;
            padding: .5rem .5rem .5rem 1rem;
            align-items: center;
            justify-content: space-between;

            .results {
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                background-color: var(--background-color);
                padding: 4px 0 1rem 0;
                border-radius: 0 0 1.5rem 1.5rem;
                border: solid var(--paragraph-text-color) 2px;
                width: 99%;

                p {
                    padding: .25rem .5rem;
                    margin: 4px 0;
                    overflow: hidden;
                    cursor: pointer;
                }
                p:hover {
                    background-color: var(--card-background);
                }
            }

            .search-svg {
                display: flex;
                gap: 8px;
                align-items: center;
            }

            input {
                border: none;
                height: 100%;
                width: 100%;
            }

            input:focus {
                outline: none;
            }
        }

        .input_text.active {
                border-radius: 1.5rem 1.5rem 0 0;
            }
    }
}

.inert-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    }


.text_search_output {
    height: 100%;
    margin: 1rem 0;
    display: flex;
    background-color: var(--banner-background);
    border-radius: 1.5rem;
    padding: 1rem;
    align-items: center;
}

.text_search_output.empty {
    justify-content: center;
    }

.search_output {
    background-color: var(--background-color);
    p {
        padding: .2rem;
        background-color: var(--banner-background);
        color: var(--paragraph-text-color);
        
        span {
            font-weight: bolder;
            color: var(--heading-text-color);
            padding-right: 4px;
        }
    }
    
}

.map_info_container {
    min-height: 40vh;
}

#map {
    height: 100%;
    border-radius: 15px;
    z-index: 100;
}

@media (max-width: 1110px) and (min-width: 730px ){
    main {
        width: 730px;
        display: grid;
        column-gap: 30px;
        grid-template-columns: repeat(8, 65px);
        margin: 0 auto;
    }

    .page-header {
        text-align: center;
        justify-content: center;
        .hero-heading {
            font-size: 2.5rem;
        }
    }
    .text_input, .map_info_container {
        grid-column: span 8;
        margin: 0 8px;
    }

    .text_input {
        margin-top: 24px;
        min-height: auto;
        height: fit-content;
    }

    .text_search_output {
        height: 13rem;
    }

    .map_info_container {
        margin-bottom: 24px;
    }
}

@media (width <= 730px ){
    main {
        width: 350px;
        display: grid;
        column-gap: 30px;
        grid-template-columns: repeat(4, 65px);
        margin: 0 auto;
    }

    .page-header {
        text-align: center;
        justify-content: center;
        .hero-heading {
            font-size: 2rem;
        }
    }

    .text_input, .map_info_container {
        grid-column: 1/span 4;
        margin: 0 8px;
    }

    .text_input {
        margin-top: 12px;
        min-height: auto;
        height: fit-content;

        .title {
            font-size: 1.2rem;
        }

        .text_search_output {
        height: 13rem;
    }
    }

    .map_info_container {
        margin-bottom: 24px;
    }
}