﻿.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 .location {
        font-family: Arial, sans-serif;
        font-weight: bold;
        font-size: 1.0419rem;
        position: absolute;
        bottom: 3px;
        left: 10px;
    }

    .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;
}

.sold-track .body-header-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

/* 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-agent {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: #fff;
    text-decoration: none;
}

    .sold-agent:hover .property-agent-name,
    .sold-agent:focus-visible .property-agent-name {
        text-decoration: underline;
    }

    .sold-agent .property-agent-name {
        margin-left: 0;
        text-align: center;

    }

.sold-agent__img {
    width: 65px;
    height: 85px;
    object-fit: cover;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: absolute;
    right: 13px;
    top: -6px;
    z-index: 2;
}

.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%);
}




.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: contain;
    width: 30px;
    height: 55px;
}

.carousel-control-prev-icon {
    background-image: url('/img/arrowLeft.png');
}

.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;
}

.property-title a {
    display: block;
    white-space: normal;
    overflow-wrap: break-word !important;
    word-wrap: break-word;
    width: 370px;

}
.sold-carousel .property-image-slider .location {
    width: 100%;
}
.single-slide .carousel-control-prev,
.single-slide .carousel-control-next {
    display: none;
}

@media(min-width:1200px) and (max-width:1800px){
    .property-title {
        display: block;
        white-space: normal;
        overflow-wrap: break-word !important;
        word-wrap: break-word;
        width: 280px;
    }
    .property-body {
        padding: 5px 13px 0px 13px;
    }
    }
@media(min-width:1801px) {
    .property-title {
        display: block;
        white-space: normal;
        overflow-wrap: break-word !important;
        word-wrap: break-word;
        width: 450px;
    }
}
@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;
    }
}
@media (max-width: 767.98px) {

    .property-body {
        padding: 10px;
        padding-right: 70px;
    }

    .property-title {
        font-size: 14px;
        line-height: 1.2;
    }

    .property-meta {
        font-size: 11px;
        line-height: 1.3;
    }

    .property-footer {
        font-size: 11px;
        margin-top: 6px;
    }

    .sold-agent {
        position: absolute;
        right: 8px;
        top: 8px;
    }

    .sold-agent__img {
        width: 48px;
        height: 62px;
        object-fit: cover;
    }
