/* ==========================================================
   PROSPEN SMART SEARCH — CSS
   Version: 1.3.0  |  Author: ProspenTech
   Extends prospen-courses-manager & qualification-manager styles.
   ========================================================== */

/* ── TRIGGER ELEMENTS ──────────────────────────────────── */
.pss-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #D58037;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
}

.pss-trigger-icon:hover,
.pss-trigger-icon:focus {
    color: #b96b2d;
    transform: scale(1.15);
    outline: none;
}

.pss-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #D58037;
    color: #fff !important;
    border: none;
    border-radius: 30px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-family: inherit;
    text-decoration: none;
}

.pss-trigger-btn:hover {
    background: #b96b2d;
    transform: translateY(-2px);
}

/* ── OVERLAY ────────────────────────────────────────────── */
.pss-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.52);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 20px;
}

.pss-overlay.pss-open {
    display: flex;
}

/* ── POPUP ──────────────────────────────────────────────── */
.pss-popup {
    background: #f1f1f1;
    width: 90%;
    max-width: 820px;
    border-radius: 18px;
    padding: 44px 36px 36px;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    position: relative;
    animation: pssPopIn 0.28s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes pssPopIn {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.pss-close {
    position: absolute;
    top: 14px;
    right: 20px;
    font-size: 26px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.pss-close:hover { color: #D58037; }

.pss-popup-title {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 700;
    color: #222;
}

.pss-popup-sub {
    font-size: 14px;
    color: #666;
    margin-bottom: 26px;
}

/* ── POPUP SEARCH BAR ───────────────────────────────────── */
.pss-search-bar {
    position: relative;
    display: flex;
    background: #fff;
    border-radius: 40px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 5px;
}

.pss-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 22px;
    font-size: 16px; /* 16px minimum prevents iOS/Android auto-zoom on focus */
    border-radius: 40px 0 0 40px;
    font-family: inherit;
    background: transparent;
}

.pss-search-bar button {
    background: #D58037;
    color: #fff;
    border: none;
    padding: 15px 26px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 40px 40px 0;
    transition: background 0.3s;
    font-family: inherit;
    white-space: nowrap;
}

.pss-search-bar button:hover { background: #b96b2d; }

/* ── POPUP PROGRESS BAR ─────────────────────────────────── */
.pss-popup-progress {
    height: 4px;
    background: rgba(213, 128, 55, 0.18);
    border-radius: 2px;
    margin: 10px 0 14px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}

.pss-popup-progress.pss-progress-active {
    opacity: 1;
}

.pss-popup-progress-bar {
    height: 100%;
    width: 0%;
    background: #D58037;
    border-radius: 2px;
}

/* ── POPULAR / ENHANCED ─────────────────────────────────── */
.pss-popular {
    font-size: 14px;
    color: #444;
    margin: 14px 0 18px;
}

.pss-popular span { font-weight: 600; margin-right: 4px; }

.pss-popular a {
    color: #D58037;
    text-decoration: none;
    margin: 0 8px;
    font-weight: 500;
}

.pss-popular a:hover { text-decoration: underline; }

.pss-enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.pss-custom-text {
    font-size: 13px;
    color: #D58037;
    font-weight: 500;
    margin: 0;
}

/* ── RESULTS PAGE SEARCH BAR ────────────────────────────── */
.pss-results-search-bar {
    margin: 0 auto 24px;
    max-width: 700px;
}

.pss-results-search-inner {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid #e8e8e8;
    transition: border-color 0.3s;
}

.pss-results-search-inner:focus-within {
    border-color: #D58037;
}

.pss-results-search-icon {
    padding: 0 0 0 20px;
    font-size: 18px;
    color: #aaa;
    pointer-events: none;
}

.pss-results-search-inner input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 16px;
    font-size: 16px;
    font-family: inherit;
    background: transparent;
}

.pss-results-search-inner button {
    background: #D58037;
    color: #fff;
    border: none;
    padding: 15px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s;
    white-space: nowrap;
}

.pss-results-search-inner button:hover { background: #b96b2d; }

/* ── TYPE TABS ──────────────────────────────────────────── */
.pss-type-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pss-type-tab {
    padding: 9px 20px;
    border: 1px solid #d1d9e0;
    border-radius: 5px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.pss-type-tab:hover {
    border-color: #D58037;
    color: #D58037;
}

.pss-type-tab.active {
    background: #D58037;
    color: #fff;
    border-color: #D58037;
}

/* ── FILTERS ROW (mirrors .pqm-filters exactly) ─────────── */
.pss-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    align-items: center;
}

/* Re-use .pqm-filter-select (from qual-manager) for the dropdowns.
   If the qual-manager CSS is not loaded, duplicate the key rules: */
.pss-filters-row .pqm-filter-select {
    padding: 10px 14px;
    border: 1px solid #d1d9e0 !important;
    border-radius: 5px !important;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: #333;
    cursor: pointer;
    min-width: 180px;
    transition: border-color 0.2s;
    appearance: auto;
}

.pss-filters-row .pqm-filter-select:focus {
    border-color: #155fa0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(21,95,160,.12);
}

.pss-filters-row .pqm-clear-filters {
    padding: 10px 20px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #d1d9e0 !important;
    border-radius: 5px !important;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pss-filters-row .pqm-clear-filters:hover {
    background: #e2e8f0;
    color: #334155;
}

.pss-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* ── RESULTS META ───────────────────────────────────────── */
.pss-results-meta {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 0 0 16px;
}

.pss-results-meta strong { color: #D58037; }

/* ── QUALIFICATION CARD (vertical, matches pqm-card-v) ──── */
.pss-qual-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pss-qual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.pss-qual-card .pss-qual-img-wrap {
    width: 100%;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
}

.pss-qual-card .pss-qual-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pss-qual-card .pss-qual-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.pss-qual-card .pss-qual-content > div {
    width: 100%;
}

.pss-qual-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    display: block;
    color: #155fa0;
}

.pss-qual-title {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
}

.pss-qual-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.pss-qual-title a:hover { color: #155fa0; }

.pss-qual-meta {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 16px;
    line-height: 1.6;
}

.pss-qual-btn {
    background: #125BA9;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    transition: filter 0.2s, transform 0.15s;
    font-family: inherit;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.pss-qual-btn:hover {
    filter: brightness(0.85);
    transform: translateY(-1px);
}

/* ── RESULT TYPE BADGE (on cards) ───────────────────────── */
.pss-card-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 10px;
    z-index: 2;
}

.pss-card-type-badge.course {
    background: rgba(213,128,55,0.9);
    color: #fff;
}

.pss-card-type-badge.qualification {
    background: rgba(21,95,160,0.9);
    color: #fff;
}

/* ── SCORE BADGE ─────────────────────────────────────────── */
.pss-score-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #D58037;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 0.3px;
}

/* ── LOADING ─────────────────────────────────────────────── */
.pss-loading {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.pss-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0e0d0;
    border-top-color: #D58037;
    border-radius: 50%;
    animation: pssSpin 0.7s linear infinite;
}

@keyframes pssSpin { to { transform: rotate(360deg); } }

/* ── NO RESULTS ─────────────────────────────────────────── */
.prospen-no-results {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.prospen-no-results p { margin: 8px 0; }
.prospen-no-results a { color: #D58037; text-decoration: underline; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .pss-popup { padding: 36px 18px 24px; }
    .pss-popup-title { font-size: 17px; }
    .pss-search-bar input  { padding: 13px 16px; font-size: 16px; } /* 16px prevents iOS/Android auto-zoom on focus */
    .pss-search-bar button { padding: 13px 18px; font-size: 14px; }
    .pss-popular a { display: inline-block; margin: 4px 4px 0; }
    .pss-type-tabs { gap: 6px; }
    .pss-type-tab { padding: 8px 14px; font-size: 13px; }
    .pss-filters-row .pqm-filter-select { min-width: 140px; }
    .pss-filter-group { gap: 8px; }
}

/* ==========================================================
   RESULTS PAGE — SIDEBAR + CONTENT LAYOUT
   Version: 1.3.0
   ========================================================== */

/* ── LAYOUT WRAPPER ─────────────────────────────────────── */
.pss-layout-wrap {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 8px;
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.pss-sidebar {
    position: sticky;
    top: 100px;
}

.pss-sidebar-inner {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pss-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}

.pss-sidebar-filter-group {
    margin-bottom: 16px;
}

.pss-sidebar-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pss-sidebar-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #f9fafb;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    appearance: auto;
    box-sizing: border-box;
}

.pss-sidebar-select:focus {
    border-color: #D58037;
    outline: none;
    box-shadow: 0 0 0 3px rgba(213,128,55,0.15);
    background: #fff;
}

.pss-sidebar-clear {
    width: 100%;
    padding: 11px 16px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #d1d9e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.pss-sidebar-clear:hover {
    background: #e2e8f0;
    color: #334155;
    border-color: #b0bec5;
}

/* ── CONTENT AREA ───────────────────────────────────────── */
.pss-content-area {
    min-width: 0; /* prevent overflow in grid */
}

/* ── COURSE GRID: 3 columns inside content area ─────────── */
.pss-content-area .prospen-course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── COURSE CARD FIXES ──────────────────────────────────── */
/* Ensure cards are full-height flex columns so button sticks to bottom */
.prospen-course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.prospen-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.prospen-course-card .prospen-course-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px 16px 16px;
}

/* The view button must always sit at the very bottom */
.prospen-course-card .prospen-view-button {
    margin-top: auto;
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* ── COURSE CARD: fix ribbon + image stacking ───────────── */
.prospen-course-card .prospen-image-container {
    position: relative;
    width: 100%;
    flex-shrink: 0;
}

/* The type badge sits over the image, not above it */
.prospen-course-card .pss-card-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    pointer-events: none;
}

/* ── QUALIFICATION CARD OVERRIDES (left-aligned, centred button) */
.pss-qual-card .pss-qual-content {
    align-items: flex-start;
    text-align: left;
}

.pss-qual-card .pss-qual-content > div {
    width: 100%;
}

/* Button: centred at 80% width */
.pss-qual-card .pss-qual-btn-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 8px;
}

.pss-qual-card .pss-qual-btn {
    width: 80%;
    text-align: center;
    display: block;
}

/* Also fix pss-qual-card to be full-height flex so button sticks to bottom */
.pss-qual-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pss-qual-card .pss-qual-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ── RESULTS META: left-align when sidebar is present ────── */
.pss-results-meta {
    text-align: left !important;
    margin-bottom: 14px;
}

/* ── MOBILE: sidebar collapses above grid ────────────────── */
@media (max-width: 900px) {
    .pss-layout-wrap {
        grid-template-columns: 1fr;
    }

    .pss-sidebar {
        position: static;
    }

    .pss-sidebar-inner {
        padding: 16px;
    }

    /* On mobile, sidebar filters go horizontal in a 2-col grid */
    #pss-course-filters,
    #pss-qual-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .pss-sidebar-clear {
        margin-top: 4px;
    }

    .pss-content-area .prospen-course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    #pss-course-filters,
    #pss-qual-filters {
        grid-template-columns: 1fr;
    }

    .pss-content-area .prospen-course-grid {
        grid-template-columns: 1fr;
    }

    /* ── MOBILE COURSE CARD: fix Course ribbon stacking issue ── */
    /* The card itself must be position:relative so badge is anchored */
    .prospen-course-card {
        position: relative !important;
        overflow: visible; /* allow badge to clip naturally over image */
    }

    /* Ensure image container clips the badge correctly */
    .prospen-course-card .prospen-image-container {
        position: relative;
        overflow: hidden;
        border-radius: 8px 8px 0 0;
    }

    .prospen-course-card .pss-card-type-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        z-index: 5;
    }

    /* Prevent the content area from having extra top padding that creates gap */
    .prospen-course-card .prospen-course-content {
        padding-top: 12px;
    }

    .pss-qual-card .pss-qual-btn {
        width: 90%;
    }
}

/* ==========================================================
   [search-card] WIDGET
   Version: 1.5.7
   Usage: [search-card submit-text="Search" quick-links="ACCA, Finance, Leadership"]
         [search-card width="600" padding="32" font-size="17"]
   ========================================================== */

.pss-card-widget {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.09);
    max-width: 520px;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}

/* ── Label ──────────────────────────────────────── */
.pss-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #D58037;
    margin: 0 0 14px;
    padding: 0;
    line-height: 1;
}

/* ── Search bar ─────────────────────────────────── */
.pss-card-search-bar {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.pss-card-search-bar:focus-within {
    border-color: #D58037;
    background: #fff;
}

.pss-card-search-icon {
    flex-shrink: 0;
    margin-left: 14px;
    color: #b0b0b0;
    pointer-events: none;
}

.pss-card-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 12px;
    font-size: 15px;
    color: #333;
    outline: none;
    font-family: inherit;
}

.pss-card-input::placeholder {
    color: #b0b0b0;
}

/* ── Quick-link pills ───────────────────────────── */
.pss-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: var(--pss-pills-gap, 0px);
}

.pss-card-pill {
    padding: 6px 15px;
    border: 1.5px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}

.pss-card-pill:hover,
.pss-card-pill.pss-pill-active {
    border-color: #D58037;
    color: #D58037;
    background: #fff6ee;
}

/* ── Submit button ──────────────────────────────── */
.pss-card-submit {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    background: #D58037;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.01em;
    transition: background 0.25s, transform 0.15s;
}

.pss-card-submit:hover {
    background: #b96b2d;
    transform: translateY(-1px);
}

.pss-card-submit:active {
    transform: translateY(0);
}

/* ── Progress bar ───────────────────────────────── */
.pss-card-progress {
    height: 4px;
    background: #f0e6da;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.pss-card-widget.pss-searching .pss-card-progress {
    opacity: 1;
}

.pss-card-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #D58037 0%, #f0a855 50%, #D58037 100%);
    background-size: 200% 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: pss-shimmer 1.4s infinite linear;
}

@keyframes pss-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.pss-card-loading-text {
    font-size: 12px;
    color: #D58037;
    margin: 6px 0 0;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    pointer-events: none;
    min-height: 1.2em;
    display: block;
}

.pss-card-widget.pss-searching .pss-card-loading-text {
    opacity: 1;
    visibility: visible;
}

/* Disable submit while loading */
.pss-card-widget.pss-searching .pss-card-submit {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── Input error shake ──────────────────────────── */
.pss-card-input.pss-input-error,
#pss-results-input.pss-input-error {
    border-color: #e05252 !important;
    animation: pss-shake 0.35s ease;
}

@keyframes pss-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* ── Empty state prompt on results page ─────────── */
.pss-empty-prompt {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
    text-align: center;
}

.pss-empty-prompt i {
    font-size: 2.5rem;
    color: #D58037;
    margin-bottom: 16px;
    opacity: 0.6;
}

.pss-empty-prompt p {
    font-size: 15px;
    margin: 0;
    color: #888;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 480px) {
    .pss-card-widget {
        padding: 18px 16px 16px;
        border-radius: 10px;
    }

    .pss-card-input {
        font-size: 14px;
        padding: 11px 10px;
    }

    .pss-card-pill {
        font-size: 12px;
        padding: 5px 12px;
    }

    .pss-card-submit {
        font-size: 14px;
        padding: 13px;
    }
}

/* =====================================================
   SMART SEARCH — MOBILE FILTER ICON + PANEL  (v1.6.4)
   ===================================================== */

/* Sidebar header: flex row so title + toggle sit side by side */
.pss-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}

.pss-sidebar-header .pss-sidebar-title {
    margin: 0;
    padding: 0;
    border: none;
}

/* Toggle button: hidden on desktop/tablet (sidebar always visible) */
.pss-mobile-filter-toggle {
    display: none;
}

/* Collapsible filters body */
.pss-sidebar-filters-body {
    /* always visible on desktop — no change needed */
}

@media (max-width: 900px) {

    /* Show toggle button */
    .pss-mobile-filter-toggle {
        display: inline-flex !important;
        align-items: center;
        gap: 7px;
        background: #fff;
        color: #333;
        border: 1.5px solid #D58037;
        border-radius: 30px;
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(213,128,55,0.15);
        transition: background 0.2s ease, color 0.2s ease;
        flex-shrink: 0;
    }

    .pss-mobile-filter-toggle:hover,
    .pss-mobile-filter-toggle[aria-expanded="true"] {
        background: #D58037;
        color: #fff;
    }

    .pss-mobile-filter-toggle svg {
        flex-shrink: 0;
    }

    .pss-mobile-filter-badge {
        background: #D58037;
        color: #fff;
        border-radius: 50%;
        font-size: 11px;
        font-weight: 700;
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .pss-mobile-filter-toggle[aria-expanded="true"] .pss-mobile-filter-badge {
        background: #fff;
        color: #D58037;
    }

    /* Filters body: collapsed by default on mobile */
    .pss-sidebar-filters-body {
        display: none;
        animation: pss-filter-slide-down 0.22s ease;
    }

    .pss-sidebar-filters-body.is-open {
        display: block;
    }

    @keyframes pss-filter-slide-down {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    /* Apply & close button (mobile only) */
    .pss-mobile-apply-row {
        margin-top: 12px;
    }

    .pss-mobile-apply-btn {
        width: 100%;
        padding: 12px;
        background: #D58037;
        color: #fff;
        border: none;
        border-radius: 30px;
        font-size: 15px;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .pss-mobile-apply-btn:hover {
        background: #b3692c;
    }
}

/* Hide apply row on desktop */
.pss-mobile-apply-row {
    display: none;
}

@media (max-width: 900px) {
    .pss-mobile-apply-row {
        display: block;
    }
}
