/* Section Heading */
.section-heading {
    color: #2c3e50;
    font-weight: 700;
}

/* Header Navigation Buttons */
.header-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ffc107;
    background-color: white;
    color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

    .header-nav-btn:hover {
        background-color: #ffc107;
        color: white;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    }

    .header-nav-btn:disabled {
        background-color: #e9ecef;
        border-color: #dee2e6;
        color: #6c757d;
        cursor: not-allowed;
        opacity: 0.5;
    }

/* Estate Card */
.estate-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .estate-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

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

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

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

/* New Listing Badge (top left - yellow) */
.badge-new-listing {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #ffc107;
    color: #000;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    z-index: 10;
}

/* Favorite Button (top right) */
.btn-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .btn-favorite i {
        font-size: 18px;
        color: #dc3545;
    }

    .btn-favorite:hover {
        background-color: #dc3545;
        transform: scale(1.1);
    }

        .btn-favorite:hover i {
            color: #fff;
        }

    .btn-favorite.active i {
        font-weight: 900;
    }

/* Magnifying Glass Icon (Detail Link) */
.estate-magnify-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 15;
    text-decoration: none;
    background: none;
}

    .estate-magnify-link i {
        font-size: 48px;
        color: #ffc107;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
        transition: all 0.3s ease;
    }

.estate-card:hover .estate-magnify-link {
    opacity: 1;
}

.estate-magnify-link:hover i {
    color: #ffca2c;
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(255, 193, 7, 0.5));
}

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

    .estate-watermark img {
        display: block;
    }

/* Overlay (bottom section on image) */
.estate-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
    padding: 15px;
    color: #fff;
    z-index: 5;
}

/* Estate Title */
.estate-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

/* Stats (views, favorites, shares) */
.estate-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 13px;
}

    .estate-stats span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .estate-stats i {
        font-size: 14px;
    }

/* Features (rooms, sqm, neighborhood) */
.estate-features {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

    .estate-features span {
        background-color: rgba(255, 255, 255, 0.2);
        padding: 4px 10px;
        border-radius: 3px;
    }

/* Price Box */
.estate-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.estate-price {
    background-color: #ffc107;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    min-width: 140px;
    text-align: left;
}

/* Sale/Rent Badge */
.badge-acquisition {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    min-width: 80px;
    display: inline-block;
    text-align: center;
}

    /* Badge Color Variants */
    .badge-acquisition.badge-warning {
        background-color: #ffc107;
        color: #fff;
    }

    .badge-acquisition.badge-info {
        background-color: #0dcaf0;
        color: #fff;
    }

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

    .badge-acquisition.badge-success {
        background-color: #198754;
        color: #fff;
    }

    .badge-acquisition.badge-primary {
        background-color: #0d6efd;
        color: #fff;
    }

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

/* Agent Information */
.estate-agent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .agent-contact i {
        margin-right: 5px;
        width: 14px;
    }

.agent-avatar {
    width: 45px;
    height: 45px;
    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;
}

    .agent-avatar i {
        font-size: 45px;
        color: #fff;
    }

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

/* Carousel */
.estate-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.estate-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.estate-carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

    .estate-carousel-item.active {
        opacity: 1;
        position: relative;
    }

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

.estate-card:hover .estate-carousel-control-prev,
.estate-card:hover .estate-carousel-control-next {
    opacity: 1;
}

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

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

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

.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");
}

/* Custom Pagination Styles */
.custom-pagination-arrow:hover:not(.disabled) {
    background-color: #ffc107 !important;
    color: white !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.custom-pagination-number:hover {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: white !important;
    transform: scale(1.05);
}

/* Mobile Responsive - Navbar offset */
@media (max-width: 576px) {
    #portfolioNew {
        padding-top: 120px !important;
    }
}
