/* Agent single: tabbed Active / Pending / Sold listing blocks */
.ps-aplt {
    margin: 2rem auto 0;
    max-width: 1400px;
    padding: 0 1rem 2rem;
    box-sizing: border-box;
}

.ps-aplt__heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: #152d4d;
    margin: 0 0 1rem;
    font-family: "Cinzel", Georgia, serif;
}

.ps-aplt__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e0e4e8;
    padding-bottom: 0.5rem;
}

.ps-aplt__tab {
    font-family: "Lato", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid #c5ccd4;
    background: #f8f9fa;
    color: #2a2a2a;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    margin-bottom: -1px;
}

.ps-aplt__tab:hover,
.ps-aplt__tab:focus {
    background: #fff;
    border-color: #152d4d;
    outline: none;
}

.ps-aplt__tab.is-active {
    background: #152d4d;
    color: #fff;
    border-color: #152d4d;
}

.ps-aplt__tab.is-active .ps-aplt__count {
    opacity: 0.9;
}

.ps-aplt__count {
    font-weight: 500;
    opacity: 0.85;
}

.ps-aplt__panel[hidden] {
    display: none;
}

/* Do not override .agent-listings-grid here — ps-agent-directory.css uses CSS grid
   (repeat(auto-fill, minmax(280px, 1fr))) for card columns; a flex override made cards full width. */

@media (max-width: 600px) {
    .ps-aplt__tabs {
        flex-direction: column;
        border-bottom: none;
    }
    .ps-aplt__tab {
        border-radius: 6px;
        width: 100%;
        text-align: left;
    }
}
