/*
 * Split view shared by /jobs (jobs/all-jobs) and /all-resume:
 * filters | results | detail panel.
 * Selectors are prefixed with `body` so they win over each page's own <style> block.
 */

/* ---------- Layout ---------- */
body .jobs-container,
body .resumes-container {
    max-width: 1480px;
    padding: 0 20px;
    gap: 20px;
    grid-template-columns: 250px minmax(0, 1fr) minmax(380px, 440px);
}
body .search-bar-inner,
body .resume-search-inner {
    max-width: 1480px;
    padding: 0 20px;
}
body .jobs-page,
body .resumes-page { padding-top: 20px; padding-bottom: 32px; background: #f6f8f7; }


/* ---------- Filters column (desktop) ---------- */
body .sidebar,
body .res-sidebar { top: 84px; }
body .filter-box { border-radius: 10px; border-color: #e6ebe8; margin-bottom: 12px; }
body .filter-box-header { padding: 12px 16px; }

/* ---------- Result cards ---------- */
body .jobs-main .job-box1,
body .res-main .job-box1 {
    border-radius: 10px;
    margin: 0 0 14px;
    padding: 16px 18px 14px 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
body .jobs-main .job-box1:hover,
body .res-main .job-box1:hover { transform: none; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
body .jobs-main .job-box1.active-job,
body .res-main .job-box1.active-job { box-shadow: 0 0 0 2px var(--primary); }

/* ---------- Detail panel ---------- */
body .job-detail-panel,
body .res-detail-panel {
    border-radius: 10px;
    border-color: #e6ebe8;
}
@media (min-width: 901px) {
    body .job-detail-panel,
    body .res-detail-panel {
        position: sticky;
        top: 84px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
}
body #jobDetailContent,
body #resumeDetailContent { padding: 20px 22px !important; }
body .detail-job-title { font-size: 20px; line-height: 1.3; color: var(--dark); }
body .detail-company-name { color: var(--primary-dark); }
body .detail-actions { margin: 16px 0; }
body .detail-divider { margin: 16px 0; }

/* ---------- Filters drawer (below 1400px) ---------- */
.vt-filter-toggle {
    display: none;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: #fff;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}
.vt-filter-toggle .vt-filter-count:empty { display: none; }
.vt-filter-toggle .vt-filter-count {
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 0 7px;
    font-size: 12px;
}
.vt-filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 10040; /* above the floating WhatsApp button */
}
.vt-filter-backdrop.show { display: block; }
.vt-filter-drawer-head { display: none; }

/* Below 1400px (most laptops) filters move into a drawer so results and the
   opened job/profile get the room; three columns only on wide screens. */
@media (min-width: 901px) and (max-width: 1399px) {
    body .jobs-container,
    body .resumes-container { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); }
}
@media (max-width: 1399px) {
    .vt-filter-toggle { display: inline-flex; }
    body .sidebar,
    body .res-sidebar {
        display: block;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: 300px;
        max-width: 86vw;
        max-height: none;
        overflow-y: auto;
        padding: 0 14px 20px;
        background: #f6f8f7;
        z-index: 10050;
        transform: translateX(-105%);
        transition: transform .25s ease;
        box-shadow: 4px 0 24px rgba(0, 0, 0, .18);
    }
    body .sidebar.mobile-open,
    body .res-sidebar.mobile-open { transform: none; }
    .vt-filter-drawer-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 1;
        margin: 0 -14px 12px;
        padding: 14px;
        background: #fff;
        border-bottom: 1px solid #e6ebe8;
        font-weight: 700;
        color: var(--dark);
    }
    .vt-filter-drawer-head button {
        border: none;
        background: none;
        font-size: 22px;
        line-height: 1;
        color: #777;
    }
}
@media (max-width: 900px) {
    /* Phones/tablets: one column; the detail panel opens as the page's own overlay. */
    body .jobs-container,
    body .resumes-container { grid-template-columns: minmax(0, 1fr); padding: 0 12px; }
    body .jobs-header,
    body .res-header { flex-wrap: wrap; gap: 8px; }
}
