/* =============================================================
   Job Search Bar — job-search.css
   ============================================================= */

.jsb-wrapper {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.jsb-inner {
    display: flex;
  justify-content: flex-start;
    gap: 20px;
    align-items: center;
    /*background: #ffffff;*/
    border-radius: 8px;
    /*box-shadow: 0 2px 16px rgba(0,0,0,.10);*/
    overflow: visible;
    position: relative;
    min-height: 64px;
}

/* ── Fields ────────────────────────────────── */
.jsb-field {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 10px 20px;
    position: relative;
}

.jsb-field--keyword { flex: 1.4; }
.jsb-field--location { flex: 1; }

.jsb-icon {
    color: #e0e0e0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.jsb-input {
    flex: 1;
    border: none;
    border-radius: 5px !important;
    outline: none;
    font-size: 0.95rem;
    color: #e0e0e0;
    background: transparent;
    padding: 20px 0;
    width: 100%;
    font-family: inherit;
}

.jsb-input::placeholder { color: #e0e0e0; }

/* ── Divider ───────────────────────────────── */
.jsb-divider {
    width: 1px;
    height: 32px;
    background: #e5e7eb;
    flex-shrink: 0;
}

/* ── Search button ─────────────────────────── */
.jsb-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    padding: 16px 35px !important;
    /*height: 64px;*/
    background: #29abe2 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    flex-shrink: 0;
    transition: background 0.2s;
    white-space: nowrap;
}

.jsb-btn:hover { background: #1a90c4; }

/* ── Autocomplete dropdown ─────────────────── */
.jsb-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    z-index: 9999;
    overflow: hidden;
}

.jsb-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.875rem;
    color: #1f2937;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid #f3f4f6;
}

.jsb-autocomplete-item:last-child { border-bottom: none; }
.jsb-autocomplete-item:hover { background: #f9fafb; }

.jsb-autocomplete-item svg { color: #9ca3af; flex-shrink: 0; }

.jsb-autocomplete-type {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-left: auto;
    text-transform: capitalize;
    background: #f3f4f6;
    padding: 2px 7px;
    border-radius: 100px;
}

/* ── Active search bar on filter page ─────── */
.jfs-search-active-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: #1e40af;
    grid-column: 1 / -1;
}

.jfs-search-active-icon { display: flex; align-items: center; }

.jfs-search-active-bar span { flex: 1; }

.jfs-search-clear-btn {
    font-size: 0.8rem;
    color: #6b7280;
    text-decoration: none;
    padding: 3px 10px;
    border: 1px solid #d1d5db;
    border-radius: 100px;
    background: #fff;
    white-space: nowrap;
    transition: all 0.15s;
}

.jfs-search-clear-btn:hover { background: #f3f4f6; color: #374151; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 640px) {
    .jsb-inner {
        flex-direction: column;
        border-radius: 8px;
        overflow: hidden;
    }

    .jsb-field {
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }

    .jsb-divider { display: none; }

    .jsb-btn {
        width: 100%;
        border-radius: 0 0 8px 8px;
        justify-content: center;
        height: 52px;
    }
}
