/**
 * AJAX LIVE SEARCH DROPDOWN STYLES
 */

.search-input-wrapper { position: relative; }

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 800px;
    max-width: 95vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    z-index: 999;
    padding: 25px;
    display: none; /* Hidden by default */
    border: 1px solid rgba(255,255,255,0.8);
    max-height: 85vh;
    overflow-y: auto;
}

/* 3 COLUMNS MODELS LAYOUT */
.ajax-models-columns {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f8fafc;
    padding-bottom: 20px;
}

.ajax-models-col {
    flex: 1;
    min-width: 0;
}

.ajax-no-results-mini {
    font-size: 11px;
    color: #cbd5e1;
    padding: 15px;
    text-align: center;
    font-style: italic;
}

.search-results-dropdown.active { display: block; animation: slideDown 0.3s ease; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESULTS GROUPS */
.ajax-search-group { margin-bottom: 20px; }
.ajax-search-group:last-child { margin-bottom: 0; }

.ajax-group-title {
    font-size: 10px;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: block;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 5px;
}

/* INDIVIDUAL ITEMS */
.ajax-result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 5px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.ajax-result-row:last-child { border-bottom: none; }

.ajax-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: all 0.2s;
    flex: 1;
    min-width: 0;
    padding: 8px;
    border-radius: 12px;
}

.ajax-result-item:hover { background: #f8fafc; }

.ajax-item-thumb {
    width: 45px;
    height: 32px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f5f9;
}

.ajax-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ajax-item-info { flex: 1; min-width: 0; }

.ajax-item-name {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ajax-item-meta {
    font-size: 11px;
    color: #94a3b8;
}

.ajax-item-rating { color: #f59e0b; margin-left: 5px; font-weight: 900; }

/* MINI BUTTONS */
.ajax-item-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ajax-mini-btn {
    font-size: 10px; /* SLIGHTLY LARGER */
    font-weight: 900;
    padding: 8px 12px; /* MORE CLICKABLE */
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.ajax-btn-review {
    background: var(--brand-blue);
    color: white;
}

.ajax-btn-review:hover { background: #0ea5e9; color: white; }

.ajax-btn-visit {
    background: var(--brand-pink);
    color: white;
}

.ajax-btn-visit:hover { transform: scale(1.05); box-shadow: 0 4px 10px rgba(255, 77, 109, 0.2); }

/* VIEW ALL BUTTON */
.ajax-view-all {
    display: block;
    background: #f1f5f9;
    color: #475569;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    margin-top: 10px;
    transition: all 0.3s;
}

.ajax-view-all:hover { background: var(--brand-pink); color: white; }

/* LOADING STATE */
.ajax-loader {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 13px;
}

.ajax-loader i { animation: spin 1s infinite linear; margin-right: 8px; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* NO RESULTS */
.ajax-no-results {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-weight: 700;
}

@media (max-width: 768px) {
    .search-results-dropdown {
        padding: 15px;
        border-radius: 16px;
    }
    .ajax-models-columns {
        flex-direction: column;
        gap: 15px;
        padding-bottom: 15px;
    }
    .ajax-result-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 0;
    }
    .ajax-item-buttons {
        width: 100%;
        gap: 10px;
    }
    .ajax-mini-btn {
        flex: 1;
        padding: 10px;
        font-size: 11px;
    }
}
