/* =========================================
   JPC HEADER SEARCH
========================================= */

.jpc-header-search {
    position: relative;
    /*width: 320px;*/
    /*margin-left: 20px;*/
}

.jpc-search-form {
    position: relative;
}

.jpc-search-input-wrap {
    display: flex;
    align-items: center;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.jpc-search-input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 108, 99, 0.08);
}

.jpc-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    flex-shrink: 0;
    font-size: 20px;
    color: var(--muted);
}

.jpc-search-input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 8px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.jpc-search-input::placeholder {
    color: #829493;
}

.jpc-search-submit {
    height: 34px;
    margin-right: 5px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease;
}

.jpc-search-submit:hover {
    background: var(--primary-dark);
}


/* =========================================
   SEARCH RESULTS DROPDOWN
========================================= */

.jpc-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 9999;

    display: none;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 64, 61, 0.14);

    overflow: hidden;
}

.jpc-search-results.is-visible {
    display: block;
}


/* =========================================
   RESULT ITEM
========================================= */

.jpc-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;

    text-decoration: none;
    color: var(--text);

    border-bottom: 1px solid var(--border);

    transition: background 0.2s ease;
}

.jpc-search-result-item:hover {
    background: var(--light-2);
}

.jpc-search-result-image {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;

    border-radius: 10px;
    overflow: hidden;

    background: var(--light);

    display: flex;
    align-items: center;
    justify-content: center;
}

.jpc-search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jpc-search-result-image span {
    font-size: 20px;
    color: var(--primary);
}

.jpc-search-result-content {
    min-width: 0;
}

.jpc-search-result-type {
    display: block;
    margin-bottom: 3px;

    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jpc-search-result-content strong {
    display: block;

    font-size: 14px;
    font-weight: 600;
    color: var(--dark);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================
   VIEW ALL
========================================= */

.jpc-search-view-all {
    display: block;

    padding: 13px 15px;

    text-align: center;

    background: var(--light-2);

    color: var(--primary);
    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.jpc-search-view-all:hover {
    background: var(--light);
}


/* =========================================
   LOADING / NO RESULTS
========================================= */

.jpc-search-loading,
.jpc-search-no-results {
    padding: 22px 15px;

    text-align: center;

    color: var(--muted);
    font-size: 13px;
}

.jpc-header-search.mob{
    display: none;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 1100px) {

    .jpc-header-search {
        width: 260px;
    }

}

@media (max-width: 767px) {

    .jpc-header-search {
        width: 100%;
        margin: 15px 0 0;
    }

    .jpc-search-results {
        position: absolute;
        left: 0;
        right: 0;
    }

    .jpc-search-input-wrap {
        height: 46px;
    }

}
/* =========================================
   MOBILE HEADER SEARCH ICON
========================================= */

.mobile-header-actions {
    display: none;
}

.mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    background: transparent;

    color: var(--dark);

    cursor: pointer;
}

.mobile-search-icon {
    font-size: 32px;
    line-height: 1;
}
.mobile-search-icon svg {
    color: #006c63;
}

/* =========================================
   MOBILE HEADER SEARCH
========================================= */

.mobile-header-actions {
    display: none;
}

.mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    background: transparent;

    color: var(--dark);

    cursor: pointer;
}

.mobile-search-icon {
    font-size: 25px;
    line-height: 1;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 1199px) {

    /*
     * Search + hamburger
     */
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 3px;
    }


    /*
     * Hide desktop search
     */
    .jpc-header-search {
        display: none;
        width: 100%;
        margin: 15px 0 0;
    }

    .jpc-header-search.mobile-search-open {
        display: block;
        position: absolute;
        /* bottom: 0px; */
        width: 100%;
        left: 0px;
        right: 0;
        /* margin: auto; */
        /* height: revert-layer; */
        top: 50px;
        /* display: flex; */
        /* justify-content: center; */
        /* align-items: center; */
        /* background: #006c63; */
        /* margin: auto;*/
    }
    .jpc-search-form {
        position: relative;
        width: 95%;
        margin: auto;
    }
    .mobile-search-toggle {
        order: 1;
    }

    .menu-toggle {
        order: 2;
    }
    .jpc-search-input-wrap {
        height: 46px;
    }

    .jpc-search-results {
        position: absolute;

        top: calc(100% + 8px);

        left: 0;
        right: 0;

        width: 100%;

        z-index: 99999;
    }

}