/* Property Finder — public templates */
.pf-archive,
.pf-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.pf-archive-header {
    margin-bottom: 32px;
}

.pf-archive-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin: 0 0 12px;
}

.pf-archive-description {
    color: #666;
    max-width: 720px;
}

.pf-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Grid */
.pf-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin: 30px 0;
}

.pf-elementor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--pf-grid-min, 300px), 1fr));
    gap: var(--pf-grid-gap, 28px);
    margin: 0;
}

.pf-items-widget__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 24px;
    font-weight: 700;
}

.pf-home-properties {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 0 10px;
}

.pf-home-properties .pf-properties-grid {
    margin: 0 0 32px;
}

.pf-home-properties__cta {
    text-align: center;
    margin-top: 8px;
}

.pf-home-properties__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #c9a84c, #a88a3a);
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.pf-home-properties__btn:hover {
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 168, 76, 0.4);
}

/* Property card */
.pf-property-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pf-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pf-property-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #f3f4f6;
}

.pf-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-property-image img.pf-image--default {
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
}

.pf-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.pf-badge-sale,
.pf-badge-yearly,
.pf-badge-monthly {
    background: #16a34a;
}

.pf-badge-rent {
    background: #ea580c;
}

.pf-property-details {
    padding: 20px;
}

.pf-property-card .pf-card__title {
    display: block;
    margin: 0 0 10px;
    padding: 0;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.45;
    min-height: 1.45em;
}

.pf-property-card .pf-card__title-link {
    display: block;
    color: #111827;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pf-property-card .pf-card__title-link:hover {
    color: #2271b1;
}

/* Prevent theme CSS from hiding card titles */
.pf-archive .pf-property-card h2.pf-card__title,
.pf-properties-grid .pf-property-card h2.pf-card__title {
    display: block;
    visibility: visible;
    opacity: 1;
    height: auto;
    clip: auto;
    position: static;
}

/* Legacy class — keep visible if theme targets old markup */
.pf-property-card .pf-property-title {
    display: block;
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.45;
}

.pf-property-card .pf-property-title a {
    color: #111827;
    text-decoration: none;
}

.pf-property-card .pf-property-title a:hover {
    color: #2271b1;
}

.pf-property-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #b45309;
    margin-bottom: 12px;
}

.pf-property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 10px;
}

.pf-meta-item {
    font-size: 13px;
    color: #6b7280;
}

.pf-property-location {
    font-size: 13px;
    color: #9ca3af;
}

/* Pagination */
.pf-pagination {
    margin: 40px 0 20px;
    text-align: center;
}

.pf-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 2px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    color: #374151;
    display: inline-flex;
    list-style-type: none;
}

.pf-pagination .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

@media (max-width: 768px) {
    .pf-properties-grid {
        grid-template-columns: 1fr;
    }
}
