/* Featured Properties Carousel Styles */

.featured-properties-section {
    padding: 80px 0 60px;
    background-color: #f8f9fa;
}

.featured-properties-carousel {
    position: relative;
    padding: 0 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Fix Swiper Container */
.properties-swiper {
    overflow: hidden; /* Change from 'visible' to 'hidden' */
    padding-bottom: 50px;
}

.swiper-wrapper {
    display: flex;
}

.swiper-slide {
    height: auto;
    flex-shrink: 0; /* Prevent slides from shrinking */
}

.property-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #e9ecef;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(37, 35, 152, 0.9);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff7878;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.property-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-title {
    font-size: 20px;
    font-weight: 700;
    color: #252398;
    margin-bottom: 10px;
    line-height: 1.3;
}

.property-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.property-location i {
    color: #ff7878;
    margin-right: 5px;
}

.property-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.feature-item {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
}

.feature-item i {
    color: #252398;
    margin-right: 5px;
}

.property-price {
    font-size: 26px;
    font-weight: 700;
    color: #252398;
    margin-bottom: 20px;
}

.property-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #252398;
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: auto;
    border: none;
    cursor: pointer;
}

.property-view-btn:hover {
    background: #1a1865;
    color: #ffffff !important;
    transform: translateX(5px);
}

.swiper-button-next,
.swiper-button-prev {
    color: #252398 !important;
    background: #ffffff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px !important;
    font-weight: 700;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #252398;
    color: #ffffff !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #252398;
    opacity: 0.3;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #ff7878;
}

.view-all-properties-btn {
    text-align: center;
    margin-top: 30px;
}

.view-all-properties-btn a {
    display: inline-block;
    background: #252398;
    color: #ffffff !important;
    padding: 16px 38px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.view-all-properties-btn a:hover {
    background: #1a1865;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 35, 152, 0.3);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .featured-properties-carousel {
        padding: 0 20px;
    }

    .property-image {
        height: 200px;
    }

    .property-title {
        font-size: 18px;
    }

    .property-price {
        font-size: 22px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 16px !important;
    }

    .featured-properties-section {
        padding: 60px 0 40px;
    }
}

@media (max-width: 480px) {
    .property-features {
        flex-direction: column;
        gap: 8px;
    }

    .property-content {
        padding: 20px;
    }
}

.featured-properties-carousel .swiper-slide {
    width: auto !important;
    margin-right: 30px;
}

/* Ensure proper width calculation */
@media (min-width: 1024px) {
    .featured-properties-carousel .swiper-slide {
        width: calc((100% - 60px) / 3) !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .featured-properties-carousel .swiper-slide {
        width: calc((100% - 30px) / 2) !important;
    }
}