
/* Kereső a menüsávban */
.search-toggle {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.15rem;
    padding: 6px 9px;
    cursor: pointer;
    line-height: 1;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}
.search-icon-feher {
    width: 20px;
    height: 20px;
    display: block; /* a kepek/kereses_feher.png eleve fehér, szűrő nem kell */
}
.search-toggle:hover,
.search-toggle:focus-visible {
    background: rgba(255,255,255,.12);
    outline: none;
}
.search-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateX(8px);
    transition: max-width .25s ease, opacity .2s ease, transform .25s ease;
}
.search-form.is-open {
    max-width: 360px;
    opacity: 1;
    transform: translateX(0);
    overflow: visible;
}
.search-input {
    width: min(260px, 30vw);
    min-width: 120px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 6px;
    padding: 6px 10px;
    background: #fff;
    color: #222;
}
.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,.2);
}
.search-button {
    border: 0;
    border-radius: 6px;
    padding: 6px 10px;
    background: #fff;
    color: rgb(128,28,17);
    font-weight: 600;
    white-space: nowrap;
}
.search-page {
    padding-top: 35px;
    padding-bottom: 60px;
}
.search-page h1 {
    margin-bottom: 20px;
}
.search-result {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: #fff;
}
.search-result:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.search-result a {
    color: rgb(128,28,17);
    text-decoration: none;
}
.search-result a:hover {
    text-decoration: underline;
}
.search-type {
    display: inline-block;
    font-size: .78rem;
    padding: 2px 7px;
    border-radius: 10px;
    background: #eee;
    margin-left: 7px;
}
.search-path {
    color: #777;
    font-size: .82rem;
    margin-top: 5px;
}
.search-snippet {
    margin-top: 8px;
    color: #444;
}
.search-empty {
    padding: 25px;
    border: 1px dashed #aaa;
    border-radius: 8px;
    color: #666;
}
.search-count {
    color: #666;
    margin-bottom: 15px;
}

/* A kereső a menüsor része (<li class="nav-item search-item">) */
.search-item {
    display: flex;
    align-items: center;
    list-style: none;
}

/* Asztali menü: minden elem (a kereső ikon is) ugyanarra a függőleges középvonalra kerül,
   akkor is, ha egy menüpont több sorba törik */
@media (min-width: 1200px) {
    #navbar-egesz .navbar-nav {
        align-items: center;
    }
}

/* Hamburger menü (1200 px alatt): nincs ikon, a keresőmező a menü alján látszik */
@media (max-width: 1199.98px) {
    /* A sáv színét minden oldal a saját CSS-ében adja meg; az "inherit" ezt örökli lefelé,
       így az alul rögzülő keresősor nem átlátszó, és minden oldalon a menü színében van. */
    #navbar-egesz .navbar-collapse,
    #navbar-egesz .navbar-nav {
        background-color: inherit;
    }
    .search-item {
        display: block;
        position: sticky;       /* a görgethető menüben is mindig az alsó szélen marad */
        bottom: 0;
        z-index: 2;
        background-color: inherit;
        padding: 12px 0 6px;
    }
    .search-toggle {
        display: none;
    }
    .search-form,
    .search-form.is-open {
        display: flex;
        width: 100%;
        max-width: none;
        margin-left: 0;
        opacity: 1;
        transform: none;
        overflow: visible;
    }
    .search-input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }
}

@media (max-width: 576px) {
    .search-page {
        padding-top: 20px;
    }
}
