/* ═══════════════════════════════════════
   LUXEHOME — GLOBAL ARAMA
═══════════════════════════════════════ */

/* ── Overlay backdrop ── */
#lh-search-overlay {
    position: fixed; inset: 0;
    background: rgba(5,5,5,0.92);
    backdrop-filter: blur(16px) saturate(0.5);
    z-index: 10000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
}
#lh-search-overlay.open {
    opacity: 1; pointer-events: all;
}

/* ── Search modal ── */
#lh-search-modal {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10001;
    padding: 0 5%;
    transform: translateY(-30px);
    opacity: 0; pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
}
#lh-search-modal.open {
    transform: translateY(0);
    opacity: 1; pointer-events: all;
}

/* ── Input bar ── */
.search-bar-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 80px;
    position: relative;
}
.search-bar-inner {
    display: flex; align-items: center; gap: 18px;
    border-bottom: 1.5px solid rgba(179,89,0,0.5);
    padding-bottom: 18px;
    position: relative;
}
.search-bar-inner::after {
    content: '';
    position: absolute; bottom: -1.5px; left: 0;
    width: 0; height: 1.5px;
    background: #b35900;
    transition: width 0.4s ease;
}
#lh-search-modal.open .search-bar-inner::after {
    width: 100%;
    transition-delay: 0.2s;
}
.search-icon-big {
    color: #b35900; font-size: 22px; flex-shrink: 0;
}
#lhSearchInput {
    flex: 1;
    background: transparent; border: none; outline: none;
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 300; color: #fff;
    font-family: 'Playfair Display', serif;
    caret-color: #b35900;
    letter-spacing: -0.5px;
}
#lhSearchInput::placeholder { color: rgba(255,255,255,0.15); }
.search-close-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%; width: 42px; height: 42px;
    color: #888; cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease; font-size: 14px;
}
.search-close-btn:hover { color: #fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.2); }

/* ── Hint / Count ── */
.search-meta {
    max-width: 860px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0 0;
}
.search-hint {
    font-size: 11px; letter-spacing: 2px;
    color: rgba(255,255,255,0.2);
    text-transform: uppercase;
}
.search-count {
    font-size: 11px; letter-spacing: 2px;
    color: #b35900; font-weight: 600;
    text-transform: uppercase;
    display: none;
}
.search-count.visible { display: block; }

/* ── Results grid ── */
.search-results-wrap {
    max-width: 860px; margin: 28px auto 0;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    scrollbar-width: thin; scrollbar-color: #222 transparent;
    padding-bottom: 40px;
}
.search-results-wrap::-webkit-scrollbar { width: 3px; }
.search-results-wrap::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* Empty state */
.search-empty {
    text-align: center; padding: 60px 20px;
    display: none;
}
.search-empty.show { display: block; }
.search-empty-icon { font-size: 48px; opacity: 0.15; margin-bottom: 16px; }
.search-empty p { color: rgba(255,255,255,0.25); font-size: 15px; }

/* Results list */
.search-results-list { display: flex; flex-direction: column; gap: 6px; }

/* Result item */
.sr-item {
    display: flex; align-items: center; gap: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 0; transform: translateY(8px);
    animation: srIn 0.3s ease forwards;
}
.sr-item:hover {
    background: rgba(179,89,0,0.08);
    border-color: rgba(179,89,0,0.25);
    transform: translateX(6px);
}
@keyframes srIn {
    to { opacity:1; transform: translateY(0); }
}
.sr-img {
    width: 60px; height: 60px; flex-shrink: 0;
    border-radius: 10px; overflow: hidden;
    background: #1a1a1a;
}
.sr-img img { width:100%; height:100%; object-fit:cover; }

.sr-info { flex: 1; min-width: 0; }
.sr-name {
    color: #fff; font-size: 15px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 4px; letter-spacing: -0.2px;
}
.sr-name mark {
    background: transparent; color: #b35900; font-weight: 700;
}
.sr-page {
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,0.3); font-weight: 500;
}

.sr-price {
    font-size: 16px; font-weight: 700;
    color: #b35900; flex-shrink: 0;
    letter-spacing: -0.5px;
}

.sr-arrow {
    color: rgba(255,255,255,0.2); font-size: 12px; flex-shrink: 0;
    transition: all 0.2s ease;
}
.sr-item:hover .sr-arrow { color: #b35900; transform: translateX(4px); }

/* Page badge */
.sr-page-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 8px; border-radius: 20px;
    background: rgba(179,89,0,0.1);
    border: 1px solid rgba(179,89,0,0.2);
    font-size: 9px; letter-spacing: 1.5px;
    text-transform: uppercase; color: #b35900; font-weight: 600;
    flex-shrink: 0;
}

/* Popular searches */
.search-popular {
    max-width: 860px; margin: 36px auto 0;
}
.search-popular-label {
    font-size: 10px; letter-spacing: 3px;
    color: rgba(255,255,255,0.2); text-transform: uppercase;
    font-weight: 600; margin-bottom: 14px;
}
.popular-tags {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.pop-tag {
    padding: 8px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    color: rgba(255,255,255,0.4);
    font-size: 12px; cursor: pointer;
    transition: all 0.2s ease;
}
.pop-tag:hover {
    background: rgba(179,89,0,0.1);
    border-color: rgba(179,89,0,0.3);
    color: #b35900;
}

/* Navbar search icon — active state */
.fa-magnifying-glass.search-active { color: #b35900; }

/* Keyboard shortcut hint */
.search-kbd {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; color: rgba(255,255,255,0.15);
    letter-spacing: 1px;
}
.kbd {
    padding: 2px 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px; font-size: 10px;
    color: rgba(255,255,255,0.3);
}