/* === SEARCH PILL — topbar + mobile offcanvas === */
.tm-toolbar > .uk-container {
    justify-content: space-between !important;
}
.tm-search-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 300px;
    max-width: 100%;
    height: 30px;
    background: #fff;
    border: 1px solid #d8dce0;
    border-radius: 999px;
    padding: 0 3px 0 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tm-search-wrap:focus-within {
    border-color: #29B5DF;
    box-shadow: 0 0 0 3px rgba(41,181,223,0.15);
}
.tm-search-wrap input.tm-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 12.5px;
    color: #222;
    height: 100%;
    min-width: 0;
    padding: 0;
}
.tm-search-wrap input.tm-search-input::placeholder { color: #9aa0a6; }
.tm-search-btn {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #29B5DF;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s;
    padding: 0;
}
.tm-search-btn:hover { background: #1E9AC0; }
.tm-search-btn svg { width: 13px; height: 13px; }
.tm-search-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 320px;
    overflow-y: auto;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    display: none;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
}
.tm-search-wrap.has-results .tm-search-suggestions { display: block; }
.tm-search-suggestions li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 16px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.tm-search-suggestions .tm-search-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tm-search-suggestions .tm-search-cat {
    flex: 0 0 auto;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #888;
    background: #f3f3f3;
    padding: 2px 8px;
    border-radius: 10px;
}
.tm-search-suggestions li a:hover,
.tm-search-suggestions li a:hover .tm-search-cat,
.tm-search-suggestions li a.active {
    background: #29B5DF;
    color: #fff;
}
.tm-search-suggestions li a:hover .tm-search-cat {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.tm-search-suggestions li.tm-search-empty {
    padding: 12px 16px;
    font-size: 13px;
    color: #888;
    text-align: center;
}
@media (max-width: 1100px) {
    .tm-search-wrap { width: 240px; }
}

/* Mobile offcanvas variant */
.tm-search-wrap.tm-search-wrap--mobile {
    width: 100%;
    height: 40px;
    padding: 0 4px 0 16px;
    margin: 8px 0 18px;
}
.tm-search-wrap.tm-search-wrap--mobile input.tm-search-input { font-size: 14px; }
.tm-search-wrap.tm-search-wrap--mobile .tm-search-btn { width: 32px; height: 32px; }
.tm-search-wrap.tm-search-wrap--mobile .tm-search-btn svg { width: 16px; height: 16px; }
