/**
 * Jhopdi ERE Addons - Shared Property Card Stylesheet
 * Contains standard layout and style rules for rendering ERE property card components.
 */

.property-card {
    background: #FFFFFF;
    border: 1px solid #E4DCCF;
    border-radius: 20px;
    box-shadow: 6px 6px 36px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    box-sizing: border-box;
}

.property-card * {
    box-sizing: border-box;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 12px 12px 54px rgba(0, 0, 0, 0.1);
    border-color: #d3c9bc;
}

.card-image-wrapper {
    position: relative;
    height: 260px;
    overflow: hidden;
}

.card-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.property-card:hover .card-image-bg {
    transform: scale(1.08);
}

.status-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(101, 191, 226, 0.9);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.status-badge.new-launch {
    background: rgba(101, 191, 226, 0.95);
}

.status-badge.under-construction {
    background: rgba(20, 65, 104, 0.95);
}

.status-badge.ready-to-move {
    background: rgba(85, 169, 201, 0.95);
}

.wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    height: 38px;
    width: 38px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    color: #0c1c36;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0;
    z-index: 2;
}

.wishlist-btn svg {
    width: 18px;
    height: 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.wishlist-btn.favorited {
    background: #e84855;
    color: #fff;
}

.wishlist-btn.favorited svg {
    fill: #fff;
    stroke: #e84855;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.developer-name {
    font-size: 11px;
    font-weight: 700;
    color: #5a759d;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.property-title {
    font-size: 28px;
    font-weight: 300;
    margin: 0 0 12px 0;
    line-height: 1.25;
}

.property-title a {
    color: #0c1c36;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.property-title a:hover {
    color: #65BFE2;
}

.location-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #144168;
}

.location-wrapper svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.location-text {
    font-size: 14px;
    font-weight: 500;
}

.specs-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.spec-badge {
    background: #FAF8F5;
    border: 1px solid #E4DCCF;
    color: #0C1C36;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.spec-badge.rera-badge {
    border-color: #bce4be;
    background: #f4faf4;
    color: #30a420;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid #E4DCCF;
    padding-top: 20px;
    margin-top: auto;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
}

.price-value {
    font-size: 32px;
    font-weight: 400;
    color: #0c1c36;
    line-height: 1.1;
}

.price-label {
    font-size: 12px;
    color: #5a759d;
    font-weight: 500;
    margin-top: 2px;
}

.enquire-btn {
    background: transparent;
    border: none;
    color: #144168;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 5px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.enquire-btn:hover {
    color: #65BFE2;
    transform: translateX(4px);
}

/* --- LIST VIEW OVERRIDES --- */
.property-list-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.property-list-layout .property-card {
    flex-direction: row;
    height: 280px;
}

.property-list-layout .card-image-wrapper {
    width: 40%;
    height: 100%;
    flex-shrink: 0;
}

.property-list-layout .card-content {
    width: 60%;
    height: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .property-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .property-list-layout .property-card {
        flex-direction: column;
        height: auto;
    }
    
    .property-list-layout .card-image-wrapper {
        width: 100%;
        height: 220px;
    }
    
    .property-list-layout .card-content {
        width: 100%;
    }
}
