.property-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.property-image-container {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 Aspect Ratio */
    overflow: hidden;
}

.property-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.property-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-reference {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.property-location {
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.property-price {
    font-size: 1.4rem;
    font-weight: 700 !important;
    color: #e21e25;
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.property-features span {
    display: inline-flex;
    align-items: center;
    margin-right: 12px;
    font-size: 0.85rem;
    color: #555;
}

.property-icon {
    width: 18px;
    height: 18px;
    margin-right: 4px;
    object-fit: contain;
}

.property-features span i {
    color: #007bff;
}

/* Slick Carousel Customization */
.slider-container {
    padding: 0 25px;
    margin-bottom: 60px;
}

.slides .slide-item {
    padding: 10px;
}

.slides .property-card {
    margin: 0 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slides .property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.slides .slick-dots {
    bottom: -40px;
}

.slides .slick-dots li button:before {
    font-size: 12px;
    color: #404040;
}

.slides .slick-dots li.slick-active button:before {
    color: #404040;
}

.slides .slick-prev, 
.slides .slick-next {
    width: 30px;
    height: 30px;
    z-index: 1;
}

.slides .slick-prev {
    left: -15px;
}

.slides .slick-next {
    right: -15px;
}

.slides .slick-prev:before,
.slides .slick-next:before {
    font-size: 30px;
    color: #404040;
}

/* View All Properties Button */
.view-all-btn {
    padding: 10px 25px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 40px;
    text-align: center;
    display: inline-block;
    background-color: #e21e25;
    color: white;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    transition: background-color 0.3s;
}

.view-all-btn:hover {
    background-color: #e21e25;
    border-color: #e21e25;
}

/* Featured Properties Section */
.container1 {
    margin-bottom: 60px;
    padding: 0 15px;
}

.container1 .section-title {
    margin-bottom: 30px;
    text-align: center;
}

.container1 .section-title h2 {
    position: relative;
    display: inline-block;
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 20px;
}

.container1 .section-title h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 405px;
    height: 1px;
    background-color: var(--primary-color, #404040);
}

/* Latest Properties Section */
.container2 {
    margin-bottom: 60px;
    padding: 0 15px;
}

.container2 .section-title {
    margin-bottom: 30px;
    text-align: center;
}

.container2 .section-title h2 {
    position: relative;
    display: inline-block;
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 20px;
}

.container2 .section-title h2:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 350px;
    height: 1px;
    background-color: var(--primary-color, #404040);
}

/* Property Badges/Labels */
.label {
    display: inline;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    border-radius: .25em;
    margin-right: 5px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* Features Properties */
.label-reserved {
    background-color: #e83627;
}

.label-info, .label-sea-view {
    background-color: #6e9bca;
}

.label-360-view {
    background-color: #f9ee14;
    color: #333; /* Darker text for better visibility on yellow */
}

.label-exclusive {
    background-color: #e839c1;
}

/* Latest Properties */
.label-new-listing {
    background-color: #5eb264;
}

.label-project {
    background-color: #2d36dd;
}

.label-sold {
    background-color: #e21e25;
}

/* Filter and sorting styles */
.form-select.form-select-sm {
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Pagination styles */
.pagination .page-link {
    color: #404040;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #404040;
    border-color: #404040;
}

.pagination .page-link:hover {
    color: #000;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* No image placeholder */
.no-image {
    background-color: #f8f9fa;
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    height: 100%;
    min-height: 200px;
}

/* Responsive layout adjustments */
@media (max-width: 767.98px) {
    .property-card {
        margin-bottom: 20px;
    }
    
    .property-price {
        font-size: 1.2rem;
    }
    
    .property-features {
        gap: 10px;
    }
}
