/* Ecostaff v1.9.02 global site search and responsive header UX. */
.ecostaff-search-open { overflow: hidden; }
.ecostaff-search-menu-item { display: flex !important; align-items: center; }
.ecostaff-global-search-trigger { border: 0; background: transparent; color: inherit; cursor: pointer; }
.ecostaff-global-search-trigger svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.ecostaff-global-search-trigger--desktop { display: inline-flex; color: #fff !important; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: 4px; border-radius: 10px; }
.ecostaff-global-search-trigger--standalone { flex: 0 0 42px; }
.ecostaff-global-search-trigger--desktop:hover,
.ecostaff-global-search-trigger--desktop:focus-visible { background: rgba(255,255,255,.08); color: #96df36; outline: none; }
.ecostaff-mobile-search-item { padding: 0 !important; border-bottom: 1px solid rgba(255,255,255,.06); }
.ecostaff-mobile-search-toggle { display: flex; width: 100%; min-height: 52px; align-items: center; gap: 12px; padding: 0 16px; border: 0; background: transparent; color: #fff; font: inherit; font-size: 17px; text-align: left; cursor: pointer; }
.ecostaff-mobile-search-toggle svg { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.ecostaff-mobile-search-toggle > span:not(.ecostaff-mobile-search-chevron) { flex: 1 1 auto; }
.ecostaff-mobile-search-chevron { flex: 0 0 auto; font-size: 22px; line-height: 1; transition: transform .18s ease; }
.ecostaff-mobile-search-item.is-open .ecostaff-mobile-search-chevron { transform: rotate(45deg); }
.ecostaff-mobile-search-panel[hidden] { display: none !important; }
.ecostaff-mobile-search-panel { padding: 0 16px 16px; }
.ecostaff-mobile-search-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.ecostaff-mobile-search-form input { min-width: 0; width: 100%; height: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,.20); border-radius: 6px; background: #fff; color: #172238; font-size: 14px; }
.ecostaff-mobile-search-form button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 6px; background: #7bb52f; color: #fff; font-weight: 800; cursor: pointer; }

.ecostaff-global-search[hidden] { display: none !important; }
.ecostaff-global-search { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: start center; padding: 7vh 20px 40px; }
.ecostaff-global-search__backdrop { position: absolute; inset: 0; background: rgba(8,18,26,.78); backdrop-filter: blur(4px); }
.ecostaff-global-search__dialog { position: relative; width: min(980px, 100%); max-height: 86vh; overflow: auto; background: #fff; border-radius: 24px; box-shadow: 0 30px 80px rgba(8,18,26,.28); padding: 28px; color: #0e1a28; }
.ecostaff-global-search__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ecostaff-global-search__eyebrow,.ecostaff-search-page__eyebrow { display: block; margin-bottom: 7px; color: #4c7f16; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ecostaff-global-search__top h2 { margin: 0; font-size: clamp(25px,4vw,38px); line-height: 1.08; }
.ecostaff-global-search__close { border: 1px solid #d6dee5; border-radius: 50%; background: #fff; width: 42px; height: 42px; font-size: 28px; line-height: 1; color: #405266; }
.ecostaff-global-search__form,.ecostaff-search-page__form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-top: 24px; }
.ecostaff-global-search__form input,.ecostaff-search-page__form input { width: 100%; min-height: 54px; border: 1px solid #cad5de; border-radius: 13px; padding: 0 17px; font-size: 17px; }
.ecostaff-global-search__form button,.ecostaff-search-page__form button { min-height: 54px; border: 0; border-radius: 13px; padding: 0 24px; background: #7bb52f; color: #fff; font-weight: 800; }
.ecostaff-global-search__hint { margin: 10px 0 20px; color: #66788b; font-size: 14px; }
.ecostaff-global-search__results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.ecostaff-global-search__group { border: 1px solid #dbe3e9; border-radius: 16px; overflow: hidden; }
.ecostaff-global-search__group h3 { margin: 0; padding: 13px 16px; background: #f6f8fa; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.ecostaff-global-search__items a { display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-top: 1px solid #edf1f4; color: #0e1a28; text-decoration: none; }
.ecostaff-global-search__items a:hover strong { color: #5f941e; }
.ecostaff-global-search__items strong { font-size: 15px; }
.ecostaff-global-search__items span { color: #68798b; font-size: 13px; line-height: 1.4; }
.ecostaff-global-search__all { grid-column: 1 / -1; display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border-radius: 12px; background: #f4f8ef; color: #4f7f18; font-weight: 800; text-decoration: none; }
.ecostaff-global-search__empty,.ecostaff-global-search__loading { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 4px; padding: 22px; border: 1px solid #dbe3e9; border-radius: 14px; color: #68798b; }

.ecostaff-search-page { background: #f7f9fb; min-height: 70vh; padding: 44px 20px 70px; }
.ecostaff-search-page__inner { max-width: 1120px; margin: 0 auto; }
.ecostaff-search-page__breadcrumbs { margin-bottom: 30px; color: #75869a; font-size: 14px; }
.ecostaff-search-page__breadcrumbs a { color: #536b83; }
.ecostaff-search-page__breadcrumbs span { margin: 0 8px; }
.ecostaff-search-page__hero { background: #fff; border: 1px solid #dce4ea; border-radius: 22px; padding: clamp(24px,5vw,48px); }
.ecostaff-search-page__hero h1 { margin: 0 0 14px; font-size: clamp(34px,5vw,56px); line-height: 1.04; }
.ecostaff-search-page__hero > p { margin: 0; max-width: 760px; color: #586b80; font-size: 18px; line-height: 1.6; }
.ecostaff-search-page__groups { display: grid; gap: 24px; margin-top: 28px; }
.ecostaff-search-page__group { background: #fff; border: 1px solid #dce4ea; border-radius: 20px; padding: 22px; }
.ecostaff-search-page__group-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.ecostaff-search-page__group-head h2 { margin: 0; font-size: 25px; }
.ecostaff-search-page__group-head span { color: #718297; font-size: 13px; }
.ecostaff-search-page__cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ecostaff-search-page__card { display: flex; flex-direction: column; gap: 7px; min-height: 128px; padding: 18px; border: 1px solid #e0e6eb; border-radius: 15px; color: #0e1a28; text-decoration: none; }
.ecostaff-search-page__card:hover { border-color: #b9d68e; box-shadow: 0 10px 26px rgba(24,42,58,.07); }
.ecostaff-search-page__card strong { font-size: 17px; }
.ecostaff-search-page__card span { color: #66788b; line-height: 1.45; }
.ecostaff-search-page__card em { margin-top: auto; color: #5c901e; font-style: normal; font-weight: 800; }
.ecostaff-search-page__empty { margin-top: 28px; padding: 30px; background: #fff; border: 1px solid #dce4ea; border-radius: 20px; color: #63758a; }
.ecostaff-search-page__empty h2 { margin: 0 0 8px; color: #0e1a28; }

.ecostaff-directory-empty-state { margin: 6px 0 34px; padding: 24px; border: 1px solid #dce4ea; border-radius: 16px; background: #fff; color: #566a7e; }
.ecostaff-directory-empty-state strong { display: block; margin-bottom: 7px; color: #0e1a28; font-size: 20px; }
.ecostaff-directory-empty-state p { margin: 0 0 14px; }
.ecostaff-directory-empty-state a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 9px; background: #7bb52f; color: #fff; font-weight: 800; text-decoration: none; }

@media (max-width: 767px) {
    .ecostaff-search-menu-item { display: none !important; }
    .ecostaff-global-search { padding: 0; place-items: stretch; }
    .ecostaff-global-search__dialog { width: 100%; height: 100vh; max-height: none; border-radius: 0; padding: 22px 18px 40px; }
    .ecostaff-global-search__form,.ecostaff-search-page__form { grid-template-columns: 1fr; }
    .ecostaff-global-search__results,.ecostaff-search-page__cards { grid-template-columns: 1fr; }
    .ecostaff-search-page { padding: 28px 14px 50px; }
    .ecostaff-search-page__hero { padding: 24px 18px; }
}

/* v1.9.02: keep the full desktop header only where all actions fit.
 * CareerUp normally switches later; Ecostaff moves the breakpoint to 1280px
 * so Search, account and Leave a review can never be clipped. */
@media (min-width: 1280px) {
    #apus-header {
        display: block !important;
    }

    #apus-header-mobile {
        display: none !important;
    }

    .ecostaff-global-search-action-cluster {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 10px !important;
        width: auto !important;
        max-width: none !important;
        min-width: max-content !important;
        white-space: nowrap !important;
    }

    .ecostaff-global-search-action-cluster > * {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .ecostaff-global-search-slot {
        display: inline-flex !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        vertical-align: middle;
    }

    .ecostaff-global-search-slot .ecostaff-global-search-trigger--desktop {
        width: 42px;
        height: 42px;
        margin: 0;
        border: 1px solid rgba(255,255,255,.24);
        border-radius: 6px;
    }
}

@media (max-width: 1279px) {
    #apus-header {
        display: none !important;
    }

    #apus-header-mobile {
        display: block !important;
    }

    .ecostaff-global-search-slot {
        display: none !important;
    }
}

@media (max-width: 520px) {
    .ecostaff-mobile-search-form {
        grid-template-columns: 1fr;
    }
}
