/* Listing archive page styles */

body.post-type-archive-listing,
body.tax-property-types,
body.tax-status,
body.tax-locations,
body.tax-features {
    background-color: #ffffff;
    color: #212529;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
}

.listing-archive-wrap {
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 48px 20px 80px;
    padding-left: 3% !important;
    padding-right: 3% !important;
    background-color: #ffffff;
}

.listing-archive-inner {
    width: 100%;
}

.listing-archive-header {
    margin-bottom: 40px;
}

.listing-archive-title {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 500;
    color: #0e0e0e;
}

.listing-archive-description {
    font-size: 17px;
    line-height: 1.7;
    color: #6c757d;
}

.listing-property-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.listing-property-type-grid .listing-card {
    border: 2px solid #0e0e0e;
    box-sizing: border-box;
    padding: 0;
    background: #fff;
    margin: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.listing-property-type-grid .listing-card:hover {
    border-color: #0e0e0e;
    box-shadow: 0 4px 16px rgba(14, 14, 14, 0.08);
}

.listing-card__image-link {
    display: block;
    text-decoration: none;
}

.listing-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.listing-card__image--placeholder {
    background: #f8f5f2;
    min-height: 220px;
}

.listing-card__content {
    padding: 16px;
}

.listing-card__title {
    margin: 0 0 8px;
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.2;
    font-weight: 500;
}

.listing-card__title a {
    color: #0e0e0e;
    text-decoration: none;
}

.listing-card__title a:hover {
    color: #0d6efd;
    text-decoration: none;
}

.listing-card__price {
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 500;
    color: #0e0e0e;
}

.listing-card__address {
    font-size: 15px;
    line-height: 1.5;
    color: #6c757d;
}

.listing-card__property-type {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #6c757d;
}

.listing-card__property-type strong {
    color: #0e0e0e;
    font-weight: 500;
}

.listing-archive-pagination {
    margin-top: 40px;
}

.listing-archive-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.listing-archive-pagination .page-numbers {
    display: inline-block;
    padding: 12px 18px;
    border: 2px solid #0e0e0e;
    text-decoration: none;
    color: #0e0e0e;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.listing-archive-pagination .page-numbers:hover {
    background: #0e0e0e;
    color: #fff;
}

.listing-archive-pagination .page-numbers.current {
    background: #0e0e0e;
    color: #fff;
}

.listing-archive-empty {
    padding: 40px 0;
    font-size: 17px;
    color: #6c757d;
}

@media (max-width: 1200px) {
    .listing-property-type-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .listing-property-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .listing-archive-wrap {
        padding: 24px 12px 48px;
    }

    .listing-property-type-grid {
        grid-template-columns: 1fr;
    }

    .listing-card__image {
        height: 200px;
    }
}
