/* General responsiveness for the carousel */
.real-estate-carousel {
    max-width: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Responsive carousel cards */
.carousel-card {
    flex: 1 1 23%; /* Adjusts to 23% of the width with flexible resizing */
    margin: 10px;
    box-sizing: border-box;
}

.carousel-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.carousel-card p {
    text-align: center;
    font-size: 16px;
    margin: 10px 0 0;
    color: #d4af37; /* Gold color */
}

/* Adjustments for tablets */
@media (max-width: 768px) {
    .carousel-card {
        flex: 1 1 45%; /* Two cards per row on tablets */
    }

    .carousel-card p {
        font-size: 14px;
    }
}

/* Adjustments for mobile devices */
@media (max-width: 480px) {
    .carousel-card {
        flex: 1 1 90%; /* Single card per row on mobile */
    }

    .carousel-card p {
        font-size: 12px;
    }
    
    .carousel-arrow {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}

/* Style adjustments for navigation arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #000;
    color: #d4af37; /* Gold color */
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    z-index: 2;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #d4af37; /* Gold color */
    border-radius: 50%;
    cursor: pointer;
}
