.listing-page {
    padding: 46px 0 50px;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.listing-header {
    max-width: 720px;
    margin-bottom: 34px;
}

.listing-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 11px;
    line-height: 1;
    font-weight: 550;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.listing-header h1 {
    margin: 0 0 12px;
    color: var(--title);
    font-size: 38px;
    line-height: 1.08;
    font-weight: 550;
    letter-spacing: -.04em;
}

.listing-header p {
    max-width: 640px;
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
}

/*
|--------------------------------------------------------------------------
| Grid
|--------------------------------------------------------------------------
*/

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/*
|--------------------------------------------------------------------------
| Card
|--------------------------------------------------------------------------
*/

.listing-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    transition:
        transform .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(138, 80, 252, .35);
    box-shadow: 0 14px 32px rgba(26, 18, 44, .055);
}

.listing-card-image {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(138, 80, 252, .18),
            transparent 32%
        ),
        var(--primary-soft);
}

.listing-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.listing-card:hover .listing-card-image img {
    transform: scale(1.025);
}

/*
|--------------------------------------------------------------------------
| Content
|--------------------------------------------------------------------------
*/

.listing-card-body {
    padding: 20px;
}

.listing-card-category {
    display: block;
    margin-bottom: 9px;
    color: var(--primary);
    font-size: 10px;
    line-height: 1;
    font-weight: 550;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.listing-card-body h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 550;
    letter-spacing: -.025em;
}

.listing-card-body h2 a {
    color: var(--title);
    text-decoration: none;
}

.listing-card-body h2 a:hover {
    color: var(--primary);
}

.listing-card-body p {
    display: -webkit-box;
    margin: 0 0 18px;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    line-height: 1.6;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.listing-card-meta {
    padding-top: 14px;
    border-top: 1px solid rgba(236, 231, 250, .75);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    color: var(--muted);
    font-size: 11px;
}

/*
|--------------------------------------------------------------------------
| Empty
|--------------------------------------------------------------------------
*/

.empty-box {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--primary-soft);
}

.empty-box h2 {
    margin: 0 0 8px;
    color: var(--title);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 550;
}

.empty-box p {
    margin: 0;
    color: var(--text);
    font-size: 13px;
}

/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
*/

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 42px;
}

.pagination a {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #fff;
    color: var(--title);

    font-size: 12px;
    font-weight: 500;
    text-decoration: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination a.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination-nav {
    font-size: 16px !important;
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {

    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 620px) {

    .listing-page {
        padding: 30px 0 38px;
    }

    .listing-header {
        margin-bottom: 26px;
    }

    .listing-header h1 {
        font-size: 31px;
    }

    .listing-header p {
        font-size: 13px;
    }

    .listing-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .listing-card-body {
        padding: 18px;
    }

    .listing-card-body h2 {
        font-size: 17px;
    }

    .pagination {
        margin-top: 32px;
    }

}