/* Search Overlay - Extra Slim Floating Card Concept */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Sangat tipis pak biar tidak menutupi barang */
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px; /* Lebih mepet ke atas pak */
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.search-container-inner {
    width: 90%;
    max-width: 400px; /* Makin RAMPING pak pak */
    background: #0d6b6b; /* Latar hijau jati cuma di sini pak */
    padding: 12px 15px; /* Rapat & ramping pak */
    border-radius: 12px; /* Lebih kotak dikit biar modern */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideDown 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideDown {
    from { transform: translateY(-15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.search-header {
    text-align: center;
    margin-bottom: 8px; /* Lebih rapat pak */
    color: white;
}

.search-header h2 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem; /* Makin mungil pak */
    color: white;
    margin-bottom: 0;
}

.search-header p {
    font-size: 0.65rem; /* Micro pak */
    opacity: 0.7;
    margin-top: 1px;
}

.search-content {
    background: white;
    width: 100%;
    padding: 0 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.search-content input {
    flex: 1;
    padding: 6px 0; /* Makin sempit fieldnya pak */
    font-size: 0.8rem;
    font-family: 'Times New Roman', Times, serif;
    border: none;
    background: transparent;
    color: #333;
    outline: none;
}

.search-content i.fa-search {
    color: #0d6b6b;
    font-size: 0.8rem;
    opacity: 0.5;
}

.clear-search-btn {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Suggestions Area */
.search-suggestions {
    width: 100%;
}

.suggestion-title {
    font-size: 0.6rem; /* Makin micro pak */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.6;
    color: white;
    text-align: center;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px; /* Rapat pak */
}

.suggestion-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 2px 8px; /* Super hemat tempat pak */
    border-radius: 12px;
    font-size: 0.65rem;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.suggestion-tag:hover {
    background: white;
    color: #0d6b6b;
}

.close-search-overlay {
    position: absolute;
    top: -6px; /* Lebih nyempil pak */
    right: -6px;
    background: white;
    border: none;
    color: #ff4d4d;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 10;
}

@media (max-width: 768px) {
    .search-overlay { padding-top: 60px; }
    .search-container-inner { width: 92%; padding: 10px; max-width: 350px; }
    .search-header h2 { font-size: 0.9rem; }
}