/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.omni-property-search-wrapper {

    width: 100vw;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;

    .button {
        border: none;
        padding: 0.5em;
        overflow: visible;
        font: inherit;
        line-height: normal;
        -webkit-font-smoothing: inherit;
        -moz-osx-font-smoothing: inherit;
        -webkit-appearance: none;

        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #d4bd7c;
        color: black;

        border-radius: 0.5rem;
    }

    .omni-property-search-hero {
        padding: 3rem;
        height: 20em;
        background-position: center;
        background-size: cover;
        .omni-property-search-hero-inner {
            display: flex;
            justify-content: center;
            max-width: 75rem;
            height: 100%;
            margin: auto;
        }
    }

    .omni-property-search-header {
        margin-bottom: 1rem;
        color: white;
        font-weight: 500;
    }

    #omni-property-search-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        justify-content: flex-start;
        align-items: center;

        @media (width >= 65rem) {
            flex-direction: row;
        }

        .omni-property-search-buttons {
            display: flex;
            flex-direction: row;
            gap: 0.5rem;
        }

        .omni-location-input {
            border:none;
            border-radius: 0.5rem;
            height: 2rem;
            padding-left: 0.5rem;


            @media (width >= 35rem) {
                height: 4rem;
                width: 40rem;
                font-size: 2rem;
                padding-left: 1rem;
            }
        }
    }

    .omni-search-paging-buttons {
        margin: 1rem auto auto auto;
        max-width: 75rem;

        .next-page-button {
            margin-top: 0.5rem;
            width: 10rem;
        }
    }

    .omni-property-search-results {
        margin: 2rem auto auto;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        row-gap: 2rem;
        justify-content: space-between;
        max-width: 75rem;

        .omni-property-error {
            margin: 0 2rem;
        }
    }

    .omni-property {

        display: flex;
        flex-direction: column;

        @media (width >= 35rem) {
            flex-basis: 45%;
        }
        @media (width >= 65rem) {
            flex-basis: 30%;
        }

        &.hide {
            display: none;
        }


        .omni-property-image-wrapper {
            aspect-ratio: 4/2;
            width: 100%;
            overflow: hidden;



            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }


        }

        .omni-property-panel-info {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 0.5rem 0.75rem 0.75rem 0.75rem;
            background-color: #3d3d3d;
            color: #d3d3d3;
            border-top: 2px solid rgb(237, 187, 95);
            height: 7rem;

            .omni-property-panel-top {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                margin-bottom: 0.5rem;

                .omni-property-top-left {
                    padding-right: 0.5rem;

                    .omni-property-name {
                        line-height: 1.2;
                        font-weight: bold;
                        padding-bottom: 0.25rem;
                    }

                    .omni-property-city {
                        line-height: 1.2;
                        font-size: 0.825rem;
                    }
                }

                .info-icon-panel {
                    text-align: right;
                    flex-basis: 1rem;
                    flex-shrink: 0;

                    .info-icon {
                        display: inline-block;
                        filter: invert();
                        height: 1rem;
                        width: auto;
                    }
                }

            }


            .omni-property-panel-bottom {
                display: flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: flex-end;
                height: 2rem;

                .rating-star {
                    display: inline-block;
                    filter: invert();
                    height: 1rem;
                    width: auto;
                }

                .omni-property-button-wrapper {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    height: 2rem;

                    .button {
                        height: 100%;
                        margin: 0 0 0 auto;
                        padding: 0;
                        width: 10rem;
                    }
                }

            }
        }

        &.omni-single-property-large {
            width: 45rem;
            height: 35rem;

            /*flex-basis: 21rem;*/


            /*@media (width >= 45rem) {*/
            /*    flex-basis: 40rem;*/
            /*}*/

            /*@media (width >= 65rem) {*/
            /*    flex-basis: 45rem;*/
            /*}*/

            .omni-property-image-wrapper {
                width: 45rem;
                height: 18rem;
                /*outline: 2px solid red;*/
                position: relative;

                /*aspect-ratio: 5/2;*/
                .slideshow-left {
                    position: absolute;
                    width: 4rem;
                    top: 50%;
                    img {
                        filter: invert();
                    }
                }

                .omni-property-image-reel {

                    display: flex;
                    flex-direction: row;
                    gap: 0;
                    justify-content: flex-start;
                    overflow: visible;
                    .omni-property-image-slide {
                        width: 45rem;
                        height: 18rem;
                        flex-shrink: 0;
                    /*    height: 18rem;*/
                    /*    */
                    }
                }
            }

            .omni-property-panel-info {
                height: auto;

                .omni-property-panel-middle {
                    margin-bottom: 0.5rem;

                    .omni-property-description {
                        font-size: 0.75rem;
                        line-height: 1.4;
                        margin-bottom: 1rem;
                        max-height: 10rem;
                        overflow: auto;
                    }

                    .omni-property-amenities {
                        margin-bottom: 0.5rem;
                        display: flex;
                        flex-direction: row;
                        justify-content: flex-start;
                        flex-wrap: nowrap;
                        gap: 1rem;

                        .amenities-title {
                            display: flex;
                            align-items: center;
                            justify-content: center;
                        }

                        .amenity-icon-wrapper {
                            max-width: 1.25rem;
                            .amenity-icon {
                                display: inline-block;
                                filter: invert();
                                height: auto;
                                max-width: 100%;
                            }
                        }

                    }

                    .omni-property-loyalty-rewards {
                        font-size: 0.75rem;
                    }


                }

                .omni-property-panel-bottom {
                    height: auto;
                }
            }
        }

    }

    #omni-property-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9999;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 3rem;

        @media (width >= 35rem) {
            padding-top: 0;
            align-items: center;
        }

        &.hide {
            display: none;
        }
    }

}



