.mls-slider-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
    position: relative;
}

.mls-swiper {
    padding-bottom: 60px;  /* space for pagination dots */
    overflow: visible;
}

.mls-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mls-card:hover {
    transform: translateY(-5px);
}

/* Fixed image size - uniform for all cards */
.mls-card-image {
    height: 240px;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;  /* fallback while loading */
}

.mls-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* ensures all images fill area without stretching */
    display: block;
    transition: transform 0.3s ease;
}

.mls-card:hover .mls-card-image img {
    transform: scale(1.03);  /* subtle zoom on hover */
}

.mls-card-content {
    padding: 18px;
    flex-grow: 1;
}

.mls-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
}

.mls-address {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.mls-details {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #34495e;
    border-top: 1px solid #ecf0f1;
    padding-top: 12px;
    margin-top: 8px;
}

.mls-details span {
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Navigation arrows - smaller and better positioned */
.swiper-button-next,
.swiper-button-prev {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s;
    top: 50%;
    margin-top: -18px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Pagination dots - no overlap, properly spaced */
.swiper-pagination {
    bottom: 10px !important;
    position: absolute;
}

.swiper-pagination-bullet {
    background: #bdc3c7;
    opacity: 1;
    width: 10px;
    height: 10px;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    background: #2c3e50;
}

/* Responsive */
@media (max-width: 768px) {
    .mls-slider-container {
        padding: 15px 10px;
    }
    .mls-card-image {
        height: 180px;
    }
    .mls-price {
        font-size: 1.2rem;
    }
    .mls-card-content {
        padding: 12px;
    }
    .swiper-button-next,
    .swiper-button-prev {
        width: 28px;
        height: 28px;
        margin-top: -14px;
    }
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px;
    }
}