/* Homepage Search Box — redesign overlay (.search-ov / .search-box / .icon-btn) */

.hsb {
    --hsb-green-800: var(--green-800, #1b5e20);
    --hsb-green-700: var(--green-700, #2e7d32);
    --hsb-line: var(--line, #e2eae2);
    --hsb-bg-alt: var(--bg-alt, #f4f8f4);
    --hsb-muted: var(--muted, #6a786c);
    --hsb-shadow-lg: var(--shadow-lg, 0 20px 50px rgba(19, 64, 26, .18));
    --hsb-font: var(--font-sans, Manrope, system-ui, sans-serif);

    display: inline-flex;
    align-items: center;
}

.hsb-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    border: 1px solid var(--hsb-line);
    background: #fff;
    cursor: pointer;
    color: var(--hsb-green-800);
    transition: border-color 0.2s ease, background 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.hsb-icon-btn:hover,
.hsb-icon-btn:focus {
    border-color: var(--hsb-green-700);
    background: var(--hsb-bg-alt);
    outline: none;
}

.hsb-icon-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hsb-icon-btn svg {
    width: 19px;
    height: 19px;
    display: block;
}

/* Full-screen blurred overlay — above sticky header */
.hsb-ov {
    position: fixed;
    inset: 0;
    background: rgba(13, 40, 17, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    z-index: 11000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 14vh 20px 20px;
    box-sizing: border-box;
}

/* Sitefinity / jQuery UI suggestions must sit above the overlay */
.ui-autocomplete,
.ui-autocomplete.sf-autocomplete,
.hsb-box .ui-autocomplete {
    z-index: 11050 !important;
}

.hsb-ov.is-open,
.hsb-ov.is-open[hidden] {
    display: flex !important;
}

.hsb-box-icon:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.hsb-box {
    position: relative;
    width: 100%;
    max-width: 680px;
    background: #fff;
    border-radius: 20px;
    padding: 10px;
    margin-top: 150px;
    box-shadow: var(--hsb-shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hsb-box .ui-autocomplete {
    position: absolute;
    left: 0;
    right: 0;
    max-width: 100%;
}

.hsb-box-icon {
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--hsb-muted);
    display: grid;
    place-items: center;
    padding: 0;
    margin-left: 4px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 12px;
}

.hsb-box-icon:hover,
.hsb-box-icon:focus {
    color: var(--hsb-green-800);
    outline: none;
}

.hsb-box-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.hsb-box input[type="search"] {
    flex: 1;
    border: 0;
    outline: 0;
    font: 500 18px var(--hsb-font);
    padding: 14px 4px;
    min-width: 0;
    background: transparent;
    color: var(--ink, #142016);
    -webkit-appearance: none;
    appearance: none;
}

.hsb-box input[type="search"]::-webkit-search-decoration,
.hsb-box input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

body.hsb-open {
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .hsb-ov {
        padding: 10vh 12px 16px;
    }

    .hsb-box input[type="search"] {
        font-size: 16px;
        padding: 12px 2px;
    }
}
