
.orpd-properties {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.orpd-property {
    width: 100%;
    background-color: #f9f9f9;
    /*border-radius: 8px;*/
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    display: flex;
    padding: 30px;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;

}



.orpd-details {
    width: 50%;
    display: flex;
    flex-direction: column;
}
.orpd-property h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}
.orpd-description {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.5em;
    max-height: 4.5em; /* Display only the first 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
}
.orpd-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #333;
    margin-top: 10px;
}
.orpd-amenities .orpd-amenity {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #dbdada;
}
.orpd-buttons {
    display: flex;
    gap: 10px;
    width: 15%;
    padding-left: 30px;
    border-left: 2px dotted skyblue;
    height: 100%;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
.orpd-book-button, .orpd-view-button {
    padding: 10px 15px;
    /*border-radius: 5px;*/
    text-align: center;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    height: 48px;
    width: 85px;
    
}
.orpd-book-button {
    background-color: #77b2c6;
    margin-top:30px;
}
.orpd-book-button:hover {
    background-color: #000;
    transition: all 0.3s ease-in-out;
}
.orpd-view-button {
    background-color: #6094b4;
}
.orpd-view-button:hover {
    background-color: #000;
    transition: all 0.3s ease-in-out;
}

.orpd-amenities .fas{
    color: #77b2c6;
    margin-right: 5px;
}

.orpd-details h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;    
    font-family: 'Myriad Pro Bold';
}
p{
   font-family: 'Myriad Pro';
}



/* Initial state of the properties (off-screen to the right) */
.orpd-property {
    width: 100%;
/*   
 opacity: 0; 
    transform: translateX(100%); 
    transition: transform 1.5s ease, opacity 1.5s ease; 
*/
}



/* End state (properties should slide in and become visible) */
/*
.orpd-property.slide-in {
    opacity: 1; 
    transform: translateX(0); 
}
*/



/* Swipebox: Show all images in lightbox (this will be done by Swipebox itself) */
.orpd-thumbnail .swipebox {
    display: block;
}




/* Set the container of images inside the property */
.orpd-thumbnail {
    position: relative;
    object-fit: cover;
    overflow: hidden;
}

/* Ensure images inside the thumbnail container are aligned horizontally */
.orpd-thumbnail a {
    display: inline-block;
}

/* Hide all images by default */
.orpd-thumbnail img {
    display: none; /* Hide all images initially */
    opacity: 0; /* Make all images invisible initially */
    transition: opacity 1s ease-in-out; /* Smooth transition for opacity change */
    width: 400px;
    height: 300px;
    object-fit: cover;


}

/* Show only the image with the active class */
.orpd-thumbnail a.active img {
    display: block; /* Only show the active image */
    opacity: 1; /* Only show the active image */
    transition: all 1s ease-in-out;
}



/* Keyframes for cycling through images */
@keyframes fadeImages {
    0% {
        opacity: 0;  /* Start as invisible */
    }
    10% {
        opacity: 1.5;  /* Fade-in for 1 second */
    }
    90% {
        opacity: 1;  /* Stay visible for 8 seconds */
    }
    100% {
        opacity: 0;  /* Fade-out in 1 second */
    }
}

/* Apply the fadeImages animation to the images */
.orpd-thumbnail a {
    animation: fadeImages 10s infinite; /* Fade effect every 5 seconds, loop forever */
    animation-timing-function: ease-in-out;

}


@media (max-width: 1100px) {
    .orpd-property {
        flex-direction: column;
        align-items: start;
        width: 90%;
        padding: 10px;
        margin: 0;
    }
    .orpd-thumbnail, .orpd-details {
        width: 100%;
    }



    .orpd-buttons {
        width: 100%;
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
        flex-direction: row;
        justify-content: start;
        height: auto;
    }

    .orpd-book-button {
        margin-top:0px;
    }

    .orpd-thumbnail img {
       padding:20px 0;
       width: 100%;
       height: 400px;
    }
    
}

@media (max-width: 768px) {

    .orpd-properties {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .orpd-property {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 10px;
        margin: 0;
    }
    .orpd-thumbnail, .orpd-details {
        width: 100%;
    }

    .orpd-buttons {
        width: 100%;
        padding-left: 0;
        border-left: none;
        margin-top: 10px;
    }
    .orpd-book-button {
        margin-top:0px;
    }
    .orpd-thumbnail img {
        padding:20px 0px;
        height: auto;
     }
}
