/* body {
    font-family: "Nunito", sans-serif;
    padding: 20px;
    background: #f5f5f5;
} */

.portable-carousel {
    padding: 0 1rem;
}

.actual .portable-carousel h2 {
    text-align: left;
}

.carousel-container {
    max-width: 860px;
    margin: auto;
    position: relative;
}

.actual .carousel-container {
    margin: 0;
}

.swiper {
    width: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.card {
    background: #fff;
    margin: 0.25rem;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.residential .card {
    width: 100%;
    box-shadow: none;
}

.card-image-box {
    width: 100%;
    height: 180px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    background-color: lightgray !important;
    background-size: cover;
    background-position: center;
}

.residential .card-image-box {
    height: 360px;
    border-end-start-radius: 8px;
    border-end-end-radius: 8px;
}

@media (max-width: 639px) {
    .residential .card-image-box {
        height: 400px;
    }
}

.card-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.residential .card-content {
    width: 90%;
    border-radius: 8px;
    margin: -80px auto 20px;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 1px 2px;
}

.card-content h4 {
    margin: 0 0 10px;
}

.card-content p {
    flex: 1;
    margin-bottom: 15px;
}

.more-btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--main-dark-grey);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}

.more-btn:hover {
    background: var(--main-orange);
}

/* Navigation arrows outside carousel */
.swiper-button-prev,
.swiper-button-next {
    color: #333;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
    z-index: 10;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    color: var(--main-narancs);
}

/* Desktop (≥1024px) */
@media (min-width: 1024px) {
    .swiper-button-prev {
        left: -40px;
    }

    .swiper-button-next {
        right: -40px;
    }
}

/* Tablet (640px–1023px) — prevent cropping */
@media (min-width: 640px) and (max-width: 1023px) {
    .swiper-button-prev {
        /* closer in so not cropped */
        /* left: -25px; */
        display: none;
    }

    .swiper-button-next {
        /* closer in so not cropped */
        /* right: -25px; */
        display: none;
    }
}

/* Mobile (≤639px) — bring arrows closer to container */
@media (max-width: 639px) {
    .swiper-button-prev {
        /* inside container edge */
        /* left: -5px; */
        display: none;
    }

    .swiper-button-next {
        /* inside container edge */
        /* right: -5px; */
        display: none;
    }
}

/* Pagination outside carousel */
.swiper-pagination {
    position: relative;
    margin-top: 25px;
    text-align: center;
}

.swiper-pagination-bullet {
    background: #333;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: var(--main-orange);
    opacity: 1;
}