/* 나무 검색 숏코드 스타일 */

.tree-search-form {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.tree-search-container {
    display: flex;
    align-items: center;
    border: 1.5px solid #2C9A5C;
    border-radius: 30px;
    padding: 3px 12px;
}

.tree-search-icon {
    margin-right: 5px;
    flex-shrink: 0;
}

.tree-search-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* 카테고리 선택기 (select) */

.tree-category-select {
    margin-right: 15px;
    padding: 8px 12px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
    border: none;
    background-color: transparent;
}

input[type=text].tree-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #495057;
    outline: none;
    padding: 0;
}

.tree-search-input::placeholder {
    color: #6c757d;
}


/* 검색 제안 스타일 */

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f8f9fa;
    font-size: 14px;
    color: #495057;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: #f8f9fa;
}


/* 반응형 디자인 */


/* 
@media (max-width: 768px) {
    .tree-search-container {
        padding: 6px 12px;
    }
    .tree-search-input {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tree-search-form {
        max-width: 100%;
    }
    .tree-search-container {
        padding: 6px 10px;
    }
    .tree-search-input {
        font-size: 14px;
    }
    .tree-category-select {
        min-width: 100px;
        font-size: 13px;
        padding: 6px 10px;
        padding-right: 28px;
    }
} */