.home-modal-filter {
    .elementor-tabs {
        .elementor-tabs-wrapper {
            margin-bottom: 40px;
        }
        .elementor-tab-desktop-title {
            padding: 2px 25px;
            font-size: 16px;
            font-weight: 500;
            font-family: $font;
            color: #7a7e83;
            line-height: 24px;
            border: 0;
            background: #eaeaea;
            &:first-of-type {
                border-radius: 4px 0 0 4px;
            }
            &:last-of-type {
                border-radius: 0 4px 4px 0;
            }
            &.elementor-active {
                background: $primary;
                color: #fafcfc;
                &::before,
                &::after {
                    content: none;
                }
            }
            + .elementor-tab-desktop-title {
                border-left: 1px solid rgba(52, 58, 64, 0.15);
            }
        }
        .elementor-tab-mobile-title {
            &.elementor-active {
                background: $primary;
                color: #fafcfc;
                border-color: $primary;
            }
        }
        .elementor-tab-content {
            @media (min-width: 768px) {
                padding: 0;
                border: none;
            }
        }
    }
}

.modals-container {
    .models-counter {
        color: $text;
        font-size: 13px;
    }

    .row {
        grid-template-columns: repeat(5, 1fr);
        display: grid;
        grid-column-gap: 16px;
        grid-row-gap: 16px;
        @media (max-width: 1024px) {
            grid-template-columns: repeat(4, 1fr);
        }
        @media (max-width: 991px) {
            grid-template-columns: repeat(2, 1fr);
        }
        @media (max-width: 550px) {
            grid-template-columns: repeat(1, 1fr);
        }
    }

    .modal-item {
        background: #070909;
        border-radius: 5px;
        // overflow: hidden;

        a {
            text-decoration: none;
        }

        .img-container {
            position: relative;
            img {
                display: block;
                height: 225px;
                object-fit: cover;
                width: 100%;
                border-radius: 5px 5px 0 0;
            }

            .swiper-pagination {
                left: 0;
                right: 0;
                bottom: 0;

                .swiper-pagination-bullet {
                    background: #ffffff;
                    margin: 0 3px;
                }
            }

            .elementor-pagination-position-outside {
                .swiper-container {
                    padding-bottom: 0;
                }
            }
            .padge {
                position: absolute;
                left: 0;
                bottom: 0;
                border-radius: 0 5px 0 0;
                display: block;
            }
        }

        .modal-content {
            padding: 20px;
            color: #ffffff;
            a {
                color: inherit;
            }

            .modal-info {
                color: #b0b6ba;
                font-size: 12px;
                line-height: 15px;
                display: block;
            }

            .modal-title {
                font-size: 16px;
                line-height: 24px;
                font-weight: 400;
                margin: 10px 0 15px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                height: 48px;
            }

            .price {
                font-size: 13px;
                line-height: 15px;
                > * {
                    display: block;
                }
                strong {
                    font-size: 16px;
                    line-height: 26px;
                    font-family: $font;
                    font-weight: 500;
                }
            }
        }
    }
}

.home,
.page-template-search-template {
    .modals-container {
        .modal-item {
            overflow: hidden;
        }
    }
}

.padge {
    padding: 3px 10px;
    line-height: normal;
    font-size: 11px;
    text-transform: uppercase;
    background: $primary;
    color: #fff;
    border-radius: 5px;
    display: inline-block;
    z-index: 1;
    &.padge-new {
        background: $primary;
    }
    &.padge-used {
        background: $secondary;
    }
}

.custom-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    .page-numbers {
        &:not(.dots) {
            text-decoration: none !important;
            display: block;
            padding: 5px 10px;
            background: #868e96;
            color: #fff !important;
            border-radius: 5px;
            &:hover,
            &.current {
                background-color: $primary;
            }
        }
    }
}

.content-not-found {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;

    img {
        display: block;
        max-width: 300px !important;
        // background: rgba(0, 123, 255, 0.3);
        // border-radius: 10px;
    }
    p {
        font-weight: bold;
    }

    .add-new-content {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

.portofolios-list {
    .content-not-found {
        grid-area: 1/1/1/4;
    }
}
