.eiman-menu-search-item {
    display: flex;
    align-items: center;
    list-style: none;
}

.eiman-menu-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 190px;
    max-width: 100%;
    height: 38px;
    padding: 0 10px;
    margin: 4px 6px;
    background: var(--eiman-ivory, #fbf6ec);
    border: 1px solid var(--eiman-gold, #c9a24b);
    border-radius: 999px;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: box-shadow .2s ease, border-color .2s ease;
}

.eiman-menu-search:focus-within {
    border-color: var(--eiman-emerald, #1f6f54);
    box-shadow: 0 0 0 3px rgba(31, 111, 84, .12);
}

.eiman-ms-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eiman-gold, #c9a24b);
    flex-shrink: 0;
}

.eiman-ms-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13.5px;
    color: #4a3b23;
    padding: 0 6px;
    -webkit-appearance: none;
}

.eiman-ms-input::placeholder {
    color: #9a8865;
}

.eiman-ms-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    color: #9a8865;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.eiman-menu-search.has-value .eiman-ms-clear {
    display: flex;
}

.eiman-ms-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: max(280px, 100%);
    max-width: 92vw;
    max-height: 70vh;
    overflow-y: auto;
    background: #fffdf8;
    border: 1px solid #e8dcbf;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(74, 59, 35, .18);
    z-index: 9999;
    padding: 6px;
}

.eiman-ms-panel.is-open {
    display: block;
}

.eiman-ms-loading,
.eiman-ms-empty {
    padding: 14px 12px;
    font-size: 13px;
    color: #8a7a58;
    text-align: center;
}

.eiman-ms-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}

.eiman-ms-result:hover,
.eiman-ms-result:focus {
    background: #f6ecd6;
}

.eiman-ms-thumb {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #eee3c8;
}

.eiman-ms-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eiman-ms-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.eiman-ms-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--eiman-emerald, #1f6f54);
    background: rgba(31, 111, 84, .1);
    border-radius: 999px;
    padding: 1px 8px;
}

.eiman-ms-result[data-type="eiman_landmark"] .eiman-ms-badge {
    color: var(--eiman-gold, #a3792f);
    background: rgba(163, 121, 47, .12);
}

.eiman-ms-result[data-type="post"] .eiman-ms-badge,
.eiman-ms-result[data-type="page"] .eiman-ms-badge {
    color: #6b6b6b;
    background: rgba(0, 0, 0, .06);
}

.eiman-ms-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #3f3220;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eiman-ms-price {
    font-size: 12px;
    font-weight: 600;
    color: var(--eiman-emerald, #1f6f54);
    white-space: nowrap;
}

@media (max-width: 782px) {
    .eiman-menu-search {
        width: 100%;
        margin: 6px 0;
    }

    .eiman-ms-panel {
        width: 100%;
        max-width: 100%;
        position: static;
        margin-top: 8px;
        box-shadow: none;
        border-color: #e8dcbf;
    }
}
