.page-hero {
    position: relative;
    margin-top: var(--header-h-m);
    background: linear-gradient(135deg, #1b5daa 0%, #14478a 50%, #0e3566 100%);
    padding: 56px 0 48px;
    overflow: hidden;
    text-align: center;
}

.page-hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ph-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.ph-s1 {
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    top: -80px;
    right: -60px;
}

.ph-s2 {
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.03);
    bottom: -40px;
    left: -40px;
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.page-hero-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.page-hero-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 24px;
}

/* ============================================================
   New-S Wealth Management — Listing Page Styles

   FILE 4 of 4: listing-filter.css
   Add to your theme stylesheet
   ============================================================ */


/* ── FILTER BAR ── */

.filter-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0 0;
    position: sticky;
    top: 76px; /* desktop header height */
    z-index: 99;
}

@media (max-width: 1023px) {
    .filter-bar { top: 60px; } /* mobile header height */
}

/* Row 1: Content type tabs */
.filter-type {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.filter-type::-webkit-scrollbar { display: none; }

.filter-type-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--font-sans);
}
.filter-type-btn:hover { color: var(--primary); }
.filter-type-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.filter-type-btn .count {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--bg-light);
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}
.filter-type-btn.active .count {
    color: var(--primary);
    background: var(--primary-light);
}


/* Row 2: Country pills */
.filter-country {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.filter-country::-webkit-scrollbar { display: none; }
.filter-country.hidden { display: none; }

.filter-country-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: var(--font-sans);
}
.filter-country-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}
.filter-country-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.filter-country-btn .flag-img {
    border-radius: 2px;
    display: block;
}
.filter-country-btn.active .flag-img {
    opacity: 0.85;
}


/* ── RESULTS COUNT ── */

.filter-results {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 12px;
    font-size: 14px;
    color: var(--text-secondary);
}
.filter-results strong {
    color: var(--primary);
    font-weight: 700;
}


/* ── LISTING SECTION ── */

.listing-section {
    padding: 0 0 48px;
    background: var(--bg-white);
    min-height: 400px;
}


/* ── REPORT ROWS ── */

.report-list {
    border-top: 1px solid var(--border);
    transition: opacity 0.2s;
}

.report-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.report-row:hover {
    background: var(--primary-lightest);
}

/* Flag icon (SVG image) */
.report-row .flag,
.report-row img.flag {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
    object-fit: cover;
}

/* Text-based flag badge (fallback) */
.flag-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    width: 28px;
    height: 20px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.flag-badge.vn { background: #FFF3E0; color: #E67E22; }
.flag-badge.th { background: #E8F5E9; color: #2E7D32; }
.flag-badge.br { background: #E3F2FD; color: #1565C0; }
.flag-badge.ae { background: #FFF8E1; color: #F57F17; }
.flag-badge.ru { background: #FCE4EC; color: #C62828; }

/* Emoji flag fallback */
.flag-notice {
    font-size: 16px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.5;
    margin-top: -10px;
}

.report-date {
    font-size: 13px;
    color: var(--text-tertiary);
    font-feature-settings: 'tnum';
    flex-shrink: 0;
    width: 90px;
}

.report-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    flex-shrink: 0;
    white-space: nowrap;
}
.report-tag.vn     { background: #FFF3E0; color: #E67E22; }
.report-tag.th     { background: #E8F5E9; color: #2E7D32; }
.report-tag.br     { background: #E3F2FD; color: #1565C0; }
.report-tag.ae     { background: #FFF8E1; color: #F57F17; }
.report-tag.ru     { background: #FCE4EC; color: #C62828; }
.report-tag.notice { background: var(--primary-light); color: var(--primary); }

.report-arrow {
    color: var(--text-tertiary);
    flex-shrink: 0;
    font-size: 14px;
    transition: transform 0.2s;
}
.report-row:hover .report-arrow {
    color: var(--primary);
    transform: translateX(2px);
}


/* ── LOADING SPINNER ── */

.listing-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 0;
    font-size: 14px;
    color: var(--text-tertiary);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ── NO RESULTS ── */

.no-results {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-tertiary);
    font-size: 15px;
}


/* ── PAGINATION ── */

.listing-pagination {
    padding: 28px 0;
}

.pagination-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}
.page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-prev,
.page-next {
    min-width: 36px;
}
.page-prev svg,
.page-next svg {
    display: block;
}

.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    font-size: 14px;
    color: var(--text-tertiary);
}


/* ── MOBILE ADJUSTMENTS ── */

@media (max-width: 599px) {
    .report-row {
        flex-wrap: wrap;
        gap: 4px 10px;
        padding: 12px 4px;
    }
    .report-date { width: auto; }
    .report-title {
        flex-basis: 100%;
        padding-left: 36px;
        margin-top: 2px;
        white-space: normal;
    }
    .report-tag { display: none; } /* Hide on mobile — flag is enough */
    .report-arrow { display: none; }

    .filter-type-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    .filter-country-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .page-btn {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}
