/* ===================================
   SUMMIT FEATURED PROJECTS WIDGET
   =================================== */

.summit-featured-projects {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Grid Layout - 3 Columns */
.featured-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 20px;
    }
}

@media (max-width: 767px) {
    .summit-featured-projects {
        padding: 20px 0;
    }

    .featured-projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 16px;
    }
}

/* ===== PROJECT CARD ===== */
.featured-project-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ===== IMAGE WRAPPER (Full Card Height) ===== */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-project-card:hover .card-image-wrapper {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    opacity: 1 !important;
    transition: transform 0.4s ease, opacity 0.3s ease;
    position: relative;
    z-index: 1 !important;
}

/* Override Elementor's default img styling */
.featured-project-card .card-image-wrapper .card-image,
.elementor .card-image {
    height: 100% !important;
    max-width: 100% !important;
}

.featured-project-card:hover .card-image {
    transform: scale(1.05);
}

/* ===== LISTING BADGE ===== */
.listing-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ffffff;
    color: #1e3a8a;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* ===== ARROW BUTTON ===== */
.card-arrow-btn {
    position: absolute;
    bottom: 100px;
    right: 35px;
    width: 48px;
    height: 48px;
    background: #264579;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(38, 69, 121, 0.3) !important;
}

.card-arrow-btn:hover {
    background: #1e3a66;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(38, 69, 121, 0.4);
}

.card-arrow-btn svg {
    flex-shrink: 0;
}

/* ===== PRICE & FEATURES OVERLAY (at bottom of image) ===== */
.card-price-overlay {
    position: absolute;
    bottom: 0px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 15px 15px 0px 0px;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ===== PRICE ===== */
.card-price {
    margin-bottom: 12px;
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1;
}

.price-unit {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 4px;
}

.price-hoa {
    font-weight: 500;
    font-size: 16px;
    color: #475569;
    margin-left: 8px;
}

/* ===== FEATURES ===== */
.card-features {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

.feature-item svg {
    flex-shrink: 0;
    color: #3b82f6;
}

/* ===== TITLE & ADDRESS SECTION (Outside Card) ===== */
.card-info-section {
    padding: 0;
    background: transparent;
}

/* ===== TITLE ===== */
.card-title-Home {
    margin: 5px 0 8px 0;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #1e3a8a !important;
    text-align: center;
}

.card-title-Home a {
    color: #1e3a8a !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title-Home a:hover {
    color: #264579 !important;
}

.view-all-btn {
    color: #fff !important;
}

/* ===== ADDRESS ===== */
.card-address {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

/* ===== HOA INFORMATION ===== */
.card-hoa-info {
    margin-top: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hoa-label {
    font-weight: 600;
    color: #1e40af;
}

.hoa-value {
    font-weight: 400;
}

/* ===== VIEW ALL BUTTON ===== */
.view-all-wrapper {
    margin-top: 40px;
    text-align: center;
    padding-bottom: 20px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 64, 175, 0.35);
}

.view-all-btn svg {
    transition: transform 0.3s ease;
}

.view-all-btn:hover svg {
    transform: translateX(4px);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
    .card-image-wrapper {
        height: 400px;
    }

    .price-amount {
        font-size: 24px;
    }

    .card-title-Home {
        font-size: 22px !important;
    }
}

@media (max-width: 767px) {
    .card-image-wrapper {
        height: 380px;
    }

    .card-price-overlay {
        left: 15px;
        right: 15px;
        padding: 15px;
    }

    .price-amount {
        font-size: 22px;
    }

    .card-features {
        gap: 12px;
    }

    .feature-item {
        font-size: 12px;
    }

    .card-title-Home {
        font-size: 20px !important;
    }

    .card-address {
        font-size: 13px;
        padding: 0 10px;
    }

    .card-arrow-btn {
        top: 15px;
        bottom: auto;
        right: 15px;
        width: 42px;
        height: 42px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    }

    .view-all-btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 20px;
        font-size: 15px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .card-image-wrapper {
        height: 340px;
    }

    .card-price-overlay {
        padding: 12px;
    }

    .price-amount {
        font-size: 20px;
    }

    .price-hoa {
        font-size: 14px !important;
        margin-left: 4px;
    }

    .card-features {
        gap: 10px;
    }

    .feature-item span {
        font-size: 11px;
    }

    .card-arrow-btn {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
    }
}