/* ============================================================
   GWM Breadcrumb Search
   File: assets/css/components/breadcrumb-search.css

   Purpose:
   - Styles the search form inside the breadcrumb bar.
   - Keeps the breadcrumb bar slim, clean, and responsive.
   - Works with the active breadcrumb structure:
     .gwm-breadcrumbs
     .gwm-breadcrumbs__inner
     .gwm-breadcrumbs__list
     .gwm-breadcrumb-search
   ============================================================ */


/* ------------------------------------------------------------
   1. Breadcrumb wrapper layout
   ------------------------------------------------------------ */

.gwm-breadcrumbs {
    position: relative;
    overflow: visible;
}

.gwm-breadcrumbs__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    width: min(100% - 32px, 1180px);
    margin-left: auto;
    margin-right: auto;
}

.gwm-breadcrumbs__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}


/* ------------------------------------------------------------
   2. Search form container
   Controls search bar width.
   ------------------------------------------------------------ */

.gwm-breadcrumb-search {
    flex: 0 1 280px;
    width: min(100%, 280px);
    max-width: 280px;
    margin-left: auto;
}


/* ------------------------------------------------------------
   3. Search pill
   Controls the visible height of the search bar.
   Reduce height here if you want it slimmer.
   ------------------------------------------------------------ */

.gwm-breadcrumb-search__inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 36px !important;
    min-height: 36px !important;
     padding-top: 3px !important;
    padding-bottom: 3px !important;
    align-items: center !important;
    padding: 1px 2px;
    border: 1px solid rgba(15, 45, 35, 0.14);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.06);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.gwm-breadcrumb-search__inner:focus-within {
   
    box-shadow: 0 0 0 3px rgba(169, 120, 18, 0.12);
}


/* ------------------------------------------------------------
   4. Search icon
   ------------------------------------------------------------ */

.gwm-breadcrumb-search__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    color: #a97812;
}

.gwm-breadcrumb-search__icon svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}


/* ------------------------------------------------------------
   5. Search input
   Controls typing area height and font size.
   ------------------------------------------------------------ */

.gwm-breadcrumb-search__field {
    width: 100%;
    min-width: 0;
    height: 30px;
    min-height: 26px;
    border: 0;
    outline: none;
    background: transparent;
    color: #13231d;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1;
}

.gwm-breadcrumb-search__field::placeholder {
    color: rgba(71, 85, 105, 0.72);
    font-weight: 400;
}

.gwm-breadcrumb-search__field::-webkit-search-decoration,
.gwm-breadcrumb-search__field::-webkit-search-cancel-button,
.gwm-breadcrumb-search__field::-webkit-search-results-button,
.gwm-breadcrumb-search__field::-webkit-search-results-decoration {
    appearance: none;
}


/* ------------------------------------------------------------
   6. Search button
   Keep this smaller than the search pill height.
   ------------------------------------------------------------ */

.gwm-breadcrumb-search__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 23px;
    min-height: 30px;
    min-width: 30px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #a97812, #d9a441);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none;
    transition:
        transform 180ms ease,
        filter 180ms ease;
}

.gwm-breadcrumb-search__button:hover,
.gwm-breadcrumb-search__button:focus-visible {
    transform: translateY(-1px);
    filter: saturate(1.08);
}

.gwm-breadcrumb-search__button:active {
    transform: translateY(0);
}

.gwm-breadcrumb-search__field:focus,
.gwm-breadcrumb-search__button:focus {
    outline: none;
}


/* ------------------------------------------------------------
   7. Search results page heading support
   ------------------------------------------------------------ */
/* ------------------------------------------------------------
   8. Tablet and mobile layout
   Search stacks below breadcrumb path on smaller screens.
   ------------------------------------------------------------ */

@media (max-width: 900px) {
    .gwm-breadcrumbs__inner {
        align-items: stretch;
    }

    .gwm-breadcrumbs__list,
    .gwm-breadcrumb-search {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
    }
}


/* ------------------------------------------------------------
   9. Small mobile layout
   Button becomes compact "Go" button.
   ------------------------------------------------------------ */

@media (max-width: 520px) {
    .gwm-breadcrumb-search__inner {
        height: 38px;
        min-height: 38px;
        border-radius: 16px;
    }

    .gwm-breadcrumb-search__field {
        font-size: 0.76rem;
    }

    .gwm-breadcrumb-search__button {
        width: 38px;
        min-width: 38px;
        padding: 0;
    }

    .gwm-breadcrumb-search__button-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .gwm-breadcrumb-search__button::before {
        content: "Go";
        font-size: 0.68rem;
        font-weight: 400;
    }
}
.gwm-breadcrumbs__inner {
    align-items: center !important;
}

.gwm-breadcrumb-search {
    align-self: center !important;
    transform: translateY(10px);
}