﻿#searchResults {
    display: none;
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    background: #ffffff;
}

.search-result {
    display: block;
    padding: 10px 12px;
    color: #263238;
    text-decoration: none;
    border-bottom: 1px solid #edf1f5;
}

.search-result:last-child {
    border-bottom: 0;
}

.search-result strong,
.search-result span {
    display: block;
}

.search-result span {
    color: #5f6f7a;
    font-size: 12px;
}

.search-result .search-meta {
    margin-top: 2px;
    color: #2f83b9;
    font-weight: 700;
}

.search-result .search-snippet {
    margin-top: 5px;
    color: #5f6f7a;
    font-size: 12px;
    line-height: 1.35;
}

.search-result:hover {
    background: #eef6ff;
    color: #174a76;
}

.search-empty {
    padding: 10px 12px;
    color: #5f6f7a;
    font-size: 13px;
}
/* Evidenziazione parola cercata nella pagina */
.search-highlight {
    background: #fff2a8;
    color: #123d63;
    padding: 1px 3px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(240, 185, 35, 0.35);
}

.search-highlight-current {
    background: #00a651;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.22);
}

#searchNavigator {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100vw - 44px);
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(15, 53, 85, 0.18);
    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    color: #174a76;
    font-size: 13px;
    font-weight: 700;
}

.search-navigator-label {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#searchNavigator button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: #2f83b9;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

#searchNavigator button:hover {
    background: #00a651;
}

#searchNavigator .search-close {
    background: #eef3f8;
    color: #174a76;
}

.search-counter {
    min-width: 44px;
    text-align: center;
    color: #263238;
}

@media (max-width: 700px) {
    #searchNavigator {
        left: 12px;
        right: 12px;
        bottom: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }
}
