.search-modal {
    align-items: flex-start;
    padding: clamp(36px, 8vh, 82px) 20px;
    background: transparent;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.search-modal-inner {
    width: min(720px, 100%);
    max-height: calc(100dvh - clamp(72px, 16vh, 164px));
    overflow: hidden;
    background: #fff;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 18px 55px rgba(15, 28, 21, .08);
}

.search-modal-close {
    top: 22px;
    right: 22px;
    z-index: 3;
    width: 36px;
    height: 36px;
    color: #03482b;
    background: #fff;
    border: 1px solid #e5e9e6;
    border-radius: 50%;
    box-shadow: none;
}

.search-modal-close:hover {
    color: #fff;
    background: #03482b;
    border-color: #03482b;
    transform: none;
}

.search-modal-content {
    display: flex;
    max-height: inherit;
    flex-direction: column;
    padding: 34px 34px 24px;
}

.search-modal-eyebrow {
    display: none;
}

.search-modal-content h2 {
    margin: 0 52px 22px 0;
    color: #03482b;
    font-size: clamp(28px, 3.5vw, 36px);
    font-weight: 820;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.search-modal-form { margin: 0; }

.search-modal-field {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #dfe6e2;
    border-radius: 10px;
    box-shadow: none;
}

.search-modal-field:focus-within {
    background: #fff;
    border-color: #e2a515;
    box-shadow: none;
}

.search-modal-field > i {
    color: #03482b;
    font-size: 20px;
}

.search-modal-field .searchinput {
    flex: 1;
    width: 100%;
    height: 56px;
    padding: 0;
    color: #03482b;
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 16px;
    font-weight: 620;
}

.search-modal-field .searchinput::placeholder { color: #87948e; }
.search-modal-field .searchinput::-webkit-search-cancel-button { display: none; }

.search-modal-clear {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #718078;
    background: transparent;
    border: 0;
    border-radius: 50%;
}

.search-suggestions {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
}

.search-suggestions[hidden] { display: none; }

.search-suggestions > span {
    margin-right: 3px;
    color: #718078;
    font-size: 11px;
    font-weight: 680;
}

.search-suggestions button {
    min-height: 32px;
    padding: 0 12px;
    color: #03482b;
    background: #fff;
    border: 1px solid #dce6e0;
    border-radius: 999px;
    font: inherit;
    font-size: 11px;
    font-weight: 720;
}

.search-suggestions button:hover {
    color: #fff;
    background: #03482b;
    border-color: #03482b;
}

.search-result-status {
    min-height: 18px;
    margin-top: 11px;
    color: #718078;
    font-size: 11px;
    font-weight: 650;
}

.search-results {
    display: grid;
    gap: 0;
    max-height: none;
    margin: 0 -4px 0 0;
    padding: 0 4px 0 0;
    overflow: auto;
    border-top: 1px solid #dce6e0;
    scrollbar-color: #b9c9c0 transparent;
    scrollbar-width: thin;
}

.search-results:empty { display: none; border-top: 0; }
.search-result-group + .search-result-group { margin-top: 8px; }

.search-result-group-title {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px 8px;
    color: #03482b;
    background: rgba(255, 255, 255, .97);
    font-size: 11px;
    font-weight: 790;
}

.search-result-group-title small {
    color: #e2a515;
    background: transparent;
    font-size: 10px;
    font-weight: 780;
}

.search-result-item {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 13px;
    padding: 10px 2px;
    color: #03482b;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #edf1ee;
    border-radius: 0;
}

.search-result-item:hover,
.search-result-item.is-active {
    color: #03482b;
    background: #fff;
    border-color: #e2a515;
}

.search-result-media {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    overflow: hidden;
    background: #f7f5ee;
    border: 1px solid #dce6e0;
    border-radius: 9px;
}

.search-result-media img { width: 100%; height: 100%; object-fit: cover; }
.search-result-body { display: grid; min-width: 0; flex: 1; gap: 3px; }

.search-result-type {
    color: #e2a515;
    font-size: 9px;
    font-weight: 790;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.search-result-item strong { color: #03482b; font-size: 14px; font-weight: 760; line-height: 1.3; }
.search-result-item small { color: #718078; font-size: 11px; line-height: 1.45; -webkit-line-clamp: 1; }

.search-result-arrow {
    flex: 0 0 auto;
    color: #9aaba2;
    font-size: 17px;
}

.search-result-item:hover .search-result-arrow,
.search-result-item.is-active .search-result-arrow { color: #e2a515; transform: none; }

.search-empty-state {
    min-height: 76px;
    padding: 18px 2px;
    color: #718078;
    background: #fff;
    border: 0;
    border-bottom: 1px solid #dce6e0;
    border-radius: 0;
}

@media (max-width: 767px) {
    .search-modal { align-items: flex-end; padding: 0; }

    .search-modal-inner {
        width: 100%;
        max-height: 92dvh;
        border-radius: 16px 16px 0 0;
    }

    .search-modal-content { padding: 26px 18px 16px; }
    .search-modal-close { top: 18px; right: 18px; width: 38px; height: 38px; }
    .search-modal-content h2 { margin-bottom: 19px; font-size: 28px; }
    .search-modal-field { min-height: 56px; padding: 0 13px; border-radius: 11px; }
    .search-modal-field .searchinput { height: 54px; font-size: 14px; }
    .search-suggestions > span { flex-basis: 100%; }
    .search-result-item { padding-right: 2px; }
    .search-result-media { width: 46px; height: 46px; flex-basis: 46px; }
    .search-result-item small { display: none; }
}
