/* List Page Specific Styles */

/* Estate List Card */
.estate-list-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: 1rem;
    margin-right: 1rem;
}

    .estate-list-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

/* List Image Container */
.estate-list-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.estate-list-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.estate-list-card:hover .estate-list-image {
    transform: scale(1.05);
}

/* Watermark in List */
.estate-list-watermark {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 20;
    pointer-events: none;
}

    .estate-list-watermark img {
        display: block;
        width: 150px;
        height: 30px;
    }

/* Card Body - Enhanced Glassmorphism Effect */
.estate-list-card-body {
    background: rgba(90, 90, 90, 0.5) !important;
    backdrop-filter: blur(16px) saturate(180%) brightness(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.15);
    padding: 1.5rem !important;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Card highlight on marker hover */
.estate-list-card.listing-card-marker-active {
    border: 2px solid #ffc107 !important;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5) !important;
    transition: all 0.3s ease;
}

/* Acquisition Badge (Top Left) */
.estate-list-acquisition-badge {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
}

.badge-satilik {
    background-color: #ffc107;
    color: #fff;
}

.badge-kiralik {
    background-color: #17a2b8;
    color: #fff;
}

.badge-devren {
    background-color: #6c757d;
    color: #fff;
}

.badge-gunluk {
    background-color: #28a745;
    color: #fff;
}

.badge-other {
    background-color: #dc3545;
    color: #fff;
}

/* Price (Top Right) */
.estate-list-price {
    font-size: 24px;
    font-weight: 700;
    color: #ffc107;
    padding-right: 1rem;
}

/* Title */
.estate-list-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

/* Location */
.estate-list-location {
    font-size: 14px;
    color: #fff;
    margin-bottom: 12px;
}

    .estate-list-location i {
        color: #fff;
    }

/* Image Stats Overlay (Bottom Left) */
.estate-image-stats {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    z-index: 22;
    margin: 0;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
}

/* Features */
.estate-list-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

    .estate-list-features span {
        font-size: 13px;
        color: #fff;
        display: flex;
        align-items: center;
    }

        .estate-list-features span i {
            margin-right: 5px;
            color: #fff;
        }

/* Contact Info */
.estate-list-contact {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info {
    flex: 1;
}

.contact-phone,
.contact-email {
    font-size: 13px;
    color: #fff;
    margin-bottom: 5px;
}

    .contact-phone i {
        color: #25D366;
    }

    .contact-email i {
        color: #fff;
    }

.contact-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    overflow: hidden;
    margin-right: 1rem;
}

    .contact-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

/* Magnify Link */
.estate-magnify-link {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    z-index: 30;
    transition: all 0.3s ease;
    opacity: 0;
    text-decoration: none !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
}

    .estate-list-image-container:hover .estate-magnify-link {
        opacity: 1;
    }

    .estate-magnify-link:hover,
    .estate-magnify-link:focus,
    .estate-magnify-link:active {
        background: rgba(0, 0, 0, 0.8);
        color: #ffc107;
        transform: scale(1.1);
        text-decoration: none !important;
        box-shadow: none !important;
        outline: none !important;
        border: none !important;
    }

    /* Magnify Icon - Remove all shadows */
    .estate-magnify-link i {
        filter: none !important;
        text-shadow: none !important;
        box-shadow: none !important;
        -webkit-text-stroke: 0 !important;
    }

    .estate-magnify-link:hover i,
    .estate-magnify-link:focus i,
    .estate-magnify-link:active i {
        filter: none !important;
        text-shadow: none !important;
        box-shadow: none !important;
        -webkit-text-stroke: 0 !important;
    }

/* Carousel Controls for List */
.estate-carousel-control-prev,
.estate-carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    transition: all 0.3s ease;
    opacity: 0;
}

.estate-list-image-container:hover .estate-carousel-control-prev,
.estate-list-image-container:hover .estate-carousel-control-next {
    opacity: 1;
}

.estate-carousel-control-prev {
    left: 10px;
}

.estate-carousel-control-next {
    right: 10px;
}

.estate-carousel-control-prev:hover,
.estate-carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.estate-carousel-control-prev-icon,
.estate-carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 100% 100%;
    display: inline-block;
}

.estate-carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.estate-carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
