/* Buscador: sugerencias al escribir y página de resultados (inc/search.php, js/site-search.js). */

.search-form.has-suggest {
    position: relative;
}

/* Lista desplegable bajo el campo, con el borde blanco y contorno negro de la web. */
.ht-suggest {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 1005;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    border: 2px solid #fff;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 0 0 2px #000, 0 8px 22px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.ht-suggest[hidden] {
    display: none;
}

.ht-suggest-group {
    padding: 5px 10px;
    border-bottom: 1px solid #c5d6de;
    background: linear-gradient(#e9f2f6, #d5e3ea);
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #004960;
}

.ht-suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    color: #2a3b42;
    font-size: 0.88rem;
    text-decoration: none;
}

.ht-suggest-item + .ht-suggest-item {
    border-top: 1px solid #eef3f5;
}

.ht-suggest-item.is-active,
.ht-suggest-item:hover {
    background: #eaf6fb;
    color: #0080a8;
}

.ht-suggest-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ht-suggest-item small {
    display: block;
    font-size: 0.72rem;
    color: #6b7b83;
}

.ht-suggest-head {
    flex-shrink: 0;
    width: 30px;
    height: 34px;
    object-fit: none;
}

.ht-suggest-thumb {
    flex-shrink: 0;
    width: 44px;
    height: 34px;
    border-radius: 4px;
    object-fit: cover;
}

.ht-suggest-icon {
    flex-shrink: 0;
    width: 30px;
    text-align: center;
    color: #6b7b83;
}

.ht-suggest-item.is-all {
    font-weight: bold;
    color: #0080a8;
}

.ht-suggest-empty {
    padding: 10px;
    font-size: 0.85rem;
    color: #6b7b83;
}

/* ─── Página de resultados ─── */

.site-search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 4px 6px;
}

.site-search-tab b {
    margin-left: 3px;
}

.site-search-user-head {
    flex-shrink: 0;
    width: 30px;
    height: 34px;
    margin: -8px 0;
    object-fit: none;
    object-position: 50% 30%;
}

.site-search-pages {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
    padding: 4px;
}

.site-search-page-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid #e0e8eb;
    border-radius: 7px;
    background: #fff;
    font-weight: bold;
    color: #075776;
}

.site-search-page-result .fa-chevron-right {
    margin-left: auto;
    font-size: 0.72rem;
}

.site-search-page-result:hover {
    border-color: #0093c2;
    background: #f2fbfe;
    color: #0093c2;
}

.site-search-more {
    margin: 0 4px 16px;
    text-align: center;
}
