/* Hudrat — live search suggestions (see public/assets/js/hudrat-suggest.js) */
.hd-suggest {
    position: fixed;
    z-index: 900;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--hd-line, #ece3d6);
    border-radius: 18px;
    box-shadow: 0 24px 60px -20px rgba(80, 52, 22, .35);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .25s cubic-bezier(.16, 1, .3, 1), transform .35s cubic-bezier(.16, 1, .3, 1);
}
.hd-suggest.is-open { opacity: 1; transform: none; }
.hd-suggest[hidden] { display: none; }

.hd-sg-group {
    padding: 10px 12px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hd-gold, #a67548);
}
html[lang="ar"] .hd-sg-group { letter-spacing: 0; }

.hd-sg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border-radius: 12px;
    color: var(--hd-ink, #2b2218);
    text-decoration: none;
    transition: background .2s;
}
.hd-sg-item:hover, .hd-sg-item.is-active { background: var(--hd-sand, #f3e8d8); }

.hd-sg-pic {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    background: #f7f1e8;
    display: grid;
    place-items: center;
    color: var(--hd-gold, #a67548);
}
.hd-sg-pic img { width: 100%; height: 100%; object-fit: cover; }
.hd-sg-pic svg { width: 20px; height: 20px; }

.hd-sg-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hd-sg-text b { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-sg-text small { font-size: 12.5px; color: var(--hd-muted, #85786a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-sg-text mark { background: none; color: var(--hd-gold, #a67548); font-weight: 700; }

.hd-sg-go { color: var(--hd-gold, #a67548); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.hd-sg-item:hover .hd-sg-go, .hd-sg-item.is-active .hd-sg-go { opacity: 1; transform: none; }
[dir="rtl"] .hd-sg-go { transform: scaleX(-1) translateX(-4px); }
[dir="rtl"] .hd-sg-item:hover .hd-sg-go, [dir="rtl"] .hd-sg-item.is-active .hd-sg-go { transform: scaleX(-1); }

.hd-sg-empty { padding: 16px 14px; color: var(--hd-muted, #85786a); font-size: 14px; }

@media (max-width: 560px) {
    .hd-suggest { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .hd-suggest { transition: none; }
}
