/* ============================================================
   Lisafunktsioonid – Otsing
   ============================================================ */

.lf-search-form {
    display: flex;
    align-items: center;
    max-width: 40rem;
    width: 100%;
    position: relative;
    height: 36px;
}

.lf-search-input {
    color: white !important;
    border: 0 !important;
    background: #103b5d !important;
    border-radius: 2rem !important;
    max-width: 40rem;
    width: 100% !important;
    height: 100% !important;
    padding: 0 4rem 0 1.5rem !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 16px !important;
    outline: none;
    box-sizing: border-box;
}

.lf-search-input::placeholder,
.lf-search-input::-webkit-input-placeholder,
.lf-search-input::-moz-placeholder {
    color: rgba(255, 255, 255, 1) !important;
    opacity: 1 !important;
}

.lf-search-input:focus {
    background: #103b5d !important;
    outline: none;
}

.lf-search-input::-webkit-search-decoration,
.lf-search-input::-webkit-search-cancel-button,
.lf-search-input::-webkit-search-results-button,
.lf-search-input::-webkit-search-results-decoration {
    display: none;
}

.lf-search-button {
    margin-right: auto;
    width: 40px;
    height: 32px;
    padding-right: 0.3rem;
    margin-left: -40px;
    background: none;
    border: none;
    border-top-right-radius: 2rem;
    border-bottom-right-radius: 2rem;
    border-left: 0.2rem solid #124267;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: color 0.15s;
    align-self: center;
}

.lf-search-button:hover {
    color: rgba(255, 255, 255, 0.75);
}

.lf-search-button svg {
    width: 1.1rem;
    height: 1.1rem;
    pointer-events: none;
}

li.lf-search-menu-item {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
}

.lf-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #103b5d;
    border-radius: 0.75rem;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    display: none;
}

.lf-search-results.active { display: block; }

.lf-search-result-item {
    padding: 0.6rem 1.2rem;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #124267;
    transition: background 0.12s;
}

.lf-search-result-item:last-child { border-bottom: none; }

.lf-search-result-item:hover,
.lf-search-result-item.highlighted {
    background: #0e3354;
    color: white;
    text-decoration: none;
}

.lf-search-result-item mark {
    background: none;
    color: #5ab4ff;
    font-weight: 600;
}

.lf-search-no-results {
    padding: 0.6rem 1.2rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    font-style: italic;
}
