#properties {
    padding-top: 60px;
    background-color: rgb(var(--background));
}

#properties .listings {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 30px;
    position: relative;
    padding: 0 8% 60px 8%;
    background-color: rgb(var(--background));
}

#properties .listings .main {
    grid-column: span 3 / span 4;
}

#properties .listings .main .top {
    display: flex;
    justify-content: space-between;
    padding: 12px;
}

#properties .listings .main .top .sort-select {
    display: flex;
    align-items: center;
    gap: 5px;
}

#properties .listings .main .top .sort-select select {
    outline: 0;
    border: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

#properties .listings .main .properties {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 20px;
}

#properties .listings .main #pagination {
    display: flex;
    justify-content: center;
    padding-top: 3rem;
}
#properties .listings .main .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

#properties .listings .main .pagination .page-item a,
#properties .listings .main .pagination .page-item.active,
#properties .listings .main .pagination .page-item.disabled {
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    background-color: rgb(var(--foreground));
    color: rgb(var(--text_color));
    border-radius: 0.375rem;
    transition: 0.3s all;
    cursor: pointer;
}

#properties .listings .main .pagination .page-item.disabled {
    cursor: default;
}

#properties .listings .main .pagination .page-item a:hover {
    background-color: rgba(var(--primary), 0.7);
    color: rgb(var(--secondary));
}

#properties .listings .main .pagination .page-item.active {
    background-color: rgb(var(--primary));
    color: rgb(var(--secondary));
}

#properties .listings aside {
    grid-column: span 1 / span 4;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: sticky;
    top: 0;
    height: max-content;
}

#properties .listings aside > div {
    background-color: rgb(var(--foreground));
    padding: 2rem;
}

#properties .listings aside > div:first-child {
    padding: 1rem;
}

#properties .listings aside > div h3:first-child {
    padding: 1rem;
}

#properties .listings aside > div > h3 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#properties .listings aside > div > h3::before {
    position: absolute;
    content: "";
    width: 50px;
    height: 3px;
    border-radius: 30px;
    background-color: rgb(var(--primary));
    bottom: -5px;
}

#properties .listings aside > div ul li {
    padding: 20px;
    border-bottom: 1px solid rgba(var(--border_color), 0.2);
}

#properties .listings aside > div ul li a {
    display: flex;
    gap: 20px;
    align-items: center;
    color: rgb(var(--text_color));
    transition: all 0.3s;
}

#properties .listings aside > div ul li i {
    font-size: 0.8rem;
}

#properties .listings aside > div ul li a:hover {
    color: rgb(var(--primary));
}

.featured_listing .item .img-wrapper {
    position: relative;
}

.featured_listing .swiper-wrapper {
    padding-bottom: 30px;
}

.featured_listing .item .img-wrapper .tags {
    position: absolute;
    top: 8;
    right: 8;
    display: flex;
    gap: 0.5rem;
}

.featured_listing .item .img-wrapper .tags .tag {
    font-size: 0.8rem;
    padding: 0.7rem 0.5rem;
    background-color: rgb(var(--primary));
    color: rgb(var(--secondary));
    border-radius: 10%;
    text-wrap: nowrap;
    line-height: 0;
}

@media only screen and (max-width: 1536px) {
    #properties .listings {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #properties .listings .main {
        grid-column: span 2 / span 3;
    }
    #properties .listings aside {
        grid-column: span 1 / span 3;
    }
}

@media only screen and (max-width: 1024px) {
    #properties .listings {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    #properties .listings .main {
        grid-column: span 3 / span 5;
    }
    #properties .listings aside {
        grid-column: span 2 / span 5;
    }
}

@media only screen and (max-width: 768px) {
    #properties .listings {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 30px 0px;
    }
    #properties .listings .main .properties {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 560px) {
    #properties .listings .main .properties .item {
        flex-direction: column;
    }

    #properties .listings .main .properties .item .img-wrapper {
        height: 240px;
        width: 100%;
    }
}
