/**
 * Custom Property Slider Styles
 * Modern, responsive slider without external dependencies
 */

/* Slider Container */
.property-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.property-slider.loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-slider.loading::after {
    content: '\f013';
    font-family: 'FontAwesome';
    font-size: 40px;
    color: #1396e2;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Slides */
.property-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.property-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Slide Background */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.slide-info {
    max-width: 600px;
    color: #fff;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.property-slide.active .slide-info {
    animation: slideInLeft 0.8s ease-out;
}

/* Property Price Tag */
.property-price {
    display: inline-block;
    background: #1396e2;
    color: #fff;
    padding: 10px 25px;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(19, 150, 226, 0.3);
}

/* Property Title */
.property-title {
    font-size: 42px;
    font-weight: 300;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.2;
    border: none;
}

/* Property Location */
.property-location {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 25px 0;
}

.property-location i {
    margin-right: 8px;
    color: #1396e2;
}

/* Divider */
.slide-info hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 25px 0;
    width: 100px;
}

/* Details Link */
.property-details-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 16px;
    text-decoration: none;
    padding: 12px 30px;
    border: 2px solid #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.property-details-link:hover {
    background: #1396e2;
    border-color: #1396e2;
    color: #fff;
    text-decoration: none;
    transform: translateX(5px);
}

.property-details-link i {
    margin-left: 10px;
    transition: margin-left 0.3s ease;
}

.property-details-link:hover i {
    margin-left: 15px;
}

/* Navigation Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: #1396e2;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* Pagination */
.slider-pagination {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pagination-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.pagination-dot.active {
    background: #1396e2;
    width: 40px;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 979px) {
    .property-slider {
        height: 70vh;
    }
    
    .property-price {
        font-size: 22px;
        padding: 8px 20px;
    }
    
    .property-title {
        font-size: 28px;
    }
    
    .property-location {
        font-size: 16px;
    }
    
    .slider-nav {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .slider-prev {
        left: 15px;
    }
    
    .slider-next {
        right: 15px;
    }
    
    .slider-pagination {
        bottom: 20px;
    }
}

@media (max-width: 767px) {
    .property-slider {
        height: 60vh;
    }
    
    .slide-info {
        max-width: 90%;
    }
    
    .property-price {
        font-size: 18px;
        padding: 6px 15px;
    }
    
    .property-title {
        font-size: 24px;
    }
    
    .property-location {
        font-size: 14px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
}
