/* Search Bar in Header */
.search-bar {
    display: flex;
    border: 1px solid var(--border-light, #ddd);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 1;
    min-width: 120px;
    transition: all 0.3s ease;
}

.search-bar input {
    border: none;
    padding: 8px 12px;
    outline: none;
    font-size: 14px;
    width: 100%;
    min-width: 80px;
    background: transparent;
}

.search-bar button {
    background-color: var(--bg-light-neutral);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-color-medium);
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #eee;
}

/* Hero Section Search Bar */
.hero-search {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--light-green);
    border-radius: 8px;
    overflow: hidden;
}

.hero-search input {
    flex-grow: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
}

.hero-search button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    background: white;
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px var(--shadow-medium);
    z-index: 2000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: var(--bg-light-neutral);
}

.suggestion-name {
    font-weight: 600;
    color: var(--primary-green);
}

.suggestion-type {
    font-size: 12px;
    color: var(--text-color-light);
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Responsive adjustments for search bar */
@media (max-width: 768px) {
    .search-bar {
        margin-right: 0;
        width: 100%;
        max-width: 300px;
    }

    .search-bar input {
        flex-grow: 1;
    }
}
