@use "../../../../../styles/abstracts/variables";
@use "../../../../../styles/abstracts/mixins";

.estate {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid variables.$col-active-btn-bg;
    padding-bottom: 1rem;
    cursor: pointer;
    @media only screen and (max-width: 1000px) {
        flex-direction: column;
    }

    img {
        max-width: 250px;
        height: 180px;
        border-radius: 10px;
        @media only screen and (max-width: 1000px) {
            width: 100%;
        }
    }

    &__details {
        h1{
            font-weight: 500;
            color: variables.$col-white;
            font-size: .9rem;
        }
        small {
            color: variables.$col-white;
            font-weight: 400;
            opacity: .85;
        }

        &__grid{
            padding-top: 1rem;
            display: grid;
            grid-template-columns: 100px 100px;
            grid-gap: 20px;
            padding-bottom: 1rem;
            @media only screen and (max-width: 1000px) {
                grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
                grid-gap: 10px;
            }

            &--item {
                h5{
                    color: variables.$col-white;
                    font-weight: 400;
                }
                small{
                    padding-top: .4rem;
                }
            }
        }
        &__sold{
            background: variables.$col-danger-bg;
            color: variables.$col-danger-color;
            display: inline-block;
            padding: .4rem 1rem;
            font-size: .75rem;
            border-radius: 50px;
            font-weight: 500;
        }
        &__active{
            background: variables.$col-success-bg;
            color: variables.$col-success-color;
            display: inline-block;
            padding: .4rem 1rem;
            font-size: .75rem;
            border-radius: 50px;
            font-weight: 500;
        }
    }
}
