/* ── jobAdvertisments.css ─────────────────────────────────────────────────── */
/* Stilovi specifični za stranicu oglasa — učitava se samo na /oglasi rutama  */

/* ── AJAX loading stanje za results kontejner ────────────────────────────── */
#ja-results-container {
    position: relative;
    transition: opacity 0.2s ease;
    min-height: 100vh;
    overflow-anchor: none;
}
#ja-results-container.ja-loading {
    opacity: 0.35;
    pointer-events: none;
}

#ja-results-spinner {
    display: none;
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

#ja-results-container.ja-loading #ja-results-spinner {
    display: block;
}

#ja-results-spinner .ja-spinner-ring {
    width: 44px;
    height: 44px;
    border: 4px solid #e0e7f0;
    border-top-color: var(--color-primary, #1967d2);
    border-radius: 50%;
    animation: ja-spin 0.7s linear infinite;
}

@keyframes ja-spin {
    to { transform: rotate(360deg); }
}

/* ── Filter sidebar sekcija ──────────────────────────────────────────────── */
#ja-filter-sidebar .section-head-small {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0.5rem;
}

/* ── Inline filter lista (Tip zaposlenja, Iskustvo, Način rada) ───────────── */
.ja-inline-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ja-inline-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: background 0.12s;
    user-select: none;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.ja-inline-filter-item:hover {
    background: #1967d2 !important;
    color: #fff !important;
}

.ja-inline-filter-item:hover .occ-check-icon {
    border-color: rgba(255, 255, 255, 0.6);
}

/* ── Radio ikona za single-select filtere (npr. Datum objave) ────────────── */
.ja-radio-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--bs-gray-400, #ced4da);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.12s, background 0.12s;
}

.ja-radio-icon::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.12s;
}

.ja-inline-filter-item.selected .ja-radio-icon {
    border-color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary, #0d6efd);
}

.ja-inline-filter-item.selected .ja-radio-icon::after {
    background: #fff;
}

.ja-inline-filter-item:hover .ja-radio-icon {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
}

.ja-inline-filter-item:hover .ja-radio-icon::after {
    background: rgba(255, 255, 255, 0.9);
}

.ja-inline-filter-item.selected {
    background: var(--bs-primary-bg-subtle, #e8f0fe);
    font-weight: 500;
}

.ja-inline-filter-item.selected .occ-check-icon {
    border-color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary, #0d6efd);
}

/* ── Sačuvani oglasi — pill toggle ───────────────────────────────────────── */
.ja-saved-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px dashed var(--bs-gray-300, #dee2e6);
    background: transparent;
    color: var(--bs-body-color, #212529);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    user-select: none;
    position: relative;
}

.ja-saved-toggle:hover {
    border-color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary-bg-subtle, #e8f0fe);
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
}

.ja-saved-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bs-gray-100, #f8f9fa);
    color: var(--bs-gray-600, #6c757d);
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.ja-saved-toggle:hover .ja-saved-toggle-icon {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}

.ja-saved-toggle-label {
    flex: 1;
}

.ja-saved-toggle-check {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--bs-gray-300, #dee2e6);
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.ja-saved-toggle:hover .ja-saved-toggle-check {
    border-color: var(--bs-primary, #0d6efd);
}

/* Aktivno stanje */
.ja-saved-toggle.is-active {
    border-style: solid;
    border-color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary-bg-subtle, #e8f0fe);
    color: var(--bs-primary, #0d6efd);
    font-weight: 600;
}

.ja-saved-toggle.is-active .ja-saved-toggle-icon {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}

.ja-saved-toggle.is-active .ja-saved-toggle-check {
    border-color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary, #0d6efd);
    /* checkmark */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ── Sačuvani oglasi aktivni — ostali filteri su dimovani ─────────────────── */
#ja-filter-sidebar.ja-saved-active .widget:not(.ja-saved-widget) {
    opacity: 0.38;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.2s ease;
}

/* ja-filter-reset-top ostaje klikabilan čak i kad je saved aktivan */

#ja-filter-sidebar .widget:not(.ja-saved-widget) {
    transition: opacity 0.2s ease;
}

/* ── Uskoro ističe — crvenkast filter ───────────────────────────────────── */
.ja-inline-filter-item.ja-filter-expiring {
    color: #e53935;
}

.ja-inline-filter-item.ja-filter-expiring .occ-check-icon {
    border-color: rgba(229, 57, 53, 0.35);
}

.ja-inline-filter-item.ja-filter-expiring:hover {
    background: rgba(229, 57, 53, 0.14) !important;
    color: #e53935 !important;
}

.ja-inline-filter-item.ja-filter-expiring:hover .occ-check-icon {
    border-color: rgba(229, 57, 53, 0.5);
}

.ja-inline-filter-item.ja-filter-expiring.selected {
    background: rgba(229, 57, 53, 0.10);
    color: #e53935;
    font-weight: 500;
}

.ja-inline-filter-item.ja-filter-expiring.selected .occ-check-icon {
    border-color: #e53935;
    background: #e53935;
}

.ja-filter-item-name {
    flex: 1;
}

.ja-filter-count {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
}

/* ── Aktivni filter chip-ovi ────────────────────────────────────────────── */
/* Rezervisano za buduću implementaciju chip prikaza aktivnih filtera        */
.ja-chips-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.ja-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #e8f0fe;
    color: #1967d2;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    border: 1px solid #c8d8f8;
}

.ja-chip:hover {
    background: #c8d8f8;
    color: #1558b0;
    text-decoration: none;
}

.ja-chip-x {
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    opacity: 0.55;
}

.ja-chip:hover .ja-chip-x {
    opacity: 1;
}

/* ── Sačuvaj pretragu chip-dugme ─────────────────────────────────────────── */
.ja-chip-save {
    background: transparent;
    border: 1px dashed #1967d2;
    color: #1967d2;
    cursor: pointer;
    font-family: inherit;
}

.ja-chip-save:hover {
    background: #1967d2;
    color: #fff;
    border-style: solid;
}

.ja-chip-save.is-saved {
    background: #e6f4ea;
    border-color: #34a853;
    border-style: solid;
    color: #1e8e3e;
}

.ja-chip-save.is-saved:hover {
    background: #ceead6;
    color: #137333;
}

/* ── Save name dialog ────────────────────────────────────────────────────── */
.ja-save-dialog {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #d0d7de;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    padding: 12px 14px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ja-save-dialog-label {
    font-size: 12px;
    color: #5f6368;
    font-weight: 500;
    margin: 0;
}

.ja-save-dialog-input {
    width: 100%;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}

/* Inline rename u listi — ista visina kao tekst, bez povecavanja reda */
.ja-saved-search-name .ja-save-dialog-input {
    padding: 0 6px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    height: auto;
    border-radius: 4px;
}

.ja-save-dialog-input:focus {
    border-color: #1967d2;
    box-shadow: 0 0 0 3px rgba(25,103,210,.12);
}

.ja-save-dialog-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.ja-save-dialog-confirm {
    background: #1967d2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    font-weight: 500;
    transition: background .15s;
}

.ja-save-dialog-confirm:hover { background: #1558b0; }

.ja-save-dialog-cancel {
    background: transparent;
    color: #5f6368;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color .15s;
}

.ja-save-dialog-cancel:hover { border-color: #9aa0a6; color: #3c4043; }

/* ── Chip save wrapper (potreban za position:absolute na dialogu) ─────────── */
.ja-chip-save-wrap {
    position: relative;
    display: inline-flex;
}


/* ── Toolbar: Moje pretrage + Sort + Size ────────────────────────────────── */
.product-filter-wrap {
    flex-wrap: wrap;
    gap: 8px;
}

.ja-results-count {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 0.88rem;
    color: #64748b;
    margin-right: auto;
}

.ja-results-label {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 400;
}

.ja-results-count strong {
    font-size: 1.15rem;
    color: #1967d2;
    font-weight: 700;
    line-height: 1;
}

.ja-results-suffix {
    font-size: 0.82rem;
    color: #64748b;
}

/* Pregazi style.css koji na <768px sili display:block */
@media (max-width: 767px) {
    .product-filter-wrap {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
    }
}

.woocommerce-ordering {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

@media (max-width: 575.98px) {
    .product-filter-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce-ordering {
        width: 100%;
        justify-content: flex-end;
    }

    .woocommerce-ordering .form-select-3 {
        flex: 1;
        min-width: 0;
        width: auto;
    }
}

.btn-saved-searches {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 16px;
    border: 1.5px solid #1967d2;
    border-radius: 8px;
    background: #fff;
    color: #1967d2;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.btn-saved-searches:hover {
    background: #1967d2;
    color: #fff;
    text-decoration: none;
}

.btn-saved-searches .feather-bookmark {
    width: 14px;
    height: 14px;
}


/* ── Modal: Sačuvane pretrage ────────────────────────────────────────────── */
.ja-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: ja-overlay-in 0.15s ease;
}

.ja-modal-overlay[hidden] {
    display: none;
}

@keyframes ja-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ja-modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    width: 100%;
    max-width: 520px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: ja-modal-in 0.18s ease;
}

@keyframes ja-modal-in {
    from { opacity: 0; transform: translateY(-12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

.ja-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--bs-border-color, #dee2e6);
    flex-shrink: 0;
}

.ja-modal-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--bs-body-color, #212529);
}

.ja-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--bs-secondary, #6c757d);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, color 0.12s;
    flex-shrink: 0;
}

.ja-modal-close:hover {
    background: #f1f3f5;
    color: var(--bs-body-color, #212529);
}

.ja-modal-body {
    overflow-y: auto;
    padding: 12px 8px;
    flex: 1;
}

/* Prazno stanje */
.ja-modal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--bs-secondary, #6c757d);
    text-align: center;
    gap: 6px;
}

.ja-modal-empty svg,
.ja-modal-empty [class*="feather"] {
    width: 36px;
    height: 36px;
    opacity: 0.3;
    margin-bottom: 4px;
}

.ja-modal-empty p {
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
    color: var(--bs-body-color, #212529);
}

.ja-modal-empty span {
    font-size: 0.82rem;
}

/* Lista sačuvanih pretraga */
.ja-saved-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
    color: inherit;
}

.ja-saved-search-item:hover {
    background: #f4f7ff;
    text-decoration: none;
    color: inherit;
}

.ja-saved-search-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e8f0fe;
    color: #1967d2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ja-saved-search-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.ja-saved-search-name {
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--bs-body-color, #212529);
}

.ja-saved-search-meta {
    font-size: 0.75rem;
    color: var(--bs-secondary, #6c757d);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ja-saved-search-delete {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--bs-secondary, #6c757d);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, color 0.12s;
    flex-shrink: 0;
}

.ja-saved-search-rename {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--bs-secondary, #6c757d);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, color 0.12s;
    flex-shrink: 0;
}

.ja-saved-search-rename:hover {
    background: #e8f0fe;
    color: #1967d2;
}

.ja-saved-search-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* ── Prikaži još filtera toggle ───────────────────────────────────────────── */
.ja-more-filters-toggle {
    margin: 4px 0 12px;
}

.ja-more-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: 1px solid var(--bs-primary, #0d6efd);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--bs-primary, #0d6efd);
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.ja-more-filters-btn:hover {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}

.ja-more-filters-btn i {
    font-size: 13px;
    transition: transform 0.22s ease;
}

/* ── Focus reset
   ali ostaje vidljiv pri navigaciji tastaturom via :focus-visible) ─────────── */
.occ-checkbox-item:focus,
.ja-inline-filter-item:focus,
.ja-salary-toggle:focus {
    outline: none;
}

.occ-checkbox-item:focus-visible,
.ja-inline-filter-item:focus-visible,
.ja-salary-toggle:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: -2px;
    border-radius: 4px;
}

/* ── Checkbox lista u dropdownu ──────────────────────────────────────────── */
.occ-checkbox-list {
    max-height: 224px;
    overflow-y: auto;
    margin: 0;
    padding: 4px 0;
    list-style: none;
}

/* Hint poruka u dropdown-u za pozicije kada je oblast izabrana */
.ja-poz-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.78rem;
    color: #6d6875;
    background: #f5f0ff;
    border-bottom: 1px solid #e8e0f0;
    font-style: italic;
}

.ja-poz-hint i {
    font-size: 0.82rem;
    opacity: 0.75;
}

/* global.css ima .occ-select-list li:hover { background:#1967d2; color:#fff }
   Reset za checkbox liste — hover i boja se kontrolišu isključivo na <a> elementu */
.occ-checkbox-list li {
    padding: 0;
}

.occ-checkbox-list li:hover {
    background: transparent !important;
    color: inherit !important;
}

.occ-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: background 0.12s;
    user-select: none;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.occ-checkbox-item:hover {
    background: #1967d2 !important;
    color: #fff !important;
}

.occ-checkbox-item:hover .occ-check-icon {
    border-color: rgba(255, 255, 255, 0.6);
}

.occ-checkbox-item.selected {
    background: var(--bs-primary-bg-subtle, #e8f0fe);
    font-weight: 500;
}

.occ-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid var(--bs-gray-400, #ced4da);
    border-radius: 3px;
    font-size: 0;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}

.occ-check-icon::before {
    content: '';
    display: block;
    width: 4px;
    height: 8px;
    border: 2px solid transparent;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transform-origin: 65% 50%;
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: -2px;
}

.occ-checkbox-item.selected .occ-check-icon {
    border-color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary, #0d6efd);
}

.occ-checkbox-item.selected .occ-check-icon::before,
.ja-inline-filter-item.selected .occ-check-icon::before {
    border-color: #fff;
    transform: rotate(45deg) scale(1);
    transform-origin: 65% 50%;
}

/* ── Search input unutar panela ──────────────────────────────────────────── */
.occ-select-panel .occ-select-search {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.8rem;
    border: none;
    border-bottom: 1px solid var(--bs-gray-200, #e9ecef);
    outline: none;
    background: transparent;
}

.occ-select-panel .occ-select-search:focus {
    background: var(--bs-gray-100, #f8f9fa);
}

/* ── Sticky sidebar ──────────────────────────────────────────────────────── */
@media (min-width: 992px) {
    .mobile-sidebar-col {
        align-self: flex-start;
    }

    .ja-sidebar-sticky-wrap {
        position: sticky;
        top: 20px;
    }

    .ja-sidebar-scrollable {
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--bs-gray-300, #dee2e6) transparent;
    }

    .ja-sidebar-scrollable::-webkit-scrollbar {
        width: 4px;
    }

    .ja-sidebar-scrollable::-webkit-scrollbar-thumb {
        background: var(--bs-gray-300, #dee2e6);
        border-radius: 2px;
    }
}

/* ── Sa platom toggle ────────────────────────────────────────────────────── */
.ja-salary-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1.5px dashed var(--bs-gray-300, #dee2e6);
    background: transparent;
    color: var(--bs-body-color, #212529);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    user-select: none;
    position: relative;
}

.ja-salary-toggle:hover {
    border-color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary-bg-subtle, #e8f0fe);
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
}

.ja-salary-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bs-gray-100, #f8f9fa);
    color: var(--bs-gray-600, #6c757d);
    font-size: 14px;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.ja-salary-toggle:hover .ja-salary-toggle-icon {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}

.ja-salary-toggle-label {
    flex: 1;
}

.ja-salary-toggle-check {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--bs-gray-300, #dee2e6);
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.ja-salary-toggle:hover .ja-salary-toggle-check {
    border-color: var(--bs-primary, #0d6efd);
}

.ja-salary-toggle.is-active {
    border-style: solid;
    border-color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary-bg-subtle, #e8f0fe);
    color: var(--bs-primary, #0d6efd);
    font-weight: 600;
}

.ja-salary-toggle.is-active .ja-salary-toggle-icon {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
}

.ja-salary-toggle.is-active .ja-salary-toggle-check {
    border-color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary, #0d6efd);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ── Mobile filter modal ─────────────────────────────────────────────────── */
.filter-mobile-btn {
    display: none;
}

@media (max-width: 991.98px) {
    .filter-mobile-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 24px;
        right: 20px;
        z-index: 1075;
        background: var(--bs-primary, #0d6efd);
        color: #fff;
        border: none;
        border-radius: 28px;
        padding: 12px 20px;
        font-size: 0.9rem;
        font-weight: 600;
        box-shadow: 0 4px 18px rgba(13, 110, 253, 0.35);
        cursor: pointer;
        transition: background 0.15s, transform 0.15s;
    }

    .filter-mobile-btn:active {
        transform: scale(0.96);
    }

    .filter-mobile-btn[aria-expanded="true"] {
        background: var(--bs-primary, #0d6efd);
        box-shadow: 0 4px 18px rgba(13, 110, 253, 0.35);
    }

    .filter-mobile-btn[aria-expanded="true"] i {
        display: none;
    }

    .filter-mobile-btn[aria-expanded="true"] .filter-mobile-btn-label::before {
        content: '\00d7\00a0';
        font-size: 1.1em;
    }

    .filter-mobile-btn[aria-expanded="true"] .filter-mobile-btn-label {
        font-size: 0.9rem;
    }

    .filter-active-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ffc107;
        margin-left: 2px;
        vertical-align: middle;
    }

    .mobile-filter-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 1060;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(2px);
    }

    .mobile-filter-overlay.is-open {
        display: block;
    }

    .mobile-sidebar-col {
        position: static;
    }

    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(340px, 90vw);
        height: 100dvh;
        z-index: 1070;
        background: #fff;
        overflow-y: auto;
        padding: 0 0 80px;
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    .mobile-sidebar.is-open {
        transform: translateX(0);
    }

    .mobile-filter-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid var(--bs-gray-200, #e9ecef);
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 1;
    }

    .mobile-filter-title {
        font-size: 1rem;
        font-weight: 700;
    }

    .mobile-filter-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: none;
        background: var(--bs-gray-100, #f8f9fa);
        border-radius: 50%;
        cursor: pointer;
        font-size: 1.1rem;
        color: var(--bs-body-color, #212529);
        transition: background 0.12s;
    }

    .mobile-filter-close:hover {
        background: var(--bs-gray-200, #e9ecef);
    }

    .mobile-sidebar #ja-filter-sidebar {
        padding: 16px 20px;
    }

    }

/* ── Aktivni filter count badge na sekcijskom naslovu ────────────────── */
.ja-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    margin-left: 4px;
    text-transform: none;
    letter-spacing: 0;
}

.ja-section-count.ja-hidden {
    visibility: hidden;
    pointer-events: none;
}

/* ── Razdvojnici između sekcija filtera ──────────────────────────── */
#ja-filter-sidebar .widget + .widget {
    border-top: 1px solid var(--bs-gray-200, #e9ecef);
    padding-top: 16px;
    margin-top: -8px;
}

/* ── Filteri header — uvek vidljiv na vrhu sidebar-a ─────────────── */
.ja-filter-reset-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bs-gray-200, #e9ecef);
}

.ja-filter-sidebar-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted, #6c757d);
    margin: 0;
}

.ja-filter-reset-top.ja-filter-reset-hidden {
    visibility: hidden;
    pointer-events: none;
}

.ja-filter-reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 4px 12px;
    text-decoration: none;
    background: transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.ja-filter-reset-btn.ja-hidden {
    visibility: hidden;
    pointer-events: none;
}

.ja-filter-reset-btn:hover,
.ja-filter-reset-btn:focus {
    color: #c0392b;
    border-color: #f5c6cb;
    background: #fdf1f0;
    text-decoration: none;
    outline: none;
}

/* ── Company context strip ───────────────────────────────────────────────── */
.ja-company-strip {
    width: 100%;
    background: #e8f0fe;
    border: 1.5px solid #c5d8fb;
    border-left: 4px solid #1967d2;
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 24px;
}

.ja-company-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.ja-company-strip-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.ja-company-strip-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #1967d2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
}

.ja-company-strip-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #5a80c0;
    line-height: 1.1;
}

.ja-company-strip-name {
    display: block;
    font-size: 0.97rem;
    font-weight: 700;
    color: #1a2b4a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.ja-company-strip-back {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 24px;
    background: #1967d2;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, gap 0.15s;
    white-space: nowrap;
}

.ja-company-strip-back:hover {
    background: #1252a8;
    color: #fff;
    gap: 9px;
    text-decoration: none;
}

@media (max-width: 480px) {
    .ja-company-strip-back span {
        display: none;
    }
    .ja-company-strip-back {
        padding: 7px 10px;
        border-radius: 50%;
    }
}
/* -- Job Ad Card ----------------------------------------------------------- */
@keyframes ja-card-glow {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ja-card {
    background: transparent;
    border: 1.5px solid rgba(59,130,246,0.18);
    border-radius: 14px;
    padding: 0;
    margin-bottom: 16px;
    box-shadow:
        0 2px 14px rgba(37,99,235,.08),
        inset 0 1px 0 rgba(255,255,255,0.88);
    transition: box-shadow 0.22s, border-color 0.22s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}
/* Animirana pozadina — transform animacija je jedino sto je GPU-compositor-only
   i ne remeti se repaint-om roditelja pri hover tranziciji */
.ja-card-bg {
    position: absolute;
    inset: 0 -100% 0 0;
    width: 200%;
    background: linear-gradient(90deg,
        #f0f7ff 0%,
        #dbeafe 12%,
        #bfdbfe 25%,
        #dbeafe 38%,
        #f0f7ff 50%,
        #dbeafe 62%,
        #bfdbfe 75%,
        #dbeafe 88%,
        #f0f7ff 100%);
    animation: ja-card-glow 7s linear infinite;
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}
.ja-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(108deg,
        transparent 30%,
        rgba(255,255,255,0.35) 50%,
        transparent 70%);
    background-size: 200% 100%;
    background-position: -200% center;
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
    transition: background-position 1.8s ease;
}
.ja-card:hover::before {
    background-position: 200% center;
}
.ja-card:hover {
    box-shadow:
        0 10px 34px rgba(37,99,235,.16),
        0 4px 10px rgba(37,99,235,.10),
        inset 0 1px 0 rgba(255,255,255,0.95);
    border-color: rgba(59,130,246,0.38);
}
.ja-card > *:not(.ja-card-bg) { position: relative; z-index: 2; }
/* Header */
.ja-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px 12px;
    border-bottom: 1px solid rgba(59,130,246,0.15);
}
.ja-card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.ja-card-avatar-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}
.ja-card-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e2e8f5;
    padding: 3px;
}
.ja-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}
.ja-card-company {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1967d2;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 220px;
}
.ja-card-company:hover {
    color: #1252a8;
    text-decoration: none;
}
.ja-card-company-city {
    font-size: 0.73rem;
    color: #2563eb;
    margin-top: 1px;
    display: block;
}
.ja-card-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ja-card-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1252a8;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 2px solid rgba(37,99,235,0.35);
    padding-bottom: 1px;
}
.ja-card-badge-new {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff6b35, #ff8c00);
    color: #fff;
    padding: 3px 9px;
    border-radius: 20px;
}

/* Body */
.ja-card-body {
    padding: 14px 20px 12px;
    flex: 1;
}
.ja-card-title-wrap {
    margin: 0 0 7px;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}
.ja-card-title {
    font-size: 1.28rem;
    font-weight: 800;
    color: #0f1e3d;
    text-decoration: none;
    line-height: 1.3;
    display: block;
    margin-bottom: 7px;
    transition: color 0.15s;
    letter-spacing: -0.02em;
}
.ja-card-title:hover {
    color: #1967d2;
    text-decoration: none;
}
.ja-card-desc {
    font-size: 0.82rem;
    color: #1e3a5f;
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ja-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.ja-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}
.ja-card-tag-emp  { background: #dcfce7; color: #14532d; border: 1px solid rgba(22,163,74,0.22); }
.ja-card-tag-rem  { background: #dbeafe; color: #1e40af; border: 1px solid rgba(37,99,235,0.25); }
.ja-card-tag-loc  { background: #fef3c7; color: #7c5a00; border: 1px solid rgba(202,138,4,0.25); }
.ja-card-tag-sen  { background: #e0f2fe; color: #0369a1; border: 1px solid rgba(3,105,161,0.22); }

/* Skills */
.ja-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}
.ja-card-skill {
    font-size: 0.72rem;
    font-weight: 500;
    color: #1e40af;
    background: rgba(59,130,246,0.10);
    border: 1px solid rgba(59,130,246,0.22);
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
}
.ja-card-skill-more {
    background: rgba(59,130,246,0.20);
    color: #0f1e3d;
    font-weight: 700;
}

/* Footer */
.ja-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(59,130,246,0.15);
    flex-wrap: wrap;
}
.ja-card-salary {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f1e3d;
    display: flex;
    align-items: center;
    gap: 7px;
}
.ja-card-salary-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: #dcfce7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
    line-height: 1;
    border: 1px solid rgba(22,163,74,0.28);
    color: #16a34a;
}
.ja-card-salary-note {
    font-size: 0.72rem;
    font-weight: 400;
    color: #4b6fa8;
    margin-left: 2px;
}
.ja-card-badge-expiry {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff4444, #e53935);
    color: #fff;
    padding: 3px 9px;
    border-radius: 20px;
    animation: ja-pulse-expiry 1.6s ease-in-out infinite;
}
@keyframes ja-pulse-expiry {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229,57,53,0.45); }
    50%       { box-shadow: 0 0 0 6px rgba(229,57,53,0); }
}
.ja-card-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 8px 20px 6px;
    font-size: 0.76rem;
    font-weight: 600;
    color: #1252a8;
    border-left: 3px solid rgba(37,99,235,0.30);
    margin: 0 20px 4px;
    padding-left: 10px;
}
.ja-card-date-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.ja-card-date-item.expiring-soon {
    color: #b91c1c;
    font-weight: 600;
}
.ja-card-footer-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ja-card-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(234, 88, 12, 0.3);
    background: rgba(234, 88, 12, 0.08);
    color: #ea580c;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    flex-shrink: 0;
    text-decoration: none;
}
.ja-card-edit:hover {
    background: rgba(234, 88, 12, 0.18);
    border-color: rgba(234, 88, 12, 0.55);
    color: #c2410c;
    transform: scale(1.08);
}
.ja-card-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(37,99,235,0.25);
    background: rgba(37,99,235,0.07);
    color: #1967d2;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    flex-shrink: 0;
}
.ja-card-share:hover {
    background: rgba(37,99,235,0.15);
    border-color: rgba(37,99,235,0.45);
    transform: scale(1.08);
}
.ja-card-bookmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(37,99,235,0.25);
    background: rgba(37,99,235,0.07);
    color: #1967d2;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s, color 0.15s;
    flex-shrink: 0;
}
.ja-card-bookmark:hover {
    background: rgba(37,99,235,0.15);
    border-color: rgba(37,99,235,0.45);
    transform: scale(1.08);
}
.ja-card-bookmark.is-bookmarked {
    background: #1967d2;
    border-color: #1967d2;
    color: #fff;
}
.ja-card-bookmark.is-bookmarked:hover {
    background: #1252a8;
    border-color: #1252a8;
}
.ja-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    border-radius: 24px;
    background: #1967d2;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, gap 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.ja-card-cta:hover {
    background: #1252a8;
    color: #fff;
    gap: 10px;
    text-decoration: none;
}

@media (max-width: 576px) {
    .ja-card-header { padding: 14px 14px 10px; }
    .ja-card-body   { padding: 12px 14px 10px; }
    .ja-card-footer { padding: 10px 14px 14px; }
    .ja-card-company { max-width: 150px; }
    .ja-card-title { font-size: 1rem; }
    .ja-card-cta { padding: 7px 16px; }
}

/* ── Bookmark toast ─────────────────────────────────────────────────────── */
.ja-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #1e293b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.ja-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}