/**
 * Property Card Styles
 *
 * @package HomeProz
 */

.property-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card-image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-bg-dark);

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.property-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-dark);
    color: var(--color-border);
}

.property-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}

.property-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.25rem;
}

.property-card-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.property-card-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.75rem;

    a {
        color: var(--color-text-muted);
        text-decoration: none;

        &:hover {
            color: var(--color-accent-light);
        }
    }
}

// Property specs (beds, baths, sqft)
.property-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);

    svg {
        color: var(--color-accent);
        flex-shrink: 0;
    }
}

.property-card-excerpt {
    flex-grow: 1;
    font-size: 0.875rem;
    color: var(--color-sold);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.property-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent-light);
    text-decoration: none;
    margin-top: auto;

    &:hover {
        color: var(--color-accent-hover);
    }

    svg {
        width: 16px;
        height: 16px;
    }
}

// Property grid layout
.properties-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;

    @media (min-width: 640px) {
        grid-template-columns: repeat(2, 1fr);
    }

    @media (min-width: 1024px) {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

// Results count and meta
.properties-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.properties-count {
    font-size: 0.9375rem;
    color: var(--color-text-muted);

    strong {
        color: var(--color-text);
    }
}

// No results message
.no-properties {
    text-align: center;
    padding: 4rem 0;
    color: var(--color-text-muted);

    h3 {
        color: var(--color-text);
        margin-bottom: 0.5rem;
    }

    p {
        margin-bottom: 1.5rem;
    }
}
