.buildings-list-page *:not(i.lnr) {
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.buildings-list-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
    margin-top: 100px;
    padding: 22px;

    .page-header {
        display: flex;
        flex-direction: column;
        gap: 16px;

        h1 {
            font-size: 32px;
            font-weight: 700;
            color: #000;
            margin: 0;
        }

        p {
            font-size: 16px;
            font-weight: 400;
            color: #888;
        }
    }

    .page-content {
        display: flex;
        flex-direction: column;
        gap: 12px;

        .top-content-controls {
            display: flex;
            flex-direction: row;
            gap: 12px;
            justify-content: flex-end;

            .pagination-control {
                display: flex;
                flex-direction: row;
                gap: 8px;

                p {
                    font-size: 14px;
                    font-weight: 400;

                    span {
                        font-weight: 500;
                        color: #6449e7;
                    }
                }
            }
        }

        .buildings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 24px;

            .building-card {
                display: flex;
                flex-direction: column;
                width: 100%;
                gap: 0;
                box-shadow: 0 0 5px rgb(0 0 0 / 5%);
                transition: .3s;
                border-radius: 3px;
                overflow: hidden;
                cursor: pointer;

                &:hover {
                    box-shadow: 0 0 10px rgb(0 0 0 / 20%);
                }

                .building-card-image {
                    height: auto !important;
                    width: 100%;

                    img {
                        aspect-ratio: 16 / 9;
                        object-fit: cover;
                        object-position: center;
                        height: auto !important;
                        width: 100%;
                        min-height: 282px; /* 500 / 16 * 9 */
                    }
                }

                .building-card-info {
                    display: flex;
                    flex-direction: column;
                    justify-content: space-between;
                    gap: 20px;
                    padding: 12px;
                    background-color: #fff;
                    height: 100%;

                    .building-card-address {
                        display: flex;
                        flex-direction: column;
                        gap: 4px;
                        border-bottom: 1px solid #ededed;
                        padding-bottom: 20px;

                        h4 {
                            font-size: 18px;
                            font-weight: 700;
                            color: #000;
                            margin: 0;
                        }

                        p {
                            font-size: 14px;
                            font-weight: 400;
                            color: #888;
                        }
                    }

                    .building-card-details {
                        display: flex;
                        flex-direction: column;
                        gap: 4px;

                        .building-card-details__row {
                            display: flex;
                            flex-direction: row;
                            gap: 8px;
                            justify-content: space-between;
                            align-items: center;
                            width: 100%;

                            .listings-count {
                                font-size: 14px;
                                font-weight: 400;
                                color: #333;
                            }

                            .listings-range {
                                color: #6449e7;
                                font-size: 16px;
                                font-weight: 700;
                                white-space: nowrap;
                            }
                        }
                    }
                }
            }
        }
    }
}

@media screen and (max-width: 1300px) {
    .buildings-list-page {
        padding: 15px;

        .page-content {
            .buildings-grid {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

                .building-card {
                    .building-card-image {
                        img {
                            min-height: 169px; /* 300 / 16 * 9 */
                        }
                    }
                }
            }
        }
    }
    
}