

.listings{
    gap: 20px;
    width: 90%;
    margin: auto;
    display: grid!important;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}



.accommodation,
.loading-skeleton{
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    transition: 0.5s;
    background-color: var(--background);
    flex-shrink: 0!important;
    margin-bottom: 20px;
}


.loading-skeleton span{
    background-color: rgba(255, 119, 0, 0.1);
    height: 10px;
    border-radius: 4px;
    display: block;
    width: 100%;
}

.loading-skeleton .description span{
    margin-bottom: 8px;
}

.loading-skeleton .location .distance{
    width: 60%;
    margin-left: 10px;
}

.loading-skeleton .location .distance span:first-child{
    margin-bottom: 5px;
}

.loading-skeleton span.short{
    width: 55%;
}

.loading-skeleton span.round{
    width: 35px;
    height: 35px!important;
    flex-shrink: 0;
    border-radius: 50%;
}

.accommodation .image,
.loading-skeleton .loading-image{
    width: 100%;
    overflow: hidden;
    height: 220px;
    border-radius: 16px;
    position: relative;
    background-color: rgba(255, 119, 0, 0.1);
}

.accommodation .image .inner-image{
    width: 100%;
    height: 100%;
    transition: 0.5s;
}

.accommodation:hover{
    box-shadow: 0px 0px 0px;
    border-color: var(--primary);
}

.loading-skeleton .loading-image::before{
    content: "RES LOCATOR";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-weight: 800;
    font-size: 35px;
    width: 100%;
    text-align: center;
    display: block;
    flex-shrink: 0;
    color: rgb(219, 207, 196);
}

.accommodation .image .actions{
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    padding: 5px;
}

.accommodation .image .actions .action{
    width: 35px;
}


.accommodation .image .actions .action.like{
    background-color: rgba(0,0,0,0.25);
    font-size: 25px;
    color: white;
    cursor: pointer;
}

.accommodation .image .actions .action img{
    width: 100%;
}


.accommodation .details{
    padding: 15px 0px 0px 0px;
}

.accommodation .details .location{
    margin-bottom: 5px;
    text-decoration: underline;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-transform: capitalize;
}


.accommodation .details .name{
    font-size: 17px;
    font-weight: 700;
    color: var(--heading);
    font-family: 'Open Sans', sans-serif!important;
    text-transform: capitalize;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.accommodation .details .payment-methods {
    gap: 5px;
    width: 100%;
    margin: 6px 0px;
}

.accommodation .details .payment-methods p {
    position: relative;
    width: fit-content;
    padding-right: 12px;
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

.accommodation .details .payment-methods p::before {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    height: 55%;
    border-right: 2px solid var(--text);
}

.accommodation .details .payment-methods p.cash::before {
    display: none;
}

.accommodation .details .payment-methods p:last-child::before {
    display: none;
}

.accommodation .details .ratings{
    flex-shrink: 0;
    margin-left: 10px;
}

.accommodation .details .ratings ion-icon{
    font-size: 18px;
    color: gold;
    flex-shrink: 0;
    margin-right: 5px;
    margin-bottom: 2px;
}

.accommodation .details .ratings h5{
    font-weight: 700;
    font-size: 14px;
    color: var(--heading);
}

.accommodation .details .ratings h5 span{
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}

.accommodation .details .description{
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 10px 0px;
}



.accommodation .details .rent .price{
    flex-shrink: 0;
}


.accommodation .details .rent .price h1{
    font-size: 15px;
    font-weight: 500;
    color: var(--heading);
}


.accommodation .details .rent .price span{
    font-size: 10px;
    color: var(--text);
    font-weight: 500;
}

.accommodation .details .accreditation{
    width: 45px;
    position: relative;
    background-image: url("../../images/nsfas.png");
}

.accommodation .details .not-accepted::before{
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(35deg);
    width: 4px;
    height: 100%;
    background-color: red;
}

@media screen and (max-width: 1050px) {
    .listings {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 920px) {
    .listings {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 850px) {
    .listings {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media screen and (max-width: 600px){
    
    .accommodation,
    .loading-skeleton{
        width: 100%!important;
    }

    .accommodation .image,
    .loading-skeleton .loading-image{
        height: 210px;
    }
}