/**
 * Property Slider CSS
 */

.trobbu-property-slider-container * {
    font-family: "Marcellus", Sans-serif !important;
}

.trobbu-property-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Slider container */
.property-swiper {
    width: 100%;
}

/* Slide styles */
.swiper-slide {
    transition: transform 0.3s ease;
    height: auto;
}

.property-slide-inner {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.property-slide-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.property-slide-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover effect */
.property-slide-inner:hover .property-slide-image img {
    transform: scale(1.05);
}

/* Overlay with year and title */
.property-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.property-slide-inner:hover .property-slide-overlay {
    opacity: 1;
    transform: translateY(0);
}

.property-slide-year {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 5px;
    opacity: 0.9;
    color: #fff;
}

.property-slide-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
    color: #fff!important;
}

/* Link overlay */
.property-slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Swiper Navigation & Pagination */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 18px;
}

.swiper-pagination-bullet {
    background: #999;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: #333;
    opacity: 1;
}

/* Three slides per view */
@media (min-width: 768px) {
    .swiper-slide {
        width: calc(33.333% - 20px);
        margin-right: 20px;
    }
}

@media (max-width: 767px) {
    .swiper-slide {
        width: calc(100% - 40px);
        margin-right: 20px;
    }
    
    .property-slide-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}
