#thumbnail-carousel li {
    width: 25vw;
    height: auto;
    /* border-radius: 12px; */
    border: 1px solid #bbbbbb;
    border-radius: 12px;
    overflow: hidden;
    -webkit-box-shadow: 3px 3px 5px -3px rgba(66, 68, 90, 0.57);
    -moz-box-shadow: 3px 3px 5px -3px rgba(66, 68, 90, 0.57);
    box-shadow: 3px 3px 5px -3px rgba(66, 68, 90, 0.57);
}

#thumbnail-carousel li:hover {
	background: #021A3C;
}
#thumbnail-carousel li:hover * {
	color: #ffffff;
}
#thumbnail-carousel li .featured {
    /* border-top-left-radius: 12px; */
    /* border-top-right-radius: 12px; */
    overflow: hidden;
    border-color: #bbbbbb;
}

#thumbnail-carousel li a {
	display: block;
    width: 100%;
    height: 100%;
}

.property_info {
	padding: 15px;
    overflow: hidden; 
}

.property_info h4 {
	margin: 0;
    padding: 0;
    font-weight: 500;
   	padding-bottom: 15px;
}

.property_info p {
	margin: 0;
    padding: 0;
}


.property_popup {
    position: fixed;
    display: none;
    background: transparent;
    width: 100%;
    height: 100%;
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transform: scale(0);
    opacity: 0;    
    transition: transform 0.9s ease, top 0.9s ease, left 0.9s ease;
}
.property_popup:before {
	content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    filter: blur(0);
    background: transparent;
    transition: background 0.9s ease, filter 0.9s ease;
}
#thumbnail-carousel-list, .splide__track {
	overflow: visible;
}
#thumbnail-carousel-list li {
	transition: all 500ms ease;
}
#thumbnail-carousel-list li:hover {
	transform: scale(1.09);
}

.property_popup.active {
    transition: transform 0.9s ease, top 0.9s ease, left 0.9s ease;
}
.property_popup.active:before {
    transition: background 0.9s ease, filter 0.9s ease;
    background: rgba(255,255,255,0.8);
    filter: blur(15px);
}

.property_popup_detail {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* Cover image (left side) */
.property_popup_cover {
    width: 40%;
    min-height: 500px;
    height: 100%;
    transition: width 1000ms ease;
    display: block;
}

.property_popup.active .property_popup_cover {
    width: 25%;
}
.property_popup_cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info (right side) */
.property_popup_info_container {
    flex: 1; /* This ensures it stretches to fill the available height */
    display: flex; /* Flexbox for inner items */
    flex-direction: column; /* Stack the elements inside it */
    max-width: 70%;
    height: 500px;
    
    overflow: hidden;
}
.property_popup.active .property_popup_info_container {
    width: 100%;
    height: 500px;
    display: flex;
    max-width: 75%;
    flex-direction: column; /* Ensure it's using flexbox for vertical stacking */
}

.property_popup_info {
    position: relative;
    width: 0;
    transition: width 1000ms ease;
    overflow: hidden;
    flex: 1; /* Ensure the content stretches to fill the available height */
    display: flex;
    background: #ffffff;
    overflow: hidden;    
    border-top: 1px solid #bbbbbb;
    border-right: 1px solid #bbbbbb;
    border-bottom: 1px solid #bbbbbb;
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
}

.property_popup.active .property_popup_info {
	width: 100%;
    height: 100%;
    padding: 30px;
}
.property_popup_info .close {
	position: absolute;
    border: 1px solid #d83538;
    color: #d83538;
    padding: 5px 10px;
    right: 20px;
    top: 20px;
    background: #ffffff;
    transition: all 500ms ease;
    cursor: pointer;
}
.property_popup_info .close:hover {
	background: #d83538;
    color: #ffffff;
}
.property_popup_info_des * {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.property_popup.active  .property_popup_info_des * {
  opacity: 1;
  visibility: visible;
}

.property_popup_info_desc {
	min-width: 1064px;
}
.property_popup_info_desc h4 {
    margin-top: 0;
    font-weight: 400 !important; 
}

.property_popup_info_desc .top-area-content {
    font-size: 15px;
	font-size: 0.9375em;
	font-family: "Poppins", Sans-serif !important;
	font-weight: 300 !important;
	color: #312f2f;
	line-height: 1.5;
}

.property_popup_info_desc h3 {
	font-family: "Poppins", Sans-serif !important;
}
.property_popup_info_desc p {
    font-weight: 400 !important;
}
.property_popup_info_image {
    margin-top: 20px;
}
.property_popup_info_image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}


.top-area-excerpt, .top-area-content {
	font-size: 15px;
	font-size: 0.9375em;
	font-family: "Poppins", Sans-serif !important;
	font-weight: 300 !important;
	color: #312f2f;
	line-height: 1.5;
}
/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .property_popup_detail {
        flex-direction: column;
    }
    .property_popup_cover,
    .property_popup_info {
        border-radius: 0;
    }
}

/* Tablet: 33% of viewport width */
@media (max-width: 1024px) {
    #thumbnail-carousel li {
        width: 33vw; /* 33% of viewport width for tablets */
    }
    
}

/* Mobile: 50% of viewport width */
@media (max-width: 768px) {
	.property_popup_detail {
    	height: 90vh;
        min-height: 600px;
                max-height: 700px;
    }
	.property_popup .property_popup_cover {
        display: none;
    }
    .property_popup .property_popup_info {
    	padding: 20px;
    }
    .property_popup .property_popup_info, 
    .property_popup .property_popup_info_container{
    	height: 90vh !important;
        min-height: 600px;
                max-height: 700px;
    }
    .property_popup_info_desc {
        min-width: unset;
    }
    .property_popup.active .property_popup_info_container {
    	width: 100%;
        max-width: 100%;
    }
    #thumbnail-carousel li {
        width: 50vw; /* 50% of viewport width for mobile */
    }
    .property_popup_detail {
    	display: block !important;
    }
}