/* Property System Styles - iProperty Inspired */

.property-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    justify-content: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 2rem 1rem !important;
}

.property-no-results {
    text-align: center;
    padding: 4rem 1rem;
    color: #6b7280;
}

/* Font smoothing - professional polish */
.property-card,
.property-card__title,
.property-card__price,
.property-card__detail {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Property Card - iProperty Style */
.property-card {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.property-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Thumbnail */
.property-card__thumb {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.property-card__thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.property-card:hover .property-card__thumb img {
    transform: scale(1.03);
}

/* Category Badge */
.property-card__category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: #0f2940;
    color: #fff;
    border-radius: 0.25rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Photo count badge */
.property-card__photos {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Content */
.property-card__content {
    padding: 1rem 1.25rem 1.25rem;
}

.property-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f2940;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.property-card__title a {
    color: inherit;
    text-decoration: none;
}

/* Location - iProperty style */
.property-card__location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #64748b;
    font-size: 0.8125rem;
    margin-bottom: 0.375rem;
    line-height: 1.4;
}

/* Meta Tags - iProperty style subtle pills */
.property-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.625rem;
}

.property-card__tag {
    display: inline-block;
    padding: 0.1875rem 0.5rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Details Row - Professional format */
.property-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    color: #1f2937;
    font-size: 0.9375rem;
    font-weight: 600;
}

.property-card__detail {
    color: #1f2937;
    white-space: nowrap;
}

/* Bottom Bar - iProperty style */
.property-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.property-card__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.property-card__psf {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.property-card__price-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.125rem;
}

.property-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.875rem;
    background: #0f2940;
    color: #fff;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    min-height: 36px;
}

.property-card__btn:hover {
    background: #1a3d5c;
    color: #fff;
    transform: scale(1.02);
}

.property-card__btn:active {
    transform: scale(0.98);
}

.property-card__btn svg {
    width: 16px !important;
    height: 16px !important;
}

/* Archive Header */
.property-archive {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .property-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .property-card__content {
        padding: 0.875rem 1rem 1rem;
    }
    
    .property-card__title {
        font-size: 1rem;
    }
    
    .property-card__details {
        gap: 0.375rem 0.625rem;
    }
    
    .property-card__price {
        font-size: 1rem;
    }
    
    .property-card__footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .property-card__btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }
}