/* Modern Property Card - 99.co Style with Flexible Height */
/* Extracted from component for performance - no CSS duplication in loops */

.property-card-modern {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    min-height: 400px;
    border: 1px solid #e5e7eb;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
}

.property-card-compact {
    min-height: 380px;
}

.property-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border-color: #d1d5db;
}

.property-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    min-height: 0;
}

.property-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.property-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f3f4f6;
}

.property-card-compact .property-image-container {
    height: 250px;
}

.property-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #f9fafb;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.875rem;
}

.property-no-image i {
    font-size: 2rem;
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: white;
    padding: 3px 7px;
    border-radius: 50px;
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    z-index: 10;
}

.property-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.property-card-compact .property-content {
    padding: 14px;
}

.search-property-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.2;
    background: transparent !important;
}

.property-card-compact .search-property-price {
    font-size: 1rem;
    margin-bottom: 8px;
}

.search-property-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background: transparent !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    height: auto !important;
    max-height: calc(1.4em * 2) !important;
}

.property-card-compact .search-property-title {
    font-size: 0.8rem !important;
    margin-bottom: 6px !important;
    max-height: calc(1.4em * 2) !important;
}

.property-location {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-location i {
    color: #ef4444;
    font-size: 0.7rem;
}

.location-icon {
    width: 12px;
    height: 12px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(85%) saturate(2969%) hue-rotate(356deg) brightness(99%) contrast(95%);
}

.proximity-label {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
    line-height: 1;
}

.proximity-terdekat {
    background: #dcfce7;
    color: #166534;
}

.proximity-dekat {
    background: #dbeafe;
    color: #1e40af;
}

.proximity-lumayan {
    background: #fef3c7;
    color: #92400e;
}

.proximity-label i {
    font-size: 0.65rem;
}

.proximity-text-mobile {
    display: none;
}

.proximity-text-desktop {
    display: inline;
}

.property-features {
    display: flex;
    gap: 12px;
    margin-bottom: 0;
    margin-top: auto;
    flex-wrap: wrap;
    padding-top: 8px;
}

.property-card-compact .property-features {
    gap: 8px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .property-features {
        margin-top: 12px !important;
        margin-bottom: 12px !important;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
}

.feature-item i {
    color: #9ca3af;
    font-size: 0.7rem;
}

.feature-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
    filter: brightness(0) saturate(100%) invert(60%) sepia(7%) saturate(564%) hue-rotate(202deg) brightness(93%) contrast(85%);
}

.feature-label {
    font-weight: 600;
    color: #4b5563;
}

.search-property-actions {
    padding: 12px 16px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 8px;
    background: white !important;
    height: 60px;
    align-items: center;
    flex-shrink: 0;
}

.property-card-compact .search-property-actions {
    padding: 10px 14px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.property-card-compact .action-btn {
    padding: 6px 10px;
    font-size: 0.7rem;
}

.share-btn {
    background: #3b82f6;
    color: white;
    width: 40px;
    padding: 8px;
}

.share-btn:hover {
    background: #2563eb;
    color: white;
}

.share-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.share-btn:hover .share-icon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.whatsapp-btn {
    background: #22c55e;
    color: #ffffff;
    flex: 1;
}

.whatsapp-btn:hover {
    background: #16a34a;
    color: #ffffff;
    text-decoration: none;
}

.whatsapp-btn span {
    color: #ffffff;
}

.whatsapp-btn i {
    font-size: 0.875rem;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .property-card-modern {
        min-height: 360px;
    }

    .property-card-compact {
        min-height: 340px;
    }
    
    .property-image-container {
        height: 180px;
    }
    
    .property-badge {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 0.625rem;
    }
    
    .property-content {
        padding: 14px;
    }

    .search-property-price {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .search-property-title {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }

    .property-location {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .proximity-label {
        font-size: 0.65rem;
        padding: 2px 6px;
        margin-bottom: 8px;
    }

    .property-features {
        gap: 10px;
        padding-top: 6px;
    }

    .feature-item {
        font-size: 0.7rem;
    }

    .feature-item img {
        width: 12px;
        height: 12px;
    }
    
    .search-property-actions {
        padding: 10px 14px;
        height: 56px;
    }
    
    .action-btn {
        font-size: 0.7rem;
        padding: 8px 10px;
    }
    
    .share-btn {
        width: 38px;
        padding: 8px;
    }

    .share-icon {
        width: 14px;
        height: 14px;
    }
    
    .whatsapp-btn span {
        display: inline;
    }
}

/* Animation */
.fade-in {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
