﻿.sold-section {
    position: relative;
    padding-top: 45px;
    padding-bottom: 100px;
    padding-left: 85px;
    padding-right: 85px;
    background: var(--primary-bg);
    color: #fff;
}
  
/* Layout: a scroll-snap track that shows 3 cards on wide screens, 2 on tablets and 1 on phones. */
.sold-slider {
    position: relative;
    z-index: 1;
}

.sold-track {
    --sold-per-view: 3;
    --sold-gap: 30px;
    display: flex;
    gap: var(--sold-gap);
    margin: 0;
    padding: 0 0 8px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
    .sold-track::-webkit-scrollbar {
        display: none;
    }

    .sold-track .property-card {
        display: flex;
        flex-direction: column;
        flex: 0 0 calc((100% - (var(--sold-per-view) - 1) * var(--sold-gap)) / var(--sold-per-view));
        min-width: 0;
        height: auto;
        scroll-snap-align: start;
    }

.sold-track .property-image-slider {
    position: relative;
}

    .sold-track .property-image-slider img {
        height: auto;
        aspect-ratio: 405 / 275;
        object-fit: cover;
    }

.sold-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 2px 10px;
    background: #b3261e;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* Associate: photo with the name under it, pinned to the bottom-right of the card, linking to the profile. */
.sold-track .property-footer {
    justify-content: flex-end;
}

.sold-slider__arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

    .sold-slider__arrow:hover {
        opacity: 0.7;
    }

    .sold-slider__arrow[hidden] {
        display: none;
    }

.sold-slider__arrow--prev {
    left: -50px;
}

.sold-slider__arrow--next {
    right: -50px;
}

.sold-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.75) 70%, rgba(0, 0, 0, 1) 100%);
    pointer-events: none;
}

.section-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100px;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.75) 70%, rgba(0, 0, 0, 1) 100%);
}

.sold-section .carousel-control-prev-icon,
.sold-section .carousel-control-next-icon {
    background-size: contain;
    width: 30px;
    height: 55px;
}

.sold-section .carousel-control-prev-icon {
    background-image: url('/img/arrowLeft.png');
}

.sold-section .carousel-control-next-icon {
    background-image: url('/img/arrowRight.png');
}

.sold-carousel .carousel-control-prev,
.sold-carousel .carousel-control-next {
    width: auto;

}

.sold-carousel .carousel-control-prev {
    left: -17px;
}

.sold-carousel .carousel-control-next {
    right: -17px;
}
.sold-indicators {
    bottom: -38px;
}
.custom-arrow:hover {
    opacity: 0.7;
}

.sold-carousel .property-image-slider .location {
    width: 100%;
}
.single-slide .carousel-control-prev,
.single-slide .carousel-control-next {
    display: none;
}

@media (max-width: 1199.98px) {
    .sold-section {
        padding-left: 60px;
        padding-right: 60px;
    }

    .sold-track {
        --sold-per-view: 2;
        --sold-gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .sold-section {
        padding: 50px 16px 0px;        
    }

    .sold-track {
        --sold-per-view: 1;
        --sold-gap: 16px;
        /* Peek at the next card so swiping is discoverable. */
        padding-right: 12%;
    }

    .sold-slider__arrow {
        display: none;
    }
}


