/**
 * Modern Project Card Design
 * Premium card layout matching NR Luxury style
 * 
 * Features:
 * - Clean card layout with hover effects
 * - Top-left badges (status & payment plan)
 * - Large project image
 * - Elegant typography
 * - Price at bottom
 * 
 * @version 1.0
 */

/* ===================================
   MODERN CARD CONTAINER
   =================================== */

.project-item.modern-card {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-item.modern-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* ===================================
   IMAGE SECTION
   =================================== */

.project-item.modern-card .project-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f5f5f5;
}

.project-item.modern-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-item.modern-card:hover .project-image img {
    transform: scale(1.05);
}

/* ===================================
   BADGES (TOP-LEFT CORNER)
   =================================== */

.modern-card-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.modern-card-badge {
    background: #000000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 0;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modern-card-badge.status {
    background: #000000;
}

.modern-card-badge.payment-plan {
    background: #000000;
}

/* ===================================
   INFO SECTION
   =================================== */

.project-item.modern-card .project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Project Title */
.project-item.modern-card .project-list-title {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Location */
.project-item.modern-card .project-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666666;
    font-size: 14px;
    margin-bottom: 12px;
}

.project-item.modern-card .project-location .location-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* ===================================
   PRICE SECTION (BOTTOM)
   =================================== */

.modern-card-price {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
}

.modern-card-price-label {
    font-size: 13px;
    color: #666666;
    font-weight: 400;
    margin-bottom: 4px;
}

.modern-card-price-value {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
}

.modern-card-price-value .currency {
    font-size: 18px;
    font-weight: 600;
    color: #666666;
    margin-right: 4px;
}

/* Inquire Price Style */
.modern-card-price-value.inquire {
    font-size: 18px;
    font-weight: 600;
    color: #666666;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .project-item.modern-card .project-image {
        height: 260px;
    }

    .modern-card-badges {
        top: 16px;
        left: 16px;
        gap: 6px;
    }

    .modern-card-badge {
        font-size: 10px;
        padding: 5px 12px;
    }

    .project-item.modern-card .project-info {
        padding: 16px;
    }

    .project-item.modern-card .project-list-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .project-item.modern-card .project-location {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .modern-card-price-value {
        font-size: 22px;
    }

    .modern-card-price-value .currency {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .project-item.modern-card .project-image {
        height: 220px;
    }

    .modern-card-badges {
        top: 12px;
        left: 12px;
        gap: 5px;
    }

    .modern-card-badge {
        font-size: 9px;
        padding: 4px 10px;
    }

    .project-item.modern-card .project-info {
        padding: 14px;
    }

    .project-item.modern-card .project-list-title {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .project-item.modern-card .project-location {
        margin-bottom: 8px;
    }

    .modern-card-price-value {
        font-size: 20px;
    }
}

/* ===================================
   LINK RESET (Remove Default Styles)
   =================================== */

a.project-link.modern-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.project-link.modern-card-link:hover {
    text-decoration: none;
}

/* ===================================
   GRID LAYOUT ADJUSTMENTS
   =================================== */

/* Ensure consistent card heights in grid */
.projects-grid .project-item.modern-card {
    display: flex;
    flex-direction: column;
}

/* ===================================
   ANIMATION
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-item.modern-card {
    animation: fadeInUp 0.5s ease;
}

