/* === Live search === */
.live-search-host {
    position: relative;
    margin: 20px 0 24px;
    z-index: 10000;
}
.live-search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 22, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9998;
}
.live-search-host.is-open .live-search-backdrop {
    opacity: 1;
    pointer-events: auto;
}
.live-search-wrap {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    z-index: 9999;
}
.live-search-input-row {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e3e8ef;
    border-radius: 999px;
    padding: 0 18px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.live-search-host.is-open .live-search-input-row {
    border-color: #1976d2;
    box-shadow: 0 8px 30px rgba(25, 118, 210, 0.25);
}
.live-search-icon {
    color: #8894a6;
    flex: 0 0 auto;
    margin-right: 10px;
}
.live-search-input-row #liveSearchInput {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1.05em;
    padding: 14px 0;
    min-width: 0;
}

/* === Floating režim (input v produkčnom headri, panel/backdrop v body) === */
.live-search-host--floating {
    position: static;
    margin: 0;
}
.live-search-host--floating .live-search-backdrop {
    z-index: 9998;
}
.live-search-host--floating .live-search-panel {
    position: fixed;
    z-index: 10000;
    top: auto;
    left: auto;
    right: auto;
}
/* podsvietenie inputu keď je overlay otvorený */
body:has(.live-search-host--floating.is-open) #liveSearchInput {
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.35);
    border-color: #1976d2;
    position: relative;
    z-index: 9999;
}
.live-search-clear {
    background: transparent;
    border: 0;
    font-size: 1.6em;
    color: #8894a6;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    display: none;
}
.live-search-host.has-query .live-search-clear {
    display: block;
}
.live-search-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.live-search-scroll {
    overflow-y: auto;
    padding: 18px;
    flex: 1 1 auto;
}
.live-search-footer {
    flex: 0 0 auto;
    padding: 12px 18px;
    border-top: 1px solid #eef1f6;
    background: #fff;
    border-radius: 0 0 14px 14px;
}
.live-search-footer a {
    display: block;
    width: 100%;
    text-align: center;
    background: #1976d2;
    color: #fff;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.live-search-footer a:hover {
    background: #125ea8;
    color: #fff;
}
.live-search-groups {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}
.live-search-group h4 {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8894a6;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eef1f6;
    font-weight: 700;
}
.live-search-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.live-search-group li + li { margin-top: 2px; }
.live-search-group a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px;
    border-radius: 8px;
    color: #222;
    text-decoration: none;
    font-size: 0.95em;
    line-height: 1.3;
    transition: background 0.12s;
}
.live-search-group a:hover,
.live-search-group a.is-active {
    background: #eef4fc;
    color: #1976d2;
}
.live-search-group a img {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 6px;
    flex: 0 0 auto;
    background: #f3f5f9;
}
.live-search-group a span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.live-search-empty,
.live-search-loading {
    padding: 28px 10px;
    text-align: center;
    color: #8894a6;
    font-size: 0.95em;
}
@media (max-width: 600px) {
    .live-search-groups { grid-template-columns: 1fr; }
    .live-search-panel { padding: 12px; }
}

/* === Stránky section === */
#searchstranky ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#searchstranky ul li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
#searchstranky ul li:last-child {
    border-bottom: 0;
}
#searchstranky ul li > a {
    flex: 0 0 80px;
    display: block;
}
#searchstranky ul li > a img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
#searchstranky ul li > div {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
#searchstranky ul li > div > a {
    font-size: 1.05em;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
}
#searchstranky ul li > div > a:hover {
    text-decoration: underline;
}
#searchstranky ul li > div > div {
    font-size: 0.85em;
    color: #888;
}
#searchstranky .viac {
    margin-top: 12px;
    text-align: center;
}
#searchstranky .viac button {
    background: #1976d2;
    color: #fff;
    border: 0;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.15s;
}
#searchstranky .viac button:hover {
    background: #125ea8;
}
